Skip to main content

vv_agent/runtime/
mod.rs

1pub mod backends;
2pub mod background_sessions;
3pub mod cancellation;
4pub mod checkpoint_codec;
5pub(crate) mod checkpoint_resume;
6pub mod context;
7pub mod cycle_runner;
8pub mod engine;
9pub mod hooks;
10pub mod lifecycle;
11pub(crate) mod model_calls;
12pub mod processes;
13mod results;
14pub(crate) mod run_definition;
15pub mod shell;
16pub mod state;
17pub mod stores;
18mod sub_agent_sessions;
19mod sub_agents;
20pub mod sub_task_manager;
21pub mod token_usage;
22pub mod tool_call_runner;
23pub mod tool_planner;
24
25pub use backends::{InlineBackend, RuntimeExecutionBackend};
26pub use background_sessions::{
27    background_session_manager, BackgroundSessionAdoptOptions, BackgroundSessionListener,
28    BackgroundSessionManager, BackgroundSessionStartOptions, BackgroundSessionSubscription,
29};
30pub use cancellation::{CancellationToken, CancelledError};
31pub use context::ExecutionContext;
32pub use cycle_runner::{
33    is_prompt_too_long_error, CycleRunRequest, CycleRunner, MAX_PROMPT_TOO_LONG_RETRIES,
34};
35pub use engine::{
36    AgentRuntime, BeforeCycleMessageProvider, CheckpointRuntimeControl,
37    InterruptionMessageProvider, RunEventHandler, RuntimeRunControls,
38};
39pub use hooks::{
40    AfterLlmEvent, AfterToolCallEvent, BeforeLlmEvent, BeforeLlmPatch, BeforeMemoryCompactEvent,
41    BeforeToolCallEvent, BeforeToolCallPatch, RuntimeHook, RuntimeHookManager,
42};
43pub use lifecycle::{
44    AfterCycleAction, AfterCycleDecision, AfterCycleHook, AfterCycleSnapshot, NativeCycleOutcome,
45    NativeCycleOutcomeKind,
46};
47pub use processes::{
48    kill_process_tree, read_captured_output, remove_captured_output, start_captured_process,
49    start_captured_process_with_env, wait_for_child, CapturedProcess,
50};
51pub(crate) use results::{extract_final_message, extract_wait_reason};
52pub use state::{Checkpoint, CheckpointStore, OperationJournalEntry};
53pub use stores::memory::InMemoryCheckpointStore;
54pub use sub_agent_sessions::{
55    _register_sub_agent_session, _unregister_sub_agent_session, continue_sub_agent_session,
56    get_sub_agent_session, register_sub_agent_session, steer_sub_agent_session,
57    sub_agent_session_registry, subscribe_sub_agent_session, unregister_sub_agent_session,
58    SubAgentSession, SubAgentSessionListener, SubAgentSessionRegistry, SubAgentSessionUnsubscribe,
59};
60pub(crate) use sub_agents::with_assigned_sub_task_identity;
61pub use sub_task_manager::{
62    ManagedSubTask, ManagedSubTaskSnapshot, SubTaskLineage, SubTaskManager,
63    SubTaskSessionAttachment, SubTaskSubmissionContext, SubTaskTurnSnapshot,
64};
65pub use token_usage::{
66    normalize_token_usage, normalize_token_usage_with_hints, summarize_task_token_usage,
67};
68pub use tool_call_runner::{ToolCallRunner, ToolRunOutcome, ToolRunRequest};
69pub use tool_planner::{
70    freeze_dynamic_tool_schema_hints, patch_dynamic_tool_schema_hints, plan_tool_names,
71    plan_tool_schemas,
72};