Package com.openai.models
See: Description
-
-
Class Summary Class Description Deserializer Serializer Annotation A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Deserializer Serializer AnnotationDelta A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Builder Builder Builder CodeInterpreter Builder FileSearch ToolResources A set of resources that are used by the assistant's tools. Assistant Represents an assistant
that can call the model and use tools.Builder AssistantDeleted Deserializer Serializer AssistantResponseFormatOption Specifies the format that the model must output. Deserializer Serializer Builder ThreadCreated Occurs when a new thread is created. Builder ThreadRunCreated Occurs when a new run is created. Builder ThreadRunQueued Occurs when a run moves to a queued
status.Builder ThreadRunInProgress Occurs when a run moves to an in_progress
status.Builder ThreadRunRequiresAction Occurs when a run moves to a requires_action
status.Builder ThreadRunCompleted Occurs when a run is completed. Builder ThreadRunIncomplete Occurs when a run ends with status incomplete
.Builder ThreadRunFailed Occurs when a run fails. Builder ThreadRunCancelling Occurs when a run moves to a cancelling
status.Builder ThreadRunCancelled Occurs when a run is cancelled. Builder ThreadRunExpired Occurs when a run expires. Builder ThreadRunStepCreated Occurs when a run step is created. Builder ThreadRunStepInProgress Occurs when a run step moves to an in_progress
state.Builder ThreadRunStepDelta Occurs when parts of a run step are being streamed. Builder ThreadRunStepCompleted Occurs when a run step is completed. Builder ThreadRunStepFailed Occurs when a run step fails. Builder ThreadRunStepCancelled Occurs when a run step is cancelled. Builder ThreadRunStepExpired Occurs when a run step expires. Builder ThreadMessageCreated Occurs when a message is created. Builder ThreadMessageInProgress Occurs when a message moves to an in_progress
state.Builder ThreadMessageDelta Occurs when parts of a Message are being streamed. Builder ThreadMessageCompleted Occurs when a message is completed. Builder ThreadMessageIncomplete Occurs when a message ends before it is completed. Builder ErrorEvent Occurs when an error occurs. AssistantStreamEvent Represents an event emitted when streaming a Run. Deserializer Serializer AssistantTool Builder Type The type of the tool. AssistantToolChoice Specifies a tool the model should use. Builder AssistantToolChoiceFunction Deserializer Serializer Auto none
means the model will not call any tools and instead generates a message.AssistantToolChoiceOption Controls which (if any) tool is called by the model. Builder AutoFileChunkingStrategyParam The default strategy. Builder Status The current status of the batch. Builder Errors Batch Builder BatchCancelParams Cancels an in-progress batch. Builder BatchCreateBody Builder CompletionWindow The time frame within which the batch should be processed. Endpoint The endpoint to be used for all requests in the batch. Builder Metadata Optional custom metadata for the batch. BatchCreateParams Creates and executes a batch from an uploaded file of requests Builder BatchError Builder Response AutoPager BatchListPage List your organization's batches. Builder Response AutoPager BatchListPageAsync List your organization's batches. Builder BatchListParams List your organization's batches. Builder BatchRequestCounts The request counts for different statuses within the batch. Builder BatchRetrieveParams Retrieves a batch. Builder BetaAssistantCreateBody Builder Builder Builder CodeInterpreter Builder Builder VectorStore FileSearch ToolResources A set of resources that are used by the assistant's tools. BetaAssistantCreateParams Create an assistant with a model and instructions. Builder BetaAssistantDeleteParams Delete an assistant. Builder Response AutoPager BetaAssistantListPage Returns a list of assistants. Builder Response AutoPager BetaAssistantListPageAsync Returns a list of assistants. Builder Order Sort order by the created_at
timestamp of the objects.BetaAssistantListParams Returns a list of assistants. Builder BetaAssistantRetrieveParams Retrieves an assistant. Builder BetaAssistantUpdateBody Builder Builder Builder CodeInterpreter Builder FileSearch ToolResources A set of resources that are used by the assistant's tools. BetaAssistantUpdateParams Modifies an assistant. Builder BetaThreadCreateAndRunBody Builder Builder Builder Deserializer Serializer Content The text contents of the message. Role The role of the entity that is creating the message. Builder Deserializer Serializer Tool Attachment Message Builder Builder CodeInterpreter Builder Builder VectorStore FileSearch ToolResources A set of resources that are made available to the assistant's tools in this thread. Thread If no thread is provided, an empty thread will be created. Builder Builder CodeInterpreter Builder FileSearch ToolResources A set of resources that are used by the assistant's tools. Deserializer Serializer Tool Builder Type The truncation strategy to use for the thread. TruncationStrategy Controls for how a thread will be truncated prior to the run. BetaThreadCreateAndRunParams Create a thread and run it in one request. Builder BetaThreadCreateBody Builder Builder Deserializer Serializer Content The text contents of the message. Role The role of the entity that is creating the message. Builder Deserializer Serializer Tool Attachment Message Builder Builder CodeInterpreter Builder Builder VectorStore FileSearch ToolResources A set of resources that are made available to the assistant's tools in this thread. BetaThreadCreateParams Create a thread. Builder BetaThreadDeleteParams Delete a thread. Builder BetaThreadMessageCreateBody Builder Deserializer Serializer Content The text contents of the message. Role The role of the entity that is creating the message. Builder Deserializer Serializer Tool Attachment BetaThreadMessageCreateParams Create a message. Builder BetaThreadMessageDeleteParams Deletes a message. Builder Response AutoPager BetaThreadMessageListPage Returns a list of messages for a given thread. Builder Response AutoPager BetaThreadMessageListPageAsync Returns a list of messages for a given thread. Builder Order Sort order by the created_at
timestamp of the objects.BetaThreadMessageListParams Returns a list of messages for a given thread. Builder BetaThreadMessageRetrieveParams Retrieve a message. Builder BetaThreadMessageUpdateBody Builder BetaThreadMessageUpdateParams Modifies a message. Builder BetaThreadRetrieveParams Retrieves a thread. Builder BetaThreadRunCancelParams Cancels a run that is in_progress
.Builder BetaThreadRunCreateBody Builder Builder Deserializer Serializer Content The text contents of the message. Role The role of the entity that is creating the message. Builder Deserializer Serializer Tool Attachment AdditionalMessage Builder Type The truncation strategy to use for the thread. TruncationStrategy Controls for how a thread will be truncated prior to the run. BetaThreadRunCreateParams Create a run. Builder Response AutoPager BetaThreadRunListPage Returns a list of runs belonging to a thread. Builder Response AutoPager BetaThreadRunListPageAsync Returns a list of runs belonging to a thread. Builder Order Sort order by the created_at
timestamp of the objects.BetaThreadRunListParams Returns a list of runs belonging to a thread. Builder BetaThreadRunRetrieveParams Retrieves a run. Builder Response AutoPager BetaThreadRunStepListPage Returns a list of run steps belonging to a run. Builder Response AutoPager BetaThreadRunStepListPageAsync Returns a list of run steps belonging to a run. Builder Order Sort order by the created_at
timestamp of the objects.BetaThreadRunStepListParams Returns a list of run steps belonging to a run. Builder BetaThreadRunStepRetrieveParams Retrieves a run step. Builder BetaThreadRunSubmitToolOutputsBody Builder Builder ToolOutput BetaThreadRunSubmitToolOutputsParams When a run has the status: "requires_action"
andrequired_action.type
issubmit_tool_outputs
, this endpoint can be used to submit the outputs from the tool calls once they're all completed.Builder BetaThreadRunUpdateBody Builder BetaThreadRunUpdateParams Modifies a run. Builder BetaThreadUpdateBody Builder Builder Builder CodeInterpreter Builder FileSearch ToolResources A set of resources that are made available to the assistant's tools in this thread. BetaThreadUpdateParams Modifies a thread. Builder BetaVectorStoreCreateBody Builder Builder ExpiresAfter The expiration policy for a vector store. BetaVectorStoreCreateParams Create a vector store. Builder BetaVectorStoreDeleteParams Delete a vector store. Builder BetaVectorStoreFileBatchCancelParams Cancel a vector store file batch. Builder BetaVectorStoreFileBatchCreateBody Builder BetaVectorStoreFileBatchCreateParams Create a vector store file batch. Builder Response AutoPager BetaVectorStoreFileBatchListFilesPage Returns a list of vector store files in a batch. Builder Response AutoPager BetaVectorStoreFileBatchListFilesPageAsync Returns a list of vector store files in a batch. Builder Filter Filter by file status. Order Sort order by the created_at
timestamp of the objects.BetaVectorStoreFileBatchListFilesParams Returns a list of vector store files in a batch. Builder BetaVectorStoreFileBatchRetrieveParams Retrieves a vector store file batch. Builder BetaVectorStoreFileCreateBody Builder BetaVectorStoreFileCreateParams Create a vector store file by attaching a File to a vector store. Builder BetaVectorStoreFileDeleteParams Delete a vector store file. Builder Response AutoPager BetaVectorStoreFileListPage Returns a list of vector store files. Builder Response AutoPager BetaVectorStoreFileListPageAsync Returns a list of vector store files. Builder Filter Filter by file status. Order Sort order by the created_at
timestamp of the objects.BetaVectorStoreFileListParams Returns a list of vector store files. Builder BetaVectorStoreFileRetrieveParams Retrieves a vector store file. Builder Response AutoPager BetaVectorStoreListPage Returns a list of vector stores. Builder Response AutoPager BetaVectorStoreListPageAsync Returns a list of vector stores. Builder Order Sort order by the created_at
timestamp of the objects.BetaVectorStoreListParams Returns a list of vector stores. Builder BetaVectorStoreRetrieveParams Retrieves a vector store. Builder BetaVectorStoreUpdateBody Builder Builder ExpiresAfter The expiration policy for a vector store. BetaVectorStoreUpdateParams Modifies a vector store. Builder Builder FinishReason The reason the model stopped generating tokens. Builder Logprobs Log probability information for the choice. Choice ServiceTier The service tier used for processing the request. ChatCompletion Represents a chat completion response returned by model, based on the provided input. Builder Builder Audio Data about a previous audio response from the model. Deserializer Serializer Deserializer Serializer ChatCompletionRequestAssistantMessageContentPart Learn about text inputs. Content The contents of the assistant message. Builder FunctionCall Deprecated and replaced by tool_calls
.ChatCompletionAssistantMessageParam Messages sent by the model in response to user messages. Builder ChatCompletionAudio If the audio output modality is requested, this object contains data about the audio response from the model. Builder Format Specifies the output audio format. Voice The voice the model uses to respond. ChatCompletionAudioParam Parameters for audio output. Builder Builder Builder Builder FunctionCall Deprecated and replaced by tool_calls
.Role The role of the author of this message. Builder Builder Function Type The type of the tool. ToolCall Delta A chat completion delta generated by streamed model responses. FinishReason The reason the model stopped generating tokens. Builder Logprobs Log probability information for the choice. Choice ServiceTier The service tier used for processing the request. ChatCompletionChunk Represents a streamed chunk of a chat completion response returned by model, based on the provided input. Deserializer Serializer ChatCompletionContentPart Learn about text inputs. Builder Builder Detail Specifies the detail level of the image. ImageUrl ChatCompletionContentPartImage Learn about image inputs. Builder Builder Format The format of the encoded audio data. InputAudio ChatCompletionContentPartInputAudio Learn about audio inputs. Builder ChatCompletionContentPartRefusal Builder ChatCompletionContentPartText Learn about text inputs. Builder ChatCompletionCreateBody Builder Deserializer Serializer Auto none
means the model will not call a function and instead generates a message.FunctionCall Deprecated in favor of tool_choice
.Builder Function Builder LogitBias Modify the likelihood of specified tokens appearing in the completion. Builder Metadata Developer-defined tags and values used for filtering completions in the dashboard. Deserializer Serializer ResponseFormat An object specifying the format that the model must output. ServiceTier Specifies the latency tier to use for processing the request. Deserializer Serializer Stop Up to 4 sequences where the API will stop generating further tokens. ChatCompletionCreateParams Creates a model response for the given chat conversation. Builder Deserializer Serializer Content The contents of the developer message. ChatCompletionDeveloperMessageParam Developer-provided instructions that the model should follow, regardless of messages sent by the user. Builder ChatCompletionFunctionCallOption Specifying a particular function via {"name": "my_function"}
forces the model to call that function.Builder ChatCompletionFunctionMessageParam Builder Builder FunctionCall Deprecated and replaced by tool_calls
.ChatCompletionMessage A chat completion message generated by the model. Deserializer Serializer ChatCompletionMessageParam Developer-provided instructions that the model should follow, regardless of messages sent by the user. Builder Builder Function The function that the model called. ChatCompletionMessageToolCall ChatCompletionModality Builder Builder Function ChatCompletionNamedToolChoice Specifies a tool the model should use. Builder Deserializer Serializer Content The content that should be matched when generating a model response. ChatCompletionPredictionContent Static predicted output content, such as the content of a text file that is being regenerated. ChatCompletionReasoningEffort o1 models onlyConstrains effort on reasoning for reasoning models. ChatCompletionRole The role of the author of a message Builder ChatCompletionStreamOptions Options for streaming response. Builder Deserializer Serializer Content The contents of the system message. ChatCompletionSystemMessageParam Developer-provided instructions that the model should follow, regardless of messages sent by the user. Builder Builder TopLogprob ChatCompletionTokenLogprob Builder ChatCompletionTool Deserializer Serializer Auto none
means the model will not call any tool and instead generates a message.ChatCompletionToolChoiceOption Controls which (if any) tool is called by the model. Builder Deserializer Serializer Content The contents of the tool message. ChatCompletionToolMessageParam Builder Deserializer Serializer Content The contents of the user message. ChatCompletionUserMessageParam Messages sent by an end user, containing prompts or additional context information. ChatModel Builder CodeInterpreterLogs Text output from the Code Interpreter tool call as part of a run step. Builder Builder Image CodeInterpreterOutputImage Builder CodeInterpreterTool Builder Builder Deserializer Serializer Builder LogsOutput Text output from the Code Interpreter tool call as part of a run step. Builder Builder Image ImageOutput Output Text output from the Code Interpreter tool call as part of a run step. CodeInterpreter The Code Interpreter tool call definition. CodeInterpreterToolCall Details of the Code Interpreter tool call the run step was involved in. Builder Builder Deserializer Serializer Output Text output from the Code Interpreter tool call as part of a run step. CodeInterpreter The Code Interpreter tool call definition. CodeInterpreterToolCallDelta Details of the Code Interpreter tool call the run step was involved in. Builder Completion Represents a completion response from the API. Builder FinishReason The reason the model stopped generating tokens. Builder Builder TopLogprob Logprobs CompletionChoice Builder CompletionCreateBody Builder Model ID of the model to use. Deserializer Serializer Prompt The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays. Builder LogitBias Modify the likelihood of specified tokens appearing in the completion. Deserializer Serializer Stop Up to 4 sequences where the API will stop generating further tokens. CompletionCreateParams Creates a completion for the provided prompt and parameters. Builder Builder CompletionTokensDetails Breakdown of tokens used in a completion. Builder PromptTokensDetails Breakdown of tokens used in the prompt. CompletionUsage Usage statistics for the completion request. Builder Builder Usage The usage information for the request. CreateEmbeddingResponse Builder Embedding Represents an embedding vector returned by embedding endpoint. Builder EmbeddingCreateBody Builder Deserializer Serializer Input Input text to embed, encoded as a string or array of tokens. EncodingFormat The format to return the embeddings in. EmbeddingCreateParams Creates an embedding vector representing the input text. EmbeddingModel Builder ErrorObject Deserializer Serializer FileChunkingStrategy The strategy used to chunk the file. Deserializer Serializer FileChunkingStrategyParam The chunking strategy used to chunk the file(s). Builder Builder FileCitation FileCitationAnnotation A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Builder Builder FileCitation FileCitationDeltaAnnotation A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Builder FileDeleteParams Delete a file. Builder FileDeleted Builder Response AutoPager FileListPage Returns a list of files. Builder Response AutoPager FileListPageAsync Returns a list of files. Builder Order Sort order by the created_at
timestamp of the objects.FileListParams Returns a list of files. Builder Purpose The intended purpose of the file. Status Deprecated. FileObject The File
object represents a document that has been uploaded to OpenAI.Builder Builder FilePath FilePathAnnotation A URL for the file that's generated when the assistant used the code_interpreter
tool to generate a file.Builder Builder FilePath FilePathDeltaAnnotation A URL for the file that's generated when the assistant used the code_interpreter
tool to generate a file.FilePurpose The intended purpose of the uploaded file. Builder FileRetrieveParams Returns information about a specific file. Builder Builder Builder Ranker The ranker to use for the file search. RankingOptions The ranking options for the file search. FileSearch Overrides for the file search tool. FileSearchTool Builder Builder Builder RankingOptions The ranking options for the file search. Builder Builder Type The type of the content. Content Result A result instance of the file search. FileSearch For now, this is always going to be an empty object. FileSearchToolCall Builder FileSearchToolCallDelta Builder Builder Error For fine-tuning jobs that have failed
, this will contain more information on the cause of the failure.Builder Deserializer Serializer BatchSize Number of examples in each batch. Deserializer Serializer LearningRateMultiplier Scaling factor for the learning rate. Deserializer Serializer NEpochs The number of epochs to train the model for. Hyperparameters The hyperparameters used for the fine-tuning job. Status The current status of the fine-tuning job, which can be either validating_files
,queued
,running
,succeeded
,failed
, orcancelled
.Builder Builder Builder Deserializer Serializer BatchSize Number of examples in each batch. Deserializer Serializer Beta The beta value for the DPO method. Deserializer Serializer LearningRateMultiplier Scaling factor for the learning rate. Deserializer Serializer NEpochs The number of epochs to train the model for. Hyperparameters The hyperparameters used for the fine-tuning job. Dpo Configuration for the DPO fine-tuning method. Builder Builder Deserializer Serializer BatchSize Number of examples in each batch. Deserializer Serializer LearningRateMultiplier Scaling factor for the learning rate. Deserializer Serializer NEpochs The number of epochs to train the model for. Hyperparameters The hyperparameters used for the fine-tuning job. Supervised Configuration for the supervised fine-tuning method. Type The type of method. Method The method used for fine-tuning. FineTuningJob The fine_tuning.job
object represents a fine-tuning job that has been created through the API.Builder FineTuningJobCancelParams Immediately cancel a fine-tune job. Builder Builder Metrics Metrics at the step number during the fine-tuning job. FineTuningJobCheckpoint The fine_tuning.job.checkpoint
object represents a model checkpoint for a fine-tuning job that is ready to use.Builder Response AutoPager FineTuningJobCheckpointListPage List checkpoints for a fine-tuning job. Builder Response AutoPager FineTuningJobCheckpointListPageAsync List checkpoints for a fine-tuning job. Builder FineTuningJobCheckpointListParams List checkpoints for a fine-tuning job. Builder FineTuningJobCreateBody Builder Model The name of the model to fine-tune. Builder Deserializer Serializer BatchSize Number of examples in each batch. Deserializer Serializer LearningRateMultiplier Scaling factor for the learning rate. Deserializer Serializer NEpochs The number of epochs to train the model for. Hyperparameters The hyperparameters used for the fine-tuning job. Builder Builder Wandb The settings for your integration with Weights and Biases. Integration Builder Builder Builder Deserializer Serializer BatchSize Number of examples in each batch. Deserializer Serializer Beta The beta value for the DPO method. Deserializer Serializer LearningRateMultiplier Scaling factor for the learning rate. Deserializer Serializer NEpochs The number of epochs to train the model for. Hyperparameters The hyperparameters used for the fine-tuning job. Dpo Configuration for the DPO fine-tuning method. Builder Builder Deserializer Serializer BatchSize Number of examples in each batch. Deserializer Serializer LearningRateMultiplier Scaling factor for the learning rate. Deserializer Serializer NEpochs The number of epochs to train the model for. Hyperparameters The hyperparameters used for the fine-tuning job. Supervised Configuration for the supervised fine-tuning method. Type The type of method. Method The method used for fine-tuning. FineTuningJobCreateParams Creates a fine-tuning job which begins the process of creating a new model from a given dataset. Builder Level The log level of the event. Type The type of event. FineTuningJobEvent Fine-tuning job event object Builder Response AutoPager FineTuningJobListEventsPage Get status updates for a fine-tuning job. Builder Response AutoPager FineTuningJobListEventsPageAsync Get status updates for a fine-tuning job. Builder FineTuningJobListEventsParams Get status updates for a fine-tuning job. Builder Response AutoPager FineTuningJobListPage List your organization's fine-tuning jobs Builder Response AutoPager FineTuningJobListPageAsync List your organization's fine-tuning jobs Builder FineTuningJobListParams List your organization's fine-tuning jobs Builder FineTuningJobRetrieveParams Get info about a fine-tuning job. Builder FineTuningJobWandbIntegration The settings for your integration with Weights and Biases. Builder FineTuningJobWandbIntegrationObject Builder FunctionDefinition Builder FunctionParameters The parameters the functions accepts, described as a JSON Schema object. Builder FunctionTool Builder Builder Function The definition of the function that was called. FunctionToolCall Builder Builder Function The definition of the function that was called. FunctionToolCallDelta Builder Image Represents the url or the content of an image generated by the OpenAI API. Builder Detail Specifies the detail level of the image if specified by the user. ImageFile Builder ImageFileContentBlock References an image File in the content of a message. Builder Detail Specifies the detail level of the image if specified by the user. ImageFileDelta Builder ImageFileDeltaBlock References an image File in the content of a message. Builder ImageGenerateBody Builder Quality The quality of the image that will be generated. ResponseFormat The format in which the generated images are returned. Size The size of the generated images. Style The style of the generated images. ImageGenerateParams Creates an image given a prompt. ImageModel Builder Detail Specifies the detail level of the image. ImageUrl Builder ImageUrlContentBlock References an image URL in the content of a message. Builder Detail Specifies the detail level of the image. ImageUrlDelta Builder ImageUrlDeltaBlock References an image URL in the content of a message. Builder ImagesResponse Builder Builder Deserializer Serializer Tool Attachment Builder Reason The reason the message is incomplete. IncompleteDetails On an incomplete message, details about why the message is incomplete. Role The entity that produced the message. Status The status of the message, which can be either in_progress
,incomplete
, orcompleted
.Message Represents a message within a thread. Deserializer Serializer MessageContent References an image File in the content of a message. Deserializer Serializer MessageContentDelta References an image File in the content of a message. Deserializer Serializer MessageContentPartParam References an image File in the content of a message. Builder Builder MessageCreation MessageCreationStepDetails Details of the message creation by the run step. Builder MessageDeleted Builder Role The entity that produced the message. MessageDelta The delta containing the fields that have changed on the Message. Builder MessageDeltaEvent Represents a message delta i.e. Deserializer Serializer Builder ThreadMessageCreated Occurs when a message is created. Builder ThreadMessageInProgress Occurs when a message moves to an in_progress
state.Builder ThreadMessageDelta Occurs when parts of a Message are being streamed. Builder ThreadMessageCompleted Occurs when a message is completed. Builder ThreadMessageIncomplete Occurs when a message ends before it is completed. MessageStreamEvent Occurs when a message is created. Builder Model Describes an OpenAI model offering that can be used with the API. Builder ModelDeleteParams Delete a fine-tuned model. Builder ModelDeleted Builder Response AutoPager ModelListPage Lists the currently available models, and provides basic information about each one such as the owner and availability. Builder Response AutoPager ModelListPageAsync Lists the currently available models, and provides basic information about each one such as the owner and availability. Builder ModelListParams Lists the currently available models, and provides basic information about each one such as the owner and availability. Builder ModelRetrieveParams Retrieves a model instance, providing basic information about the model such as the owner and permissioning. Builder Builder Categories A list of the categories, and whether they are flagged or not. Builder Harassment HarassmentThreatening Hate HateThreatening Illicit IllicitViolent SelfHarm SelfHarmInstruction SelfHarmIntent Sexual SexualMinor Violence ViolenceGraphic CategoryAppliedInputTypes A list of the categories along with the input type(s) that the score applies to. Builder CategoryScores A list of the categories along with their scores as predicted by model. Moderation Builder ModerationCreateBody Builder Deserializer Serializer Input Input (or inputs) to classify. ModerationCreateParams Classifies if text and/or image inputs are potentially harmful. Builder ModerationCreateResponse Represents if a given text input is potentially harmful. Builder Builder ImageUrl Contains either an image URL or a data URL for a base64 encoded image. ModerationImageUrlInput An object describing an image to classify. ModerationModel Deserializer Serializer ModerationMultiModalInput An object describing an image to classify. Builder ModerationTextInput An object describing text to classify. Builder OtherFileChunkingStrategyObject This is returned when the chunking strategy is unknown. Builder RefusalContentBlock The refusal content generated by the assistant. Builder RefusalDeltaBlock The refusal content that is part of a message. Builder Builder Function The function definition. RequiredActionFunctionToolCall Tool call objects Builder ResponseFormatJsonObject Builder Builder Builder Schema The schema for the response format, described as a JSON Schema object. JsonSchema ResponseFormatJsonSchema Builder ResponseFormatText Builder Builder Reason The reason why the run is incomplete. IncompleteDetails Details on why the run is incomplete. Builder Code One of server_error
,rate_limit_exceeded
, orinvalid_prompt
.LastError The last error associated with this run. Builder Builder SubmitToolOutputs Details on the tool outputs needed for this run to continue. RequiredAction Details on the action required to continue the run. Builder Type The truncation strategy to use for the thread. TruncationStrategy Controls for how a thread will be truncated prior to the run. Builder Usage Usage statistics related to the run. Run Represents an execution run on a thread. RunStatus The status of the run, which can be either queued
,in_progress
,requires_action
,cancelling
,cancelled
,failed
,completed
,incomplete
, orexpired
.Builder Builder Code One of server_error
orrate_limit_exceeded
.LastError The last error associated with this run step. Status The status of the run step, which can be either in_progress
,cancelled
,failed
,completed
, orexpired
.Deserializer Serializer StepDetails The details of the run step. Type The type of run step, which can be either message_creation
ortool_calls
.Builder Usage Usage statistics related to the run step. RunStep Represents a step in execution of a run. Builder Deserializer Serializer StepDetails The details of the run step. RunStepDelta The delta containing the fields that have changed on the run step. Builder RunStepDeltaEvent Represents a run step delta i.e. Builder Builder MessageCreation RunStepDeltaMessageDelta Details of the message creation by the run step. RunStepInclude Deserializer Serializer Builder ThreadRunStepCreated Occurs when a run step is created. Builder ThreadRunStepInProgress Occurs when a run step moves to an in_progress
state.Builder ThreadRunStepDelta Occurs when parts of a run step are being streamed. Builder ThreadRunStepCompleted Occurs when a run step is completed. Builder ThreadRunStepFailed Occurs when a run step fails. Builder ThreadRunStepCancelled Occurs when a run step is cancelled. Builder ThreadRunStepExpired Occurs when a run step expires. RunStepStreamEvent Occurs when a run step is created. Deserializer Serializer Builder ThreadRunCreated Occurs when a new run is created. Builder ThreadRunQueued Occurs when a run moves to a queued
status.Builder ThreadRunInProgress Occurs when a run moves to an in_progress
status.Builder ThreadRunRequiresAction Occurs when a run moves to a requires_action
status.Builder ThreadRunCompleted Occurs when a run is completed. Builder ThreadRunIncomplete Occurs when a run ends with status incomplete
.Builder ThreadRunFailed Occurs when a run fails. Builder ThreadRunCancelling Occurs when a run moves to a cancelling
status.Builder ThreadRunCancelled Occurs when a run is cancelled. Builder ThreadRunExpired Occurs when a run expires. RunStreamEvent Occurs when a new run is created. Builder StaticFileChunkingStrategy Builder StaticFileChunkingStrategyObject Builder StaticFileChunkingStrategyObjectParam Builder Text Builder TextContentBlock The text content that is part of a message. Builder TextContentBlockParam The text content that is part of a message. Builder TextDelta Builder TextDeltaBlock The text content that is part of a message. Builder Builder Builder CodeInterpreter Builder FileSearch ToolResources A set of resources that are made available to the assistant's tools in this thread. Thread Represents a thread that contains messages. Builder ThreadDeleted Builder ThreadStreamEvent Occurs when a new thread is created. Deserializer Serializer ToolCall Details of the Code Interpreter tool call the run step was involved in. Deserializer Serializer ToolCallDelta Details of the Code Interpreter tool call the run step was involved in. Builder ToolCallDeltaObject Details of the tool call. Builder ToolCallsStepDetails Details of the tool call. Builder Status The status of the Upload. Upload The Upload object can accept byte chunks in the form of Parts. Builder UploadCancelParams Cancels the Upload. Builder UploadCompleteBody Builder UploadCompleteParams Completes the Upload. Builder UploadCreateBody Builder UploadCreateParams Creates an intermediate Upload object that you can add Parts to. Builder UploadPart The upload Part represents a chunk of bytes we can add to an Upload object. Builder Builder FileCounts Status The status of the vector store, which can be either expired
,in_progress
, orcompleted
.Builder ExpiresAfter The expiration policy for a vector store. VectorStore A vector store is a collection of processed files can be used by the file_search
tool.Builder VectorStoreDeleted Builder Builder Code One of server_error
orrate_limit_exceeded
.LastError The last error associated with this vector store file. Status The status of the vector store file, which can be either in_progress
,completed
,cancelled
, orfailed
.VectorStoreFile A list of files attached to a vector store. Builder Builder FileCounts Status The status of the vector store files batch, which can be either in_progress
,completed
,cancelled
orfailed
.VectorStoreFileBatch A batch of files attached to a vector store. Builder VectorStoreFileDeleted -