Skip to main content

CodingRuntimeBuilder

Struct CodingRuntimeBuilder 

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

Builder for parent coding runtime composition.

Implementations§

Source§

impl CodingRuntimeBuilder

Source

pub fn new(input: CodingRuntimeInput) -> Self

Creates a full coding-runtime builder.

Source

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.

Source

pub fn permission_policy(self, policy: CodingPermissionPolicy) -> Self

Sets the complete permission policy shared by parent and child runtimes.

Source

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

Installs an already loaded session without performing another store read.

Source

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

Configures automatic incremental session persistence into store.

Source

pub fn build(self) -> Result<CodingRuntime, CodingRuntimeBuildError>

Builds a new parent runtime and its stable coding loop policy.

Source

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 CodingRuntimeBuilder
where *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 CodingRuntimeBuilder
where 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 CodingRuntimeBuilder
where 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 CodingRuntimeBuilder
where *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 CodingRuntimeBuilder
where *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> 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> ErasedDestructor for T
where T: 'static,

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> 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> 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, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

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