Skip to main content

RuntimeProfileBuilder

Struct RuntimeProfileBuilder 

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

Builder for a complete runtime profile.

Implementations§

Source§

impl RuntimeProfileBuilder

Source

pub fn new() -> Self

Creates an empty runtime profile builder with default-deny capabilities.

Source

pub fn capabilities(self, capabilities: RuntimeCapabilities) -> Self

Sets low-level Merry-managed capabilities.

Source

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

Sets provider-neutral model retry policy for runtimes using this profile.

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 profile asks the model to emit brief tool-progress commentary.

This is prompt guidance only. Runtime state and final output remain separate from commentary, and model-authored commentary is still recorded if a provider emits it while this is disabled.

Source

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

Adds a startup context summary.

Source

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

Registers a runtime-owned tool in this profile.

Source

pub fn allow_bridge_tools(self) -> Self

Allows bridge tools registered through this profile.

Source

pub fn allow_low_risk_apply_patches(self) -> Self

Allows validated low-risk workspace patch proposals.

Source

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

Sets the low-risk process action runner.

Source

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

Sets the read-only shell process runner.

Source

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

Sets the accepted local workspace process runner lane.

Source

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

Sets the profile trust level.

Source

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

Sets the profile permission review mode.

Source

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

Sets the host-owned permission admission source.

Source

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

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

Source

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

Sets the permissioned process runner factory.

Source

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

Sets the profile skill catalog.

Source

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

Sets profile project rules.

Source

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

Sets the profile task anchor.

Source

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

Sets the profile subagent manager.

Source

pub fn build(self) -> Result<RuntimeProfile, RuntimeProfileError>

Builds the runtime profile.

Trait Implementations§

Source§

impl Default for RuntimeProfileBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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