Skip to main content

RuntimeBuilder

Struct RuntimeBuilder 

Source
pub struct RuntimeBuilder { /* private fields */ }
Expand description

Builder for a Merry runtime.

The builder wires provider-neutral runtime configuration: event buffering, one optional model provider, and zero or more runtime-owned tool executors. Provider integrations stay outside this crate behind ModelProvider.

Implementations§

Source§

impl RuntimeBuilder

Source

pub fn permission_actor(self, actor: PermissionActor) -> Self

Sets the actor identity attached to outgoing host permission review requests.

Source

pub fn event_buffer_size(self, event_buffer_size: NonZeroUsize) -> Self

Sets the bounded event channel buffer size.

Runtime event production uses a bounded channel. Capacity counts internal emission batches rather than individual public events, so one slot may carry consecutive events whose state must be committed and enqueued together. Backpressure is part of the state-before-event contract: producers reserve a batch slot before mutating durable session state for the corresponding events.

Source

pub fn max_parallel_tool_calls(self, limit: NonZeroUsize) -> Self

Sets the maximum number of adjacent parallel-safe calls executed together.

Source

pub fn prompt_cache_key(self, prompt_cache_key: SessionId) -> Self

Overrides the deterministic provider prompt-cache key used for model requests in this runtime.

When omitted, model requests default to this runtime’s own session_id. Child runtimes use this to share a deterministic cache partition across sibling subagents running the same role under one parent session.

Source

pub fn model_provider( self, provider: Arc<dyn ModelProvider>, model: ModelName, ) -> Self

Sets the provider and model used by runtime steps.

The provider receives normalized model requests and returns normalized model events from merry-llm. Provider response formats are not stored in runtime state.

Source

pub fn model_provider_for_role( self, role: RuntimeModelRole, provider: Arc<dyn ModelProvider>, model: ModelName, ) -> Self

Sets the provider and model for a runtime model role.

Only RuntimeModelRole::Primary is used by normal runtime steps today. Non-primary roles are stored as runtime-owned configuration for future review gates and do not alter provider request compilation.

Source

pub fn model_provider_for_role_with_reasoning( self, role: RuntimeModelRole, provider: Arc<dyn ModelProvider>, model: ModelName, reasoning_effort: Option<ReasoningEffort>, ) -> Self

Sets the provider, model, and optional reasoning-effort override for a runtime model role.

Source

pub fn model_provider_for_role_with_retry( self, role: RuntimeModelRole, provider: Arc<dyn ModelProvider>, model: ModelName, retry_policy: ModelRetryPolicy, ) -> Self

Sets the provider, model, and retry policy for a runtime model role.

This is useful for higher-level construction layers that treat provider config as a component. Unlike RuntimeBuilder::model_retry_policy, this method does not alter already configured providers.

Source

pub fn model_retry_policy(self, policy: ModelRetryPolicy) -> Self

Sets the retry policy applied to configured and subsequently configured model providers.

Source

pub fn automatic_compaction(self, config: CompactionConfig) -> Self

Sets the runtime policy for automatic compaction.

Automatic compaction runs only when a compiled provider request crosses the compaction threshold. The current step input is still outside the compaction input and is projected raw after any installed checkpoint.

Source

pub fn context_window_tokens(self, tokens: NonZeroU64) -> Self

Sets an explicit context-window override in tokens for budget and compaction calculations.

Source

pub fn hooks(self, handler: Arc<dyn RuntimeHookHandler>) -> Self

Installs an in-process Rust lifecycle hook handler.

Source

pub fn bridge_hook_subscriptions(self, subscriptions: HookSubscriptions) -> Self

Declares which lifecycle hook points should be bridged to the embedding host.

Hook points not present in subscriptions are never sent over the stream.

Source

pub fn prompt_profile(self, profile: PromptProfile) -> Self

Sets the stable prompt composition used by runtime request compilation.

Source

pub fn progress_commentary(self, enabled: bool) -> Self

Controls whether the runtime asks the model to emit brief tool-progress commentary.

Source

pub fn register_tool(self, tool: RegisteredTool) -> Self

Registers a runtime-owned tool executor.

Registering a tool makes its spec available to provider requests and lets Runtime::execute_tool_call resolve matching pending calls. It does not start an automatic tool loop.

Source

pub fn tool_admission(self, admission: ToolAdmission) -> Self

Installs runtime admission for tool execution without changing the provider-visible tool catalog.

Source

pub fn coordinator_plan_tools(self) -> Self

Installs the stable coordinator Plan Mode and Todo tool surface.

Source

pub fn with_profile(self, profile: RuntimeProfile) -> Result<Self, RuntimeError>

Applies a complete runtime profile while keeping this builder as the construction owner.

