pub struct CreateAgentSessionServicesOptions {
pub cwd: PathBuf,
pub agent_dir: Option<PathBuf>,
pub settings_manager: Option<SettingsManager>,
pub model_runtime: Option<ModelRuntime>,
pub extension_flag_values: Option<BTreeMap<String, ExtensionFlagValue>>,
pub resource_loader_options: Option<ResourceLoaderServiceOptions>,
pub pending_provider_registrations: Vec<PendingProviderRegistration>,
pub registered_extension_flags: BTreeMap<String, ExtensionFlagType>,
}Expand description
Inputs for creating cwd-bound runtime services.
Fields§
§cwd: PathBufWorking directory for project-local discovery.
agent_dir: Option<PathBuf>Global agent config directory. Defaults to get_agent_dir.
settings_manager: Option<SettingsManager>Optional pre-built settings manager.
model_runtime: Option<ModelRuntime>Optional pre-built model runtime.
extension_flag_values: Option<BTreeMap<String, ExtensionFlagValue>>Extension CLI flag values (--flag / --flag value) awaiting validation.
resource_loader_options: Option<ResourceLoaderServiceOptions>Resource loader options excluding cwd/agent_dir/settings_manager.
pending_provider_registrations: Vec<PendingProviderRegistration>Pending provider registrations discovered by extensions (tests / host).
Each entry is (provider_id, config, extension_path). Production wiring
feeds this from the extension host; Phase 3 resource loader only exposes
paths, so the seam is injectable.
registered_extension_flags: BTreeMap<String, ExtensionFlagType>Registered extension flags for the unknown-flag validation seam.
When empty, every supplied extension flag is treated as unknown.
Trait Implementations§
Source§impl Default for CreateAgentSessionServicesOptions
impl Default for CreateAgentSessionServicesOptions
Source§fn default() -> CreateAgentSessionServicesOptions
fn default() -> CreateAgentSessionServicesOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CreateAgentSessionServicesOptions
impl !RefUnwindSafe for CreateAgentSessionServicesOptions
impl !UnwindSafe for CreateAgentSessionServicesOptions
impl Send for CreateAgentSessionServicesOptions
impl Sync for CreateAgentSessionServicesOptions
impl Unpin for CreateAgentSessionServicesOptions
impl UnsafeUnpin for CreateAgentSessionServicesOptions
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.