pub struct ContextSlot {
pub name: String,
pub priority: Priority,
pub messages: Vec<Message>,
pub reserved_tokens: usize,
}Expand description
A slot of context to include in the budget.
Fields§
§name: String§priority: Priority§messages: Vec<Message>§reserved_tokens: usizeMinimum reserved tokens for this slot (guaranteed if budget allows).
Auto Trait Implementations§
impl Freeze for ContextSlot
impl RefUnwindSafe for ContextSlot
impl Send for ContextSlot
impl Sync for ContextSlot
impl Unpin for ContextSlot
impl UnsafeUnpin for ContextSlot
impl UnwindSafe for ContextSlot
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