pub struct CompletionCallEvent<'a> {
pub prompt: &'a Message,
pub history: &'a [Arc<Message>],
pub turn: usize,
}Expand description
Completion-call event.
Per CallModel step, hook resolution is ordered: completion-call hooks run
first and their RequestPatches merge in registration order. Only
when every completion-call hook proceeds does ModelSelection run
(receiving the merged patch), after which request preparation inspects the
selected model’s captured
ProviderCapabilities and the
attempt is issued. A completion-call stop therefore suppresses model
selection entirely and does not advance
ModelSelection::previous_model.
Fields§
§prompt: &'a MessagePrompt for this turn.
history: &'a [Arc<Message>]History preceding the prompt.
turn: usizeOne-based model-call index.
Trait Implementations§
Source§impl<'a> Clone for CompletionCallEvent<'a>
impl<'a> Clone for CompletionCallEvent<'a>
impl<'a> Copy for CompletionCallEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for CompletionCallEvent<'a>
impl<'a> RefUnwindSafe for CompletionCallEvent<'a>
impl<'a> Send for CompletionCallEvent<'a>
impl<'a> Sync for CompletionCallEvent<'a>
impl<'a> Unpin for CompletionCallEvent<'a>
impl<'a> UnsafeUnpin for CompletionCallEvent<'a>
impl<'a> UnwindSafe for CompletionCallEvent<'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