Skip to main content

vv_agent/runtime/
mod.rs

1pub mod backends;
2pub mod background_sessions;
3pub mod cancellation;
4mod checkpoint_codec;
5pub mod context;
6pub mod cycle_runner;
7pub mod engine;
8pub mod hooks;
9pub mod processes;
10mod results;
11pub mod shell;
12pub mod state;
13pub mod stores;
14mod sub_agent_sessions;
15mod sub_agents;
16pub mod sub_task_manager;
17pub mod token_usage;
18pub mod tool_call_runner;
19pub mod tool_planner;
20
21pub use backends::{InlineBackend, RuntimeExecutionBackend};
22pub use background_sessions::{
23    background_session_manager, BackgroundSessionAdoptOptions, BackgroundSessionListener,
24    BackgroundSessionManager, BackgroundSessionStartOptions, BackgroundSessionSubscription,
25};
26pub use cancellation::{CancellationToken, CancelledError};
27pub use context::{ExecutionContext, StreamCallback};
28pub use cycle_runner::{
29    is_prompt_too_long_error, CycleRunRequest, CycleRunner, MAX_PROMPT_TOO_LONG_RETRIES,
30    MAX_PTL_RETRIES,
31};
32pub use engine::{
33    AgentRuntime, BeforeCycleMessageProvider, InterruptionMessageProvider, RuntimeEventHandler,
34    RuntimeLogCallback, RuntimeLogHandler, RuntimeRunControls,
35};
36pub use hooks::{
37    AfterLlmEvent, AfterToolCallEvent, BeforeLlmEvent, BeforeLlmPatch, BeforeMemoryCompactEvent,
38    BeforeToolCallEvent, BeforeToolCallPatch, RuntimeHook, RuntimeHookManager,
39};
40pub use processes::{
41    kill_process_tree, read_captured_output, remove_captured_output, start_captured_process,
42    start_captured_process_with_env, wait_for_child, CapturedProcess,
43};
44pub use state::{Checkpoint, InMemoryStateStore, StateStore};
45pub use sub_agent_sessions::{
46    _register_sub_agent_session, _unregister_sub_agent_session, continue_sub_agent_session,
47    get_sub_agent_session, register_sub_agent_session, steer_sub_agent_session,
48    sub_agent_session_registry, subscribe_sub_agent_session, unregister_sub_agent_session,
49    SubAgentSession, SubAgentSessionListener, SubAgentSessionRegistry, SubAgentSessionUnsubscribe,
50};
51pub use sub_task_manager::{
52    ManagedSubTask, ManagedSubTaskSnapshot, SubTaskManager, SubTaskSessionAttachment,
53};
54pub use token_usage::{normalize_token_usage, summarize_task_token_usage};
55pub use tool_call_runner::{ToolCallRunner, ToolRunOutcome, ToolRunRequest};
56pub use tool_planner::{
57    freeze_dynamic_tool_schema_hints, patch_dynamic_tool_schema_hints, plan_tool_names,
58    plan_tool_schemas,
59};