Versions in this module Expand all Collapse all v0 v0.1.1 May 7, 2024 v0.1.0 Mar 5, 2024 Changes in this version + type Assistant struct + CreatedAt *time.Time + DeploymentName *string + Description *string + FileIDs []string + ID *string + Instructions *string + Metadata map[string]*string + Name *string + Object *string + Tools []ToolDefinitionClassification + func (a *Assistant) UnmarshalJSON(data []byte) error + func (a Assistant) MarshalJSON() ([]byte, error) + type AssistantCreationBody struct + DeploymentName *string + Description *string + FileIDs []string + Instructions *string + Metadata map[string]*string + Name *string + Tools []ToolDefinitionClassification + func (a *AssistantCreationBody) UnmarshalJSON(data []byte) error + func (a AssistantCreationBody) MarshalJSON() ([]byte, error) + type AssistantDeletionStatus struct + Deleted *bool + ID *string + Object *string + func (a *AssistantDeletionStatus) UnmarshalJSON(data []byte) error + func (a AssistantDeletionStatus) MarshalJSON() ([]byte, error) + type AssistantFile struct + AssistantID *string + CreatedAt *time.Time + ID *string + Object *string + func (a *AssistantFile) UnmarshalJSON(data []byte) error + func (a AssistantFile) MarshalJSON() ([]byte, error) + type AssistantFileDeletionStatus struct + Deleted *bool + ID *string + Object *string + func (a *AssistantFileDeletionStatus) UnmarshalJSON(data []byte) error + func (a AssistantFileDeletionStatus) MarshalJSON() ([]byte, error) + type AssistantFilesPage struct + Data []AssistantFile + FirstID *string + HasMore *bool + LastID *string + Object *string + func (p *AssistantFilesPage) UnmarshalJSON(data []byte) error + func (p AssistantFilesPage) MarshalJSON() ([]byte, error) + type AssistantThread struct + CreatedAt *time.Time + ID *string + Metadata map[string]*string + Object *string + func (a *AssistantThread) UnmarshalJSON(data []byte) error + func (a AssistantThread) MarshalJSON() ([]byte, error) + type AssistantThreadCreationOptions struct + Messages []ThreadInitializationMessage + Metadata map[string]*string + func (a *AssistantThreadCreationOptions) UnmarshalJSON(data []byte) error + func (a AssistantThreadCreationOptions) MarshalJSON() ([]byte, error) + type AssistantsPage struct + Data []Assistant + FirstID *string + HasMore *bool + LastID *string + Object *string + func (p *AssistantsPage) UnmarshalJSON(data []byte) error + func (p AssistantsPage) MarshalJSON() ([]byte, error) + type CancelRunOptions struct + type CancelRunResponse struct + type Client struct + func NewClient(endpoint string, credential azcore.TokenCredential, options *ClientOptions) (*Client, error) + func NewClientForOpenAI(endpoint string, credential *azcore.KeyCredential, options *ClientOptions) (*Client, error) + func NewClientWithKeyCredential(endpoint string, credential *azcore.KeyCredential, options *ClientOptions) (*Client, error) + func (c *Client) NewListAssistantFilesPager(assistantID string, options *ListAssistantFilesOptions) *runtime.Pager[ListAssistantFilesResponse] + func (c *Client) NewListAssistantsPager(options *ListAssistantsOptions) *runtime.Pager[ListAssistantsResponse] + func (c *Client) NewListMessageFilesPager(threadID string, messageID string, options *ListMessageFilesOptions) *runtime.Pager[ListMessageFilesResponse] + func (c *Client) NewListMessagesPager(threadID string, options *ListMessagesOptions) *runtime.Pager[ListMessagesResponse] + func (c *Client) NewListRunStepsPager(threadID string, runID string, options *ListRunStepsOptions) *runtime.Pager[ListRunStepsResponse] + func (c *Client) NewListRunsPager(threadID string, options *ListRunsOptions) *runtime.Pager[ListRunsResponse] + func (client *Client) CancelRun(ctx context.Context, threadID string, runID string, options *CancelRunOptions) (CancelRunResponse, error) + func (client *Client) CreateAssistant(ctx context.Context, body AssistantCreationBody, ...) (CreateAssistantResponse, error) + func (client *Client) CreateAssistantFile(ctx context.Context, assistantID string, body CreateAssistantFileBody, ...) (CreateAssistantFileResponse, error) + func (client *Client) CreateMessage(ctx context.Context, threadID string, body CreateMessageBody, ...) (CreateMessageResponse, error) + func (client *Client) CreateRun(ctx context.Context, threadID string, body CreateRunBody, ...) (CreateRunResponse, error) + func (client *Client) CreateThread(ctx context.Context, body AssistantThreadCreationOptions, ...) (CreateThreadResponse, error) + func (client *Client) CreateThreadAndRun(ctx context.Context, body CreateAndRunThreadOptions, ...) (CreateThreadAndRunResponse, error) + func (client *Client) DeleteAssistant(ctx context.Context, assistantID string, options *DeleteAssistantOptions) (DeleteAssistantResponse, error) + func (client *Client) DeleteAssistantFile(ctx context.Context, assistantID string, fileID string, ...) (DeleteAssistantFileResponse, error) + func (client *Client) DeleteFile(ctx context.Context, fileID string, options *DeleteFileOptions) (DeleteFileResponse, error) + func (client *Client) DeleteThread(ctx context.Context, threadID string, options *DeleteThreadOptions) (DeleteThreadResponse, error) + func (client *Client) GetAssistant(ctx context.Context, assistantID string, options *GetAssistantOptions) (GetAssistantResponse, error) + func (client *Client) GetAssistantFile(ctx context.Context, assistantID string, fileID string, ...) (GetAssistantFileResponse, error) + func (client *Client) GetFile(ctx context.Context, fileID string, options *GetFileOptions) (GetFileResponse, error) + func (client *Client) GetFileContent(ctx context.Context, fileID string, options *GetFileContentOptions) (GetFileContentResponse, error) + func (client *Client) GetMessage(ctx context.Context, threadID string, messageID string, ...) (GetMessageResponse, error) + func (client *Client) GetMessageFile(ctx context.Context, threadID string, messageID string, fileID string, ...) (GetMessageFileResponse, error) + func (client *Client) GetRun(ctx context.Context, threadID string, runID string, options *GetRunOptions) (GetRunResponse, error) + func (client *Client) GetRunStep(ctx context.Context, threadID string, runID string, stepID string, ...) (GetRunStepResponse, error) + func (client *Client) GetThread(ctx context.Context, threadID string, options *GetThreadOptions) (GetThreadResponse, error) + func (client *Client) ListFiles(ctx context.Context, options *ListFilesOptions) (ListFilesResponse, error) + func (client *Client) SubmitToolOutputsToRun(ctx context.Context, threadID string, runID string, ...) (SubmitToolOutputsToRunResponse, error) + func (client *Client) UpdateAssistant(ctx context.Context, assistantID string, body UpdateAssistantOptions, ...) (UpdateAssistantResponse, error) + func (client *Client) UpdateMessage(ctx context.Context, threadID string, messageID string, body UpdateMessageBody, ...) (UpdateMessageResponse, error) + func (client *Client) UpdateRun(ctx context.Context, threadID string, runID string, body UpdateRunBody, ...) (UpdateRunResponse, error) + func (client *Client) UpdateThread(ctx context.Context, threadID string, body UpdateThreadBody, ...) (UpdateThreadResponse, error) + func (client *Client) UploadFile(ctx context.Context, file io.ReadSeeker, purpose FilePurpose, ...) (UploadFileResponse, error) + type ClientOptions struct + type CodeInterpreterToolDefinition struct + Type *string + func (c *CodeInterpreterToolDefinition) GetToolDefinition() *ToolDefinition + func (c *CodeInterpreterToolDefinition) UnmarshalJSON(data []byte) error + func (c CodeInterpreterToolDefinition) MarshalJSON() ([]byte, error) + type CreateAndRunThreadOptions struct + AssistantID *string + DeploymentName *string + Instructions *string + Metadata map[string]*string + Thread *AssistantThreadCreationOptions + Tools []ToolDefinitionClassification + func (c *CreateAndRunThreadOptions) UnmarshalJSON(data []byte) error + func (c CreateAndRunThreadOptions) MarshalJSON() ([]byte, error) + type CreateAssistantFileBody struct + FileID *string + func (p *CreateAssistantFileBody) UnmarshalJSON(data []byte) error + func (p CreateAssistantFileBody) MarshalJSON() ([]byte, error) + type CreateAssistantFileOptions struct + type CreateAssistantFileResponse struct + type CreateAssistantOptions struct + type CreateAssistantResponse struct + type CreateMessageBody struct + Content *string + FileIDs []string + Metadata map[string]*string + Role *MessageRole + func (p *CreateMessageBody) UnmarshalJSON(data []byte) error + func (p CreateMessageBody) MarshalJSON() ([]byte, error) + type CreateMessageOptions struct + type CreateMessageResponse struct + type CreateRunBody struct + AdditionalInstructions *string + AssistantID *string + DeploymentName *string + Instructions *string + Metadata map[string]*string + Tools []ToolDefinitionClassification + func (c *CreateRunBody) UnmarshalJSON(data []byte) error + func (c CreateRunBody) MarshalJSON() ([]byte, error) + type CreateRunOptions struct + type CreateRunResponse struct + type CreateThreadAndRunOptions struct + type CreateThreadAndRunResponse struct + type CreateThreadOptions struct + type CreateThreadResponse struct + type DeleteAssistantFileOptions struct + type DeleteAssistantFileResponse struct + type DeleteAssistantOptions struct + type DeleteAssistantResponse struct + type DeleteFileOptions struct + type DeleteFileResponse struct + type DeleteThreadOptions struct + type DeleteThreadResponse struct + type FileDeletionStatus struct + Deleted *bool + ID *string + Object *string + func (f *FileDeletionStatus) UnmarshalJSON(data []byte) error + func (f FileDeletionStatus) MarshalJSON() ([]byte, error) + type FileListResponse struct + Data []OpenAIFile + Object *string + func (f *FileListResponse) UnmarshalJSON(data []byte) error + func (f FileListResponse) MarshalJSON() ([]byte, error) + type FilePurpose string + const FilePurposeAssistants + const FilePurposeAssistantsOutput + const FilePurposeFineTune + const FilePurposeFineTuneResults + func PossibleFilePurposeValues() []FilePurpose + type FunctionDefinition struct + Description *string + Name *string + Parameters any + func (f *FunctionDefinition) UnmarshalJSON(data []byte) error + func (f FunctionDefinition) MarshalJSON() ([]byte, error) + type FunctionToolDefinition struct + Function *FunctionDefinition + Type *string + func (f *FunctionToolDefinition) GetToolDefinition() *ToolDefinition + func (f *FunctionToolDefinition) UnmarshalJSON(data []byte) error + func (f FunctionToolDefinition) MarshalJSON() ([]byte, error) + type GetAssistantFileOptions struct + type GetAssistantFileResponse struct + type GetAssistantOptions struct + type GetAssistantResponse struct + type GetFileContentOptions struct + type GetFileContentResponse struct + Content io.ReadCloser + type GetFileOptions struct + type GetFileResponse struct + type GetMessageFileOptions struct + type GetMessageFileResponse struct + type GetMessageOptions struct + type GetMessageResponse struct + type GetRunOptions struct + type GetRunResponse struct + type GetRunStepOptions struct + type GetRunStepResponse struct + type GetThreadOptions struct + type GetThreadResponse struct + type ListAssistantFilesOptions struct + After *string + Before *string + Limit *int32 + Order *ListSortOrder + type ListAssistantFilesResponse struct + type ListAssistantsOptions struct + After *string + Before *string + Limit *int32 + Order *ListSortOrder + type ListAssistantsResponse struct + type ListFilesOptions struct + Purpose *FilePurpose + type ListFilesResponse struct + type ListMessageFilesOptions struct + After *string + Before *string + Limit *int32 + Order *ListSortOrder + type ListMessageFilesResponse struct + type ListMessagesOptions struct + After *string + Before *string + Limit *int32 + Order *ListSortOrder + type ListMessagesResponse struct + type ListRunStepsOptions struct + After *string + Before *string + Limit *int32 + Order *ListSortOrder + type ListRunStepsResponse struct + type ListRunsOptions struct + After *string + Before *string + Limit *int32 + Order *ListSortOrder + type ListRunsResponse struct + type ListSortOrder string + const ListSortOrderAscending + const ListSortOrderDescending + func PossibleListSortOrderValues() []ListSortOrder + type MessageContent struct + Type *string + func (m *MessageContent) GetMessageContent() *MessageContent + func (m *MessageContent) UnmarshalJSON(data []byte) error + func (m MessageContent) MarshalJSON() ([]byte, error) + type MessageContentClassification interface + GetMessageContent func() *MessageContent + type MessageFile struct + CreatedAt *time.Time + ID *string + MessageID *string + Object *string + func (m *MessageFile) UnmarshalJSON(data []byte) error + func (m MessageFile) MarshalJSON() ([]byte, error) + type MessageFilesPage struct + Data []MessageFile + FirstID *string + HasMore *bool + LastID *string + Object *string + func (p *MessageFilesPage) UnmarshalJSON(data []byte) error + func (p MessageFilesPage) MarshalJSON() ([]byte, error) + type MessageImageFileContent struct + ImageFile *MessageImageFileDetails + Type *string + func (m *MessageImageFileContent) GetMessageContent() *MessageContent + func (m *MessageImageFileContent) UnmarshalJSON(data []byte) error + func (m MessageImageFileContent) MarshalJSON() ([]byte, error) + type MessageImageFileDetails struct + FileID *string + func (m *MessageImageFileDetails) UnmarshalJSON(data []byte) error + func (m MessageImageFileDetails) MarshalJSON() ([]byte, error) + type MessageRole string + const MessageRoleAssistant + const MessageRoleUser + func PossibleMessageRoleValues() []MessageRole + type MessageTextAnnotation struct + EndIndex *int32 + StartIndex *int32 + Text *string + Type *string + func (m *MessageTextAnnotation) GetMessageTextAnnotation() *MessageTextAnnotation + func (m *MessageTextAnnotation) UnmarshalJSON(data []byte) error + func (m MessageTextAnnotation) MarshalJSON() ([]byte, error) + type MessageTextAnnotationClassification interface + GetMessageTextAnnotation func() *MessageTextAnnotation + type MessageTextContent struct + Text *MessageTextDetails + Type *string + func (m *MessageTextContent) GetMessageContent() *MessageContent + func (m *MessageTextContent) UnmarshalJSON(data []byte) error + func (m MessageTextContent) MarshalJSON() ([]byte, error) + type MessageTextDetails struct + Annotations []MessageTextAnnotationClassification + Value *string + func (m *MessageTextDetails) UnmarshalJSON(data []byte) error + func (m MessageTextDetails) MarshalJSON() ([]byte, error) + type MessageTextFileCitationAnnotation struct + EndIndex *int32 + FileCitation *MessageTextFileCitationDetails + StartIndex *int32 + Text *string + Type *string + func (m *MessageTextFileCitationAnnotation) GetMessageTextAnnotation() *MessageTextAnnotation + func (m *MessageTextFileCitationAnnotation) UnmarshalJSON(data []byte) error + func (m MessageTextFileCitationAnnotation) MarshalJSON() ([]byte, error) + type MessageTextFileCitationDetails struct + FileID *string + Quote *string + func (m *MessageTextFileCitationDetails) UnmarshalJSON(data []byte) error + func (m MessageTextFileCitationDetails) MarshalJSON() ([]byte, error) + type MessageTextFilePathAnnotation struct + EndIndex *int32 + FilePath *MessageTextFilePathDetails + StartIndex *int32 + Text *string + Type *string + func (m *MessageTextFilePathAnnotation) GetMessageTextAnnotation() *MessageTextAnnotation + func (m *MessageTextFilePathAnnotation) UnmarshalJSON(data []byte) error + func (m MessageTextFilePathAnnotation) MarshalJSON() ([]byte, error) + type MessageTextFilePathDetails struct + FileID *string + func (m *MessageTextFilePathDetails) UnmarshalJSON(data []byte) error + func (m MessageTextFilePathDetails) MarshalJSON() ([]byte, error) + type MessagesPage struct + Data []ThreadMessage + FirstID *string + HasMore *bool + LastID *string + Object *string + func (p *MessagesPage) UnmarshalJSON(data []byte) error + func (p MessagesPage) MarshalJSON() ([]byte, error) + type OpenAIFile struct + Bytes *int32 + CreatedAt *time.Time + Filename *string + ID *string + Object *string + Purpose *FilePurpose + func (o *OpenAIFile) UnmarshalJSON(data []byte) error + func (o OpenAIFile) MarshalJSON() ([]byte, error) + type RequiredAction struct + Type *string + func (r *RequiredAction) GetRequiredAction() *RequiredAction + func (r *RequiredAction) UnmarshalJSON(data []byte) error + func (r RequiredAction) MarshalJSON() ([]byte, error) + type RequiredActionClassification interface + GetRequiredAction func() *RequiredAction + type RequiredFunctionToolCall struct + Function *RequiredFunctionToolCallDetails + ID *string + Type *string + func (r *RequiredFunctionToolCall) GetRequiredToolCall() *RequiredToolCall + func (r *RequiredFunctionToolCall) UnmarshalJSON(data []byte) error + func (r RequiredFunctionToolCall) MarshalJSON() ([]byte, error) + type RequiredFunctionToolCallDetails struct + Arguments *string + Name *string + func (r *RequiredFunctionToolCallDetails) UnmarshalJSON(data []byte) error + func (r RequiredFunctionToolCallDetails) MarshalJSON() ([]byte, error) + type RequiredToolCall struct + ID *string + Type *string + func (r *RequiredToolCall) GetRequiredToolCall() *RequiredToolCall + func (r *RequiredToolCall) UnmarshalJSON(data []byte) error + func (r RequiredToolCall) MarshalJSON() ([]byte, error) + type RequiredToolCallClassification interface + GetRequiredToolCall func() *RequiredToolCall + type RetrievalToolDefinition struct + Type *string + func (r *RetrievalToolDefinition) GetToolDefinition() *ToolDefinition + func (r *RetrievalToolDefinition) UnmarshalJSON(data []byte) error + func (r RetrievalToolDefinition) MarshalJSON() ([]byte, error) + type RunError struct + Code *string + Message *string + func (r *RunError) UnmarshalJSON(data []byte) error + func (r RunError) MarshalJSON() ([]byte, error) + type RunStatus string + const RunStatusCancelled + const RunStatusCancelling + const RunStatusCompleted + const RunStatusExpired + const RunStatusFailed + const RunStatusInProgress + const RunStatusQueued + const RunStatusRequiresAction + func PossibleRunStatusValues() []RunStatus + type RunStep struct + AssistantID *string + CancelledAt *time.Time + CompletedAt *time.Time + CreatedAt *time.Time + ExpiredAt *time.Time + FailedAt *time.Time + ID *string + LastError *RunStepLastError + Metadata map[string]*string + Object *string + RunID *string + Status *RunStepStatus + StepDetails RunStepDetailsClassification + ThreadID *string + Type *RunStepType + func (r *RunStep) UnmarshalJSON(data []byte) error + func (r RunStep) MarshalJSON() ([]byte, error) + type RunStepCodeInterpreterImageOutput struct + Image *RunStepCodeInterpreterImageReference + Type *string + func (r *RunStepCodeInterpreterImageOutput) GetRunStepCodeInterpreterToolCallOutput() *RunStepCodeInterpreterToolCallOutput + func (r *RunStepCodeInterpreterImageOutput) UnmarshalJSON(data []byte) error + func (r RunStepCodeInterpreterImageOutput) MarshalJSON() ([]byte, error) + type RunStepCodeInterpreterImageReference struct + FileID *string + func (r *RunStepCodeInterpreterImageReference) UnmarshalJSON(data []byte) error + func (r RunStepCodeInterpreterImageReference) MarshalJSON() ([]byte, error) + type RunStepCodeInterpreterLogOutput struct + Logs *string + Type *string + func (r *RunStepCodeInterpreterLogOutput) GetRunStepCodeInterpreterToolCallOutput() *RunStepCodeInterpreterToolCallOutput + func (r *RunStepCodeInterpreterLogOutput) UnmarshalJSON(data []byte) error + func (r RunStepCodeInterpreterLogOutput) MarshalJSON() ([]byte, error) + type RunStepCodeInterpreterToolCall struct + CodeInterpreter *RunStepCodeInterpreterToolCallDetails + ID *string + Type *string + func (r *RunStepCodeInterpreterToolCall) GetRunStepToolCall() *RunStepToolCall + func (r *RunStepCodeInterpreterToolCall) UnmarshalJSON(data []byte) error + func (r RunStepCodeInterpreterToolCall) MarshalJSON() ([]byte, error) + type RunStepCodeInterpreterToolCallDetails struct + Input *string + Outputs []RunStepCodeInterpreterToolCallOutputClassification + func (r *RunStepCodeInterpreterToolCallDetails) UnmarshalJSON(data []byte) error + func (r RunStepCodeInterpreterToolCallDetails) MarshalJSON() ([]byte, error) + type RunStepCodeInterpreterToolCallOutput struct + Type *string + func (r *RunStepCodeInterpreterToolCallOutput) GetRunStepCodeInterpreterToolCallOutput() *RunStepCodeInterpreterToolCallOutput + func (r *RunStepCodeInterpreterToolCallOutput) UnmarshalJSON(data []byte) error + func (r RunStepCodeInterpreterToolCallOutput) MarshalJSON() ([]byte, error) + type RunStepCodeInterpreterToolCallOutputClassification interface + GetRunStepCodeInterpreterToolCallOutput func() *RunStepCodeInterpreterToolCallOutput + type RunStepDetails struct + Type *RunStepType + func (r *RunStepDetails) GetRunStepDetails() *RunStepDetails + func (r *RunStepDetails) UnmarshalJSON(data []byte) error + func (r RunStepDetails) MarshalJSON() ([]byte, error) + type RunStepDetailsClassification interface + GetRunStepDetails func() *RunStepDetails + type RunStepError struct + Code *RunStepErrorCode + Message *string + func (r *RunStepError) UnmarshalJSON(data []byte) error + func (r RunStepError) MarshalJSON() ([]byte, error) + type RunStepErrorCode string + const RunStepErrorCodeRateLimitExceeded + const RunStepErrorCodeServerError + func PossibleRunStepErrorCodeValues() []RunStepErrorCode + type RunStepFunctionToolCall struct + Function *RunStepFunctionToolCallDetails + ID *string + Type *string + func (r *RunStepFunctionToolCall) GetRunStepToolCall() *RunStepToolCall + func (r *RunStepFunctionToolCall) UnmarshalJSON(data []byte) error + func (r RunStepFunctionToolCall) MarshalJSON() ([]byte, error) + type RunStepFunctionToolCallDetails struct + Arguments *string + Name *string + Output *string + func (r *RunStepFunctionToolCallDetails) UnmarshalJSON(data []byte) error + func (r RunStepFunctionToolCallDetails) MarshalJSON() ([]byte, error) + type RunStepLastError struct + Code *RunStepErrorCode + Message *string + func (r *RunStepLastError) UnmarshalJSON(data []byte) error + func (r RunStepLastError) MarshalJSON() ([]byte, error) + type RunStepMessageCreationDetails struct + MessageCreation *RunStepMessageCreationReference + Type *RunStepType + func (r *RunStepMessageCreationDetails) GetRunStepDetails() *RunStepDetails + func (r *RunStepMessageCreationDetails) UnmarshalJSON(data []byte) error + func (r RunStepMessageCreationDetails) MarshalJSON() ([]byte, error) + type RunStepMessageCreationReference struct + MessageID *string + func (r *RunStepMessageCreationReference) UnmarshalJSON(data []byte) error + func (r RunStepMessageCreationReference) MarshalJSON() ([]byte, error) + type RunStepRetrievalToolCall struct + ID *string + Retrieval map[string]*string + Type *string + func (r *RunStepRetrievalToolCall) GetRunStepToolCall() *RunStepToolCall + func (r *RunStepRetrievalToolCall) UnmarshalJSON(data []byte) error + func (r RunStepRetrievalToolCall) MarshalJSON() ([]byte, error) + type RunStepStatus string + const RunStepStatusCancelled + const RunStepStatusCompleted + const RunStepStatusExpired + const RunStepStatusFailed + const RunStepStatusInProgress + func PossibleRunStepStatusValues() []RunStepStatus + type RunStepToolCall struct + ID *string + Type *string + func (r *RunStepToolCall) GetRunStepToolCall() *RunStepToolCall + func (r *RunStepToolCall) UnmarshalJSON(data []byte) error + func (r RunStepToolCall) MarshalJSON() ([]byte, error) + type RunStepToolCallClassification interface + GetRunStepToolCall func() *RunStepToolCall + type RunStepToolCallDetails struct + ToolCalls []RunStepToolCallClassification + Type *RunStepType + func (r *RunStepToolCallDetails) GetRunStepDetails() *RunStepDetails + func (r *RunStepToolCallDetails) UnmarshalJSON(data []byte) error + func (r RunStepToolCallDetails) MarshalJSON() ([]byte, error) + type RunStepType string + const RunStepTypeMessageCreation + const RunStepTypeToolCalls + func PossibleRunStepTypeValues() []RunStepType + type RunStepsPage struct + Data []RunStep + FirstID *string + HasMore *bool + LastID *string + Object *string + func (p *RunStepsPage) UnmarshalJSON(data []byte) error + func (p RunStepsPage) MarshalJSON() ([]byte, error) + type ServiceAPIVersions string + const ServiceAPIVersionsV20240215Preview + func PossibleServiceAPIVersionsValues() []ServiceAPIVersions + type SubmitToolOutputsAction struct + SubmitToolOutputs *SubmitToolOutputsDetails + Type *string + func (s *SubmitToolOutputsAction) GetRequiredAction() *RequiredAction + func (s *SubmitToolOutputsAction) UnmarshalJSON(data []byte) error + func (s SubmitToolOutputsAction) MarshalJSON() ([]byte, error) + type SubmitToolOutputsDetails struct + ToolCalls []RequiredToolCallClassification + func (s *SubmitToolOutputsDetails) UnmarshalJSON(data []byte) error + func (s SubmitToolOutputsDetails) MarshalJSON() ([]byte, error) + type SubmitToolOutputsToRunBody struct + ToolOutputs []ToolOutput + func (p *SubmitToolOutputsToRunBody) UnmarshalJSON(data []byte) error + func (p SubmitToolOutputsToRunBody) MarshalJSON() ([]byte, error) + type SubmitToolOutputsToRunOptions struct + type SubmitToolOutputsToRunResponse struct + type ThreadDeletionStatus struct + Deleted *bool + ID *string + Object *string + func (t *ThreadDeletionStatus) UnmarshalJSON(data []byte) error + func (t ThreadDeletionStatus) MarshalJSON() ([]byte, error) + type ThreadInitializationMessage struct + Content *string + FileIDs []string + Metadata map[string]*string + Role *MessageRole + func (t *ThreadInitializationMessage) UnmarshalJSON(data []byte) error + func (t ThreadInitializationMessage) MarshalJSON() ([]byte, error) + type ThreadMessage struct + AssistantID *string + Content []MessageContentClassification + CreatedAt *time.Time + FileIDs []string + ID *string + Metadata map[string]*string + Object *string + Role *MessageRole + RunID *string + ThreadID *string + func (t *ThreadMessage) UnmarshalJSON(data []byte) error + func (t ThreadMessage) MarshalJSON() ([]byte, error) + type ThreadRun struct + AssistantID *string + CancelledAt *time.Time + CompletedAt *time.Time + CreatedAt *time.Time + DeploymentName *string + ExpiresAt *time.Time + FailedAt *time.Time + FileIDs []string + ID *string + Instructions *string + LastError *ThreadRunLastError + Metadata map[string]*string + Object *string + RequiredAction *ThreadRunRequiredAction + StartedAt *time.Time + Status *RunStatus + ThreadID *string + Tools []ToolDefinitionClassification + func (t *ThreadRun) UnmarshalJSON(data []byte) error + func (t ThreadRun) MarshalJSON() ([]byte, error) + type ThreadRunLastError struct + Code *string + Message *string + func (t *ThreadRunLastError) UnmarshalJSON(data []byte) error + func (t ThreadRunLastError) MarshalJSON() ([]byte, error) + type ThreadRunRequiredAction struct + Type *string + func (t *ThreadRunRequiredAction) GetRequiredAction() *RequiredAction + func (t *ThreadRunRequiredAction) UnmarshalJSON(data []byte) error + func (t ThreadRunRequiredAction) MarshalJSON() ([]byte, error) + type ThreadRunsPage struct + Data []ThreadRun + FirstID *string + HasMore *bool + LastID *string + Object *string + func (p *ThreadRunsPage) UnmarshalJSON(data []byte) error + func (p ThreadRunsPage) MarshalJSON() ([]byte, error) + type ToolDefinition struct + Type *string + func (t *ToolDefinition) GetToolDefinition() *ToolDefinition + func (t *ToolDefinition) UnmarshalJSON(data []byte) error + func (t ToolDefinition) MarshalJSON() ([]byte, error) + type ToolDefinitionClassification interface + GetToolDefinition func() *ToolDefinition + type ToolOutput struct + Output *string + ToolCallID *string + func (t *ToolOutput) UnmarshalJSON(data []byte) error + func (t ToolOutput) MarshalJSON() ([]byte, error) + type UpdateAssistantBody struct + DeploymentName *string + Description *string + FileIDs []string + Instructions *string + Metadata map[string]*string + Name *string + Tools []ToolDefinitionClassification + func (u *UpdateAssistantBody) UnmarshalJSON(data []byte) error + func (u UpdateAssistantBody) MarshalJSON() ([]byte, error) + type UpdateAssistantOptions struct + type UpdateAssistantResponse struct + type UpdateMessageBody struct + Metadata map[string]*string + func (p *UpdateMessageBody) UnmarshalJSON(data []byte) error + func (p UpdateMessageBody) MarshalJSON() ([]byte, error) + type UpdateMessageOptions struct + type UpdateMessageResponse struct + type UpdateRunBody struct + Metadata map[string]*string + func (p *UpdateRunBody) UnmarshalJSON(data []byte) error + func (p UpdateRunBody) MarshalJSON() ([]byte, error) + type UpdateRunOptions struct + type UpdateRunResponse struct + type UpdateThreadBody struct + Metadata map[string]*string + func (p *UpdateThreadBody) UnmarshalJSON(data []byte) error + func (p UpdateThreadBody) MarshalJSON() ([]byte, error) + type UpdateThreadOptions struct + type UpdateThreadResponse struct + type UploadFileOptions struct + Filename *string + type UploadFileResponse struct