pub struct RunStart<'a> {
pub prompt: &'a Message,
pub history: &'a [Arc<Message>],
}Expand description
Initial prompt event before the first completion-call hook. In a HookStack,
rewrites reach later hooks in registration order; the first stop prevents
remaining hooks and provider calls.
Fields§
§prompt: &'a MessageThe prompt the run will send on its first model call, including earlier hooks’ rewrites.
history: &'a [Arc<Message>]The input chat history preceding the prompt.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RunStart<'a>
impl<'a> RefUnwindSafe for RunStart<'a>
impl<'a> Send for RunStart<'a>
impl<'a> Sync for RunStart<'a>
impl<'a> Unpin for RunStart<'a>
impl<'a> UnsafeUnpin for RunStart<'a>
impl<'a> UnwindSafe for RunStart<'a>
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