pub struct AdditionalParameters {
pub background: Option<bool>,
pub text: Option<TextConfig>,
pub include: Option<Vec<Include>>,
pub top_p: Option<f64>,
pub truncation: Option<TruncationStrategy>,
pub user: Option<String>,
pub metadata: Map<String, Value>,
pub parallel_tool_calls: Option<bool>,
pub previous_response_id: Option<String>,
pub reasoning: Option<Reasoning>,
pub service_tier: Option<OpenAIServiceTier>,
pub store: Option<bool>,
}Expand description
Additional parameters for the completion request type for OpenAI’s Response API: https://platform.openai.com/docs/api-reference/responses/create
Intended to be derived from crate::completion::request::CompletionRequest.
Fields§
§background: Option<bool>Whether or not a given model task should run in the background (ie a detached process).
text: Option<TextConfig>The text response format. This is where you would add structured outputs (if you want them).
include: Option<Vec<Include>>What types of extra data you would like to include. This is mostly useless at the moment since the types of extra data to add is currently unsupported, but this will be coming soon!
top_p: Option<f64>top_p. Mutually exclusive with the temperature argument.
truncation: Option<TruncationStrategy>Whether or not the response should be truncated.
user: Option<String>The username of the user (that you want to use).
metadata: Map<String, Value>Any additional metadata you’d like to add. This will additionally be returned by the response.
parallel_tool_calls: Option<bool>Whether or not you want tool calls to run in parallel.
previous_response_id: Option<String>Previous response ID. If you are not sending a full conversation, this can help to track the message flow.
reasoning: Option<Reasoning>Add thinking/reasoning to your response. The response will be emitted as a list member of the output field.
service_tier: Option<OpenAIServiceTier>The service tier you’re using.
store: Option<bool>Whether or not to store the response for later retrieval by API.
Implementations§
Trait Implementations§
Source§impl Clone for AdditionalParameters
impl Clone for AdditionalParameters
Source§fn clone(&self) -> AdditionalParameters
fn clone(&self) -> AdditionalParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AdditionalParameters
impl Debug for AdditionalParameters
Source§impl Default for AdditionalParameters
impl Default for AdditionalParameters
Source§fn default() -> AdditionalParameters
fn default() -> AdditionalParameters
Source§impl<'de> Deserialize<'de> for AdditionalParameters
impl<'de> Deserialize<'de> for AdditionalParameters
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>,
Auto Trait Implementations§
impl Freeze for AdditionalParameters
impl RefUnwindSafe for AdditionalParameters
impl Send for AdditionalParameters
impl Sync for AdditionalParameters
impl Unpin for AdditionalParameters
impl UnwindSafe for AdditionalParameters
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
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more