Skip to main content

Module agents

Module agents 

Source
Expand description

Agent runtime traits and types.

Modules§

agent_node
Agent node trait, builder, and execution context.
directive
Directive system for agent effects.
directive_executor
Directive execution traits and implementations.
directive_filter
Directive filtering and transformation.
error
Error types for agent operations.
execution_strategy
Execution strategies for agents.
hooks
Lifecycle hooks for agent execution.
middleware
Middleware stack for cross-cutting concerns.
model_info
Model information, capabilities, selection, and provider traits.
output_mode
Output mode configuration for agents.
permission
Permission modes and rules.
plugin
Plugin system with isolated state.
runner
Agent runner and execution loop.
sampling
Sampling provider trait for tool-internal LLM access.
sandbox
Sandbox configuration for agents.
session
Session management traits.
signal
Signal routing for agent communication.
streaming
Streaming events for agents.
usage
Usage tracking and cost estimation.

Structs§

AgentAction
An action to be taken by an agent.
AgentFinish
The final result from an agent.
AgentStep
A single step in agent execution.

Enums§

AgentDecision
Decision made by an agent at each step.