pub enum ChatRecord {
System(SystemLine),
User(UserLine),
Assistant(AssistantLine),
Reasoning(ReasoningLine),
ToolResult(ToolResultLine),
Other(Value),
}Expand description
One chat_history.jsonl line. Known kinds are typed; anything else (or a
malformed known kind) is kept whole in ChatRecord::Other.
Variants§
System(SystemLine)
User(UserLine)
Assistant(AssistantLine)
Reasoning(ReasoningLine)
ToolResult(ToolResultLine)
Other(Value)
Trait Implementations§
Source§impl Clone for ChatRecord
impl Clone for ChatRecord
Source§fn clone(&self) -> ChatRecord
fn clone(&self) -> ChatRecord
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 ChatRecord
impl Debug for ChatRecord
Source§impl<'de> Deserialize<'de> for ChatRecord
impl<'de> Deserialize<'de> for ChatRecord
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ChatRecord> for Value
impl From<ChatRecord> for Value
Source§fn from(r: ChatRecord) -> Self
fn from(r: ChatRecord) -> Self
Converts to this type from the input type.
Source§impl From<Value> for ChatRecord
impl From<Value> for ChatRecord
Source§impl PartialEq for ChatRecord
impl PartialEq for ChatRecord
Source§impl Serialize for ChatRecord
impl Serialize for ChatRecord
impl StructuralPartialEq for ChatRecord
Auto Trait Implementations§
impl Freeze for ChatRecord
impl RefUnwindSafe for ChatRecord
impl Send for ChatRecord
impl Sync for ChatRecord
impl Unpin for ChatRecord
impl UnsafeUnpin for ChatRecord
impl UnwindSafe for ChatRecord
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