Skip to main content

Module agent_node

Module agent_node 

Source
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§

ModelErrorAction
Recovery action returned by OnModelErrorCallback.
OutputMode
Configures how the agent extracts structured output from the model response.

Traits§

AgentNode
A runnable agent that produces a stream of events.

Type Aliases§

AfterAgentCallback
Called after the agent completes a turn (success or failure).
AgentEventStream
Stream of agent events produced during a run.
BeforeAgentCallback
Called immediately before the agent starts processing a turn.
OnModelErrorCallback
Called when a model error occurs, allowing custom recovery logic.