MCPcopy Create free account
hub / github.com/AI45Lab/Code / build_session_runtime

Function build_session_runtime

core/src/agent_api/session_runtime.rs:30–48  ·  view source on GitHub ↗
(input: SessionRuntimeInput<'_>)

Source from the content-addressed store, hash-verified

28}
29
30pub(super) fn build_session_runtime(input: SessionRuntimeInput<'_>) -> SessionRuntime {
31 let (agent_event_tx, _) = broadcast::channel::<AgentEvent>(2048);
32
33 let confirmation_manager = build_confirmation_manager(input.opts, agent_event_tx.clone());
34 let command_queue = build_command_queue(input.opts, input.session_id, agent_event_tx.clone());
35 let tool_context = build_tool_context(
36 input.code_config,
37 input.workspace,
38 input.opts,
39 Arc::clone(&input.tool_executor),
40 agent_event_tx,
41 );
42
43 SessionRuntime {
44 confirmation_manager,
45 command_queue,
46 tool_context,
47 }
48}
49
50fn build_confirmation_manager(
51 opts: &SessionOptions,

Callers 1

build_agent_sessionFunction · 0.85

Calls 4

build_command_queueFunction · 0.85
build_tool_contextFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected