pub struct RunBobOptions {
pub prompt: String,
pub chat_mode: BobChatMode,
pub approval_mode: BobApprovalMode,
pub max_coins: u32,
pub cwd: Option<PathBuf>,
pub bob_executable: Option<PathBuf>,
pub extra_args: Vec<String>,
pub resume: Option<String>,
}Expand description
Options for a single bob run. Built by both the axum endpoint (from JSON body) and the Tauri command (from invoke args).
Fields§
§prompt: String§chat_mode: BobChatMode§approval_mode: BobApprovalMode§max_coins: u32§cwd: Option<PathBuf>Working directory the bob process runs in. Defaults to the caller’s cwd. For workspace-scoped runs, pass the workspace path so bob’s tool calls land inside that workspace.
bob_executable: Option<PathBuf>Override the bob executable path. Mainly for tests + when the
caller has already resolved bob (e.g. Tauri’s locator). Defaults
to bob on PATH.
extra_args: Vec<String>Extra CLI args the caller appends verbatim after bob’s own argv — the same host-controlled passthrough the other adapters expose, so a client can apply a flag uniformly across harnesses. Default empty.
resume: Option<String>Session id to resume (-r <id>) instead of starting fresh — continue
a prior conversation so bob supplies the history rather than the caller
replaying a transcript. None → a new session. Default None.
Trait Implementations§
Source§impl Clone for RunBobOptions
impl Clone for RunBobOptions
Source§fn clone(&self) -> RunBobOptions
fn clone(&self) -> RunBobOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunBobOptions
impl Debug for RunBobOptions
Source§impl<'de> Deserialize<'de> for RunBobOptions
impl<'de> Deserialize<'de> for RunBobOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for RunBobOptions
Source§impl PartialEq for RunBobOptions
impl PartialEq for RunBobOptions
Source§fn eq(&self, other: &RunBobOptions) -> bool
fn eq(&self, other: &RunBobOptions) -> bool
self and other values to be equal, and is used by ==.