pub struct SystemPromptConfig {
pub system_prompt: Option<String>,
pub load_agents_md: bool,
pub global_agents_md_path: Option<PathBuf>,
pub project_agents_md_path: Option<PathBuf>,
}Expand description
Configuration for system prompt composition
Fields§
§system_prompt: Option<String>Custom system prompt (overrides default if set)
load_agents_md: boolWhether to load AGENTS.md files
global_agents_md_path: Option<PathBuf>Custom path to global AGENTS.md (defaults to ~/.rkat/AGENTS.md)
project_agents_md_path: Option<PathBuf>Custom path to project AGENTS.md (defaults to ./AGENTS.md or ./.rkat/AGENTS.md)
Implementations§
Source§impl SystemPromptConfig
impl SystemPromptConfig
Sourcepub fn with_system_prompt(self, prompt: impl Into<String>) -> Self
pub fn with_system_prompt(self, prompt: impl Into<String>) -> Self
Set a custom system prompt
Sourcepub fn without_agents_md(self) -> Self
pub fn without_agents_md(self) -> Self
Disable AGENTS.md loading
Sourcepub fn with_global_agents_md(self, path: impl Into<PathBuf>) -> Self
pub fn with_global_agents_md(self, path: impl Into<PathBuf>) -> Self
Set custom global AGENTS.md path
Sourcepub fn with_project_agents_md(self, path: impl Into<PathBuf>) -> Self
pub fn with_project_agents_md(self, path: impl Into<PathBuf>) -> Self
Set custom project AGENTS.md path
Trait Implementations§
Source§impl Clone for SystemPromptConfig
impl Clone for SystemPromptConfig
Source§fn clone(&self) -> SystemPromptConfig
fn clone(&self) -> SystemPromptConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemPromptConfig
impl Debug for SystemPromptConfig
Source§impl Default for SystemPromptConfig
impl Default for SystemPromptConfig
Source§fn default() -> SystemPromptConfig
fn default() -> SystemPromptConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemPromptConfig
impl RefUnwindSafe for SystemPromptConfig
impl Send for SystemPromptConfig
impl Sync for SystemPromptConfig
impl Unpin for SystemPromptConfig
impl UnsafeUnpin for SystemPromptConfig
impl UnwindSafe for SystemPromptConfig
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