pub struct ChatTurn {
pub content: String,
pub tool_calls: Vec<ToolCall>,
pub usage: Usage,
pub finish_reason: Option<String>,
}Expand description
One turn of the host agentic loop: either text (the model is done) or a set of tool calls to execute and feed back.
Fields§
§content: String§tool_calls: Vec<ToolCall>§usage: Usage§finish_reason: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChatTurn
impl RefUnwindSafe for ChatTurn
impl Send for ChatTurn
impl Sync for ChatTurn
impl Unpin for ChatTurn
impl UnsafeUnpin for ChatTurn
impl UnwindSafe for ChatTurn
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