pub struct SystemPromptParts {
pub default_system_prompt: String,
pub user_context: HashMap<String, String>,
pub system_context: HashMap<String, String>,
}Expand description
Result of building system prompt parts (matches TypeScript’s fetchSystemPromptParts)
Fields§
§default_system_prompt: StringThe default system prompt text
user_context: HashMap<String, String>User context - prepended to messages as
system_context: HashMap<String, String>System context - appended to system prompt
Trait Implementations§
Source§impl Clone for SystemPromptParts
impl Clone for SystemPromptParts
Source§fn clone(&self) -> SystemPromptParts
fn clone(&self) -> SystemPromptParts
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 moreAuto Trait Implementations§
impl Freeze for SystemPromptParts
impl RefUnwindSafe for SystemPromptParts
impl Send for SystemPromptParts
impl Sync for SystemPromptParts
impl Unpin for SystemPromptParts
impl UnsafeUnpin for SystemPromptParts
impl UnwindSafe for SystemPromptParts
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