pub struct ModelTurn {
pub text: Option<String>,
pub calls: Vec<ToolCall>,
}Expand description
What a model response contained.
Fields§
§text: Option<String>Text the model wrote (may accompany tool calls), if any.
calls: Vec<ToolCall>Tool calls, in order. Empty means a final answer.
Trait Implementations§
impl Eq for ModelTurn
impl StructuralPartialEq for ModelTurn
Auto Trait Implementations§
impl Freeze for ModelTurn
impl RefUnwindSafe for ModelTurn
impl Send for ModelTurn
impl Sync for ModelTurn
impl Unpin for ModelTurn
impl UnsafeUnpin for ModelTurn
impl UnwindSafe for ModelTurn
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