pub struct DefaultResourceLoaderOptions {Show 14 fields
pub cwd: PathBuf,
pub agent_dir: PathBuf,
pub settings_manager: Option<SettingsManager>,
pub additional_extension_paths: Vec<String>,
pub additional_skill_paths: Vec<String>,
pub additional_prompt_template_paths: Vec<String>,
pub additional_theme_paths: Vec<String>,
pub no_extensions: ResourceLoadingDisabled,
pub no_skills: ResourceLoadingDisabled,
pub no_prompt_templates: ResourceLoadingDisabled,
pub no_themes: ResourceLoadingDisabled,
pub no_context_files: ResourceLoadingDisabled,
pub system_prompt: Option<String>,
pub append_system_prompt: Option<Vec<String>>,
}Expand description
Options for DefaultResourceLoader::new.
Fields§
§cwd: PathBufWorking directory.
agent_dir: PathBufAgent config directory.
settings_manager: Option<SettingsManager>Optional settings manager (created when absent).
additional_extension_paths: Vec<String>Additional CLI extension sources.
additional_skill_paths: Vec<String>Additional CLI skill paths.
additional_prompt_template_paths: Vec<String>Additional CLI prompt template paths.
additional_theme_paths: Vec<String>Additional CLI theme paths.
no_extensions: ResourceLoadingDisabledSkip package/settings extensions (CLI still applied).
no_skills: ResourceLoadingDisabledSkip package/settings skills (CLI still applied).
no_prompt_templates: ResourceLoadingDisabledSkip package/settings prompts (CLI still applied).
no_themes: ResourceLoadingDisabledSkip package/settings themes (CLI still applied).
no_context_files: ResourceLoadingDisabledSkip AGENTS/CLAUDE context files.
system_prompt: Option<String>Explicit system prompt (file path or literal).
append_system_prompt: Option<Vec<String>>Explicit append system prompts (file paths or literals).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DefaultResourceLoaderOptions
impl !RefUnwindSafe for DefaultResourceLoaderOptions
impl !UnwindSafe for DefaultResourceLoaderOptions
impl Send for DefaultResourceLoaderOptions
impl Sync for DefaultResourceLoaderOptions
impl Unpin for DefaultResourceLoaderOptions
impl UnsafeUnpin for DefaultResourceLoaderOptions
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.