Source

pub fn allow_bridge_tools(self) -> Self

Allows bridge tools to be registered for this runtime.

Bridge handlers run in host code outside Merry-managed sandboxing. This opt-in is separate from RuntimeCapabilities policy.

Source

pub fn initial_context_summary(self, id: &str, text: &str) -> Self

Reconciles deterministic runtime context without emitting observable events.

This is for startup-owned facts such as a compact project capability summary. The supplied id becomes the current construction-owned seed on both new and resumed sessions; construction seeds omitted from this builder are left untouched. It is not a substitute for runtime artifacts produced during a step, and repeated builder ids are replaced before build-time validation.

Source

pub fn project_rules(self, project_rules: ProjectRules) -> Self

Adds explicit project rules to the cacheable stable request prefix.

This is a construction-time projection for durable project instructions such as AGENTS.md. It does not scan the filesystem and is separate from context summaries, ledger facts, and artifact payloads.

Source

pub fn skill_catalog(self, skill_catalog: SkillCatalog) -> Self

Adds available skill metadata to the cacheable stable request prefix.

This projects only SKILL.md frontmatter metadata. Full skill bodies remain on disk and must be read through registered workspace file tools.

Source

pub fn task_anchor(self, task_anchor: TaskAnchor) -> Self

Sets the current task objective control-plane anchor.

This reserves the runtime context slot for future /task commands. It is rendered as dynamic request context, not as project rules, ledger projection, or ordered transcript history.

Source

pub fn compacted_checkpoint(self, checkpoint: CompactedCheckpoint) -> Self

Sets compacted checkpoint context for dynamic provider requests.

This is selected by a checkpoint/compaction boundary. It does not project ordinary ledger facts, artifact payloads, or tool-result observations. The checkpoint is prose. Resume a real runtime checkpoint with RuntimeBuilder::resume_from_store so its transcript and archived tool refs are restored together.

Source

pub fn allow_low_risk_apply_patches(self) -> Self

Opts in to executing validated low-risk workspace patch proposals.

This keeps the default policy conservative: workspace writes remain denied unless the tool provides valid workspace patch proposal evidence and runtime construction explicitly enables this lane.

Source

pub fn allow_permissioned_network_tools(self) -> Self

Source

pub fn allow_low_risk_process_actions( self, runner: Arc<dyn ProcessRunner>, ) -> Self

Opts in to executing validated low-risk process action proposals.

The default policy remains deny. This lane is available only for command execution proposals with provider-neutral process evidence, an injected runtime runner, and the narrow SP2 low-risk predicate.

Source

pub fn allow_read_only_shell_process_actions( self, runner: Arc<dyn ProcessRunner>, ) -> Self

Opts in to executing validated read-only shell wrapper proposals.

This lane is intentionally separate from the structured low-risk argv lane. It accepts only a narrow bash/sh/zsh -c|-lc plain command sequence classifier and requires an injected runner selected for the shell read-only profile. It does not authorize arbitrary shell syntax.

Source

pub fn allow_accepted_local_workspace_process_actions( self, admission: AcceptedLocalWorkspaceProcessAdmission, runner: Arc<dyn ProcessRunner>, ) -> Self

Opts in to executing validated local workspace effect process proposals.

Runner injection alone is not a sandbox or an authorization source. This lane requires explicit runtime construction-time admission that declares the sandbox profile and accepted local workspace process risk for the narrow classified process intent.

Source

pub fn runtime_trust_level(self, trust_level: RuntimeTrustLevel) -> Self

Sets the trust level used by permission request admission defaults.

Agentic/coding-agent runtimes require review by default. Trusted SDK hosts may explicitly choose host-only admission for business workflows where the host already owns the action policy.

Source

pub fn permission_review_mode(self, mode: PermissionReviewMode) -> Self

Sets how permission requests are reviewed before execution.

Source

pub fn permission_review_rules(self, rules: PermissionReviewRules) -> Self

Sets user-trusted custom rules for AI permission review.

Source

pub fn session_review_guidance(self, guidance: SessionReviewGuidance) -> Self

Attaches a shared session-scoped human review guidance store so parent and child subagent runtimes inherit and share interactive review notes.

Source

pub fn workspace_review_notes(self, notes: WorkspaceReviewNotes) -> Self

Attaches a shared live workspace review notes handle so parent and child subagent runtimes observe saved workspace review notes dynamically without mutating the static cacheable system prompt prefix.

Source

pub fn permission_review_workspace_root(self, root: impl Into<PathBuf>) -> Self

Sets the workspace root used for read-only harness environment probes (such as git status cleanliness) during AI permission review.

Source

pub fn fully_trusted_tools(self) -> Self

