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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompactResponseRequestArgs
impl Debug for CompactResponseRequestArgs
Auto Trait Implementations§
impl Freeze for CompactResponseRequestArgs
impl RefUnwindSafe for CompactResponseRequestArgs
impl Send for CompactResponseRequestArgs
impl Sync for CompactResponseRequestArgs
impl Unpin for CompactResponseRequestArgs
impl UnwindSafe for CompactResponseRequestArgs
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)