Skip to main content

Module agent

Module agent 

Source
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.
AgentBuilder
Builder for Agent.
AgentRunOptions
Per-run option overrides for a single SupportsAgentRun::run_with_options / SupportsAgentRun::run_stream call, merged over the agent’s build-time defaults.
AsToolOptions
Options for Agent::as_tool.

Traits§

SupportsAgentRun
The common interface implemented by all agents.

Type Aliases§

AgentRunStream
A boxed stream of agent run updates.
AgentToolStreamCallback
A callback receiving each AgentResponseUpdate streamed by an agent running as a tool — see AsToolOptions::stream_callback.