Skip to main content

Module agent

Module agent 

Source

Structs§

AgentTurnsStream
The stream returned by agent_turns.

Enums§

AgentEvent
Events emitted by [Agent::run] over the course of a full generation loop (potentially multiple LLM requests interleaved with tool executions).

Functions§

agent
Drive the LLM ↔ tool agentic loop and yield AgentEvents.
agent_turns
Drive the LLM ↔ tool loop using non-streaming Request::complete calls, yielding one crate::types::CompleteResponse per LLM turn.