pub struct LaunchOptions {
pub reasoning_effort: Option<String>,
pub max_output_tokens: Option<u64>,
pub temperature: Option<f64>,
pub mcp_config: Option<String>,
pub strict_mcp_config: bool,
pub additional_directories: Vec<String>,
pub attachments: Vec<String>,
pub json_schema: Option<String>,
pub json_schema_file: Option<String>,
pub system_prompt_file: Option<String>,
pub append_system_prompt_file: Option<String>,
pub gateway: Option<GatewayOptions>,
}Expand description
Launch options shared by every tool
Fields§
§reasoning_effort: Option<String>Native reasoning effort / variant level (--reasoning-effort)
max_output_tokens: Option<u64>Native output token budget (--max-output-tokens)
temperature: Option<f64>Native sampling temperature (--temperature)
mcp_config: Option<String>MCP servers: config file path or inline {"mcpServers": {...}} JSON
strict_mcp_config: boolUse only the servers from mcp_config
additional_directories: Vec<String>Extra directories the agent may access (--add-dir)
attachments: Vec<String>Files attached to the prompt (--attach): Codex --image, OpenCode
--file. Relative paths resolve against the working directory.
json_schema: Option<String>JSON Schema text the final answer must match (--json-schema):
Claude and Qwen --json-schema, Codex --output-schema. The result
is reported as metadata.structured_output.
json_schema_file: Option<String>File holding json_schema (written by crate::Agent::start so the
schema does not appear on the command line; issue #60). Codex reads it
with --output-schema <file>, Qwen with --json-schema @<file> and
Claude through --json-schema "$(cat <file>)".
system_prompt_file: Option<String>Claude --system-prompt-file (replaces the inline --system-prompt)
append_system_prompt_file: Option<String>Claude --append-system-prompt-file (replaces the inline
--append-system-prompt)
gateway: Option<GatewayOptions>Route the tool through an API gateway (--gateway-base-url /
--gateway-router with --gateway-token-env; claude, codex, agent, opencode)
Trait Implementations§
Source§impl Clone for LaunchOptions
impl Clone for LaunchOptions
Source§impl Debug for LaunchOptions
impl Debug for LaunchOptions
Source§impl Default for LaunchOptions
impl Default for LaunchOptions
impl Eq for LaunchOptions
Auto Trait Implementations§
impl Forget for LaunchOptions
impl Freeze for LaunchOptions
impl Move for LaunchOptions
impl RefUnwindSafe for LaunchOptions
impl Send for LaunchOptionswhere
RawVecInner: Send,
impl Sync for LaunchOptionswhere
RawVecInner: Sync,
impl Unpin for LaunchOptions
impl UnsafeUnpin for LaunchOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for LaunchOptionswhere
RawVecInner: UnwindSafe,
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
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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.