Skip to main content

Module types

Module types 

Source
Expand description

Agent result types, events, and context strategies.

Structs§

AgentResult
The final outcome of an agent run.
FailStrategy
Fail immediately if context exceeds the limit (no compaction).
TruncateStrategy
Keep only the system prompt (first message) and the last keep_last messages.

Enums§

AgentEvent
Events emitted during an agent run (for streaming / observability).
AgentLimitError
Agent limit or cancellation failure with locked precedence.
StopReason
Why the agent loop terminated.

Traits§

ContextStrategy
Strategy for compacting the message history when context is too large.