Module assistants

Module assistants 

Source

Structs§

AssistantObject
Represents an assistant that can call the model and use tools.
AssistantToolCodeInterpreterResources
AssistantToolFileSearchResources
AssistantToolResources
AssistantToolsFileSearch
Retrieval tool
AssistantToolsFileSearchOverrides
AssistantToolsFunction
Function tool
AssistantVectorStore
AssistantsNamedToolChoice
Specifies a tool the model should use. Use to force the model to call a specific tool.
CodeInterpreter
CreateAssistantRequest
CreateAssistantRequestArgs
Builder for CreateAssistantRequest.
CreateAssistantToolFileSearchResources
CreateAssistantToolResources
CreateMessageRequest
CreateMessageRequestArgs
Builder for CreateMessageRequest.
CreateRunRequest
CreateRunRequestArgs
Builder for CreateRunRequest.
CreateThreadAndRunRequest
CreateThreadAndRunRequestArgs
Builder for CreateThreadAndRunRequest.
CreateThreadRequest
CreateThreadRequestArgs
Builder for CreateThreadRequest.
DeleteAssistantResponse
DeleteMessageResponse
DeleteThreadResponse
DeltaCodeInterpreter
FileCitation
FilePath
FileSearchRankingOptions
The ranking options for the file search. If not specified, the file search tool will use the auto ranker and a score_threshold of 0.
ImageFile
LastError
ListAssistantsResponse
ListMessagesResponse
ListRunStepsResponse
ListRunsResponse
MessageAttachment
MessageContentImageFileObject
References an image File in the content of a message.
MessageContentImageUrlObject
References an image URL in the content of a message.
MessageContentRefusalObject
MessageContentTextAnnotationsFileCitationObject
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the “file_search” tool to search files.
MessageContentTextAnnotationsFilePathObject
MessageContentTextObject
The text content that is part of a message.
MessageCreation
MessageDelta
MessageDeltaContentImageFileObject
References an image File in the content of a message.
MessageDeltaContentImageUrlObject
MessageDeltaContentRefusalObject
MessageDeltaContentText
MessageDeltaContentTextAnnotationsFileCitationObject
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the “file_search” tool to search files.
MessageDeltaContentTextAnnotationsFilePathObject
A URL for the file that’s generated when the assistant used the code_interpreter tool to generate a file.
MessageDeltaContentTextObject
The text content that is part of a message.
MessageDeltaObject
Represents a message delta i.e. any changed fields on a message during streaming.
MessageIncompleteDetails
MessageObject
Represents a message within a thread.
MessageRequestContentTextObject
ModifyAssistantRequest
ModifyAssistantRequestArgs
Builder for ModifyAssistantRequest.
ModifyMessageRequest
ModifyRunRequest
ModifyThreadRequest
RequiredAction
RunCompletionUsage
RunObject
Represents an execution run on a thread.
RunObjectIncompleteDetails
RunStepCompletionUsage
RunStepDelta
RunStepDeltaObject
Represents a run step delta i.e. any changed fields on a run step during streaming.
RunStepDeltaStepDetailsMessageCreationObject
Details of the message creation by the run step.
RunStepDeltaStepDetailsToolCallsCodeObject
Details of the Code Interpreter tool call the run step was involved in.
RunStepDeltaStepDetailsToolCallsCodeOutputImageObject
Code interpreter image output
RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject
Text output from the Code Interpreter tool call as part of a run step.
RunStepDeltaStepDetailsToolCallsFileSearchObject
RunStepDeltaStepDetailsToolCallsFunctionObject
Function tool call
RunStepDeltaStepDetailsToolCallsObject
Details of the tool call.
RunStepDetailsMessageCreationObject
Details of the message creation by the run step.
RunStepDetailsToolCallsCodeObject
Code interpreter tool call
RunStepDetailsToolCallsCodeOutputImageObject
RunStepDetailsToolCallsCodeOutputLogsObject
Text output from the Code Interpreter tool call as part of a run step.
RunStepDetailsToolCallsFileSearchObject
File search tool call
RunStepDetailsToolCallsFileSearchObjectFileSearch
RunStepDetailsToolCallsFileSearchResultObject
A result instance of the file search.
RunStepDetailsToolCallsFileSearchResultObjectContent
RunStepDetailsToolCallsFunctionObject
RunStepDetailsToolCallsObject
Details of the tool call.
RunStepFunctionObject
RunStepFunctionObjectDelta
RunStepObject
Represents a step in execution of a run.
RunToolCallObject
StaticChunkingStrategy
Static Chunking Strategy
SubmitToolOutputs
SubmitToolOutputsRunRequest
TextData
ThreadObject
Represents a thread that contains messages.
ToolsOutputs
ToolsOutputsArgs
Builder for ToolsOutputs.
TruncationObject
Thread Truncation Controls

Enums§

AssistantStreamEvent
Represents an event emitted when streaming a Run.
AssistantToolType
AssistantTools
AssistantVectorStoreChunkingStrategy
AssistantsApiResponseFormatOption
Specifies the format that the model must output. Compatible with GPT-4o, GPT-4 Turbo, and all GPT-3.5 Turbo models since gpt-3.5-turbo-1106.
AssistantsApiToolChoiceOption
Controls which (if any) tool is called by the model. none means the model will not call any tools and instead generates a message. auto is the default value and means the model can pick between generating a message or calling one or more tools. required means the model must call one or more tools before responding to the user. Specifying a particular tool like {"type": "file_search"} or {"type": "function", "function": {"name": "my_function"}} forces the model to call that tool.
CodeInterpreterOutput
CreateMessageRequestContent
DeltaCodeInterpreterOutput
DeltaStepDetails
FileSearchRanker
LastErrorCode
MessageAttachmentTool
MessageContent
MessageContentInput
MessageContentTextAnnotations
MessageDeltaContent
MessageDeltaContentTextAnnotations
MessageIncompleteDetailsType
MessageRole
MessageStatus
RunObjectIncompleteDetailsReason
RunStatus
RunStepDeltaStepDetailsToolCalls
RunStepDetailsToolCalls
RunStepType
StepDetails
TruncationObjectType

Type Aliases§

AssistantEventStream