Expand description
Agent runtime - the core orchestration loop.
The agent coordinates between:
- Provider: Makes LLM API calls
- Tools: Executes tool calls from the assistant
- Session: Persists conversation history
The main loop:
- Receive user input
- Build context (system prompt + history + tools)
- Stream completion from provider
- If tool calls: execute tools, append results, goto 3
- If done: return final message
Structs§
- Abort
Handle - Handle to request an abort of an in-flight agent run.
- Abort
Signal - Signal for observing abort requests.
- Agent
- The agent runtime that orchestrates LLM calls and tool execution.
- Agent
Config - Configuration for the agent.
- Agent
Session - PreWarmed
Extension Runtime - Pre-created extension runtime state for overlapping startup I/O.
Enums§
- Agent
Event - Events emitted by the agent during execution.
- Queue
Mode
Type Aliases§
- Message
Fetcher - Async fetcher for queued messages (steering or follow-up).