pub struct SessionConfig {Show 15 fields
pub cwd: PathBuf,
pub agent_dir: PathBuf,
pub settings: SettingsManager,
pub registry: ModelRegistry,
pub apis: Apis,
pub session: SessionManager,
pub model: Option<Model>,
pub thinking_level: ThinkingLevel,
pub tools: Vec<String>,
pub extensions: Vec<Arc<dyn Extension>>,
pub include_extension_tools: bool,
pub allowed_tools: Option<Vec<String>>,
pub excluded_tools: Vec<String>,
pub resources: Resources,
pub docs: Locations,
}Expand description
What a session starts with.
Fields§
§cwd: PathBufWorking directory.
agent_dir: PathBufAgent directory.
settings: SettingsManagerSettings.
registry: ModelRegistryModels and credentials.
apis: ApisWire APIs.
session: SessionManagerThe session file.
model: Option<Model>The model, if one could be chosen.
thinking_level: ThinkingLevelThe thinking level.
tools: Vec<String>Active tool names.
extensions: Vec<Arc<dyn Extension>>The session’s extensions, which load before the active tools are set.
include_extension_tools: boolActivate the tools extensions register as they load, unless they opt
out. pi does unless --tools names the tools.
allowed_tools: Option<Vec<String>>The only tools that may exist, from --tools (none for --no-tools),
or every tool when None.
excluded_tools: Vec<String>Tools that may never exist, from --exclude-tools.
resources: ResourcesPrompt resources.
docs: LocationsWhere the model and the sign-in help find the docs.
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