pub struct AgentCommandOptions {Show 25 fields
pub tool: String,
pub working_directory: String,
pub prompt: Option<String>,
pub prompt_file: Option<String>,
pub system_prompt: Option<String>,
pub append_system_prompt: Option<String>,
pub model: Option<String>,
pub fallback_model: Option<String>,
pub json: bool,
pub verbose: bool,
pub replay_user_messages: bool,
pub resume: Option<String>,
pub session_id: Option<String>,
pub fork_session: bool,
pub read_only: bool,
pub plan_only: bool,
pub approve_each: bool,
pub executable: Option<String>,
pub extra_args: Vec<String>,
pub extra_env: Vec<(String, String)>,
pub skip_default_safety_flags: bool,
pub isolation: String,
pub screen_name: Option<String>,
pub container_name: Option<String>,
pub detached: bool,
}Expand description
Agent command build options
Fields§
§tool: String§working_directory: String§prompt: Option<String>§prompt_file: Option<String>§system_prompt: Option<String>§append_system_prompt: Option<String>§model: Option<String>§fallback_model: Option<String>§json: bool§verbose: bool§replay_user_messages: bool§resume: Option<String>§session_id: Option<String>§fork_session: bool§read_only: bool§plan_only: bool§approve_each: boolApprove each mutating command (--permission-mode ask / --approve-each)
executable: Option<String>§extra_args: Vec<String>§extra_env: Vec<(String, String)>§skip_default_safety_flags: bool§isolation: String§screen_name: Option<String>§container_name: Option<String>§detached: boolTrait Implementations§
Source§impl Clone for AgentCommandOptions
impl Clone for AgentCommandOptions
Source§fn clone(&self) -> AgentCommandOptions
fn clone(&self) -> AgentCommandOptions
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 moreSource§impl Debug for AgentCommandOptions
impl Debug for AgentCommandOptions
Source§impl Default for AgentCommandOptions
impl Default for AgentCommandOptions
Source§fn default() -> AgentCommandOptions
fn default() -> AgentCommandOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentCommandOptions
impl RefUnwindSafe for AgentCommandOptions
impl Send for AgentCommandOptions
impl Sync for AgentCommandOptions
impl Unpin for AgentCommandOptions
impl UnsafeUnpin for AgentCommandOptions
impl UnwindSafe for AgentCommandOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more