Expand description
Agents: the SupportsAgentRun trait and the concrete Agent.
Rust equivalent of agent_framework._agents.
Structs§
- Agent
- The primary concrete agent: pairs a chat client with instructions, default options, tools, context providers, and middleware.
- Agent
Builder - Builder for
Agent. - Agent
RunOptions - Per-run option overrides for a single
SupportsAgentRun::run_with_options/SupportsAgentRun::run_streamcall, merged over the agent’s build-time defaults. - AsTool
Options - Options for
Agent::as_tool.
Traits§
- Supports
Agent Run - The common interface implemented by all agents.
Type Aliases§
- Agent
RunStream - A boxed stream of agent run updates.
- Agent
Tool Stream Callback - A callback receiving each
AgentResponseUpdatestreamed by an agent running as a tool — seeAsToolOptions::stream_callback.