Explicitly enables fully trusted SDK/host execution for registered tools. Runtime schema validation, tool executor boundaries, sandboxing, and cancellation remain active. Proposal-based commit lifecycle checks are intentionally bypassed at this explicit trust boundary.

Source

pub fn permission_admission_source( self, source: Arc<dyn PermissionAdmissionSource>, ) -> Self

Installs a host-owned permission admission source.

This is used for trusted SDK hosts or tests. Agentic runtimes should normally use the model-backed review selected from RuntimeModelRole::ApprovalReview with primary fallback.

Source

pub fn allow_permissioned_process_actions( self, runner: Arc<dyn ProcessRunner>, ) -> Self

Opts in to executing process actions approved by request_permissions.

The runner should represent the backend/profile used for approved permission requests. Runtime admission approves only the exact planned action, while a concrete backend may retain the approved capabilities for later actions in the same runtime session.

Source

pub fn permissioned_process_runner_factory( self, factory: Arc<dyn PermissionedProcessRunnerFactory>, ) -> Self

Opts in to constructing a process runner per approved permission request.

This is the preferred path when approved capabilities must be materialized into each new action while remaining active for the current runtime session.

Source

pub fn session_permissions(self, permissions: ProcessSessionPermissions) -> Self

Attaches the shared session-scoped capability store used across process runners, in-process workspace tools, and runtime admission.

Source

pub fn background_process_control( self, control: Arc<dyn BackgroundProcessControl>, ) -> Self

Installs the board that lists, reads, and stops background processes.

Source

pub fn subagent_manager(self, manager: SubagentManager) -> Self

Installs a runtime-owned subagent manager for future subagent tools.

Source

pub fn subagent_activity_hub(self, hub: Arc<SubagentActivityHub>) -> Self

Reuses a runtime-owned activity hub for this runtime and its children.

Source

pub fn subagent_parent_scope(self, scope: ChildWorkspaceScope) -> Self

Sets the effective workspace scope inherited by nested subagent tasks.

Source

pub fn session_store(self, store: FileSessionStore) -> Self

Installs the filesystem store used by explicit and automatic session savepoints.

Source

pub fn session_lock(self, enabled: bool) -> Self

Controls whether this runtime acquires and holds an exclusive OS-level crate::SessionReservation lock on its configured FileSessionStore for the lifetime of the session.

Applies to Self::build and Self::resume_from_store (and does not affect read-only loading helpers without automatic savepoints). When enabled, concurrent processes (and duplicate handles in the same process) attempting to open or resume the same session_id fail fast with crate::SessionStoreError::SessionAlreadyReserved. Call Runtime::close to release the lock deterministically and remove an untouched empty session directory.

Source

pub fn history_retention(self, retention: HistoryRetention) -> Self

Configures how compacted session history is retained in memory and on disk.

Source

pub fn with_loaded_session(self, loaded: LoadedSession) -> Self

Installs a session that was already loaded by the runtime boundary.

Source

pub async fn resume_from_store( self, store: FileSessionStore, ) -> Result<Runtime, RuntimeError>

Loads persisted session state from an injected filesystem store, then builds a runtime.

Source

pub async fn resume_from_store_without_automatic_savepoints( self, store: FileSessionStore, ) -> Result<Runtime, RuntimeError>

Loads persisted state without replaying or restarting Plan execution.

Source

pub async fn load_session_from_store( self, store: FileSessionStore, ) -> Result<Self, RuntimeError>

Loads persisted session state without enabling automatic savepoints.

Source

pub fn durable_memory(self, memory: Arc<DurableMemory>, maintain: bool) -> Self

Attaches durable memory and freezes its index for this runtime.

maintain schedules capture and one-shot dream after a completed parent turn. Child runtimes keep the same store with maintenance disabled.

Source

pub fn build(self) -> Result<Runtime, RuntimeError>

Builds the runtime.

Duplicate tool names are rejected before the runtime is constructed.

Source

pub fn build_with_reservation( self, reservation: &mut Option<SessionReservation>, ) -> Result<Runtime, RuntimeError>

Builds the runtime, transferring an already-acquired exclusive crate::SessionReservation into the constructed runtime only after all configuration and session validation succeeds.

Auto Trait Implementations§

§

impl !RefUnwindSafe for RuntimeBuilder

§

impl !UnwindSafe for RuntimeBuilder

§

impl Forget for RuntimeBuilder

§

