Skip to main content

RuntimeProfile

Struct RuntimeProfile 

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

Complete runtime shape applied by crate::RuntimeBuilder::with_profile.

Implementations§

Source§

impl RuntimeProfile

Source

pub fn builder() -> RuntimeProfileBuilder

Creates a profile builder.

Source

pub const fn capabilities(&self) -> &RuntimeCapabilities

Returns low-level Merry-managed capabilities.

Source

pub const fn model_retry_policy(&self) -> Option<ModelRetryPolicy>

Returns the profile model retry policy override.

Source

pub const fn prompt_profile(&self) -> &PromptProfile

Returns the stable prompt composition used by runtime request compilation.

Source

pub const fn progress_commentary(&self) -> bool

Returns whether this profile asks the model for tool-progress commentary.

Source

pub fn initial_context_summaries(&self) -> &BTreeMap<String, String>

Returns startup context summaries keyed by stable id.

Source

pub fn registered_tools(&self) -> &[RegisteredTool]

Returns registered tools carried by the profile.

Source

pub fn into_registered_tools(self) -> Vec<RegisteredTool>

Consumes the profile and returns registered tools.

Source

pub const fn allow_bridge_tools(&self) -> bool

Returns whether bridge tools are allowed.

Source

pub const fn allow_low_risk_apply_patches(&self) -> bool

Returns whether low-risk workspace patches are allowed.

Source

pub const fn allow_permissioned_network_tools(&self) -> bool

Returns whether registered permissioned network tools are allowed.

Source

pub fn low_risk_process_runner(&self) -> Option<Arc<dyn ProcessRunner>>

Returns the low-risk process action runner.

Source

pub fn read_only_shell_process_runner(&self) -> Option<Arc<dyn ProcessRunner>>

Returns the read-only shell process runner.

Source

pub fn accepted_local_workspace_process_runner( &self, ) -> Option<&AcceptedLocalWorkspaceProcessRunnerProfile>

Returns the accepted local workspace process runner lane.

Source

pub const fn runtime_trust_level(&self) -> Option<RuntimeTrustLevel>

Returns the profile runtime trust level override.

Source

pub const fn permission_review_mode(&self) -> Option<PermissionReviewMode>

Returns the profile permission review mode override.

Source

pub fn permission_admission_source( &self, ) -> Option<Arc<dyn PermissionAdmissionSource>>

Returns the host-owned permission admission source.

Source

pub fn permissioned_process_runner_factory( &self, ) -> Option<Arc<dyn PermissionedProcessRunnerFactory>>

Returns the permissioned process runner factory.

Source

pub const fn skill_catalog(&self) -> Option<&SkillCatalog>

Returns the profile skill catalog.

Source

pub const fn project_rules(&self) -> Option<&ProjectRules>

Returns the profile project rules.

Source

pub const fn task_anchor(&self) -> Option<&TaskAnchor>

Returns the profile task anchor.

Source

pub const fn subagent_manager(&self) -> Option<&SubagentManager>

Returns the profile subagent manager.

Trait Implementations§

Source§

impl Clone for RuntimeProfile

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for RuntimeProfile

§

impl !UnwindSafe for RuntimeProfile

§

impl Forget for RuntimeProfile

§

impl Freeze for RuntimeProfile
where *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<RwLock<ProcessSessionPermissionState>> is !null: Freeze, PhantomData<ArcInner<RwLock<ProcessSessionPermissionState>>>: 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,

§

impl Move for RuntimeProfile

§

impl Send for RuntimeProfile
where 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<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,

§

impl Sync for RuntimeProfile
where 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<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,

§

impl Unpin for RuntimeProfile

§

impl UnsafeUnpin for RuntimeProfile
where *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<RwLock<ProcessSessionPermissionState>> is !null: UnsafeUnpin, PhantomData<ArcInner<RwLock<ProcessSessionPermissionState>>>: 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,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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