pub struct Chain {
pub nudges: u32,
pub tool_calls: usize,
pub text: String,
}Expand description
The nudge chain since the user’s last input: how many ran, and what the current run did.
Fields§
§nudges: u32§tool_calls: usize§text: StringImplementations§
Source§impl Chain
impl Chain
Sourcepub fn user_input(&mut self)
pub fn user_input(&mut self)
The user sent input: the count starts over.
Sourcepub fn run_started(&mut self)
pub fn run_started(&mut self)
A run starts: its own calls and text.
Sourcepub fn assistant_message(&mut self, message: &Value)
pub fn assistant_message(&mut self, message: &Value)
An assistant message ended (a transcript message as stored): its tool calls count, and its text, when it has any, is the turn’s final text so far.
Trait Implementations§
impl Eq for Chain
impl StructuralPartialEq for Chain
Auto Trait Implementations§
impl Forget for Chain
impl Freeze for Chain
impl Move for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnsafeUnpin for Chain
impl UnwindSafe for Chain
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.