Skip to main content

Crate ag_runtime

Crate ag_runtime 

Source
Expand description

Transport-independent contracts for session and isolated agent execution. Implementations own provider routing and resource cleanup; hosts own scheduling.

Structs§

OneShotError
Typed failure returned by OneShotClient submissions.
OneShotRequest
Input payload for one isolated prompt that prefers structured protocol output.
OneShotSubmission
Parsed result returned by one isolated prompt execution.
PersonalityPrompt
Personality prompt state prepared for one provider turn.
ProviderCallBudget
A shared limit on underlying provider turns across cloned requests.
SessionRef
Opaque reference to an active agent session.
SessionStats
Token and diff usage statistics associated with one agent session or isolated prompt.
StartSessionRequest
Input payload for initiating a new agent session.
TurnContinuation
Continuation state for one provider-agnostic agent turn.
TurnContinuationParts
Owned continuation inputs consumed by a runtime adapter.
TurnRequest
Input payload for one provider-agnostic agent turn.
TurnResult
Normalized result returned when one agent turn completes successfully.

Enums§

AgentError
Typed error returned by AgentChannel operations.
AgentRequestKind
Turn initiation mode for TurnRequest.
PermissionMode
Supported permission mode values for agent execution workflows.
PersonalityPromptUpdate
Delta-mode personality change for a provider-managed conversation.
ReasoningLevel
Supported reasoning-effort levels for task execution.
ResponseStyle
Preferred amount of detail in user-facing session responses.
SessionDiffState
Known availability of a session worktree diff.
SpeedMode
Response-speed preference applied to one agent session.
TurnEvent
Incremental event emitted during one agent turn.

Traits§

AgentChannel
Provider-agnostic session channel for executing agent turns.
LiveTranscript
Live transcript projection used when a provider runtime needs replay text.
OneShotClient
Provider-neutral boundary for isolated structured agent prompts.

Functions§

normalize_instruction_conversation_id
Normalizes one provider-native conversation id for persisted bootstrap reuse tracking.

Type Aliases§

AgentFuture
Boxed async result used by AgentChannel trait methods.