pub struct PromptContext {
pub guidelines: Vec<String>,
pub tone: String,
pub verbosity: Verbosity,
pub flags: Vec<String>,
}Expand description
Context produced by translating user state.
This is the output that should be injected into LLM system prompts to condition interaction style.
Fields§
§guidelines: Vec<String>Behavioral guidelines for the LLM.
tone: StringSuggested tone (e.g., “calm-neutral”, “warm-neutral”).
verbosity: VerbosityDesired response verbosity.
flags: Vec<String>Active flags for special conditions.
Trait Implementations§
Source§impl Clone for PromptContext
impl Clone for PromptContext
Source§fn clone(&self) -> PromptContext
fn clone(&self) -> PromptContext
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PromptContext
impl Debug for PromptContext
Source§impl Default for PromptContext
impl Default for PromptContext
Source§fn default() -> PromptContext
fn default() -> PromptContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptContext
impl<'de> Deserialize<'de> for PromptContext
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 PromptContext
impl RefUnwindSafe for PromptContext
impl Send for PromptContext
impl Sync for PromptContext
impl Unpin for PromptContext
impl UnwindSafe for PromptContext
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)