pub struct HostDependencies {
pub event_store: Arc<dyn EventStore>,
pub cancel_token: CancellationToken,
pub subagent_semaphore: Option<Arc<Semaphore>>,
}Expand description
Runtime dependencies created by the host when a worker is started.
These are not durable — they are constructed fresh each time and do not survive worker restarts. The orchestration layer is responsible for providing them.
Note: the event authority is intentionally absent — crate::tools::ToolContext::from_seed
constructs it internally from ToolContextSeed::sequence_offset to
guarantee monotonic sequencing.
Fields§
§event_store: Arc<dyn EventStore>Authoritative event store for persisting tool-originated events.
cancel_token: CancellationTokenToken for cooperative cancellation.
subagent_semaphore: Option<Arc<Semaphore>>Optional concurrency limiter for subagent spawning.
Auto Trait Implementations§
impl !RefUnwindSafe for HostDependencies
impl !UnwindSafe for HostDependencies
impl Freeze for HostDependencies
impl Send for HostDependencies
impl Sync for HostDependencies
impl Unpin for HostDependencies
impl UnsafeUnpin for HostDependencies
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