pub struct ChatTurn {
pub replies: Vec<ChatMessage>,
pub tool_calls: Vec<FunctionCall>,
pub items: Vec<ChatItem>,
}Expand description
Everything the bot did in response to one message.
Fields§
§replies: Vec<ChatMessage>Messages delivered through the reply callback — what the user actually saw.
tool_calls: Vec<FunctionCall>Tool calls executed during the turn, with their results.
items: Vec<ChatItem>Every item recorded during the turn, in order.
Implementations§
Source§impl ChatTurn
impl ChatTurn
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