pub struct SessionOptions {
pub source: SessionSource,
pub session_dir: Option<PathBuf>,
pub name: Option<String>,
pub model: Option<Model>,
pub thinking_level: Option<ThinkingLevel>,
pub scoped_models: Vec<ScopedModel>,
pub tools: ToolSelection,
pub exclude_tools: Vec<String>,
pub builtin_tools: Vec<ToolEntry>,
pub custom_tools: Vec<ToolEntry>,
}Expand description
Inputs of AgentSessionRuntime::create.
Fields§
§source: SessionSourceSession source.
session_dir: Option<PathBuf>--session-dir.
name: Option<String>--name.
model: Option<Model>Explicit model (--model, resolved by the caller).
thinking_level: Option<ThinkingLevel>Explicit thinking level.
scoped_models: Vec<ScopedModel>--models scope.
tools: ToolSelectionTool selection.
exclude_tools: Vec<String>--exclude-tools.
builtin_tools: Vec<ToolEntry>Built-in tools available to the session.
custom_tools: Vec<ToolEntry>SDK custom tools.
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§impl Debug for SessionOptions
impl Debug for SessionOptions
Auto Trait Implementations§
impl !RefUnwindSafe for SessionOptions
impl !UnwindSafe for SessionOptions
impl Freeze for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin 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