Skip to main content

RuntimeAssemblyDeps

Struct RuntimeAssemblyDeps 

Source
pub struct RuntimeAssemblyDeps {
Show 14 fields pub tools: Arc<ToolRegistry>, pub memory: Option<Arc<LongTermMemory>>, pub peers: Arc<PeerDirectory>, pub redactor: Arc<Redactor>, pub transcripts_index: Option<Arc<TranscriptsIndex>>, pub credentials: Option<Arc<AgentCredentialResolver>>, pub breakers: Option<Arc<BreakerRegistry>>, pub link_extractor: Arc<LinkExtractor>, pub pairing_gate: Arc<PairingGate>, pub pairing_adapters: PairingAdapterRegistry, pub plan_approval_registry: Arc<PlanApprovalRegistry>, pub dispatch_ctx: Option<Arc<DispatchToolContext>>, pub processing_store: Arc<dyn ProcessingControlStore>, pub event_emitter: Option<Arc<dyn AgentEventEmitter>>,
}
Expand description

Phase 81.32 c4 — per-agent runtime deps consumed by assemble_agent_runtime.

Every field maps 1:1 to an AgentRuntime::with_X setter. The struct exists so the boot path’s .with_X(...) chain (15 calls in src/main.rs:6276) and the hot-spawn path call the same helper without duplicating the conditional if Some { ... } boilerplate.

Pre-built deps (vs constructed inside the helper) because:

  • Plugin-side adapter types (WhatsappPairingAdapter, TelegramPairingAdapter) live in crates/plugins/* which depend on nexo-core — building them here would create a circular dep. Caller builds the PairingAdapterRegistry once at boot and clones it per spawn (registry is small; adapters are Arc<dyn ...> internally).
  • event_emitter comes from the admin bootstrap which is wired only when the admin plugin is enabled; Option<> keeps minimal-boot daemons (no admin) working.

Fields§

§tools: Arc<ToolRegistry>

Per-agent base tool registry. Sessions clone per-binding filtered views from this via ToolRegistryCache.

§memory: Option<Arc<LongTermMemory>>

Long-term memory backend, when the daemon was built with --features memory.

§peers: Arc<PeerDirectory>

Peer directory (list_peers tool reads from this).

§redactor: Arc<Redactor>

Transcript redactor. Every AgentContext clones this for log-redaction at write time.

§transcripts_index: Option<Arc<TranscriptsIndex>>

Optional transcripts index (full-text search across past sessions). Built only when the index sidecar is enabled.

§credentials: Option<Arc<AgentCredentialResolver>>

Resolved per-agent credentials (LLM keys, plugin tokens). Empty when secrets/ is not wired.

§breakers: Option<Arc<BreakerRegistry>>

Circuit-breaker registry shared with credentials. Co-arrives with credentials; both None or both Some.

§link_extractor: Arc<LinkExtractor>

Link extractor used by llm_behavior to build the # LINK CONTEXT block from inbound URLs.

§pairing_gate: Arc<PairingGate>

Process-shared pairing gate. Required so unknown senders never reach agent behavior.

§pairing_adapters: PairingAdapterRegistry

Pre-registered pairing adapters keyed by source_plugin. Caller (boot path / coordinator) constructs once via the plugin-side adapter crates (nexo-plugin-whatsapp, nexo-plugin-telegram, …) and passes here.

§plan_approval_registry: Arc<PlanApprovalRegistry>

Plan-mode approval registry shared with the admin RPC dispatcher so /plan-mode chat messages resolve pending approvals.

§dispatch_ctx: Option<Arc<DispatchToolContext>>

Dispatch tool context (dispatch.notify / dispatch catalog). Optional — minimal daemons skip dispatch.

§processing_store: Arc<dyn ProcessingControlStore>

Processing-control store backing processing/pause / processing/resume admin RPCs.

§event_emitter: Option<Arc<dyn AgentEventEmitter>>

Optional event emitter wired by the admin bootstrap so per-scope eviction events reach the firehose.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more