impl Freeze for RuntimeBuilder
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, NonZero<usize>: Freeze, *const LeafNode<RuntimeModelRole, ModelProviderConfig> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(RuntimeModelRole, ModelProviderConfig)>>: Freeze, NonZero<u64>: Freeze, PhantomData<PathAccessRule>: Freeze, PhantomData<PromptBlock>: Freeze, PhantomData<RegisteredTool>: Freeze, *const LeafNode<ToolName, SetValZST> is !null: Freeze, PhantomData<Box<(ToolName, SetValZST)>>: Freeze, *const LeafNode<String, String> is !null: Freeze, PhantomData<Box<(String, String)>>: Freeze, PhantomData<SkillMetadata>: Freeze, PhantomData<SkillLoadWarning>: Freeze, *const ArcInner<dyn MemoryActivationSource> is !null: Freeze, PhantomData<ArcInner<dyn MemoryActivationSource>>: Freeze, *const ArcInner<dyn ProcessRunner> is !null: Freeze, PhantomData<ArcInner<dyn ProcessRunner>>: Freeze, &'static str: Freeze, PhantomData<String>: Freeze, *const ArcInner<RwLock<SessionReviewGuidanceState>> is !null: Freeze, PhantomData<ArcInner<RwLock<SessionReviewGuidanceState>>>: Freeze, *const ArcInner<RwLock<Vec<String>>> is !null: Freeze, PhantomData<ArcInner<RwLock<Vec<String>>>>: Freeze, *const ArcInner<dyn PermissionAdmissionSource> is !null: Freeze, PhantomData<ArcInner<dyn PermissionAdmissionSource>>: Freeze, *const ArcInner<dyn PermissionedProcessRunnerFactory> is !null: Freeze, PhantomData<ArcInner<dyn PermissionedProcessRunnerFactory>>: Freeze, *const ArcInner<RwLock<ProcessSessionPermissionState>> is !null: Freeze, PhantomData<ArcInner<RwLock<ProcessSessionPermissionState>>>: Freeze, *const ArcInner<dyn BackgroundProcessControl> is !null: Freeze, PhantomData<ArcInner<dyn BackgroundProcessControl>>: Freeze, *const ArcInner<Atomic<bool>> is !null: Freeze, PhantomData<ArcInner<Atomic<bool>>>: Freeze, *const ArcInner<Atomic<usize>> is !null: Freeze, PhantomData<ArcInner<Atomic<usize>>>: Freeze, *const ArcInner<Atomic<u32>> is !null: Freeze, PhantomData<ArcInner<Atomic<u32>>>: Freeze, *const ArcInner<Atomic<u64>> is !null: Freeze, PhantomData<ArcInner<Atomic<u64>>>: Freeze, *const ArcInner<Mutex<SubagentLimitBehavior>> is !null: Freeze, PhantomData<ArcInner<Mutex<SubagentLimitBehavior>>>: Freeze, *const ArcInner<dyn ChildRuntimeFactory> is !null: Freeze, PhantomData<ArcInner<dyn ChildRuntimeFactory>>: Freeze, *const ArcInner<Mutex<SubagentManagerState>> is !null: Freeze, PhantomData<ArcInner<Mutex<SubagentManagerState>>>: Freeze, *const ArcInner<Notify> is !null: Freeze, PhantomData<ArcInner<Notify>>: Freeze, *const ArcInner<Mutex<VecDeque<SubagentStatusView>>> is !null: Freeze, PhantomData<ArcInner<Mutex<VecDeque<SubagentStatusView>>>>: Freeze, *const ArcInner<Mutex<Option<ParentCapabilities>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<ParentCapabilities>>>>: Freeze, *const ArcInner<Mutex<Option<Arc<SubagentActivityHub>>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<Arc<SubagentActivityHub>>>>>: Freeze, *const ArcInner<Mutex<Option<SubagentEventSink>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<SubagentEventSink>>>>: Freeze, *const ArcInner<Mutex<Option<FileSessionStore>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<FileSessionStore>>>>: Freeze, *const ArcInner<Mutex<Option<ParentPrimaryModel>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<ParentPrimaryModel>>>>: Freeze, *const ArcInner<Mutex<GenerationConfig>> is !null: Freeze, PhantomData<ArcInner<Mutex<GenerationConfig>>>: Freeze, *const ArcInner<TreeNode> is !null: Freeze, PhantomData<ArcInner<TreeNode>>: Freeze, PhantomData<PathBuf>: Freeze, *const ArcInner<SubagentActivityHub> is !null: Freeze, PhantomData<ArcInner<SubagentActivityHub>>: Freeze, *const ArcInner<Mutex<()>> is !null: Freeze, PhantomData<ArcInner<Mutex<()>>>: Freeze, *const LeafNode<MemoryId, MemoryItem> is !null: Freeze, PhantomData<Box<(MemoryId, MemoryItem)>>: Freeze, PhantomData<CheckpointRef>: Freeze, PhantomData<ContextEntry>: Freeze, *const LeafNode<String, SetValZST> is !null: Freeze, PhantomData<Box<(String, SetValZST)>>: Freeze, PhantomData<ActivatedMemory>: Freeze, PhantomData<PlanDocumentSummary>: Freeze, *const LeafNode<PlanId, String> is !null: Freeze, PhantomData<Box<(PlanId, String)>>: Freeze, PhantomData<TodoItem>: Freeze, PhantomData<TranscriptItem>: Freeze, *const LeafNode<ToolCallId, usize> is !null: Freeze, PhantomData<Box<(ToolCallId, usize)>>: Freeze, *const LeafNode<ModelTurnId, ModelTurnStatus> is !null: Freeze, PhantomData<Box<(ModelTurnId, ModelTurnStatus)>>: Freeze, *const LeafNode<ModelTurnId, u64> is !null: Freeze, PhantomData<Box<(ModelTurnId, u64)>>: Freeze, PhantomData<PendingToolCall>: Freeze, *const LeafNode<ToolCallId, SetValZST> is !null: Freeze, PhantomData<Box<(ToolCallId, SetValZST)>>: Freeze, PhantomData<SessionToolCatalogEntry>: Freeze, *const Header is !null: Freeze, PhantomData<()>: Freeze, PhantomData<PersistedSubagentRecord>: Freeze, *const LeafNode<u64, SetValZST> is !null: Freeze, PhantomData<Box<(u64, SetValZST)>>: Freeze, PhantomData<JournalContextEntry>: Freeze, *const LeafNode<ModelTurnId, FlushedModelTurn> is !null: Freeze, PhantomData<Box<(ModelTurnId, FlushedModelTurn)>>: Freeze, *const ArcInner<DurableMemory> is !null: Freeze, PhantomData<ArcInner<DurableMemory>>: Freeze, *const ArcInner<dyn RuntimeHookHandler> is !null: Freeze, PhantomData<ArcInner<dyn RuntimeHookHandler>>: Freeze,

