pub struct AgentSessionServices {
pub cwd: PathBuf,
pub agent_dir: PathBuf,
pub model_runtime: ModelRuntime,
pub resource_loader: DefaultResourceLoader,
pub diagnostics: Vec<AgentSessionRuntimeDiagnostic>,
pub extension_flag_values: BTreeMap<String, ExtensionFlagValue>,
pub extension_runner: Option<Arc<HostExtensionRunner>>,
}Expand description
Coherent cwd-bound runtime services for one effective session cwd.
This is infrastructure only. The AgentSession
itself is created separately so session options can be resolved against these services first.
Fields§
§cwd: PathBufResolved working directory.
agent_dir: PathBufResolved agent directory.
model_runtime: ModelRuntimeShared model/auth runtime.
resource_loader: DefaultResourceLoaderResource loader (paths + snapshots; owns the cwd-bound settings manager).
diagnostics: Vec<AgentSessionRuntimeDiagnostic>Diagnostics collected during creation.
extension_flag_values: BTreeMap<String, ExtensionFlagValue>Validated extension flag values applied during creation.
extension_runner: Option<Arc<HostExtensionRunner>>Concrete host runner when extensions were discovered and loaded.
None when no extension paths were discovered, discovery was disabled,
or host start failed (degraded to diagnostics only).
Implementations§
Source§impl AgentSessionServices
impl AgentSessionServices
Sourcepub fn settings_manager(&self) -> &SettingsManager
pub fn settings_manager(&self) -> &SettingsManager
Settings manager bound to this services cwd/agent_dir.
Sourcepub fn settings_manager_mut(&mut self) -> &mut SettingsManager
pub fn settings_manager_mut(&mut self) -> &mut SettingsManager
Mutable settings manager.
Auto Trait Implementations§
impl !Freeze for AgentSessionServices
impl !RefUnwindSafe for AgentSessionServices
impl !UnwindSafe for AgentSessionServices
impl Send for AgentSessionServices
impl Sync for AgentSessionServices
impl Unpin for AgentSessionServices
impl UnsafeUnpin for AgentSessionServices
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.