pub struct PrePromptEvent {
pub session_id: String,
pub prompt: String,
pub system_prompt: Option<String>,
pub message_count: usize,
}Expand description
Pre-prompt event payload (fired before prompt augmentation)
Fields§
§session_id: StringSession ID
prompt: StringUser prompt text
system_prompt: Option<String>Current system prompt (if any)
message_count: usizeNumber of messages in conversation history
Trait Implementations§
Source§impl Clone for PrePromptEvent
impl Clone for PrePromptEvent
Source§fn clone(&self) -> PrePromptEvent
fn clone(&self) -> PrePromptEvent
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 PrePromptEvent
impl Debug for PrePromptEvent
Source§impl<'de> Deserialize<'de> for PrePromptEvent
impl<'de> Deserialize<'de> for PrePromptEvent
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 PrePromptEvent
impl RefUnwindSafe for PrePromptEvent
impl Send for PrePromptEvent
impl Sync for PrePromptEvent
impl Unpin for PrePromptEvent
impl UnsafeUnpin for PrePromptEvent
impl UnwindSafe for PrePromptEvent
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