pub struct RunArgs {Show 19 fields
pub positional_prompt: Option<String>,
pub prompt: Option<String>,
pub prompt_file: Option<PathBuf>,
pub agent: Option<AgentId>,
pub preset: Option<String>,
pub model: Option<ModelKey>,
pub variant: Option<String>,
pub permission_mode: PermissionModeArg,
pub allowed_tools: Vec<AllowedTool>,
pub skill: Option<String>,
pub skill_args: Option<String>,
pub max_turns: u32,
pub timeout: u64,
pub resume_session: Option<SessionId>,
pub data_dir: Option<PathBuf>,
pub output: Option<OutputMode>,
pub output_file: Option<PathBuf>,
pub verbose: bool,
pub json: bool,
}Fields§
§positional_prompt: Option<String>Prompt submitted to the selected agent. Use ‘-’ to read standard input.
prompt: Option<String>Prompt submitted to the selected agent. Use ‘-’ to read standard input.
prompt_file: Option<PathBuf>Read the prompt from a file. Use ‘-’ to read standard input.
agent: Option<AgentId>Root-runnable agent ID.
preset: Option<String>Agent preset used for a newly created session.
model: Option<ModelKey>Available provider/model selection.
variant: Option<String>Named model variant, or ‘base’ for no variant.
permission_mode: PermissionModeArgPermission handling mode for this session.
allowed_tools: Vec<AllowedTool>Permission action to allow. May be repeated or comma-delimited.
skill: Option<String>Load a user-invocable skill before running the prompt.
skill_args: Option<String>Arguments supplied to –skill.
max_turns: u32Maximum committed root model turns.
timeout: u64Run timeout in seconds.
resume_session: Option<SessionId>Continue an existing session instead of creating one.
data_dir: Option<PathBuf>Override the user data directory for sessions and artifacts.
output: Option<OutputMode>Standard-output format.
output_file: Option<PathBuf>Write command output to a file instead of standard output.
verbose: boolEmit progress and, in JSON mode, tool-output records.
json: boolAlias for ‘–output json’.
Implementations§
Source§impl RunArgs
impl RunArgs
pub fn output_mode(&self) -> OutputMode
pub fn validate_cli(&self) -> Result<(), &'static str>
Trait Implementations§
Source§impl Args for RunArgs
impl Args for RunArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreimpl Eq for RunArgs
Source§impl FromArgMatches for RunArgs
impl FromArgMatches for RunArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.impl StructuralPartialEq for RunArgs
Auto Trait Implementations§
impl Freeze for RunArgs
impl RefUnwindSafe for RunArgs
impl Send for RunArgs
impl Sync for RunArgs
impl Unpin for RunArgs
impl UnsafeUnpin for RunArgs
impl UnwindSafe for RunArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.