pub struct CompactResponseRequestArgs { /* private fields */ }response-types only.Expand description
Builder for CompactResponseRequest.
Implementations§
Source§impl CompactResponseRequestArgs
impl CompactResponseRequestArgs
Sourcepub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Model ID used to generate the response, like gpt-5 or o3. OpenAI offers a wide range of models
with different capabilities, performance characteristics, and price points. Refer to the
model guide to browse and compare available models.
Sourcepub fn input<VALUE: Into<InputParam>>(&mut self, value: VALUE) -> &mut Self
pub fn input<VALUE: Into<InputParam>>(&mut self, value: VALUE) -> &mut Self
Text, image, or file inputs to the model, used to generate a response
Sourcepub fn previous_response_id<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn previous_response_id<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
The unique ID of the previous response to the model. Use this to create multi-turn
conversations. Learn more about conversation state.
Cannot be used in conjunction with conversation.
Sourcepub fn instructions<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn instructions<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A system (or developer) message inserted into the model’s context.
When used along with previous_response_id, the instructions from a previous response will
not be carried over to the next response. This makes it simple to swap out system (or
developer) messages in new responses.
Sourcepub fn build(&self) -> Result<CompactResponseRequest, OpenAIError>
pub fn build(&self) -> Result<CompactResponseRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CompactResponseRequestArgs
impl Clone for CompactResponseRequestArgs
Source§fn clone(&self) -> CompactResponseRequestArgs
fn clone(&self) -> CompactResponseRequestArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more