pub struct OutputParams {
pub max_output_tokens: Option<u64>,
pub response_format: Option<Value>,
}Expand description
Output budget and structured-output options.
Fields§
§max_output_tokens: Option<u64>Maximum tokens the model may generate.
response_format: Option<Value>Provider-neutral or provider-specific structured-output configuration.
Trait Implementations§
Source§impl Clone for OutputParams
impl Clone for OutputParams
Source§fn clone(&self) -> OutputParams
fn clone(&self) -> OutputParams
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 Debug for OutputParams
impl Debug for OutputParams
Source§impl Default for OutputParams
impl Default for OutputParams
Source§fn default() -> OutputParams
fn default() -> OutputParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OutputParams
impl<'de> Deserialize<'de> for OutputParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OutputParams
impl PartialEq for OutputParams
Source§impl Serialize for OutputParams
impl Serialize for OutputParams
impl StructuralPartialEq for OutputParams
Auto Trait Implementations§
impl Freeze for OutputParams
impl RefUnwindSafe for OutputParams
impl Send for OutputParams
impl Sync for OutputParams
impl Unpin for OutputParams
impl UnsafeUnpin for OutputParams
impl UnwindSafe for OutputParams
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