Skip to main content

ag_runtime/
lib.rs

1//! Transport-independent contracts for session and isolated agent execution.
2//! Implementations own provider routing and resource cleanup; hosts own
3//! scheduling.
4
5mod contract;
6mod one_shot;
7mod permission;
8mod provider_call_budget;
9mod reasoning;
10mod session;
11
12#[cfg(any(test, feature = "test-utils"))]
13pub use contract::MockAgentChannel;
14pub use contract::{
15    AgentChannel, AgentError, AgentFuture, AgentRequestKind, LiveTranscript, PersonalityPrompt,
16    PersonalityPromptUpdate, SessionRef, StartSessionRequest, TurnContinuation,
17    TurnContinuationParts, TurnEvent, TurnRequest, TurnResult,
18    normalize_instruction_conversation_id,
19};
20#[cfg(any(test, feature = "test-utils"))]
21pub use one_shot::MockOneShotClient;
22pub use one_shot::{OneShotClient, OneShotError, OneShotRequest, OneShotSubmission};
23pub use permission::PermissionMode;
24pub use provider_call_budget::ProviderCallBudget;
25pub use reasoning::ReasoningLevel;
26pub use session::{ResponseStyle, SessionDiffState, SessionStats, SpeedMode};