pub struct CodingRuntimeBuilder { /* private fields */ }Expand description
Builder for parent coding runtime composition.
Implementations§
Source§impl CodingRuntimeBuilder
impl CodingRuntimeBuilder
Sourcepub fn new(input: CodingRuntimeInput) -> Self
pub fn new(input: CodingRuntimeInput) -> Self
Creates a full coding-runtime builder.
Sourcepub fn for_command_generation(input: CodingRuntimeInput) -> Self
pub fn for_command_generation(input: CodingRuntimeInput) -> Self
Creates the explicit read-only command-generation variant.
Full-only inputs such as a process backend and subagent configuration are intentionally ignored by this variant. The read-only profile is selected by construction so those capabilities cannot be advertised or admitted accidentally.
Sourcepub fn permission_policy(self, policy: CodingPermissionPolicy) -> Self
pub fn permission_policy(self, policy: CodingPermissionPolicy) -> Self
Sets the complete permission policy shared by parent and child runtimes.
Sourcepub fn with_loaded_session(self, loaded: LoadedSession) -> Self
pub fn with_loaded_session(self, loaded: LoadedSession) -> Self
Installs an already loaded session without performing another store read.
Sourcepub fn session_store(self, store: FileSessionStore) -> Self
pub fn session_store(self, store: FileSessionStore) -> Self
Configures automatic incremental session persistence into store.
Sourcepub fn build(self) -> Result<CodingRuntime, CodingRuntimeBuildError>
pub fn build(self) -> Result<CodingRuntime, CodingRuntimeBuildError>
Builds a new parent runtime and its stable coding loop policy.
Sourcepub async fn resume_from_store_without_automatic_savepoints(
self,
store: FileSessionStore,
) -> Result<CodingRuntime, CodingRuntimeBuildError>
pub async fn resume_from_store_without_automatic_savepoints( self, store: FileSessionStore, ) -> Result<CodingRuntime, CodingRuntimeBuildError>
Resumes a parent runtime without automatic savepoints.
Auto Trait Implementations§
impl !RefUnwindSafe for CodingRuntimeBuilder
impl !UnwindSafe for CodingRuntimeBuilder
impl Forget for CodingRuntimeBuilder
impl Freeze for CodingRuntimeBuilderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn ModelProvider> is !null: Freeze,
PhantomData<ArcInner<dyn ModelProvider>>: Freeze,
*const ArcInner<dyn ProcessBackend> is !null: Freeze,
PhantomData<ArcInner<dyn ProcessBackend>>: Freeze,
PhantomData<RegisteredTool>: Freeze,
NonZero<usize>: Freeze,
NonZero<u64>: Freeze,
PhantomData<CodingModelRoleConfig>: Freeze,
PhantomData<PathBuf>: Freeze,
*const LeafNode<String, SubagentRoleSpec> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SubagentRoleSpec)>>: Freeze,
*const ArcInner<DurableMemory> is !null: Freeze,
PhantomData<ArcInner<DurableMemory>>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<dyn PermissionAdmissionSource> is !null: Freeze,
PhantomData<ArcInner<dyn PermissionAdmissionSource>>: Freeze,
*const LeafNode<MemoryId, MemoryItem> is !null: Freeze,
PhantomData<Box<(MemoryId, MemoryItem)>>: Freeze,
PhantomData<SkillMetadata>: Freeze,
PhantomData<SkillLoadWarning>: 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 ArcInner<TreeNode> is !null: Freeze,
PhantomData<ArcInner<TreeNode>>: 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<Mutex<()>> is !null: Freeze,
PhantomData<ArcInner<Mutex<()>>>: Freeze,
impl Move for CodingRuntimeBuilder
impl Send for CodingRuntimeBuilderwhere
RawVecInner: Send,
Arc<dyn ModelProvider>: Send,
Arc<dyn ProcessBackend>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
Arc<dyn ToolExecutor>: Send,
NonZero<usize>: Send,
NonZero<u64>: Send,
NodeRef<Owned, String, SubagentRoleSpec, LeafOrInternal>: Send,
BoxRaw<(String, SubagentRoleSpec)>: Send,
Arc<DurableMemory>: Send,
Arc<dyn PermissionAdmissionSource>: Send,
NodeRef<Owned, MemoryId, MemoryItem, LeafOrInternal>: Send,
BoxRaw<(MemoryId, MemoryItem)>: Send,
&'static str: 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,
Arc<TreeNode>: Send,
JoinHandle<()>: Send,
NodeRef<Owned, u64, SetValZST, LeafOrInternal>: Send,
BoxRaw<(u64, SetValZST)>: Send,
NodeRef<Owned, ModelTurnId, FlushedModelTurn, LeafOrInternal>: Send,
BoxRaw<(ModelTurnId, FlushedModelTurn)>: Send,
Arc<Mutex<()>>: Send,
impl Sync for CodingRuntimeBuilderwhere
RawVecInner: Sync,
Arc<dyn ModelProvider>: Sync,
Arc<dyn ProcessBackend>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
Arc<dyn ToolExecutor>: Sync,
NonZero<usize>: Sync,
NonZero<u64>: Sync,
NodeRef<Owned, String, SubagentRoleSpec, LeafOrInternal>: Sync,
BoxRaw<(String, SubagentRoleSpec)>: Sync,
Arc<DurableMemory>: Sync,
Arc<dyn PermissionAdmissionSource>: 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,
Arc<TreeNode>: Sync,
JoinHandle<()>: Sync,
NodeRef<Owned, u64, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(u64, SetValZST)>: Sync,
NodeRef<Owned, ModelTurnId, FlushedModelTurn, LeafOrInternal>: Sync,
BoxRaw<(ModelTurnId, FlushedModelTurn)>: Sync,
Arc<Mutex<()>>: Sync,
impl Unpin for CodingRuntimeBuilderwhere
*const u8 is !null: Unpin,
Arc<dyn ModelProvider>: Unpin,
Arc<dyn ProcessBackend>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
Arc<dyn ToolExecutor>: Unpin,
NonZero<usize>: Unpin,
NonZero<u64>: Unpin,
*const LeafNode<String, SubagentRoleSpec> is !null: Unpin,
Box<(String, SubagentRoleSpec)>: Unpin,
Arc<DurableMemory>: Unpin,
Arc<dyn PermissionAdmissionSource>: Unpin,
*const LeafNode<MemoryId, MemoryItem> is !null: Unpin,
Box<(MemoryId, MemoryItem)>: Unpin,
&'static str: 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,
Arc<TreeNode>: 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<Mutex<()>>: Unpin,
impl UnsafeUnpin for CodingRuntimeBuilderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn ModelProvider> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ModelProvider>>: UnsafeUnpin,
*const ArcInner<dyn ProcessBackend> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ProcessBackend>>: UnsafeUnpin,
PhantomData<RegisteredTool>: UnsafeUnpin,
NonZeroUsizeInner: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<CodingModelRoleConfig>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
*const LeafNode<String, SubagentRoleSpec> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SubagentRoleSpec)>>: UnsafeUnpin,
*const ArcInner<DurableMemory> is !null: UnsafeUnpin,
PhantomData<ArcInner<DurableMemory>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<dyn PermissionAdmissionSource> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn PermissionAdmissionSource>>: UnsafeUnpin,
*const LeafNode<MemoryId, MemoryItem> is !null: UnsafeUnpin,
PhantomData<Box<(MemoryId, MemoryItem)>>: UnsafeUnpin,
PhantomData<SkillMetadata>: UnsafeUnpin,
PhantomData<SkillLoadWarning>: 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 ArcInner<TreeNode> is !null: UnsafeUnpin,
PhantomData<ArcInner<TreeNode>>: 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<Mutex<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<()>>>: UnsafeUnpin,
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