pub struct InvocationTurn {
pub role: String,
pub content: String,
pub tool_calls: Vec<Value>,
pub tool_results: Vec<Value>,
}Expand description
A single turn in a conversation for evaluation.
Fields§
§role: StringThe role of this turn (e.g., “user”, “model”).
content: StringThe text content of this turn.
tool_calls: Vec<Value>Tool calls made during this turn (if any).
tool_results: Vec<Value>Tool results returned during this turn (if any).
Trait Implementations§
Source§impl Clone for InvocationTurn
impl Clone for InvocationTurn
Source§fn clone(&self) -> InvocationTurn
fn clone(&self) -> InvocationTurn
Returns a duplicate of the value. Read more
1.0.0 · 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 InvocationTurn
impl Debug for InvocationTurn
Source§impl<'de> Deserialize<'de> for InvocationTurn
impl<'de> Deserialize<'de> for InvocationTurn
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 InvocationTurn
impl RefUnwindSafe for InvocationTurn
impl Send for InvocationTurn
impl Sync for InvocationTurn
impl Unpin for InvocationTurn
impl UnsafeUnpin for InvocationTurn
impl UnwindSafe for InvocationTurn
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