Expand description
Unified execution backend for AI agent tasks.
Provides the [AgentBackend] trait that abstracts over different execution modes
(direct API, CLI subprocess, simulated) behind a single interface.
Unified execution backend for AI agent tasks.
Provides the [AgentBackend] trait that abstracts over different execution modes:
- Direct API calls to LLM providers
- CLI subprocess spawning (Claude Code, OpenCode, Cursor)
- Simulated execution for testing and dry-runs
All callers interact through the same interface regardless of how the underlying LLM execution happens.
Modules§
- cli
- CLI subprocess backend.
- direct
- Direct API backend.
- simulated
- Simulated backend for testing and dry-runs.
Structs§
- Agent
Handle - Handle to a running agent execution.
- Agent
Request - Request to execute an agent task.
- Agent
Result - Result of an agent execution.
- Token
Usage - Token usage statistics.
- Tool
Call Record - Record of a single tool call during execution.
Enums§
- Agent
Event - Events emitted during agent execution.
- Agent
Status - Status of an agent execution.
Traits§
- Agent
Backend - A backend that can execute an AI agent task.
Functions§
- create_
backend - Create a backend from a harness specification.
- create_
simulated_ backend - Create a simulated backend for testing and dry-runs.