pub struct RuntimeServices {Show 18 fields
pub resources: Arc<ResourceHandle>,
pub registered_hooks: Arc<RegisteredHooks>,
pub session_hook_store: Arc<Mutex<HashMap<SessionId, Arc<Hooks>>>>,
pub models: Arc<ModelRegistry>,
pub tools: Arc<ToolRuntime>,
pub path_locks: Arc<PathLockMap>,
pub tool_sessions: Arc<ToolSessionStore>,
pub sessions: Arc<dyn SessionStore>,
pub policy: Arc<dyn ToolPolicy>,
pub prompt_assembler: Arc<dyn PromptAssembler>,
pub context_manager: Arc<dyn ContextManager>,
pub event_bus: Arc<EventBus>,
pub parent_streams: Arc<ParentStreamRegistry>,
pub turn_registry: Arc<TurnRegistry>,
pub subagent_event_forwarding: SubagentEventForwarding,
pub subagent_event_forwarding_cap: u64,
pub shell_timeout_secs: u64,
pub trace_recorder: Option<Arc<TraceRecorder>>,
}Expand description
Shared dependencies used by session handles and spawned turn tasks.
Fields§
§resources: Arc<ResourceHandle>§registered_hooks: Arc<RegisteredHooks>§session_hook_store: Arc<Mutex<HashMap<SessionId, Arc<Hooks>>>>§models: Arc<ModelRegistry>§tools: Arc<ToolRuntime>§path_locks: Arc<PathLockMap>§tool_sessions: Arc<ToolSessionStore>§sessions: Arc<dyn SessionStore>§policy: Arc<dyn ToolPolicy>§prompt_assembler: Arc<dyn PromptAssembler>§context_manager: Arc<dyn ContextManager>§event_bus: Arc<EventBus>§parent_streams: Arc<ParentStreamRegistry>§turn_registry: Arc<TurnRegistry>§subagent_event_forwarding: SubagentEventForwarding§subagent_event_forwarding_cap: u64§shell_timeout_secs: u64§trace_recorder: Option<Arc<TraceRecorder>>Optional sink that mirrors every committed SessionEvent into a
per-session JSONL trace file. Disabled (None) when
runtime.traces_dir is not configured.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeServices
impl !UnwindSafe for RuntimeServices
impl Freeze for RuntimeServices
impl Send for RuntimeServices
impl Sync for RuntimeServices
impl Unpin for RuntimeServices
impl UnsafeUnpin for RuntimeServices
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more