Expand description
One-shot Rust adapters for Claude, Codex, Devin, and OpenCode v2 CLIs.
Each call runs a fresh CLI process and returns the completed assistant text. Authentication and model defaults come from the installed CLI unless the caller chooses a model explicitly.
Structs§
- Agent
Cli - A local CLI adapter. Each
runstarts a fresh process and returns one result. - Event
Handler - Receives
AgentEvents; called from the task reading the CLI’s output, so keep it quick. - McpServer
- An MCP server (streamable HTTP) the agent may use during a run.
- Open
Code V2 - A verified OpenCode v2 executable.
- Provider
Error - An adapter error with the selected provider preserved for callers.
- RunRequest
- A single, fresh CLI run.
- RunResult
- Result of one CLI run.
- Token
Usage - Token accounting reported by the CLI.
Enums§
- Agent
Event - Progress reported while a run is going (see
RunRequest::on_event). - Error
- Provider
- Tool
Policy - Which tools the agent may use during a run.