pub struct RuntimeProfileBuilder { /* private fields */ }Expand description
Builder for a complete runtime profile.
Implementations§
Source§impl RuntimeProfileBuilder
impl RuntimeProfileBuilder
Sourcepub fn capabilities(self, capabilities: RuntimeCapabilities) -> Self
pub fn capabilities(self, capabilities: RuntimeCapabilities) -> Self
Sets low-level Merry-managed capabilities.
Sourcepub fn model_retry_policy(self, policy: ModelRetryPolicy) -> Self
pub fn model_retry_policy(self, policy: ModelRetryPolicy) -> Self
Sets provider-neutral model retry policy for runtimes using this profile.
Sourcepub fn prompt_profile(self, profile: PromptProfile) -> Self
pub fn prompt_profile(self, profile: PromptProfile) -> Self
Sets the stable prompt composition used by runtime request compilation.
Sourcepub fn progress_commentary(self, enabled: bool) -> Self
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.
Sourcepub fn initial_context_summary(self, id: &str, text: &str) -> Self
pub fn initial_context_summary(self, id: &str, text: &str) -> Self
Adds a startup context summary.
Sourcepub fn register_tool(self, tool: RegisteredTool) -> Self
pub fn register_tool(self, tool: RegisteredTool) -> Self
Registers a runtime-owned tool in this profile.
Sourcepub fn allow_bridge_tools(self) -> Self
pub fn allow_bridge_tools(self) -> Self
Allows bridge tools registered through this profile.
Sourcepub fn allow_low_risk_apply_patches(self) -> Self
pub fn allow_low_risk_apply_patches(self) -> Self
Allows validated low-risk workspace patch proposals.
Sourcepub fn allow_low_risk_process_actions(
self,
runner: Arc<dyn ProcessRunner>,
) -> Self
pub fn allow_low_risk_process_actions( self, runner: Arc<dyn ProcessRunner>, ) -> Self
Sets the low-risk process action runner.
Sourcepub fn allow_read_only_shell_process_actions(
self,
runner: Arc<dyn ProcessRunner>,
) -> Self
pub fn allow_read_only_shell_process_actions( self, runner: Arc<dyn ProcessRunner>, ) -> Self
Sets the read-only shell process runner.
Sourcepub fn allow_accepted_local_workspace_process_actions(
self,
admission: AcceptedLocalWorkspaceProcessAdmission,
runner: Arc<dyn ProcessRunner>,
) -> Self
pub fn allow_accepted_local_workspace_process_actions( self, admission: AcceptedLocalWorkspaceProcessAdmission, runner: Arc<dyn ProcessRunner>, ) -> Self
Sets the accepted local workspace process runner lane.
Sourcepub fn runtime_trust_level(self, trust_level: RuntimeTrustLevel) -> Self
pub fn runtime_trust_level(self, trust_level: RuntimeTrustLevel) -> Self
Sets the profile trust level.
Sourcepub fn permission_review_mode(self, mode: PermissionReviewMode) -> Self
pub fn permission_review_mode(self, mode: PermissionReviewMode) -> Self
Sets the profile permission review mode.
Sourcepub fn permission_admission_source(
self,
source: Arc<dyn PermissionAdmissionSource>,
) -> Self
pub fn permission_admission_source( self, source: Arc<dyn PermissionAdmissionSource>, ) -> Self
Sets the host-owned permission admission source.
Sourcepub fn background_process_control(
self,
control: Arc<dyn BackgroundProcessControl>,
) -> Self
pub fn background_process_control( self, control: Arc<dyn BackgroundProcessControl>, ) -> Self
Keeps the board that lists, reads, and stops background processes.
Sourcepub fn permissioned_process_runner_factory(
self,
factory: Arc<dyn PermissionedProcessRunnerFactory>,
) -> Self
pub fn permissioned_process_runner_factory( self, factory: Arc<dyn PermissionedProcessRunnerFactory>, ) -> Self
Sets the permissioned process runner factory.
Sourcepub fn skill_catalog(self, catalog: SkillCatalog) -> Self
pub fn skill_catalog(self, catalog: SkillCatalog) -> Self
Sets the profile skill catalog.
Sourcepub fn project_rules(self, project_rules: ProjectRules) -> Self
pub fn project_rules(self, project_rules: ProjectRules) -> Self
Sets profile project rules.
Sourcepub fn task_anchor(self, task_anchor: TaskAnchor) -> Self
pub fn task_anchor(self, task_anchor: TaskAnchor) -> Self
Sets the profile task anchor.
Sourcepub fn subagent_manager(self, manager: SubagentManager) -> Self
pub fn subagent_manager(self, manager: SubagentManager) -> Self
Sets the profile subagent manager.
Sourcepub fn build(self) -> Result<RuntimeProfile, RuntimeProfileError>
pub fn build(self) -> Result<RuntimeProfile, RuntimeProfileError>
Builds the runtime profile.