Skip to main content

CodingAgentProfileBuilder

Struct CodingAgentProfileBuilder 

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

Builder for the single shared coding-agent composition profile.

Implementations§

Source§

impl CodingAgentProfileBuilder

Source

pub fn new(root: impl Into<PathBuf>) -> Self

Creates a coding-agent profile builder with one workspace root.

Source

pub fn workspace_root(&self) -> &Path

Returns the configured workspace root path.

Source

pub fn prompt_profile(self, prompt_profile: PromptProfile) -> Self

Replaces the default main-agent prompt profile with a custom profile (used by child runtimes to install dedicated subagent instructions and role blocks without carrying parent-only policy text).

Source

pub fn root(self, root: impl Into<PathBuf>) -> Self

Replaces the workspace root.

Source

pub fn readonly_resource_roots<I, P>(self, roots: I) -> Self
where I: IntoIterator<Item = P>, P: Into<PathBuf>,

Adds read-only resource roots that are not the writable workspace root.

Source

pub fn limits(self, limits: WorkspaceToolLimits) -> Self

Sets workspace tool limits.

Source

pub fn patch_tool(self) -> Self

Enables the constrained workspace patch tool.

Source

pub fn web_tools(self) -> Self

Enables built-in web and browser verification tools (web_fetch, browser_tab, browser_network).

Source

pub fn read_scope<I, P>(self, paths: I) -> Self
where I: IntoIterator<Item = P>, P: Into<PathBuf>,

Sets workspace-relative paths that read_file may read.

Source

pub fn patch_write_scope<I, P>(self, paths: I) -> Self
where I: IntoIterator<Item = P>, P: Into<PathBuf>,

Sets workspace-relative paths that apply_patch may write.

Source

pub fn read_only_patch_scope(self) -> Self

Denies all apply_patch writes.

Source

pub fn forbidden_paths<I, P>(self, paths: I) -> Self
where I: IntoIterator<Item = P>, P: Into<PathBuf>,

Sets workspace-relative paths that apply_patch must never write.

Source

pub fn host_path_policy(self, policy: HostPathPolicy) -> Self

Sets the shared host path policy governing denied private directories and Merry-owned read-only subtrees (such as session journals).

Source

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

Includes read-only process execution lanes.

Source

pub fn accepted_process_session(self, session: ProcessSession) -> Self

Includes one host-process session and its reviewed-action capability.

Source

pub fn browser_process_launcher( self, launcher: Arc<dyn BrowserProcessLauncher>, ) -> Self

Overrides the headless browser process launcher used by browser_tab when web tools are enabled (for custom host runners or disabling local browser launches).

Source

pub fn retry_policy(self, retry_policy: ModelRetryPolicy) -> Self

Sets the provider-neutral retry/recovery policy for model turns.

Source

pub fn run_policy(self, run_policy: CodingAgentRunPolicy) -> Self

Sets coding-loop recovery and final-report policy.

Source

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

Adds the stable project rules projection.

Source

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

Adds stable skill metadata without embedding skill bodies.

Source

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

Adds the dynamic task anchor projection.

Source

pub fn tool(self, tool: Tool) -> Self

Adds a typed application tool after the canonical Merry-managed tools.

Source

pub fn durable_memory(self, memory: Arc<DurableMemory>) -> Self

Attaches the durable memory store shared by parent and child runtimes.

The store supplies the stable memory instructions and the workspace tool policy. The frozen index is attached separately on the runtime.

Source

pub fn durable_memory_handle(&self) -> Option<Arc<DurableMemory>>

Returns the attached memory store, when this profile has one.

Source

pub fn build(self) -> Result<CodingAgentProfile, CodingAgentProfileBuildError>

Builds the shared coding-agent profile.

Trait Implementations§

Source§

impl Clone for CodingAgentProfileBuilder

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 CodingAgentProfileBuilder

§

impl !UnwindSafe for CodingAgentProfileBuilder

§

impl Forget for CodingAgentProfileBuilder

§

impl Freeze for CodingAgentProfileBuilder

§

impl Move for CodingAgentProfileBuilder

§

impl Send for CodingAgentProfileBuilder
where RawVecInner: Send, Arc<dyn ProcessRunner>: Send, &'static str: Send, Arc<dyn PermissionedProcessRunnerFactory>: Send, Arc<RwLock<ProcessSessionPermissionState>>: Send, Arc<RwLock<Arc<LivePolicyBaseline>>>: Send, Arc<ChildWorkspacePolicyOverride>: Send, Arc<RwLock<ProcessEnvIsolation>>: Send, Arc<dyn BrowserProcessLauncher>: Send, Arc<DurableMemory>: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, Arc<dyn ToolExecutor>: Send,

§

impl Sync for CodingAgentProfileBuilder

§

impl Unpin for CodingAgentProfileBuilder

§

impl UnsafeUnpin for CodingAgentProfileBuilder
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<PathBuf>: UnsafeUnpin, *const ArcInner<dyn ProcessRunner> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ProcessRunner>>: UnsafeUnpin, &'static str: 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, PhantomData<PathAccessRule>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, *const ArcInner<RwLock<Arc<LivePolicyBaseline>>> is !null: UnsafeUnpin, PhantomData<ArcInner<RwLock<Arc<LivePolicyBaseline>>>>: UnsafeUnpin, *const ArcInner<ChildWorkspacePolicyOverride> is !null: UnsafeUnpin, PhantomData<ArcInner<ChildWorkspacePolicyOverride>>: UnsafeUnpin, *const ArcInner<RwLock<ProcessEnvIsolation>> is !null: UnsafeUnpin, PhantomData<ArcInner<RwLock<ProcessEnvIsolation>>>: UnsafeUnpin, PhantomData<OsString>: UnsafeUnpin, *const ArcInner<dyn BrowserProcessLauncher> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn BrowserProcessLauncher>>: UnsafeUnpin, *const ArcInner<DurableMemory> is !null: UnsafeUnpin, PhantomData<ArcInner<DurableMemory>>: UnsafeUnpin, PhantomData<SkillMetadata>: UnsafeUnpin, PhantomData<SkillLoadWarning>: UnsafeUnpin, PhantomData<PromptBlock>: UnsafeUnpin, PhantomData<Tool>: UnsafeUnpin, PhantomData<RegisteredTool>: 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> 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> 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