pub struct SpawnConfig {
pub model: Option<String>,
pub max_tokens: Option<u32>,
pub budget_usd: Option<f64>,
pub permission_mode: Option<PermissionMode>,
pub env: Vec<(String, String)>,
pub system_prompt: Option<String>,
pub reasoning: Option<String>,
}Expand description
Configuration for spawning a new session.
Fields§
§model: Option<String>Model to use (e.g. “claude-opus-4-6”, “gpt-5-codex”).
max_tokens: Option<u32>Maximum tokens for responses.
budget_usd: Option<f64>Budget limit in USD for this session.
permission_mode: Option<PermissionMode>Permission mode for file/command operations.
env: Vec<(String, String)>Extra environment variables for the subprocess.
system_prompt: Option<String>System prompt override.
reasoning: Option<String>Reasoning effort level (provider-specific).
Trait Implementations§
Source§impl Clone for SpawnConfig
impl Clone for SpawnConfig
Source§fn clone(&self) -> SpawnConfig
fn clone(&self) -> SpawnConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SpawnConfig
impl Debug for SpawnConfig
Source§impl Default for SpawnConfig
impl Default for SpawnConfig
Source§fn default() -> SpawnConfig
fn default() -> SpawnConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpawnConfig
impl RefUnwindSafe for SpawnConfig
impl Send for SpawnConfig
impl Sync for SpawnConfig
impl Unpin for SpawnConfig
impl UnsafeUnpin for SpawnConfig
impl UnwindSafe for SpawnConfig
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