Expand description
Core traits and types.
Always available regardless of feature flags. Includes:
Structs§
- Events
Compaction Config - Configuration for automatic context compaction.
Enums§
- Before
Model Result - Result from a BeforeModel callback
Traits§
- Base
Events Summarizer - Trait for summarizing events during context compaction.
Type Aliases§
- After
Agent Callback - Callback invoked after an agent completes. Return
Ok(Some(content))to override. - After
Model Callback - Callback invoked after a model call. Return
Ok(Some(response))to override. - After
Tool Callback - Callback invoked after a tool executes. Return
Ok(Some(content))to override the result. - After
Tool Callback Full - Rich after-tool callback that receives the tool, arguments, and response.
- Before
Agent Callback - Callback invoked before an agent runs. Return
Ok(Some(content))to short-circuit. - Before
Model Callback - Callback invoked before a model call. Can modify the request or skip the call entirely.
- Before
Tool Callback - Callback invoked before a tool executes. Return
Ok(Some(content))to skip execution. - Global
Instruction Provider - Alias for
InstructionProviderused at the global (runner) level. - Instruction
Provider - Async function that generates dynamic instructions from context.
- OnTool
Error Callback - Callback invoked when a tool execution fails (after retries are exhausted).