pub struct UserPromptSubmitEvent {
pub prompt: String,
pub history: Vec<Value>,
}Expand description
Snapshot passed to a prompt hook before the user message is added to history.
Invoked by Client::send, including an empty continuation
prompt. Client::send_message bypasses this hook.
Fields§
§prompt: StringThe user’s original input prompt text
history: Vec<Value>Structured JSON snapshot of history before this prompt is added.
Implementations§
Trait Implementations§
Source§impl Clone for UserPromptSubmitEvent
impl Clone for UserPromptSubmitEvent
Auto Trait Implementations§
impl Freeze for UserPromptSubmitEvent
impl RefUnwindSafe for UserPromptSubmitEvent
impl Send for UserPromptSubmitEvent
impl Sync for UserPromptSubmitEvent
impl Unpin for UserPromptSubmitEvent
impl UnsafeUnpin for UserPromptSubmitEvent
impl UnwindSafe for UserPromptSubmitEvent
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