pub struct CodingRuntime { /* private fields */ }Expand description
A built parent coding runtime and the policy that governs its loop.
Implementations§
Source§impl CodingRuntime
impl CodingRuntime
Sourcepub fn runtime(&self) -> &Runtime
pub fn runtime(&self) -> &Runtime
Borrows the runtime state handle owned by this composition result.
Sourcepub fn into_runtime(self) -> Runtime
pub fn into_runtime(self) -> Runtime
Consumes the composition result and returns its runtime handle.
Sourcepub fn profile(&self) -> &CodingAgentProfile
pub fn profile(&self) -> &CodingAgentProfile
Borrows the shared coding profile used by this runtime.
Sourcepub fn loop_config(&self) -> AgentLoopConfig
pub fn loop_config(&self) -> AgentLoopConfig
Clones the loop configuration derived from the shared coding profile.
Auto Trait Implementations§
impl !RefUnwindSafe for CodingRuntime
impl !UnwindSafe for CodingRuntime
impl Forget for CodingRuntime
impl Freeze for CodingRuntimewhere
*const ArcInner<RuntimeInner> is !null: Freeze,
PhantomData<ArcInner<RuntimeInner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<PathAccessRule>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PromptBlock>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<RegisteredTool>: Freeze,
*const ArcInner<dyn ProcessRunner> is !null: Freeze,
PhantomData<ArcInner<dyn ProcessRunner>>: Freeze,
&'static str: 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<dyn BackgroundProcessControl> is !null: Freeze,
PhantomData<ArcInner<dyn BackgroundProcessControl>>: Freeze,
PhantomData<SkillMetadata>: Freeze,
PhantomData<SkillLoadWarning>: 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,
NonZero<usize>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const ArcInner<Validator> is !null: Freeze,
PhantomData<ArcInner<Validator>>: Freeze,
*const ArcInner<dyn Fn(&str) -> Result<(), String> + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(&str) -> Result<(), String> + Sync + Send>>: Freeze,
impl Move for CodingRuntime
impl Send for CodingRuntimewhere
Arc<RuntimeInner>: Send,
RawVecInner: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
Arc<dyn ToolExecutor>: Send,
Arc<dyn ProcessRunner>: Send,
&'static str: Send,
Arc<dyn PermissionAdmissionSource>: Send,
Arc<dyn PermissionedProcessRunnerFactory>: 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,
NonZero<usize>: Send,
Arc<Validator>: Send,
Arc<dyn Fn(&str) -> Result<(), String> + Sync + Send>: Send,
impl Sync for CodingRuntimewhere
Arc<RuntimeInner>: Sync,
RawVecInner: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
Arc<dyn ToolExecutor>: Sync,
Arc<dyn ProcessRunner>: Sync,
Arc<dyn PermissionAdmissionSource>: Sync,
Arc<dyn PermissionedProcessRunnerFactory>: 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,
NonZero<usize>: Sync,
Arc<Validator>: Sync,
Arc<dyn Fn(&str) -> Result<(), String> + Sync + Send>: Sync,
impl Unpin for CodingRuntimewhere
Arc<RuntimeInner>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
Arc<dyn ToolExecutor>: Unpin,
Arc<dyn ProcessRunner>: Unpin,
&'static str: Unpin,
Arc<dyn PermissionAdmissionSource>: Unpin,
Arc<dyn PermissionedProcessRunnerFactory>: 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,
NonZero<usize>: Unpin,
Arc<Validator>: Unpin,
Arc<dyn Fn(&str) -> Result<(), String> + Sync + Send>: Unpin,
impl UnsafeUnpin for CodingRuntimewhere
*const ArcInner<RuntimeInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<RuntimeInner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<PathAccessRule>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PromptBlock>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<RegisteredTool>: UnsafeUnpin,
*const ArcInner<dyn ProcessRunner> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ProcessRunner>>: UnsafeUnpin,
&'static str: 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<dyn BackgroundProcessControl> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn BackgroundProcessControl>>: UnsafeUnpin,
PhantomData<SkillMetadata>: UnsafeUnpin,
PhantomData<SkillLoadWarning>: 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,
NonZeroUsizeInner: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const ArcInner<Validator> is !null: UnsafeUnpin,
PhantomData<ArcInner<Validator>>: UnsafeUnpin,
*const ArcInner<dyn Fn(&str) -> Result<(), String> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(&str) -> Result<(), String> + Sync + Send>>: 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