pub struct CreateResponse {
pub create_model_response_properties: CreateModelResponseProperties,
pub response_properties: ResponseProperties,
pub input: CreateResponseInput,
pub include: Option<Vec<Includable>>,
pub parallel_tool_calls: Option<bool>,
pub store: Option<bool>,
pub stream: Option<bool>,
}Fields§
§create_model_response_properties: CreateModelResponseProperties§response_properties: ResponseProperties§input: CreateResponseInputText, image, or file inputs to the model, used to generate a response.
Learn more:
include: Option<Vec<Includable>>Specify additional output data to include in the model response. Currently supported values are:
file_search_call.results: Include the search results of the file search tool call.message.input_image.image_url: Include image urls from the input message.computer_call_output.output.image_url: Include image urls from the computer call output.
parallel_tool_calls: Option<bool>Whether to allow the model to run tool calls in parallel.
store: Option<bool>Whether to store the generated model response for later retrieval via API.
stream: Option<bool>If set to true, the model response data will be streamed to the client as it is generated using server-sent events. See the Streaming section below for more information.
Implementations§
Source§impl CreateResponse
impl CreateResponse
Sourcepub fn builder() -> CreateResponseBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> CreateResponseBuilder<((), (), (), (), (), (), ())>
Create a builder for building CreateResponse.
On the builder, call .create_model_response_properties(...)(optional), .response_properties(...)(optional), .input(...), .include(...)(optional), .parallel_tool_calls(...)(optional), .store(...)(optional), .stream(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of CreateResponse.
Trait Implementations§
Source§impl Clone for CreateResponse
impl Clone for CreateResponse
Source§fn clone(&self) -> CreateResponse
fn clone(&self) -> CreateResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more