pub struct SubagentPresetConfig {
pub name: String,
pub command: String,
pub cwd: Option<PathBuf>,
pub handshake_timeout_secs: u64,
pub prompt_timeout_secs: u64,
}Expand description
Configuration for a named sub-agent preset in [[acp.subagents.presets]].
Fields§
§name: StringIdentifier used to reference this preset by name.
command: StringShell command string to spawn the sub-agent (e.g. "cargo run -- --acp").
cwd: Option<PathBuf>Optional working directory for the spawned subprocess.
handshake_timeout_secs: u64Timeout in seconds for the initialize + session/new handshake. Default: 30.
prompt_timeout_secs: u64Timeout in seconds for a single prompt round-trip. Default: 600.
Trait Implementations§
Source§impl Clone for SubagentPresetConfig
impl Clone for SubagentPresetConfig
Source§fn clone(&self) -> SubagentPresetConfig
fn clone(&self) -> SubagentPresetConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubagentPresetConfig
impl Debug for SubagentPresetConfig
Source§impl Default for SubagentPresetConfig
impl Default for SubagentPresetConfig
Source§fn default() -> SubagentPresetConfig
fn default() -> SubagentPresetConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubagentPresetConfig
impl<'de> Deserialize<'de> for SubagentPresetConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SubagentPresetConfig
impl RefUnwindSafe for SubagentPresetConfig
impl Send for SubagentPresetConfig
impl Sync for SubagentPresetConfig
impl Unpin for SubagentPresetConfig
impl UnsafeUnpin for SubagentPresetConfig
impl UnwindSafe for SubagentPresetConfig
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