pub struct RunArgs {
pub agent: Option<String>,
pub model: Option<String>,
pub image: Option<String>,
pub session_dir: Option<PathBuf>,
pub max_tool_calls: Option<u32>,
pub max_tool_result_bytes: Option<u32>,
pub env: Vec<String>,
pub network: Option<NetworkMode>,
pub device: Option<MistralrsDeviceSpec>,
pub volume: Vec<CliVolume>,
}Fields§
§agent: Option<String>Pick an [agents.<name>] block. Defaults to default-agent from config.
model: Option<String>Pick a [models.<name>] block for this run. Overrides the agent’s
model and the top-level default-model.
image: Option<String>Pick a [images.<name>] block. Overrides the agent’s image and the
top-level default-image. An explicit value that doesn’t match config
is used as a local Podman image ref, run without pulling.
session_dir: Option<PathBuf>Write the session into an explicit, already-existing directory. The
session root gets a symlink at <root>/<sid> pointing at this path.
max_tool_calls: Option<u32>Override the per-turn tool-call max for this run.
max_tool_result_bytes: Option<u32>Override the per-result truncation max for this run.
env: Vec<String>Add or override env vars for MCP servers. Repeatable.
KEY=VALUE applies to every server; SERVER:KEY=VALUE targets one.
network: Option<NetworkMode>Override network monitoring for this session.
device: Option<MistralrsDeviceSpec>Override the mistralrs model device for this run.
volume: Vec<CliVolume>Mount an extra host directory into the container. Repeatable. Format
HOST:CONTAINER[:ro|rw] (default read-only; the host dir must exist).
Trait Implementations§
Source§impl Args for RunArgs
impl Args for RunArgs
Source§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 moreSource§impl CommandFactory for RunArgs
impl CommandFactory 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.