pub enum Record {
Recording(Header),
Call(Box<CallRecord>),
Chunk(ChunkRecord),
TextChunks(TextRun),
ThinkingChunks(TextRun),
ToolArgsChunks(ToolArgsRun),
End(EndRecord),
Unknown,
}Expand description
One line of calls.jsonl.
Variants§
Recording(Header)
Call(Box<CallRecord>)
Boxed: a CallRecord is three times the size of a ChunkRecord, and a
Record is built once per streamed token — so an unboxed variant would
make every chunk pay for the largest thing the enum can hold.
Chunk(ChunkRecord)
TextChunks(TextRun)
ThinkingChunks(TextRun)
ToolArgsChunks(ToolArgsRun)
End(EndRecord)
Unknown
A record type this build does not know. A recording is diagnostic data, not session state: reading the parts we understand beats refusing the whole file. The reader warns with the line number, because a genuinely corrupt line lands here too.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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
Auto Trait Implementations§
impl Forget for Record
impl Freeze for Recordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const CallRecord is !null: Freeze,
PhantomData<CallRecord>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<SearchHit>: Freeze,
PhantomData<String>: Freeze,
PhantomData<i64>: Freeze,
impl Move for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Recordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const CallRecord is !null: UnsafeUnpin,
PhantomData<CallRecord>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<SearchHit>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<i64>: UnsafeUnpin,
impl UnwindSafe for Record
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