pub struct AcpAgentConfig {
pub command: String,
pub working_dir: PathBuf,
pub auto_approve: bool,
}Expand description
Configuration for connecting to an ACP agent.
Fields§
§command: StringCommand to spawn the agent (e.g., “claude-code” or “codex –model o3”).
working_dir: PathBufWorking directory for the agent session.
auto_approve: boolWhether to auto-approve permission requests (YOLO mode).
Used by prompt_agent(). For fine-grained control, use prompt_agent_with_policy().
Implementations§
Trait Implementations§
Source§impl Clone for AcpAgentConfig
impl Clone for AcpAgentConfig
Source§fn clone(&self) -> AcpAgentConfig
fn clone(&self) -> AcpAgentConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AcpAgentConfig
impl RefUnwindSafe for AcpAgentConfig
impl Send for AcpAgentConfig
impl Sync for AcpAgentConfig
impl Unpin for AcpAgentConfig
impl UnsafeUnpin for AcpAgentConfig
impl UnwindSafe for AcpAgentConfig
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