pub struct Projection<'a> {
pub entries: Vec<ProjectedEntry<'a>>,
pub messages: Vec<Message>,
pub thinking_level: String,
pub model: Option<(String, String)>,
}Expand description
The context of a branch, entry by entry.
Fields§
§entries: Vec<ProjectedEntry<'a>>Context entries: the last compaction first, then the entries it keeps and the later ones.
messages: Vec<Message>Every projected message, in order.
thinking_level: StringThe last thinking level set on the branch, or off when none.
model: Option<(String, String)>The last model used or selected on the branch, as (provider, model id).
Trait Implementations§
Source§impl<'a> Clone for Projection<'a>
impl<'a> Clone for Projection<'a>
Auto Trait Implementations§
impl<'a> Freeze for Projection<'a>
impl<'a> RefUnwindSafe for Projection<'a>
impl<'a> Send for Projection<'a>
impl<'a> Sync for Projection<'a>
impl<'a> Unpin for Projection<'a>
impl<'a> UnsafeUnpin for Projection<'a>
impl<'a> UnwindSafe for Projection<'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