pub struct SessionOptions {
pub model: Option<String>,
pub skill_dirs: Vec<PathBuf>,
pub agent_dirs: Vec<PathBuf>,
pub queue_config: Option<SessionQueueConfig>,
}Expand description
Optional per-session overrides.
Fields§
§model: Option<String>Override the default model. Format: "provider/model" (e.g., "openai/gpt-4o").
skill_dirs: Vec<PathBuf>Extra directories to scan for skill files (.md with YAML frontmatter).
Merged with any global skill_dirs from CodeConfig.
agent_dirs: Vec<PathBuf>Extra directories to scan for agent files.
Merged with any global agent_dirs from CodeConfig.
queue_config: Option<SessionQueueConfig>Optional queue configuration for lane-based tool execution.
When set, enables priority-based tool scheduling with parallel execution of read-only (Query-lane) tools, DLQ, metrics, and external task handling.
Implementations§
Source§impl SessionOptions
impl SessionOptions
pub fn new() -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_skill_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn with_agent_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn with_queue_config(self, config: SessionQueueConfig) -> Self
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§fn clone(&self) -> SessionOptions
fn clone(&self) -> SessionOptions
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 SessionOptions
impl Debug for SessionOptions
Source§impl Default for SessionOptions
impl Default for SessionOptions
Source§fn default() -> SessionOptions
fn default() -> SessionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionOptions
impl RefUnwindSafe for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin for SessionOptions
impl UnwindSafe for SessionOptions
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