pub struct CompletionResponse {
pub message: Message,
pub usage: TokenUsage,
pub finish_reason: FinishReason,
}Expand description
Non-streaming completion response wrapper.
Fields§
§message: MessageThe assistant’s response message.
usage: TokenUsageToken usage for this completion.
finish_reason: FinishReasonWhy generation stopped.
Trait Implementations§
Source§impl Clone for CompletionResponse
impl Clone for CompletionResponse
Auto Trait Implementations§
impl Forget for CompletionResponse
impl Freeze for CompletionResponse
impl Move for CompletionResponse
impl RefUnwindSafe for CompletionResponse
impl Send for CompletionResponse
impl Sync for CompletionResponse
impl Unpin for CompletionResponse
impl UnsafeUnpin for CompletionResponse
impl UnwindSafe for CompletionResponse
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