pub struct CallEvent<'a> {
pub session: &'a str,
pub turn: usize,
pub messages: &'a [Message],
pub tools: &'a [ToolSpec],
}Expand description
A turn about to request the model.
Fields§
§session: &'a str§turn: usize1 for the first model call of the run.
messages: &'a [Message]What the request will carry. The assembled system prompt and trimmed history are the
first two entries; a hook reads them, it does not edit them in place — it returns a
RequestPatch.
tools: &'a [ToolSpec]Auto Trait Implementations§
impl<'a> Forget for CallEvent<'a>
impl<'a> Freeze for CallEvent<'a>
impl<'a> Move for CallEvent<'a>
impl<'a> RefUnwindSafe for CallEvent<'a>
impl<'a> Send for CallEvent<'a>
impl<'a> Sync for CallEvent<'a>
impl<'a> Unpin for CallEvent<'a>
impl<'a> UnsafeUnpin for CallEvent<'a>
impl<'a> UnwindSafe for CallEvent<'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