pub struct PromptStore { /* private fields */ }Expand description
Stores prompts with support for file-based overrides
Implementations§
Source§impl PromptStore
impl PromptStore
Sourcepub fn with_overrides_dir(self, dir: &Path) -> Result<Self, LoaderError>
pub fn with_overrides_dir(self, dir: &Path) -> Result<Self, LoaderError>
Load overrides from a directory
Directory structure:
prompts/
├── base.txt
├── verification.txt
├── providers/
│ ├── anthropic.txt
│ ├── openai.txt
│ └── gemini.txt
└── tools/
├── bash.txt
├── read_file.txt
└── ...Sourcepub fn verification(&self) -> &str
pub fn verification(&self) -> &str
Get the verification instructions
Sourcepub fn provider(&self, family: ProviderFamily) -> &str
pub fn provider(&self, family: ProviderFamily) -> &str
Get provider-specific prompt
Sourcepub fn tool_names(&self) -> Vec<&str>
pub fn tool_names(&self) -> Vec<&str>
Get all available tool names
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Check if using embedded defaults only (no overrides)
Trait Implementations§
Source§impl Clone for PromptStore
impl Clone for PromptStore
Source§impl Debug for PromptStore
impl Debug for PromptStore
Auto Trait Implementations§
impl Freeze for PromptStore
impl RefUnwindSafe for PromptStore
impl Send for PromptStore
impl Sync for PromptStore
impl Unpin for PromptStore
impl UnsafeUnpin for PromptStore
impl UnwindSafe for PromptStore
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