pub struct PromptConfig {
pub overrides_dir: Option<PathBuf>,
}Expand description
Configuration for prompt management
Controls where prompt overrides are loaded from.
Fields§
§overrides_dir: Option<PathBuf>Optional directory for prompt overrides If not set, uses default location (~/.config/agent/prompts)
Implementations§
Source§impl PromptConfig
impl PromptConfig
Sourcepub fn with_overrides_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn with_overrides_dir(self, dir: impl Into<PathBuf>) -> Self
Set the overrides directory
Sourcepub fn build_store(&self) -> PromptStore
pub fn build_store(&self) -> PromptStore
Build a PromptStore from this config
Trait Implementations§
Source§impl Clone for PromptConfig
impl Clone for PromptConfig
Source§impl Debug for PromptConfig
impl Debug for PromptConfig
Source§impl Default for PromptConfig
impl Default for PromptConfig
Source§impl<'de> Deserialize<'de> for PromptConfig
impl<'de> Deserialize<'de> for PromptConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PromptConfig
impl RefUnwindSafe for PromptConfig
impl Send for PromptConfig
impl Sync for PromptConfig
impl Unpin for PromptConfig
impl UnsafeUnpin for PromptConfig
impl UnwindSafe for PromptConfig
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