Expand description
External-agent adapters implementing the ag-contracts execution contracts.
This crate owns provider discovery, prompt translation, CLI/app-server
transports, retries, and resource cleanup. Shared execution contracts live
in ag-contracts; the built-in selection catalog lives in
ag-session. Only ag-runtime constructs these adapters; application
workflows receive worker clients instead of concrete transports.
Structs§
- Agent
CliInfo - One locally runnable agent CLI and the installed version refreshed at startup.
- AppServer
Turn Request - Input payload for one app-server turn execution.
- AppServer
Turn Response - Normalized result for one app-server turn.
- Build
Command Request - Request payload used to build provider transport commands.
- Native
Harness Config - Host configuration that enables in-process
AgentKind::Harnessturns. - Real
Agent Availability Probe - Production availability probe backed by
PATHexecutable discovery. - Real
OneShot Client - Production
OneShotClientthat routes through the selected provider. - Static
Agent Availability Probe - Availability probe that returns one caller-provided snapshot.
Enums§
- Agent
Backend Error - Error type for backend setup and command construction failures.
- Agent
CliVersion - Automatic update and version probe state for one locally runnable agent CLI.
- Agent
Transport - Transport runtime used to execute turns for one backend.
- AppServer
Error - Typed error returned by app-server infrastructure operations.
- AppServer
Stream Event - Incremental event emitted during one app-server turn.
Traits§
- Agent
Availability Probe - Detects which provider CLIs and harness models are runnable on the current machine.
- Agent
Backend - Builds and configures external agent CLI commands.
- AppServer
Client - Persistent app-server session boundary used by session workers.
Functions§
- cleanup_
session_ worktree_ artifacts - Removes provider-owned worktree artifacts derived from one session folder.
- create_
agent_ channel - Creates the provider-specific channel for the given agent kind.
- create_
app_ server_ client - Returns the app-server client for the selected provider when applicable.
- create_
backend - Creates the backend implementation for the selected agent provider.
- executable_
name - Returns the CLI executable name used by the provided agent kind, or
Nonefor the in-process harness. - instruction_
bootstrap_ key - Returns the opaque persisted bootstrap key for a provider conversation.
- transport_
mode - Returns transport mode for the selected provider.
Type Aliases§
- AppServer
Future - Boxed async result used by
AppServerClienttrait methods.