Expand description
Agent result types, events, and context strategies.
Structs§
- Agent
Result - The final outcome of an agent run.
- Fail
Strategy - Fail immediately if context exceeds the limit (no compaction).
- Truncate
Strategy - Keep only the system prompt (first message) and the last
keep_lastmessages.
Enums§
- Agent
Event - Events emitted during an agent run (for streaming / observability).
- Agent
Limit Error - Agent limit or cancellation failure with locked precedence.
- Stop
Reason - Why the agent loop terminated.
Traits§
- Context
Strategy - Strategy for compacting the message history when context is too large.