§

impl Move for RuntimeBuilder

§

impl Send for RuntimeBuilder
where RawVecInner: Send, NonZero<usize>: Send, NodeRef<Owned, RuntimeModelRole, ModelProviderConfig, LeafOrInternal>: Send, BoxRaw<(RuntimeModelRole, ModelProviderConfig)>: Send, NonZero<u64>: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, Arc<dyn ToolExecutor>: Send, NodeRef<Owned, ToolName, SetValZST, LeafOrInternal>: Send, BoxRaw<(ToolName, SetValZST)>: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send, &'static str: Send, Arc<dyn MemoryActivationSource>: Send, Arc<dyn ProcessRunner>: Send, Arc<RwLock<SessionReviewGuidanceState>>: Send, Arc<RwLock<Vec<String>>>: Send, Arc<dyn PermissionAdmissionSource>: Send, Arc<dyn PermissionedProcessRunnerFactory>: Send, Arc<RwLock<ProcessSessionPermissionState>>: Send, Arc<dyn BackgroundProcessControl>: Send, Arc<Atomic<bool>>: Send, Arc<Atomic<usize>>: Send, Arc<Atomic<u32>>: Send, Arc<Atomic<u64>>: Send, Arc<Mutex<SubagentLimitBehavior>>: Send, Arc<dyn ChildRuntimeFactory>: Send, Arc<Mutex<SubagentManagerState>>: Send, Arc<Notify>: Send, Arc<Mutex<VecDeque<SubagentStatusView>>>: Send, Arc<Mutex<Option<ParentCapabilities>>>: Send, Arc<Mutex<Option<Arc<SubagentActivityHub>>>>: Send, Arc<Mutex<Option<SubagentEventSink>>>: Send, Arc<Mutex<Option<FileSessionStore>>>: Send, Arc<Mutex<Option<ParentPrimaryModel>>>: Send, Arc<Mutex<GenerationConfig>>: Send, Arc<TreeNode>: Send, Arc<SubagentActivityHub>: Send, Arc<Mutex<()>>: Send, NodeRef<Owned, MemoryId, MemoryItem, LeafOrInternal>: Send, BoxRaw<(MemoryId, MemoryItem)>: Send, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send, BoxRaw<(String, SetValZST)>: Send, NodeRef<Owned, PlanId, String, LeafOrInternal>: Send, BoxRaw<(PlanId, String)>: Send, Arc<str>: Send, Arc<[u8]>: Send, Arc<ToolOutput>: Send, NodeRef<Owned, ToolCallId, usize, LeafOrInternal>: Send, BoxRaw<(ToolCallId, usize)>: Send, NodeRef<Owned, ModelTurnId, ModelTurnStatus, LeafOrInternal>: Send, BoxRaw<(ModelTurnId, ModelTurnStatus)>: Send, NodeRef<Owned, ModelTurnId, u64, LeafOrInternal>: Send, BoxRaw<(ModelTurnId, u64)>: Send, NodeRef<Owned, ToolCallId, SetValZST, LeafOrInternal>: Send, BoxRaw<(ToolCallId, SetValZST)>: Send, JoinHandle<()>: Send, NodeRef<Owned, u64, SetValZST, LeafOrInternal>: Send, BoxRaw<(u64, SetValZST)>: Send, NodeRef<Owned, ModelTurnId, FlushedModelTurn, LeafOrInternal>: Send, BoxRaw<(ModelTurnId, FlushedModelTurn)>: Send, Arc<DurableMemory>: Send, Arc<dyn RuntimeHookHandler>: Send,

