pub struct HandoffRecord {Show 13 fields
pub slot: SessionSlot,
pub from: String,
pub to: String,
pub reason: HandoffReason,
pub fill_percent: Option<u8>,
pub total_tokens: Option<u64>,
pub max_tokens: Option<u64>,
pub at_percent: u8,
pub brief: HandoffBrief,
pub transcript_path: String,
pub at: String,
pub cycle: HandoffCycle,
pub successor: Option<HandoffSuccessor>,
}Expand description
One handoff, as the swap signal carries it and as the store keeps it for tuning.
Fields§
§slot: SessionSlot§from: StringThe session that handed over.
to: StringThe session that continues.
reason: HandoffReason§fill_percent: Option<u8>The fill reading the trigger read, when it had one.
total_tokens: Option<u64>§max_tokens: Option<u64>§at_percent: u8The configured share of the window when this fired, so a later config change does not rewrite what the record means.
brief: HandoffBrief§transcript_path: StringThe handover’s transcript, which holds everything the brief does not.
at: StringRFC 3339.
cycle: HandoffCycle§successor: Option<HandoffSuccessor>Absent until the successor has run its first ten turns.
Implementations§
Trait Implementations§
Source§impl Clone for HandoffRecord
impl Clone for HandoffRecord
Source§impl Debug for HandoffRecord
impl Debug for HandoffRecord
Source§impl<'de> Deserialize<'de> for HandoffRecord
impl<'de> Deserialize<'de> for HandoffRecord
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
Source§impl PartialEq for HandoffRecord
impl PartialEq for HandoffRecord
Source§impl Serialize for HandoffRecord
impl Serialize for HandoffRecord
impl StructuralPartialEq for HandoffRecord
Auto Trait Implementations§
impl Freeze for HandoffRecord
impl RefUnwindSafe for HandoffRecord
impl Send for HandoffRecord
impl Sync for HandoffRecord
impl Unpin for HandoffRecord
impl UnsafeUnpin for HandoffRecord
impl UnwindSafe for HandoffRecord
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