pub struct StructuredCompletionRequest<O: StructuredOutput> {
pub model: ModelName,
pub system: Option<String>,
pub prompt: String,
pub generation: GenerationParams,
pub budget: RequestBudget,
pub output: StructuredOutputSpec<O>,
}Fields§
§model: ModelName§system: Option<String>§prompt: String§generation: GenerationParams§budget: RequestBudget§output: StructuredOutputSpec<O>Implementations§
Source§impl<O: StructuredOutput> StructuredCompletionRequest<O>
impl<O: StructuredOutput> StructuredCompletionRequest<O>
Sourcepub fn builder() -> StructuredCompletionRequestBuilder<O>
pub fn builder() -> StructuredCompletionRequestBuilder<O>
Create an instance of StructuredCompletionRequest using the builder syntax
Source§impl<O> StructuredCompletionRequest<O>where
O: StructuredOutput,
impl<O> StructuredCompletionRequest<O>where
O: StructuredOutput,
Trait Implementations§
Source§impl<O: Clone + StructuredOutput> Clone for StructuredCompletionRequest<O>
impl<O: Clone + StructuredOutput> Clone for StructuredCompletionRequest<O>
Source§fn clone(&self) -> StructuredCompletionRequest<O>
fn clone(&self) -> StructuredCompletionRequest<O>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<O: Debug + StructuredOutput> Debug for StructuredCompletionRequest<O>
impl<O: Debug + StructuredOutput> Debug for StructuredCompletionRequest<O>
Source§impl<O: PartialEq + StructuredOutput> PartialEq for StructuredCompletionRequest<O>
impl<O: PartialEq + StructuredOutput> PartialEq for StructuredCompletionRequest<O>
Source§fn eq(&self, other: &StructuredCompletionRequest<O>) -> bool
fn eq(&self, other: &StructuredCompletionRequest<O>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<O: StructuredOutput> StructuralPartialEq for StructuredCompletionRequest<O>
Auto Trait Implementations§
impl<O> Freeze for StructuredCompletionRequest<O>
impl<O> RefUnwindSafe for StructuredCompletionRequest<O>
impl<O> Send for StructuredCompletionRequest<O>
impl<O> Sync for StructuredCompletionRequest<O>
impl<O> Unpin for StructuredCompletionRequest<O>
impl<O> UnsafeUnpin for StructuredCompletionRequest<O>
impl<O> UnwindSafe for StructuredCompletionRequest<O>
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