pub struct SystemPromptConfig {
pub system_prompt_files: Vec<String>,
pub append_prompt_file: Option<String>,
}Expand description
Configuration for system prompt loading
This structure determines how system prompts are loaded and combined. It supports two modes:
- Complete replacement with one or more prompt files
- Appending additional content to the default prompt
§Examples
use claude_dialog::prompt::SystemPromptConfig;
// Configuration for multiple system prompts
let config = SystemPromptConfig {
system_prompt_files: vec!["base.md".to_string(), "custom.md".to_string()],
append_prompt_file: None,
};
// Configuration for appending to default prompt
let config = SystemPromptConfig {
system_prompt_files: vec![],
append_prompt_file: Some("additions.md".to_string()),
};Fields§
§system_prompt_files: Vec<String>List of system prompt files to load (replaces default prompt)
When provided, these files completely replace the default system prompt. Multiple files are concatenated with double newlines between them.
append_prompt_file: Option<String>Optional file to append to the default prompt
When provided (and system_prompt_files is empty), this file’s contents are appended to the default system prompt rather than replacing it.
Trait Implementations§
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