§

impl Sync for RuntimeBuilder
where RawVecInner: Sync, NonZero<usize>: Sync, NodeRef<Owned, RuntimeModelRole, ModelProviderConfig, LeafOrInternal>: Sync, BoxRaw<(RuntimeModelRole, ModelProviderConfig)>: Sync, NonZero<u64>: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync, Arc<dyn ToolExecutor>: Sync, NodeRef<Owned, ToolName, SetValZST, LeafOrInternal>: Sync, BoxRaw<(ToolName, SetValZST)>: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync, Arc<dyn MemoryActivationSource>: Sync, Arc<dyn ProcessRunner>: Sync, Arc<RwLock<SessionReviewGuidanceState>>: Sync, Arc<RwLock<Vec<String>>>: Sync, Arc<dyn PermissionAdmissionSource>: Sync, Arc<dyn PermissionedProcessRunnerFactory>: Sync, Arc<RwLock<ProcessSessionPermissionState>>: Sync, Arc<dyn BackgroundProcessControl>: Sync, Arc<Atomic<bool>>: Sync, Arc<Atomic<usize>>: Sync, Arc<Atomic<u32>>: Sync, Arc<Atomic<u64>>: Sync, Arc<Mutex<SubagentLimitBehavior>>: Sync, Arc<dyn ChildRuntimeFactory>: Sync, Arc<Mutex<SubagentManagerState>>: Sync, Arc<Notify>: Sync, Arc<Mutex<VecDeque<SubagentStatusView>>>: Sync, Arc<Mutex<Option<ParentCapabilities>>>: Sync, Arc<Mutex<Option<Arc<SubagentActivityHub>>>>: Sync, Arc<Mutex<Option<SubagentEventSink>>>: Sync, Arc<Mutex<Option<FileSessionStore>>>: Sync, Arc<Mutex<Option<ParentPrimaryModel>>>: Sync, Arc<Mutex<GenerationConfig>>: Sync, Arc<TreeNode>: Sync, Arc<SubagentActivityHub>: Sync, Arc<Mutex<()>>: Sync, NodeRef<Owned, MemoryId, MemoryItem, LeafOrInternal>: Sync, BoxRaw<(MemoryId, MemoryItem)>: Sync, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync, BoxRaw<(String, SetValZST)>: Sync, NodeRef<Owned, PlanId, String, LeafOrInternal>: Sync, BoxRaw<(PlanId, String)>: Sync, Arc<str>: Sync, Arc<[u8]>: Sync, Arc<ToolOutput>: Sync, NodeRef<Owned, ToolCallId, usize, LeafOrInternal>: Sync, BoxRaw<(ToolCallId, usize)>: Sync, NodeRef<Owned, ModelTurnId, ModelTurnStatus, LeafOrInternal>: Sync, BoxRaw<(ModelTurnId, ModelTurnStatus)>: Sync, NodeRef<Owned, ModelTurnId, u64, LeafOrInternal>: Sync, BoxRaw<(ModelTurnId, u64)>: Sync, NodeRef<Owned, ToolCallId, SetValZST, LeafOrInternal>: Sync, BoxRaw<(ToolCallId, SetValZST)>: Sync, JoinHandle<()>: Sync, NodeRef<Owned, u64, SetValZST, LeafOrInternal>: Sync, BoxRaw<(u64, SetValZST)>: Sync, NodeRef<Owned, ModelTurnId, FlushedModelTurn, LeafOrInternal>: Sync, BoxRaw<(ModelTurnId, FlushedModelTurn)>: Sync, Arc<DurableMemory>: Sync, Arc<dyn RuntimeHookHandler>: Sync,

§

