pub struct PreparedContext {
pub prompt: String,
pub token_count: u32,
pub messages_included: u32,
pub messages_pruned: u32,
}Expand description
Result of context preparation.
Fields§
§prompt: StringThe fully formatted prompt string to feed the backend.
token_count: u32Total token count of prompt.
messages_included: u32Number of conversation messages kept in the prompt.
messages_pruned: u32Number of conversation messages dropped to fit the budget.
Trait Implementations§
Source§impl Clone for PreparedContext
impl Clone for PreparedContext
Source§fn clone(&self) -> PreparedContext
fn clone(&self) -> PreparedContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreparedContext
impl RefUnwindSafe for PreparedContext
impl Send for PreparedContext
impl Sync for PreparedContext
impl Unpin for PreparedContext
impl UnsafeUnpin for PreparedContext
impl UnwindSafe for PreparedContext
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