pub struct DefaultResourceLoader { /* private fields */ }Expand description
Default resource loader with immutable snapshot replaced on reload.
Implementations§
Source§impl DefaultResourceLoader
impl DefaultResourceLoader
Sourcepub fn new(options: DefaultResourceLoaderOptions) -> Self
pub fn new(options: DefaultResourceLoaderOptions) -> Self
Create a loader (does not load until ResourceLoader::reload).
Sourcepub fn settings_manager_mut(&mut self) -> &mut SettingsManager
pub fn settings_manager_mut(&mut self) -> &mut SettingsManager
Mutable access to the settings manager.
Sourcepub fn settings_manager(&self) -> &SettingsManager
pub fn settings_manager(&self) -> &SettingsManager
Shared settings manager reference.
Trait Implementations§
Source§impl ResourceLoader for DefaultResourceLoader
impl ResourceLoader for DefaultResourceLoader
Source§fn get_extensions(&self) -> &LoadExtensionsResult
fn get_extensions(&self) -> &LoadExtensionsResult
Extension paths (Phase 3: no execution).
Source§fn get_skills(&self) -> (&[Skill], &[ResourceDiagnostic])
fn get_skills(&self) -> (&[Skill], &[ResourceDiagnostic])
Skills + diagnostics.
Source§fn get_prompts(&self) -> (&[PromptTemplate], &[ResourceDiagnostic])
fn get_prompts(&self) -> (&[PromptTemplate], &[ResourceDiagnostic])
Prompts + diagnostics.
Source§fn get_themes(&self) -> (&[LoadedTheme], &[ResourceDiagnostic])
fn get_themes(&self) -> (&[LoadedTheme], &[ResourceDiagnostic])
Themes + diagnostics.
Source§fn get_agents_files(&self) -> &[AgentsFile]
fn get_agents_files(&self) -> &[AgentsFile]
Context files.
Source§fn get_system_prompt(&self) -> Option<&str>
fn get_system_prompt(&self) -> Option<&str>
Resolved system prompt text, if any.
Source§fn get_append_system_prompt(&self) -> &[String]
fn get_append_system_prompt(&self) -> &[String]
Resolved append-system-prompt texts.
Source§fn extend_resources(&mut self, paths: ResourceExtensionPaths)
fn extend_resources(&mut self, paths: ResourceExtensionPaths)
Extend skill/prompt/theme paths after load.
Auto Trait Implementations§
impl !Freeze for DefaultResourceLoader
impl !RefUnwindSafe for DefaultResourceLoader
impl !UnwindSafe for DefaultResourceLoader
impl Send for DefaultResourceLoader
impl Sync for DefaultResourceLoader
impl Unpin for DefaultResourceLoader
impl UnsafeUnpin for DefaultResourceLoader
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.