pub struct Inherited {
pub messages: Vec<ChatMessage>,
pub at: Seq,
}Expand description
What a new session inherits from the one it branched off: the conversation the mother had exchanged by a safe point.
Fields§
§messages: Vec<ChatMessage>The messages the forked run’s window opens with, in the order the mother exchanged them.
at: SeqThe line those messages were rebuilt through. Equal to the
at_seq asked for when that line was a safe point, and the
nearest earlier one when it was not: a wave of tool calls is
several lines and only its end is a place a conversation can be
cut, because a provider refuses an assistant message whose tool
uses nothing answers.
Trait Implementations§
impl StructuralPartialEq for Inherited
Auto Trait Implementations§
impl Freeze for Inherited
impl RefUnwindSafe for Inherited
impl Send for Inherited
impl Sync for Inherited
impl Unpin for Inherited
impl UnsafeUnpin for Inherited
impl UnwindSafe for Inherited
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