impl Unpin for RuntimeBuilder
where *const u8 is !null: Unpin, NonZero<usize>: Unpin, *const LeafNode<RuntimeModelRole, ModelProviderConfig> is !null: Unpin, Box<(RuntimeModelRole, ModelProviderConfig)>: Unpin, NonZero<u64>: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin, Arc<dyn ToolExecutor>: Unpin, *const LeafNode<ToolName, SetValZST> is !null: Unpin, Box<(ToolName, SetValZST)>: Unpin, *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin, &'static str: Unpin, Arc<dyn MemoryActivationSource>: Unpin, Arc<dyn ProcessRunner>: Unpin, Arc<RwLock<SessionReviewGuidanceState>>: Unpin, Arc<RwLock<Vec<String>>>: Unpin, Arc<dyn PermissionAdmissionSource>: Unpin, Arc<dyn PermissionedProcessRunnerFactory>: Unpin, Arc<RwLock<ProcessSessionPermissionState>>: Unpin, Arc<dyn BackgroundProcessControl>: Unpin, Arc<Atomic<bool>>: Unpin, Arc<Atomic<usize>>: Unpin, Arc<Atomic<u32>>: Unpin, Arc<Atomic<u64>>: Unpin, Arc<Mutex<SubagentLimitBehavior>>: Unpin, Arc<dyn ChildRuntimeFactory>: Unpin, Arc<Mutex<SubagentManagerState>>: Unpin, Arc<Notify>: Unpin, Arc<Mutex<VecDeque<SubagentStatusView>>>: Unpin, Arc<Mutex<Option<ParentCapabilities>>>: Unpin, Arc<Mutex<Option<Arc<SubagentActivityHub>>>>: Unpin, Arc<Mutex<Option<SubagentEventSink>>>: Unpin, Arc<Mutex<Option<FileSessionStore>>>: Unpin, Arc<Mutex<Option<ParentPrimaryModel>>>: Unpin, Arc<Mutex<GenerationConfig>>: Unpin, Arc<TreeNode>: Unpin, Arc<SubagentActivityHub>: Unpin, Arc<Mutex<()>>: Unpin, *const LeafNode<MemoryId, MemoryItem> is !null: Unpin, Box<(MemoryId, MemoryItem)>: Unpin, *const LeafNode<String, SetValZST> is !null: Unpin, Box<(String, SetValZST)>: Unpin, *const LeafNode<PlanId, String> is !null: Unpin, Box<(PlanId, String)>: Unpin, Arc<str>: Unpin, Arc<[u8]>: Unpin, Arc<ToolOutput>: Unpin, *const LeafNode<ToolCallId, usize> is !null: Unpin, Box<(ToolCallId, usize)>: Unpin, *const LeafNode<ModelTurnId, ModelTurnStatus> is !null: Unpin, Box<(ModelTurnId, ModelTurnStatus)>: Unpin, *const LeafNode<ModelTurnId, u64> is !null: Unpin, Box<(ModelTurnId, u64)>: Unpin, *const LeafNode<ToolCallId, SetValZST> is !null: Unpin, Box<(ToolCallId, SetValZST)>: Unpin, JoinHandle<()>: Unpin, *const LeafNode<u64, SetValZST> is !null: Unpin, Box<(u64, SetValZST)>: Unpin, *const LeafNode<ModelTurnId, FlushedModelTurn> is !null: Unpin, Box<(ModelTurnId, FlushedModelTurn)>: Unpin, Arc<DurableMemory>: Unpin, Arc<dyn RuntimeHookHandler>: Unpin,

§

