Expand description
Agent node trait, builder, and execution context.
AgentNode is the primary abstraction for a runnable agent. The Agent<D>
builder configures all agent parameters and implements AgentNode.
Structs§
- Agent
- Builder for configuring and constructing a runnable agent.
- RunContext
- Runtime context made available to agent execution.
Enums§
- Model
Error Action - Recovery action returned by
OnModelErrorCallback. - Output
Mode - Configures how the agent extracts structured output from the model response.
Traits§
- Agent
Node - A runnable agent that produces a stream of events.
Type Aliases§
- After
Agent Callback - Called after the agent completes a turn (success or failure).
- Agent
Event Stream - Stream of agent events produced during a run.
- Before
Agent Callback - Called immediately before the agent starts processing a turn.
- OnModel
Error Callback - Called when a model error occurs, allowing custom recovery logic.