Skip to main content

Crate ag_runtime

Crate ag_runtime 

Source
Expand description

Runtime composition and dispatch for worker-owned agent execution.

Only ag-worker consumes this implementation. Shared execution contracts live in ag-contracts; concrete provider adapters live in ag-agent.

Structs§

RealAgentAvailabilityProbe
Machine-scoped provider discovery through the concrete adapter registry.
RuntimeFactory
Provider composition configuration. Constructing it starts no processes.
SessionRuntime
Session runtime whose concrete adapter never escapes to application code.
TrustedCargoCache
The Cargo download cache of one project.
UtilityRuntime
Runtime-owned isolated execution and provider cleanup.

Functions§

cleanup_session_worktree_artifacts
Reclaims adapter-owned resources during workspace deletion.
dispatch_sandbox_helper
Runs the native sandbox helper when a harness started this process as one and returns its exit code, which main must return at once; otherwise returns None and makes this executable the helper of every super::NativeHarnessConfig turn.
setup_backend
Initializes provider resources in a session workspace.
supports_turn_steering
Whether the selected provider’s session turns accept user prompts while running.
uses_persistent_session
Whether the selected provider retains a process between turns.