pub struct TextBatchResult {
pub content: Vec<StepContent>,
pub finish_reason: FinishReason,
pub usage: Usage,
pub warnings: Vec<Warning>,
pub request: RequestMetadata,
pub response: ResponseMetadata,
pub provider_metadata: Option<ProviderMetadata>,
}Expand description
Successful text item of a batch: the shape of one generate_text step.
Fields§
§content: Vec<StepContent>Content parts (tool calls parsed against the tools given to
GetBatchResults::tools).
finish_reason: FinishReasonFinish reason.
usage: UsageToken usage.
warnings: Vec<Warning>Adapter warnings.
request: RequestMetadataRequest metadata.
response: ResponseMetadataResponse metadata.
provider_metadata: Option<ProviderMetadata>Provider metadata.
Implementations§
Trait Implementations§
Source§impl Clone for TextBatchResult
impl Clone for TextBatchResult
Source§fn clone(&self) -> TextBatchResult
fn clone(&self) -> TextBatchResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextBatchResult
impl Debug for TextBatchResult
Source§impl PartialEq for TextBatchResult
impl PartialEq for TextBatchResult
impl StructuralPartialEq for TextBatchResult
Auto Trait Implementations§
impl Freeze for TextBatchResult
impl RefUnwindSafe for TextBatchResult
impl Send for TextBatchResult
impl Sync for TextBatchResult
impl Unpin for TextBatchResult
impl UnsafeUnpin for TextBatchResult
impl UnwindSafe for TextBatchResult
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