pub struct AssistantResponse {
pub content: String,
pub tool_calls: Vec<ToolCall>,
pub usage: Usage,
}Expand description
The model’s complete answer to one request.
Fields§
§content: String§tool_calls: Vec<ToolCall>§usage: UsageTrait Implementations§
Source§impl Clone for AssistantResponse
impl Clone for AssistantResponse
Auto Trait Implementations§
impl Freeze for AssistantResponse
impl RefUnwindSafe for AssistantResponse
impl Send for AssistantResponse
impl Sync for AssistantResponse
impl Unpin for AssistantResponse
impl UnsafeUnpin for AssistantResponse
impl UnwindSafe for AssistantResponse
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