pub struct SessionConfig {Show 21 fields
pub cwd: PathBuf,
pub agent_dir: PathBuf,
pub docs_root: PathBuf,
pub manager: SessionManager,
pub settings: Arc<Mutex<SettingsManager>>,
pub resources: Arc<RwLock<ResourceLoader>>,
pub models: ModelRegistry,
pub extensions: Arc<ExtensionSet>,
pub stream: Arc<dyn StreamFn>,
pub mode: ExtensionMode,
pub has_ui: bool,
pub builtin_tools: Vec<ToolEntry>,
pub custom_tools: Vec<ToolEntry>,
pub initial_active_tools: Vec<String>,
pub allowed_tools: Option<Vec<String>>,
pub excluded_tools: Vec<String>,
pub model: Option<Model>,
pub thinking_level: ThinkingLevel,
pub scoped_models: Vec<ScopedModel>,
pub flag_values: IndexMap<String, JsonValue>,
pub child: Option<ChildConfig>,
}Expand description
Inputs of AgentSession::new.
Fields§
§cwd: PathBufWorking directory.
agent_dir: PathBufAgent dir (~/.oino).
docs_root: PathBufRoot of the bundled Oino docs (system prompt docs section).
manager: SessionManagerSession tree.
settings: Arc<Mutex<SettingsManager>>Settings (shared per cwd).
resources: Arc<RwLock<ResourceLoader>>Resources (shared per cwd).
models: ModelRegistryModels and auth.
extensions: Arc<ExtensionSet>Loaded extensions.
stream: Arc<dyn StreamFn>Provider dispatch.
mode: ExtensionModeRun mode.
has_ui: boolDialog-capable UI attached.
builtin_tools: Vec<ToolEntry>Built-in tools (with prompt metadata).
custom_tools: Vec<ToolEntry>SDK custom tools.
initial_active_tools: Vec<String>Initially active tool names.
allowed_tools: Option<Vec<String>>--tools allowlist patterns.
excluded_tools: Vec<String>--exclude-tools patterns.
model: Option<Model>Initial model.
thinking_level: ThinkingLevelInitial thinking level.
scoped_models: Vec<ScopedModel>--models scope.
flag_values: IndexMap<String, JsonValue>CLI flag values for extension flags.
child: Option<ChildConfig>Nested-agent inputs of a child session (None for root sessions).
Auto Trait Implementations§
impl !RefUnwindSafe for SessionConfig
impl !UnwindSafe for SessionConfig
impl Freeze for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnsafeUnpin for SessionConfig
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