pub struct ResourceLoaderOptions {
pub cwd: PathBuf,
pub agent_dir: PathBuf,
pub home_dir: Option<PathBuf>,
pub no_skills: bool,
pub no_prompt_templates: bool,
pub no_themes: bool,
pub no_context_files: bool,
pub skill_paths: Vec<String>,
pub prompt_template_paths: Vec<String>,
pub theme_paths: Vec<String>,
pub system_prompt: Option<String>,
pub append_system_prompt: Option<Vec<String>>,
}Expand description
Construction inputs (runtime subset).
Fields§
§cwd: PathBufWorking directory (made absolute).
agent_dir: PathBufAgent dir (made absolute).
home_dir: Option<PathBuf>Home dir for ~ and ~/.agents/skills (None: neither is used).
no_skills: bool-ns: skip discovered and configured skills (CLI --skill paths still load).
no_prompt_templates: bool-np: skip discovered and configured prompt templates.
no_themes: boolSkip discovered and configured themes.
no_context_files: bool-nc: skip context files.
skill_paths: Vec<String>--skill paths (relative to cwd).
prompt_template_paths: Vec<String>--prompt-template paths.
theme_paths: Vec<String>--theme paths.
system_prompt: Option<String>--system-prompt text or file path.
append_system_prompt: Option<Vec<String>>--append-system-prompt values (text or file paths, in order). Some replaces the
discovered APPEND_SYSTEM.md; None discovers it.
Trait Implementations§
Source§impl Clone for ResourceLoaderOptions
impl Clone for ResourceLoaderOptions
Source§impl Debug for ResourceLoaderOptions
impl Debug for ResourceLoaderOptions
Source§impl Default for ResourceLoaderOptions
impl Default for ResourceLoaderOptions
impl Eq for ResourceLoaderOptions
Source§impl PartialEq for ResourceLoaderOptions
impl PartialEq for ResourceLoaderOptions
impl StructuralPartialEq for ResourceLoaderOptions
Auto Trait Implementations§
impl Freeze for ResourceLoaderOptions
impl RefUnwindSafe for ResourceLoaderOptions
impl Send for ResourceLoaderOptions
impl Sync for ResourceLoaderOptions
impl Unpin for ResourceLoaderOptions
impl UnsafeUnpin for ResourceLoaderOptions
impl UnwindSafe for ResourceLoaderOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.