pub struct SubprocessAgentConfig {
pub name: String,
pub binary: String,
pub args: Vec<String>,
pub workdir: Option<PathBuf>,
pub capabilities: AgentCapabilities,
pub prompt_via_stdin: bool,
pub version_args: Vec<String>,
}Expand description
Configuration for a subprocess delegate.
Fields§
§name: StringLogical name registered with the registry.
binary: StringBinary to spawn. Resolved via $PATH unless absolute.
args: Vec<String>Arguments passed before the prompt. Use {prompt} or {task_id}
in any element and they’re substituted at spawn time; otherwise
the prompt goes on stdin.
workdir: Option<PathBuf>Optional working directory override. When None, the task’s
workdir is used, falling back to the current process cwd.
capabilities: AgentCapabilitiesDeclared capabilities.
prompt_via_stdin: boolIf true, the rendered prompt is written to the child’s stdin
instead of being templated into args.
version_args: Vec<String>Args used by AgentDelegate::health_check to probe whether the
binary is installed and runnable. Empty disables the probe (the
delegate then optimistically reports healthy).
Implementations§
Source§impl SubprocessAgentConfig
impl SubprocessAgentConfig
pub fn new(name: impl Into<String>, binary: impl Into<String>) -> Self
pub fn with_args<I, S>(self, args: I) -> Self
pub fn with_workdir(self, workdir: impl Into<PathBuf>) -> Self
pub fn with_capabilities(self, caps: AgentCapabilities) -> Self
pub fn with_prompt_via_stdin(self, via_stdin: bool) -> Self
pub fn with_version_args<I, S>(self, args: I) -> Self
Trait Implementations§
Source§impl Clone for SubprocessAgentConfig
impl Clone for SubprocessAgentConfig
Auto Trait Implementations§
impl Freeze for SubprocessAgentConfig
impl RefUnwindSafe for SubprocessAgentConfig
impl Send for SubprocessAgentConfig
impl Sync for SubprocessAgentConfig
impl Unpin for SubprocessAgentConfig
impl UnsafeUnpin for SubprocessAgentConfig
impl UnwindSafe for SubprocessAgentConfig
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