pub struct CompiledContext {
pub system_messages: Vec<ChatMessage>,
pub total_tokens: usize,
pub dropped_blocks: Vec<ContextBlockKind>,
}Expand description
Result of context compilation.
Fields§
§system_messages: Vec<ChatMessage>System messages to prepend to the conversation.
total_tokens: usizeEstimated total tokens used.
dropped_blocks: Vec<ContextBlockKind>Blocks that were dropped due to budget constraints.
Trait Implementations§
Source§impl Clone for CompiledContext
impl Clone for CompiledContext
Source§fn clone(&self) -> CompiledContext
fn clone(&self) -> CompiledContext
Returns a duplicate of the value. Read more
1.0.0 · 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 CompiledContext
impl RefUnwindSafe for CompiledContext
impl Send for CompiledContext
impl Sync for CompiledContext
impl Unpin for CompiledContext
impl UnsafeUnpin for CompiledContext
impl UnwindSafe for CompiledContext
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