Available on crate features
async and conversation only.Expand description
The agent loop runner.
Client::run drives the tool_use -> tool_result loop until the
model stops requesting tools (or the iteration cap is hit). Collapses
the manual loop in examples/tool_use.rs into a single call.
Gated on the conversation feature in addition to the parent
tool_dispatch module’s async gate.
Structs§
- Cost
Budget pricing - Cost budget for the agent loop, paired with the pricing table used to
evaluate
Conversation::cost. - RunOptions
- Optional knobs for the agent loop.