pub struct RecordedExchange {
pub messages: Vec<Message>,
pub response: LLMResult,
pub tools: Option<Vec<ToolDefinition>>,
}Expand description
One recorded request/response pair, serialized as a single JSONL line.
Fields§
§messages: Vec<Message>The request (including system/user/assistant/tool history).
response: LLMResultThe full response.
tools: Option<Vec<ToolDefinition>>Tool definitions bound on the request side (non-empty after bind_tools).
#[serde(default)] lets old fixtures (without a tools field) read as None, compatible
with zero changes; skip_serializing_if keeps recordings without bound tools in the old format.
Trait Implementations§
Source§impl Clone for RecordedExchange
impl Clone for RecordedExchange
Source§fn clone(&self) -> RecordedExchange
fn clone(&self) -> RecordedExchange
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 RecordedExchange
impl Debug for RecordedExchange
Source§impl<'de> Deserialize<'de> for RecordedExchange
impl<'de> Deserialize<'de> for RecordedExchange
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 Freeze for RecordedExchange
impl RefUnwindSafe for RecordedExchange
impl Send for RecordedExchange
impl Sync for RecordedExchange
impl Unpin for RecordedExchange
impl UnsafeUnpin for RecordedExchange
impl UnwindSafe for RecordedExchange
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