impl UnsafeUnpin for RuntimeBuilder
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, NonZeroUsizeInner: UnsafeUnpin, *const LeafNode<RuntimeModelRole, ModelProviderConfig> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(RuntimeModelRole, ModelProviderConfig)>>: UnsafeUnpin, NonZeroU64Inner: UnsafeUnpin, PhantomData<PathAccessRule>: UnsafeUnpin, PhantomData<PromptBlock>: UnsafeUnpin, PhantomData<RegisteredTool>: UnsafeUnpin, *const LeafNode<ToolName, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(ToolName, SetValZST)>>: UnsafeUnpin, *const LeafNode<String, String> is !null: UnsafeUnpin, PhantomData<Box<(String, String)>>: UnsafeUnpin, PhantomData<SkillMetadata>: UnsafeUnpin, PhantomData<SkillLoadWarning>: UnsafeUnpin, *const ArcInner<dyn MemoryActivationSource> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn MemoryActivationSource>>: UnsafeUnpin, *const ArcInner<dyn ProcessRunner> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ProcessRunner>>: UnsafeUnpin, &'static str: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, *const ArcInner<RwLock<SessionReviewGuidanceState>> is !null: UnsafeUnpin, PhantomData<ArcInner<RwLock<SessionReviewGuidanceState>>>: UnsafeUnpin, *const ArcInner<RwLock<Vec<String>>> is !null: UnsafeUnpin, PhantomData<ArcInner<RwLock<Vec<String>>>>: UnsafeUnpin, *const ArcInner<dyn PermissionAdmissionSource> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn PermissionAdmissionSource>>: UnsafeUnpin, *const ArcInner<dyn PermissionedProcessRunnerFactory> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn PermissionedProcessRunnerFactory>>: UnsafeUnpin, *const ArcInner<RwLock<ProcessSessionPermissionState>> is !null: UnsafeUnpin, PhantomData<ArcInner<RwLock<ProcessSessionPermissionState>>>: UnsafeUnpin, *const ArcInner<dyn BackgroundProcessControl> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn BackgroundProcessControl>>: UnsafeUnpin, *const ArcInner<Atomic<bool>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin, *const ArcInner<Atomic<usize>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<usize>>>: UnsafeUnpin, *const ArcInner<Atomic<u32>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<u32>>>: UnsafeUnpin, *const ArcInner<Atomic<u64>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<u64>>>: UnsafeUnpin, *const ArcInner<Mutex<SubagentLimitBehavior>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<SubagentLimitBehavior>>>: UnsafeUnpin, *const ArcInner<dyn ChildRuntimeFactory> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ChildRuntimeFactory>>: UnsafeUnpin, *const ArcInner<Mutex<SubagentManagerState>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<SubagentManagerState>>>: UnsafeUnpin, *const ArcInner<Notify> is !null: UnsafeUnpin, PhantomData<ArcInner<Notify>>: UnsafeUnpin, *const ArcInner<Mutex<VecDeque<SubagentStatusView>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<VecDeque<SubagentStatusView>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<ParentCapabilities>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<ParentCapabilities>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<Arc<SubagentActivityHub>>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<Arc<SubagentActivityHub>>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<SubagentEventSink>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<SubagentEventSink>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<FileSessionStore>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<FileSessionStore>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<ParentPrimaryModel>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<ParentPrimaryModel>>>>: UnsafeUnpin, *const ArcInner<Mutex<GenerationConfig>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<GenerationConfig>>>: UnsafeUnpin, *const ArcInner<TreeNode> is !null: UnsafeUnpin, PhantomData<ArcInner<TreeNode>>: UnsafeUnpin, PhantomData<PathBuf>: UnsafeUnpin, *const ArcInner<SubagentActivityHub> is !null: UnsafeUnpin, PhantomData<ArcInner<SubagentActivityHub>>: UnsafeUnpin, *const ArcInner<Mutex<()>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<()>>>: UnsafeUnpin, *const LeafNode<MemoryId, MemoryItem> is !null: UnsafeUnpin, PhantomData<Box<(MemoryId, MemoryItem)>>: UnsafeUnpin, PhantomData<CheckpointRef>: UnsafeUnpin, PhantomData<ContextEntry>: UnsafeUnpin, *const LeafNode<String, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin, PhantomData<ActivatedMemory>: UnsafeUnpin, PhantomData<PlanDocumentSummary>: UnsafeUnpin, *const LeafNode<PlanId, String> is !null: UnsafeUnpin, PhantomData<Box<(PlanId, String)>>: UnsafeUnpin, PhantomData<TodoItem>: UnsafeUnpin, PhantomData<TranscriptItem>: UnsafeUnpin, *const LeafNode<ToolCallId, usize> is !null: UnsafeUnpin, PhantomData<Box<(ToolCallId, usize)>>: UnsafeUnpin, *const LeafNode<ModelTurnId, ModelTurnStatus> is !null: UnsafeUnpin, PhantomData<Box<(ModelTurnId, ModelTurnStatus)>>: UnsafeUnpin, *const LeafNode<ModelTurnId, u64> is !null: UnsafeUnpin, PhantomData<Box<(ModelTurnId, u64)>>: UnsafeUnpin, PhantomData<PendingToolCall>: UnsafeUnpin, *const LeafNode<ToolCallId, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(ToolCallId, SetValZST)>>: UnsafeUnpin, PhantomData<SessionToolCatalogEntry>: UnsafeUnpin, *const Header is !null: UnsafeUnpin, PhantomData<()>: UnsafeUnpin, PhantomData<PersistedSubagentRecord>: UnsafeUnpin, *const LeafNode<u64, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(u64, SetValZST)>>: UnsafeUnpin, PhantomData<JournalContextEntry>: UnsafeUnpin, *const LeafNode<ModelTurnId, FlushedModelTurn> is !null: UnsafeUnpin, PhantomData<Box<(ModelTurnId, FlushedModelTurn)>>: UnsafeUnpin, *const ArcInner<DurableMemory> is !null: UnsafeUnpin, PhantomData<ArcInner<DurableMemory>>: UnsafeUnpin, *const ArcInner<dyn RuntimeHookHandler> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn RuntimeHookHandler>>: UnsafeUnpin,

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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