Expand description
Typed error enums.
LoopError is fatal-only: stream transport unrecoverable failure or
caller cancellation. Recoverable tool errors are not loop errors —
they’re context events: the tool returns ToolResult with the error encoded as text,
the loop appends it to history, and the model decides what to do.
Only explicit tool aborts and fatal tool errors bubble out.
Enums§
- Loop
Error - Why the loop terminated abnormally.
- Stream
Error - Tool
Error - Tool
Validation Error