The boundaries that matter
run() gives you a final result. stream() gives you an iterator that may span several model calls. Consume it to completion or explicitly cancel/close it when its owner is done.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Agentium 4.0.0 · Upgrade from 3.x.
Follow model calls, tool results, approvals, and cancellation through one execution.
| Boundary | What happened | What it does not establish |
|---|---|---|
| Model finished | One provider call returned | The Agent may still need to execute tools |
| Tool returned | An implementation produced a result | The model has not necessarily answered the user |
| Run completed | The Agent reached a successful terminal outcome | A denied tool may have been explained; answer quality still needs evaluation |
| Client disconnected | The transport lost its caller | An external effect may already have completed |
| Process restarted | Memory in that process was lost | A remote operation’s result may still exist |
run() gives you a final result. stream() gives you an iterator that may span several model calls. Consume it to completion or explicitly cancel/close it when its owner is done.