pub struct MemoryHandoffPlan {
pub contract_version: String,
pub status: String,
pub max_prompt_tokens: usize,
pub reserve_tokens: usize,
pub available_tokens: usize,
pub estimated_included_tokens: usize,
pub included_events: Vec<BudgetedMemoryEvent>,
pub deferred_events: Vec<DeferredMemoryEvent>,
pub next_commands: Vec<String>,
}Fields§
§contract_version: String§status: String§max_prompt_tokens: usize§reserve_tokens: usize§available_tokens: usize§estimated_included_tokens: usize§included_events: Vec<BudgetedMemoryEvent>§deferred_events: Vec<DeferredMemoryEvent>§next_commands: Vec<String>Trait Implementations§
Source§impl Clone for MemoryHandoffPlan
impl Clone for MemoryHandoffPlan
Source§fn clone(&self) -> MemoryHandoffPlan
fn clone(&self) -> MemoryHandoffPlan
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 moreSource§impl Debug for MemoryHandoffPlan
impl Debug for MemoryHandoffPlan
Source§impl<'de> Deserialize<'de> for MemoryHandoffPlan
impl<'de> Deserialize<'de> for MemoryHandoffPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemoryHandoffPlan
Source§impl PartialEq for MemoryHandoffPlan
impl PartialEq for MemoryHandoffPlan
Source§fn eq(&self, other: &MemoryHandoffPlan) -> bool
fn eq(&self, other: &MemoryHandoffPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemoryHandoffPlan
impl Serialize for MemoryHandoffPlan
impl StructuralPartialEq for MemoryHandoffPlan
Auto Trait Implementations§
impl Freeze for MemoryHandoffPlan
impl RefUnwindSafe for MemoryHandoffPlan
impl Send for MemoryHandoffPlan
impl Sync for MemoryHandoffPlan
impl Unpin for MemoryHandoffPlan
impl UnsafeUnpin for MemoryHandoffPlan
impl UnwindSafe for MemoryHandoffPlan
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