operations

package
v4.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelFineTuningJobRequest

type CancelFineTuningJobRequest struct {
	// The ID of the fine-tuning job to cancel.
	//
	FineTuningJobID string `pathParam:"style=simple,explode=false,name=fine_tuning_job_id"`
}

func (*CancelFineTuningJobRequest) GetFineTuningJobID

func (o *CancelFineTuningJobRequest) GetFineTuningJobID() string

type CancelFineTuningJobResponse

type CancelFineTuningJobResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	FineTuningJob *shared.FineTuningJob
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CancelFineTuningJobResponse) GetContentType

func (o *CancelFineTuningJobResponse) GetContentType() string

func (*CancelFineTuningJobResponse) GetFineTuningJob

func (o *CancelFineTuningJobResponse) GetFineTuningJob() *shared.FineTuningJob

func (*CancelFineTuningJobResponse) GetRawResponse

func (o *CancelFineTuningJobResponse) GetRawResponse() *http.Response

func (*CancelFineTuningJobResponse) GetStatusCode

func (o *CancelFineTuningJobResponse) GetStatusCode() int

type CancelRunRequest

type CancelRunRequest struct {
	// The ID of the run to cancel.
	RunID string `pathParam:"style=simple,explode=false,name=run_id"`
	// The ID of the thread to which this run belongs.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*CancelRunRequest) GetRunID

func (o *CancelRunRequest) GetRunID() string

func (*CancelRunRequest) GetThreadID

func (o *CancelRunRequest) GetThreadID() string

type CancelRunResponse

type CancelRunResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	RunObject *shared.RunObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CancelRunResponse) GetContentType

func (o *CancelRunResponse) GetContentType() string

func (*CancelRunResponse) GetRawResponse

func (o *CancelRunResponse) GetRawResponse() *http.Response

func (*CancelRunResponse) GetRunObject

func (o *CancelRunResponse) GetRunObject() *shared.RunObject

func (*CancelRunResponse) GetStatusCode

func (o *CancelRunResponse) GetStatusCode() int

type CreateAssistantFileRequest

type CreateAssistantFileRequest struct {
	CreateAssistantFileRequest shared.CreateAssistantFileRequest `request:"mediaType=application/json"`
	// The ID of the assistant for which to create a File.
	//
	AssistantID string `pathParam:"style=simple,explode=false,name=assistant_id"`
}

func (*CreateAssistantFileRequest) GetAssistantID

func (o *CreateAssistantFileRequest) GetAssistantID() string

func (*CreateAssistantFileRequest) GetCreateAssistantFileRequest

func (o *CreateAssistantFileRequest) GetCreateAssistantFileRequest() shared.CreateAssistantFileRequest

type CreateAssistantFileResponse

type CreateAssistantFileResponse struct {
	// OK
	AssistantFileObject *shared.AssistantFileObject
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateAssistantFileResponse) GetAssistantFileObject

func (o *CreateAssistantFileResponse) GetAssistantFileObject() *shared.AssistantFileObject

func (*CreateAssistantFileResponse) GetContentType

func (o *CreateAssistantFileResponse) GetContentType() string

func (*CreateAssistantFileResponse) GetRawResponse

func (o *CreateAssistantFileResponse) GetRawResponse() *http.Response

func (*CreateAssistantFileResponse) GetStatusCode

func (o *CreateAssistantFileResponse) GetStatusCode() int

type CreateAssistantResponse

type CreateAssistantResponse struct {
	// OK
	AssistantObject *shared.AssistantObject
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateAssistantResponse) GetAssistantObject

func (o *CreateAssistantResponse) GetAssistantObject() *shared.AssistantObject

func (*CreateAssistantResponse) GetContentType

func (o *CreateAssistantResponse) GetContentType() string

func (*CreateAssistantResponse) GetRawResponse

func (o *CreateAssistantResponse) GetRawResponse() *http.Response

func (*CreateAssistantResponse) GetStatusCode

func (o *CreateAssistantResponse) GetStatusCode() int

type CreateChatCompletionResponse

type CreateChatCompletionResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	CreateChatCompletionResponse *shared.CreateChatCompletionResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateChatCompletionResponse) GetContentType

func (o *CreateChatCompletionResponse) GetContentType() string

func (*CreateChatCompletionResponse) GetCreateChatCompletionResponse

func (o *CreateChatCompletionResponse) GetCreateChatCompletionResponse() *shared.CreateChatCompletionResponse

func (*CreateChatCompletionResponse) GetRawResponse

func (o *CreateChatCompletionResponse) GetRawResponse() *http.Response

func (*CreateChatCompletionResponse) GetStatusCode

func (o *CreateChatCompletionResponse) GetStatusCode() int

type CreateCompletionResponse

type CreateCompletionResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	CreateCompletionResponse *shared.CreateCompletionResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateCompletionResponse) GetContentType

func (o *CreateCompletionResponse) GetContentType() string

func (*CreateCompletionResponse) GetCreateCompletionResponse

func (o *CreateCompletionResponse) GetCreateCompletionResponse() *shared.CreateCompletionResponse

func (*CreateCompletionResponse) GetRawResponse

func (o *CreateCompletionResponse) GetRawResponse() *http.Response

func (*CreateCompletionResponse) GetStatusCode

func (o *CreateCompletionResponse) GetStatusCode() int

type CreateEmbeddingResponse

type CreateEmbeddingResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	CreateEmbeddingResponse *shared.CreateEmbeddingResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateEmbeddingResponse) GetContentType

func (o *CreateEmbeddingResponse) GetContentType() string

func (*CreateEmbeddingResponse) GetCreateEmbeddingResponse

func (o *CreateEmbeddingResponse) GetCreateEmbeddingResponse() *shared.CreateEmbeddingResponse

func (*CreateEmbeddingResponse) GetRawResponse

func (o *CreateEmbeddingResponse) GetRawResponse() *http.Response

func (*CreateEmbeddingResponse) GetStatusCode

func (o *CreateEmbeddingResponse) GetStatusCode() int

type CreateFileResponse

type CreateFileResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	OpenAIFile *shared.OpenAIFile
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateFileResponse) GetContentType

func (o *CreateFileResponse) GetContentType() string

func (*CreateFileResponse) GetOpenAIFile

func (o *CreateFileResponse) GetOpenAIFile() *shared.OpenAIFile

func (*CreateFileResponse) GetRawResponse

func (o *CreateFileResponse) GetRawResponse() *http.Response

func (*CreateFileResponse) GetStatusCode

func (o *CreateFileResponse) GetStatusCode() int

type CreateFineTuningJobResponse

type CreateFineTuningJobResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	FineTuningJob *shared.FineTuningJob
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateFineTuningJobResponse) GetContentType

func (o *CreateFineTuningJobResponse) GetContentType() string

func (*CreateFineTuningJobResponse) GetFineTuningJob

func (o *CreateFineTuningJobResponse) GetFineTuningJob() *shared.FineTuningJob

func (*CreateFineTuningJobResponse) GetRawResponse

func (o *CreateFineTuningJobResponse) GetRawResponse() *http.Response

func (*CreateFineTuningJobResponse) GetStatusCode

func (o *CreateFineTuningJobResponse) GetStatusCode() int

type CreateImageEditResponse

type CreateImageEditResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ImagesResponse *shared.ImagesResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateImageEditResponse) GetContentType

func (o *CreateImageEditResponse) GetContentType() string

func (*CreateImageEditResponse) GetImagesResponse

func (o *CreateImageEditResponse) GetImagesResponse() *shared.ImagesResponse

func (*CreateImageEditResponse) GetRawResponse

func (o *CreateImageEditResponse) GetRawResponse() *http.Response

func (*CreateImageEditResponse) GetStatusCode

func (o *CreateImageEditResponse) GetStatusCode() int

type CreateImageResponse

type CreateImageResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ImagesResponse *shared.ImagesResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateImageResponse) GetContentType

func (o *CreateImageResponse) GetContentType() string

func (*CreateImageResponse) GetImagesResponse

func (o *CreateImageResponse) GetImagesResponse() *shared.ImagesResponse

func (*CreateImageResponse) GetRawResponse

func (o *CreateImageResponse) GetRawResponse() *http.Response

func (*CreateImageResponse) GetStatusCode

func (o *CreateImageResponse) GetStatusCode() int

type CreateImageVariationResponse

type CreateImageVariationResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ImagesResponse *shared.ImagesResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateImageVariationResponse) GetContentType

func (o *CreateImageVariationResponse) GetContentType() string

func (*CreateImageVariationResponse) GetImagesResponse

func (o *CreateImageVariationResponse) GetImagesResponse() *shared.ImagesResponse

func (*CreateImageVariationResponse) GetRawResponse

func (o *CreateImageVariationResponse) GetRawResponse() *http.Response

func (*CreateImageVariationResponse) GetStatusCode

func (o *CreateImageVariationResponse) GetStatusCode() int

type CreateMessageRequest

type CreateMessageRequest struct {
	CreateMessageRequest shared.CreateMessageRequest `request:"mediaType=application/json"`
	// The ID of the [thread](/docs/api-reference/threads) to create a message for.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*CreateMessageRequest) GetCreateMessageRequest

func (o *CreateMessageRequest) GetCreateMessageRequest() shared.CreateMessageRequest

func (*CreateMessageRequest) GetThreadID

func (o *CreateMessageRequest) GetThreadID() string

type CreateMessageResponse

type CreateMessageResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	MessageObject *shared.MessageObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateMessageResponse) GetContentType

func (o *CreateMessageResponse) GetContentType() string

func (*CreateMessageResponse) GetMessageObject

func (o *CreateMessageResponse) GetMessageObject() *shared.MessageObject

func (*CreateMessageResponse) GetRawResponse

func (o *CreateMessageResponse) GetRawResponse() *http.Response

func (*CreateMessageResponse) GetStatusCode

func (o *CreateMessageResponse) GetStatusCode() int

type CreateModerationResponse

type CreateModerationResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	CreateModerationResponse *shared.CreateModerationResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateModerationResponse) GetContentType

func (o *CreateModerationResponse) GetContentType() string

func (*CreateModerationResponse) GetCreateModerationResponse

func (o *CreateModerationResponse) GetCreateModerationResponse() *shared.CreateModerationResponse

func (*CreateModerationResponse) GetRawResponse

func (o *CreateModerationResponse) GetRawResponse() *http.Response

func (*CreateModerationResponse) GetStatusCode

func (o *CreateModerationResponse) GetStatusCode() int

type CreateRunRequest

type CreateRunRequest struct {
	CreateRunRequest shared.CreateRunRequest `request:"mediaType=application/json"`
	// The ID of the thread to run.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*CreateRunRequest) GetCreateRunRequest

func (o *CreateRunRequest) GetCreateRunRequest() shared.CreateRunRequest

func (*CreateRunRequest) GetThreadID

func (o *CreateRunRequest) GetThreadID() string

type CreateRunResponse

type CreateRunResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	RunObject *shared.RunObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateRunResponse) GetContentType

func (o *CreateRunResponse) GetContentType() string

func (*CreateRunResponse) GetRawResponse

func (o *CreateRunResponse) GetRawResponse() *http.Response

func (*CreateRunResponse) GetRunObject

func (o *CreateRunResponse) GetRunObject() *shared.RunObject

func (*CreateRunResponse) GetStatusCode

func (o *CreateRunResponse) GetStatusCode() int

type CreateSpeechResponse

type CreateSpeechResponse struct {
	// HTTP response content type for this operation
	ContentType string
	Headers     map[string][]string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	// The Close method must be called on this field, even if it is not used, to prevent resource leaks.
	Stream io.ReadCloser
}

func (*CreateSpeechResponse) GetContentType

func (o *CreateSpeechResponse) GetContentType() string

func (*CreateSpeechResponse) GetHeaders

func (o *CreateSpeechResponse) GetHeaders() map[string][]string

func (*CreateSpeechResponse) GetRawResponse

func (o *CreateSpeechResponse) GetRawResponse() *http.Response

func (*CreateSpeechResponse) GetStatusCode

func (o *CreateSpeechResponse) GetStatusCode() int

func (*CreateSpeechResponse) GetStream

func (o *CreateSpeechResponse) GetStream() io.ReadCloser

type CreateThreadAndRunResponse

type CreateThreadAndRunResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	RunObject *shared.RunObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateThreadAndRunResponse) GetContentType

func (o *CreateThreadAndRunResponse) GetContentType() string

func (*CreateThreadAndRunResponse) GetRawResponse

func (o *CreateThreadAndRunResponse) GetRawResponse() *http.Response

func (*CreateThreadAndRunResponse) GetRunObject

func (o *CreateThreadAndRunResponse) GetRunObject() *shared.RunObject

func (*CreateThreadAndRunResponse) GetStatusCode

func (o *CreateThreadAndRunResponse) GetStatusCode() int

type CreateThreadResponse

type CreateThreadResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	ThreadObject *shared.ThreadObject
}

func (*CreateThreadResponse) GetContentType

func (o *CreateThreadResponse) GetContentType() string

func (*CreateThreadResponse) GetRawResponse

func (o *CreateThreadResponse) GetRawResponse() *http.Response

func (*CreateThreadResponse) GetStatusCode

func (o *CreateThreadResponse) GetStatusCode() int

func (*CreateThreadResponse) GetThreadObject

func (o *CreateThreadResponse) GetThreadObject() *shared.ThreadObject

type CreateTranscriptionResponse

type CreateTranscriptionResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	CreateTranscriptionResponse *shared.CreateTranscriptionResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateTranscriptionResponse) GetContentType

func (o *CreateTranscriptionResponse) GetContentType() string

func (*CreateTranscriptionResponse) GetCreateTranscriptionResponse

func (o *CreateTranscriptionResponse) GetCreateTranscriptionResponse() *shared.CreateTranscriptionResponse

func (*CreateTranscriptionResponse) GetRawResponse

func (o *CreateTranscriptionResponse) GetRawResponse() *http.Response

func (*CreateTranscriptionResponse) GetStatusCode

func (o *CreateTranscriptionResponse) GetStatusCode() int

type CreateTranslationResponse

type CreateTranslationResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	CreateTranslationResponse *shared.CreateTranslationResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateTranslationResponse) GetContentType

func (o *CreateTranslationResponse) GetContentType() string

func (*CreateTranslationResponse) GetCreateTranslationResponse

func (o *CreateTranslationResponse) GetCreateTranslationResponse() *shared.CreateTranslationResponse

func (*CreateTranslationResponse) GetRawResponse

func (o *CreateTranslationResponse) GetRawResponse() *http.Response

func (*CreateTranslationResponse) GetStatusCode

func (o *CreateTranslationResponse) GetStatusCode() int

type DeleteAssistantFileRequest

type DeleteAssistantFileRequest struct {
	// The ID of the assistant that the file belongs to.
	AssistantID string `pathParam:"style=simple,explode=false,name=assistant_id"`
	// The ID of the file to delete.
	FileID string `pathParam:"style=simple,explode=false,name=file_id"`
}

func (*DeleteAssistantFileRequest) GetAssistantID

func (o *DeleteAssistantFileRequest) GetAssistantID() string

func (*DeleteAssistantFileRequest) GetFileID

func (o *DeleteAssistantFileRequest) GetFileID() string

type DeleteAssistantFileResponse

type DeleteAssistantFileResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	DeleteAssistantFileResponse *shared.DeleteAssistantFileResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeleteAssistantFileResponse) GetContentType

func (o *DeleteAssistantFileResponse) GetContentType() string

func (*DeleteAssistantFileResponse) GetDeleteAssistantFileResponse

func (o *DeleteAssistantFileResponse) GetDeleteAssistantFileResponse() *shared.DeleteAssistantFileResponse

func (*DeleteAssistantFileResponse) GetRawResponse

func (o *DeleteAssistantFileResponse) GetRawResponse() *http.Response

func (*DeleteAssistantFileResponse) GetStatusCode

func (o *DeleteAssistantFileResponse) GetStatusCode() int

type DeleteAssistantRequest

type DeleteAssistantRequest struct {
	// The ID of the assistant to delete.
	AssistantID string `pathParam:"style=simple,explode=false,name=assistant_id"`
}

func (*DeleteAssistantRequest) GetAssistantID

func (o *DeleteAssistantRequest) GetAssistantID() string

type DeleteAssistantResponse

type DeleteAssistantResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	DeleteAssistantResponse *shared.DeleteAssistantResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeleteAssistantResponse) GetContentType

func (o *DeleteAssistantResponse) GetContentType() string

func (*DeleteAssistantResponse) GetDeleteAssistantResponse

func (o *DeleteAssistantResponse) GetDeleteAssistantResponse() *shared.DeleteAssistantResponse

func (*DeleteAssistantResponse) GetRawResponse

func (o *DeleteAssistantResponse) GetRawResponse() *http.Response

func (*DeleteAssistantResponse) GetStatusCode

func (o *DeleteAssistantResponse) GetStatusCode() int

type DeleteFileRequest

type DeleteFileRequest struct {
	// The ID of the file to use for this request.
	FileID string `pathParam:"style=simple,explode=false,name=file_id"`
}

func (*DeleteFileRequest) GetFileID

func (o *DeleteFileRequest) GetFileID() string

type DeleteFileResponse

type DeleteFileResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	DeleteFileResponse *shared.DeleteFileResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeleteFileResponse) GetContentType

func (o *DeleteFileResponse) GetContentType() string

func (*DeleteFileResponse) GetDeleteFileResponse

func (o *DeleteFileResponse) GetDeleteFileResponse() *shared.DeleteFileResponse

func (*DeleteFileResponse) GetRawResponse

func (o *DeleteFileResponse) GetRawResponse() *http.Response

func (*DeleteFileResponse) GetStatusCode

func (o *DeleteFileResponse) GetStatusCode() int

type DeleteModelRequest

type DeleteModelRequest struct {
	// The model to delete
	Model string `pathParam:"style=simple,explode=false,name=model"`
}

func (*DeleteModelRequest) GetModel

func (o *DeleteModelRequest) GetModel() string

type DeleteModelResponse

type DeleteModelResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	DeleteModelResponse *shared.DeleteModelResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeleteModelResponse) GetContentType

func (o *DeleteModelResponse) GetContentType() string

func (*DeleteModelResponse) GetDeleteModelResponse

func (o *DeleteModelResponse) GetDeleteModelResponse() *shared.DeleteModelResponse

func (*DeleteModelResponse) GetRawResponse

func (o *DeleteModelResponse) GetRawResponse() *http.Response

func (*DeleteModelResponse) GetStatusCode

func (o *DeleteModelResponse) GetStatusCode() int

type DeleteThreadRequest

type DeleteThreadRequest struct {
	// The ID of the thread to delete.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*DeleteThreadRequest) GetThreadID

func (o *DeleteThreadRequest) GetThreadID() string

type DeleteThreadResponse

type DeleteThreadResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	DeleteThreadResponse *shared.DeleteThreadResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeleteThreadResponse) GetContentType

func (o *DeleteThreadResponse) GetContentType() string

func (*DeleteThreadResponse) GetDeleteThreadResponse

func (o *DeleteThreadResponse) GetDeleteThreadResponse() *shared.DeleteThreadResponse

func (*DeleteThreadResponse) GetRawResponse

func (o *DeleteThreadResponse) GetRawResponse() *http.Response

func (*DeleteThreadResponse) GetStatusCode

func (o *DeleteThreadResponse) GetStatusCode() int

type DownloadFileRequest

type DownloadFileRequest struct {
	// The ID of the file to use for this request.
	FileID string `pathParam:"style=simple,explode=false,name=file_id"`
}

func (*DownloadFileRequest) GetFileID

func (o *DownloadFileRequest) GetFileID() string

type DownloadFileResponse

type DownloadFileResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	Res *string
}

func (*DownloadFileResponse) GetContentType

func (o *DownloadFileResponse) GetContentType() string

func (*DownloadFileResponse) GetRawResponse

func (o *DownloadFileResponse) GetRawResponse() *http.Response

func (*DownloadFileResponse) GetRes

func (o *DownloadFileResponse) GetRes() *string

func (*DownloadFileResponse) GetStatusCode

func (o *DownloadFileResponse) GetStatusCode() int

type GetAssistantFileRequest

type GetAssistantFileRequest struct {
	// The ID of the assistant who the file belongs to.
	AssistantID string `pathParam:"style=simple,explode=false,name=assistant_id"`
	// The ID of the file we're getting.
	FileID string `pathParam:"style=simple,explode=false,name=file_id"`
}

func (*GetAssistantFileRequest) GetAssistantID

func (o *GetAssistantFileRequest) GetAssistantID() string

func (*GetAssistantFileRequest) GetFileID

func (o *GetAssistantFileRequest) GetFileID() string

type GetAssistantFileResponse

type GetAssistantFileResponse struct {
	// OK
	AssistantFileObject *shared.AssistantFileObject
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetAssistantFileResponse) GetAssistantFileObject

func (o *GetAssistantFileResponse) GetAssistantFileObject() *shared.AssistantFileObject

func (*GetAssistantFileResponse) GetContentType

func (o *GetAssistantFileResponse) GetContentType() string

func (*GetAssistantFileResponse) GetRawResponse

func (o *GetAssistantFileResponse) GetRawResponse() *http.Response

func (*GetAssistantFileResponse) GetStatusCode

func (o *GetAssistantFileResponse) GetStatusCode() int

type GetAssistantRequest

type GetAssistantRequest struct {
	// The ID of the assistant to retrieve.
	AssistantID string `pathParam:"style=simple,explode=false,name=assistant_id"`
}

func (*GetAssistantRequest) GetAssistantID

func (o *GetAssistantRequest) GetAssistantID() string

type GetAssistantResponse

type GetAssistantResponse struct {
	// OK
	AssistantObject *shared.AssistantObject
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetAssistantResponse) GetAssistantObject

func (o *GetAssistantResponse) GetAssistantObject() *shared.AssistantObject

func (*GetAssistantResponse) GetContentType

func (o *GetAssistantResponse) GetContentType() string

func (*GetAssistantResponse) GetRawResponse

func (o *GetAssistantResponse) GetRawResponse() *http.Response

func (*GetAssistantResponse) GetStatusCode

func (o *GetAssistantResponse) GetStatusCode() int

type GetMessageFileRequest

type GetMessageFileRequest struct {
	// The ID of the file being retrieved.
	FileID string `pathParam:"style=simple,explode=false,name=file_id"`
	// The ID of the message the file belongs to.
	MessageID string `pathParam:"style=simple,explode=false,name=message_id"`
	// The ID of the thread to which the message and File belong.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*GetMessageFileRequest) GetFileID

func (o *GetMessageFileRequest) GetFileID() string

func (*GetMessageFileRequest) GetMessageID

func (o *GetMessageFileRequest) GetMessageID() string

func (*GetMessageFileRequest) GetThreadID

func (o *GetMessageFileRequest) GetThreadID() string

type GetMessageFileResponse

type GetMessageFileResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	MessageFileObject *shared.MessageFileObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetMessageFileResponse) GetContentType

func (o *GetMessageFileResponse) GetContentType() string

func (*GetMessageFileResponse) GetMessageFileObject

func (o *GetMessageFileResponse) GetMessageFileObject() *shared.MessageFileObject

func (*GetMessageFileResponse) GetRawResponse

func (o *GetMessageFileResponse) GetRawResponse() *http.Response

func (*GetMessageFileResponse) GetStatusCode

func (o *GetMessageFileResponse) GetStatusCode() int

type GetMessageRequest

type GetMessageRequest struct {
	// The ID of the message to retrieve.
	MessageID string `pathParam:"style=simple,explode=false,name=message_id"`
	// The ID of the [thread](/docs/api-reference/threads) to which this message belongs.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*GetMessageRequest) GetMessageID

func (o *GetMessageRequest) GetMessageID() string

func (*GetMessageRequest) GetThreadID

func (o *GetMessageRequest) GetThreadID() string

type GetMessageResponse

type GetMessageResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	MessageObject *shared.MessageObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetMessageResponse) GetContentType

func (o *GetMessageResponse) GetContentType() string

func (*GetMessageResponse) GetMessageObject

func (o *GetMessageResponse) GetMessageObject() *shared.MessageObject

func (*GetMessageResponse) GetRawResponse

func (o *GetMessageResponse) GetRawResponse() *http.Response

func (*GetMessageResponse) GetStatusCode

func (o *GetMessageResponse) GetStatusCode() int

type GetRunRequest

type GetRunRequest struct {
	// The ID of the run to retrieve.
	RunID string `pathParam:"style=simple,explode=false,name=run_id"`
	// The ID of the [thread](/docs/api-reference/threads) that was run.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*GetRunRequest) GetRunID

func (o *GetRunRequest) GetRunID() string

func (*GetRunRequest) GetThreadID

func (o *GetRunRequest) GetThreadID() string

type GetRunResponse

type GetRunResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	RunObject *shared.RunObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetRunResponse) GetContentType

func (o *GetRunResponse) GetContentType() string

func (*GetRunResponse) GetRawResponse

func (o *GetRunResponse) GetRawResponse() *http.Response

func (*GetRunResponse) GetRunObject

func (o *GetRunResponse) GetRunObject() *shared.RunObject

func (*GetRunResponse) GetStatusCode

func (o *GetRunResponse) GetStatusCode() int

type GetRunStepRequest

type GetRunStepRequest struct {
	// The ID of the run to which the run step belongs.
	RunID string `pathParam:"style=simple,explode=false,name=run_id"`
	// The ID of the run step to retrieve.
	StepID string `pathParam:"style=simple,explode=false,name=step_id"`
	// The ID of the thread to which the run and run step belongs.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*GetRunStepRequest) GetRunID

func (o *GetRunStepRequest) GetRunID() string

func (*GetRunStepRequest) GetStepID

func (o *GetRunStepRequest) GetStepID() string

func (*GetRunStepRequest) GetThreadID

func (o *GetRunStepRequest) GetThreadID() string

type GetRunStepResponse

type GetRunStepResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	RunStepObject *shared.RunStepObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetRunStepResponse) GetContentType

func (o *GetRunStepResponse) GetContentType() string

func (*GetRunStepResponse) GetRawResponse

func (o *GetRunStepResponse) GetRawResponse() *http.Response

func (*GetRunStepResponse) GetRunStepObject

func (o *GetRunStepResponse) GetRunStepObject() *shared.RunStepObject

func (*GetRunStepResponse) GetStatusCode

func (o *GetRunStepResponse) GetStatusCode() int

type GetThreadRequest

type GetThreadRequest struct {
	// The ID of the thread to retrieve.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*GetThreadRequest) GetThreadID

func (o *GetThreadRequest) GetThreadID() string

type GetThreadResponse

type GetThreadResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	ThreadObject *shared.ThreadObject
}

func (*GetThreadResponse) GetContentType

func (o *GetThreadResponse) GetContentType() string

func (*GetThreadResponse) GetRawResponse

func (o *GetThreadResponse) GetRawResponse() *http.Response

func (*GetThreadResponse) GetStatusCode

func (o *GetThreadResponse) GetStatusCode() int

func (*GetThreadResponse) GetThreadObject

func (o *GetThreadResponse) GetThreadObject() *shared.ThreadObject

type ListAssistantFilesRequest

type ListAssistantFilesRequest struct {
	// A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	//
	After *string `queryParam:"style=form,explode=true,name=after"`
	// The ID of the assistant the file belongs to.
	AssistantID string `pathParam:"style=simple,explode=false,name=assistant_id"`
	// A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
	//
	Before *string `queryParam:"style=form,explode=true,name=before"`
	// A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	//
	Limit *int64 `default:"20" queryParam:"style=form,explode=true,name=limit"`
	// Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.
	//
	Order *Order `default:"desc" queryParam:"style=form,explode=true,name=order"`
}

func (*ListAssistantFilesRequest) GetAfter

func (o *ListAssistantFilesRequest) GetAfter() *string

func (*ListAssistantFilesRequest) GetAssistantID

func (o *ListAssistantFilesRequest) GetAssistantID() string

func (*ListAssistantFilesRequest) GetBefore

func (o *ListAssistantFilesRequest) GetBefore() *string

func (*ListAssistantFilesRequest) GetLimit

func (o *ListAssistantFilesRequest) GetLimit() *int64

func (*ListAssistantFilesRequest) GetOrder

func (o *ListAssistantFilesRequest) GetOrder() *Order

func (ListAssistantFilesRequest) MarshalJSON

func (l ListAssistantFilesRequest) MarshalJSON() ([]byte, error)

func (*ListAssistantFilesRequest) UnmarshalJSON

func (l *ListAssistantFilesRequest) UnmarshalJSON(data []byte) error

type ListAssistantFilesResponse

type ListAssistantFilesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ListAssistantFilesResponse *shared.ListAssistantFilesResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ListAssistantFilesResponse) GetContentType

func (o *ListAssistantFilesResponse) GetContentType() string

func (*ListAssistantFilesResponse) GetListAssistantFilesResponse

func (o *ListAssistantFilesResponse) GetListAssistantFilesResponse() *shared.ListAssistantFilesResponse

func (*ListAssistantFilesResponse) GetRawResponse

func (o *ListAssistantFilesResponse) GetRawResponse() *http.Response

func (*ListAssistantFilesResponse) GetStatusCode

func (o *ListAssistantFilesResponse) GetStatusCode() int

type ListAssistantsRequest

type ListAssistantsRequest struct {
	// A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	//
	After *string `queryParam:"style=form,explode=true,name=after"`
	// A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
	//
	Before *string `queryParam:"style=form,explode=true,name=before"`
	// A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	//
	Limit *int64 `default:"20" queryParam:"style=form,explode=true,name=limit"`
	// Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.
	//
	Order *QueryParamOrder `default:"desc" queryParam:"style=form,explode=true,name=order"`
}

func (*ListAssistantsRequest) GetAfter

func (o *ListAssistantsRequest) GetAfter() *string

func (*ListAssistantsRequest) GetBefore

func (o *ListAssistantsRequest) GetBefore() *string

func (*ListAssistantsRequest) GetLimit

func (o *ListAssistantsRequest) GetLimit() *int64

func (*ListAssistantsRequest) GetOrder

func (o *ListAssistantsRequest) GetOrder() *QueryParamOrder

func (ListAssistantsRequest) MarshalJSON

func (l ListAssistantsRequest) MarshalJSON() ([]byte, error)

func (*ListAssistantsRequest) UnmarshalJSON

func (l *ListAssistantsRequest) UnmarshalJSON(data []byte) error

type ListAssistantsResponse

type ListAssistantsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ListAssistantsResponse *shared.ListAssistantsResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ListAssistantsResponse) GetContentType

func (o *ListAssistantsResponse) GetContentType() string

func (*ListAssistantsResponse) GetListAssistantsResponse

func (o *ListAssistantsResponse) GetListAssistantsResponse() *shared.ListAssistantsResponse

func (*ListAssistantsResponse) GetRawResponse

func (o *ListAssistantsResponse) GetRawResponse() *http.Response

func (*ListAssistantsResponse) GetStatusCode

func (o *ListAssistantsResponse) GetStatusCode() int

type ListFilesRequest

type ListFilesRequest struct {
	// Only return files with the given purpose.
	Purpose *string `queryParam:"style=form,explode=true,name=purpose"`
}

func (*ListFilesRequest) GetPurpose

func (o *ListFilesRequest) GetPurpose() *string

type ListFilesResponse

type ListFilesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ListFilesResponse *shared.ListFilesResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ListFilesResponse) GetContentType

func (o *ListFilesResponse) GetContentType() string

func (*ListFilesResponse) GetListFilesResponse

func (o *ListFilesResponse) GetListFilesResponse() *shared.ListFilesResponse

func (*ListFilesResponse) GetRawResponse

func (o *ListFilesResponse) GetRawResponse() *http.Response

func (*ListFilesResponse) GetStatusCode

func (o *ListFilesResponse) GetStatusCode() int

type ListFineTuningEventsRequest

type ListFineTuningEventsRequest struct {
	// The ID of the fine-tuning job to get events for.
	//
	FineTuningJobID string `pathParam:"style=simple,explode=false,name=fine_tuning_job_id"`
	// Identifier for the last event from the previous pagination request.
	After *string `queryParam:"style=form,explode=true,name=after"`
	// Number of events to retrieve.
	Limit *int64 `default:"20" queryParam:"style=form,explode=true,name=limit"`
}

func (*ListFineTuningEventsRequest) GetAfter

func (o *ListFineTuningEventsRequest) GetAfter() *string

func (*ListFineTuningEventsRequest) GetFineTuningJobID

func (o *ListFineTuningEventsRequest) GetFineTuningJobID() string

func (*ListFineTuningEventsRequest) GetLimit

func (o *ListFineTuningEventsRequest) GetLimit() *int64

func (ListFineTuningEventsRequest) MarshalJSON

func (l ListFineTuningEventsRequest) MarshalJSON() ([]byte, error)

func (*ListFineTuningEventsRequest) UnmarshalJSON

func (l *ListFineTuningEventsRequest) UnmarshalJSON(data []byte) error

type ListFineTuningEventsResponse

type ListFineTuningEventsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ListFineTuningJobEventsResponse *shared.ListFineTuningJobEventsResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ListFineTuningEventsResponse) GetContentType

func (o *ListFineTuningEventsResponse) GetContentType() string

func (*ListFineTuningEventsResponse) GetListFineTuningJobEventsResponse

func (o *ListFineTuningEventsResponse) GetListFineTuningJobEventsResponse() *shared.ListFineTuningJobEventsResponse

func (*ListFineTuningEventsResponse) GetRawResponse

func (o *ListFineTuningEventsResponse) GetRawResponse() *http.Response

func (*ListFineTuningEventsResponse) GetStatusCode

func (o *ListFineTuningEventsResponse) GetStatusCode() int

type ListMessageFilesQueryParamOrder

type ListMessageFilesQueryParamOrder string

ListMessageFilesQueryParamOrder - Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.

const (
	ListMessageFilesQueryParamOrderAsc  ListMessageFilesQueryParamOrder = "asc"
	ListMessageFilesQueryParamOrderDesc ListMessageFilesQueryParamOrder = "desc"
)

func (ListMessageFilesQueryParamOrder) ToPointer

func (*ListMessageFilesQueryParamOrder) UnmarshalJSON

func (e *ListMessageFilesQueryParamOrder) UnmarshalJSON(data []byte) error

type ListMessageFilesRequest

type ListMessageFilesRequest struct {
	// A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	//
	After *string `queryParam:"style=form,explode=true,name=after"`
	// A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
	//
	Before *string `queryParam:"style=form,explode=true,name=before"`
	// A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	//
	Limit *int64 `default:"20" queryParam:"style=form,explode=true,name=limit"`
	// The ID of the message that the files belongs to.
	MessageID string `pathParam:"style=simple,explode=false,name=message_id"`
	// Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.
	//
	Order *ListMessageFilesQueryParamOrder `default:"desc" queryParam:"style=form,explode=true,name=order"`
	// The ID of the thread that the message and files belong to.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*ListMessageFilesRequest) GetAfter

func (o *ListMessageFilesRequest) GetAfter() *string

func (*ListMessageFilesRequest) GetBefore

func (o *ListMessageFilesRequest) GetBefore() *string

func (*ListMessageFilesRequest) GetLimit

func (o *ListMessageFilesRequest) GetLimit() *int64

func (*ListMessageFilesRequest) GetMessageID

func (o *ListMessageFilesRequest) GetMessageID() string

func (*ListMessageFilesRequest) GetOrder

func (*ListMessageFilesRequest) GetThreadID

func (o *ListMessageFilesRequest) GetThreadID() string

func (ListMessageFilesRequest) MarshalJSON

func (l ListMessageFilesRequest) MarshalJSON() ([]byte, error)

func (*ListMessageFilesRequest) UnmarshalJSON

func (l *ListMessageFilesRequest) UnmarshalJSON(data []byte) error

type ListMessageFilesResponse

type ListMessageFilesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ListMessageFilesResponse *shared.ListMessageFilesResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ListMessageFilesResponse) GetContentType

func (o *ListMessageFilesResponse) GetContentType() string

func (*ListMessageFilesResponse) GetListMessageFilesResponse

func (o *ListMessageFilesResponse) GetListMessageFilesResponse() *shared.ListMessageFilesResponse

func (*ListMessageFilesResponse) GetRawResponse

func (o *ListMessageFilesResponse) GetRawResponse() *http.Response

func (*ListMessageFilesResponse) GetStatusCode

func (o *ListMessageFilesResponse) GetStatusCode() int

type ListMessagesQueryParamOrder

type ListMessagesQueryParamOrder string

ListMessagesQueryParamOrder - Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.

const (
	ListMessagesQueryParamOrderAsc  ListMessagesQueryParamOrder = "asc"
	ListMessagesQueryParamOrderDesc ListMessagesQueryParamOrder = "desc"
)

func (ListMessagesQueryParamOrder) ToPointer

func (*ListMessagesQueryParamOrder) UnmarshalJSON

func (e *ListMessagesQueryParamOrder) UnmarshalJSON(data []byte) error

type ListMessagesRequest

type ListMessagesRequest struct {
	// A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	//
	After *string `queryParam:"style=form,explode=true,name=after"`
	// A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
	//
	Before *string `queryParam:"style=form,explode=true,name=before"`
	// A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	//
	Limit *int64 `default:"20" queryParam:"style=form,explode=true,name=limit"`
	// Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.
	//
	Order *ListMessagesQueryParamOrder `default:"desc" queryParam:"style=form,explode=true,name=order"`
	// The ID of the [thread](/docs/api-reference/threads) the messages belong to.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*ListMessagesRequest) GetAfter

func (o *ListMessagesRequest) GetAfter() *string

func (*ListMessagesRequest) GetBefore

func (o *ListMessagesRequest) GetBefore() *string

func (*ListMessagesRequest) GetLimit

func (o *ListMessagesRequest) GetLimit() *int64

func (*ListMessagesRequest) GetOrder

func (*ListMessagesRequest) GetThreadID

func (o *ListMessagesRequest) GetThreadID() string

func (ListMessagesRequest) MarshalJSON

func (l ListMessagesRequest) MarshalJSON() ([]byte, error)

func (*ListMessagesRequest) UnmarshalJSON

func (l *ListMessagesRequest) UnmarshalJSON(data []byte) error

type ListMessagesResponse

type ListMessagesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ListMessagesResponse *shared.ListMessagesResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ListMessagesResponse) GetContentType

func (o *ListMessagesResponse) GetContentType() string

func (*ListMessagesResponse) GetListMessagesResponse

func (o *ListMessagesResponse) GetListMessagesResponse() *shared.ListMessagesResponse

func (*ListMessagesResponse) GetRawResponse

func (o *ListMessagesResponse) GetRawResponse() *http.Response

func (*ListMessagesResponse) GetStatusCode

func (o *ListMessagesResponse) GetStatusCode() int

type ListModelsResponse

type ListModelsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ListModelsResponse *shared.ListModelsResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ListModelsResponse) GetContentType

func (o *ListModelsResponse) GetContentType() string

func (*ListModelsResponse) GetListModelsResponse

func (o *ListModelsResponse) GetListModelsResponse() *shared.ListModelsResponse

func (*ListModelsResponse) GetRawResponse

func (o *ListModelsResponse) GetRawResponse() *http.Response

func (*ListModelsResponse) GetStatusCode

func (o *ListModelsResponse) GetStatusCode() int

type ListPaginatedFineTuningJobsRequest

type ListPaginatedFineTuningJobsRequest struct {
	// Identifier for the last job from the previous pagination request.
	After *string `queryParam:"style=form,explode=true,name=after"`
	// Number of fine-tuning jobs to retrieve.
	Limit *int64 `default:"20" queryParam:"style=form,explode=true,name=limit"`
}

func (*ListPaginatedFineTuningJobsRequest) GetAfter

func (*ListPaginatedFineTuningJobsRequest) GetLimit

func (ListPaginatedFineTuningJobsRequest) MarshalJSON

func (l ListPaginatedFineTuningJobsRequest) MarshalJSON() ([]byte, error)

func (*ListPaginatedFineTuningJobsRequest) UnmarshalJSON

func (l *ListPaginatedFineTuningJobsRequest) UnmarshalJSON(data []byte) error

type ListPaginatedFineTuningJobsResponse

type ListPaginatedFineTuningJobsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ListPaginatedFineTuningJobsResponse *shared.ListPaginatedFineTuningJobsResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ListPaginatedFineTuningJobsResponse) GetContentType

func (o *ListPaginatedFineTuningJobsResponse) GetContentType() string

func (*ListPaginatedFineTuningJobsResponse) GetListPaginatedFineTuningJobsResponse

func (o *ListPaginatedFineTuningJobsResponse) GetListPaginatedFineTuningJobsResponse() *shared.ListPaginatedFineTuningJobsResponse

func (*ListPaginatedFineTuningJobsResponse) GetRawResponse

func (o *ListPaginatedFineTuningJobsResponse) GetRawResponse() *http.Response

func (*ListPaginatedFineTuningJobsResponse) GetStatusCode

func (o *ListPaginatedFineTuningJobsResponse) GetStatusCode() int

type ListRunStepsQueryParamOrder

type ListRunStepsQueryParamOrder string

ListRunStepsQueryParamOrder - Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.

const (
	ListRunStepsQueryParamOrderAsc  ListRunStepsQueryParamOrder = "asc"
	ListRunStepsQueryParamOrderDesc ListRunStepsQueryParamOrder = "desc"
)

func (ListRunStepsQueryParamOrder) ToPointer

func (*ListRunStepsQueryParamOrder) UnmarshalJSON

func (e *ListRunStepsQueryParamOrder) UnmarshalJSON(data []byte) error

type ListRunStepsRequest

type ListRunStepsRequest struct {
	// A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	//
	After *string `queryParam:"style=form,explode=true,name=after"`
	// A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
	//
	Before *string `queryParam:"style=form,explode=true,name=before"`
	// A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	//
	Limit *int64 `default:"20" queryParam:"style=form,explode=true,name=limit"`
	// Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.
	//
	Order *ListRunStepsQueryParamOrder `default:"desc" queryParam:"style=form,explode=true,name=order"`
	// The ID of the run the run steps belong to.
	RunID string `pathParam:"style=simple,explode=false,name=run_id"`
	// The ID of the thread the run and run steps belong to.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*ListRunStepsRequest) GetAfter

func (o *ListRunStepsRequest) GetAfter() *string

func (*ListRunStepsRequest) GetBefore

func (o *ListRunStepsRequest) GetBefore() *string

func (*ListRunStepsRequest) GetLimit

func (o *ListRunStepsRequest) GetLimit() *int64

func (*ListRunStepsRequest) GetOrder

func (*ListRunStepsRequest) GetRunID

func (o *ListRunStepsRequest) GetRunID() string

func (*ListRunStepsRequest) GetThreadID

func (o *ListRunStepsRequest) GetThreadID() string

func (ListRunStepsRequest) MarshalJSON

func (l ListRunStepsRequest) MarshalJSON() ([]byte, error)

func (*ListRunStepsRequest) UnmarshalJSON

func (l *ListRunStepsRequest) UnmarshalJSON(data []byte) error

type ListRunStepsResponse

type ListRunStepsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ListRunStepsResponse *shared.ListRunStepsResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ListRunStepsResponse) GetContentType

func (o *ListRunStepsResponse) GetContentType() string

func (*ListRunStepsResponse) GetListRunStepsResponse

func (o *ListRunStepsResponse) GetListRunStepsResponse() *shared.ListRunStepsResponse

func (*ListRunStepsResponse) GetRawResponse

func (o *ListRunStepsResponse) GetRawResponse() *http.Response

func (*ListRunStepsResponse) GetStatusCode

func (o *ListRunStepsResponse) GetStatusCode() int

type ListRunsQueryParamOrder

type ListRunsQueryParamOrder string

ListRunsQueryParamOrder - Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.

const (
	ListRunsQueryParamOrderAsc  ListRunsQueryParamOrder = "asc"
	ListRunsQueryParamOrderDesc ListRunsQueryParamOrder = "desc"
)

func (ListRunsQueryParamOrder) ToPointer

func (*ListRunsQueryParamOrder) UnmarshalJSON

func (e *ListRunsQueryParamOrder) UnmarshalJSON(data []byte) error

type ListRunsRequest

type ListRunsRequest struct {
	// A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	//
	After *string `queryParam:"style=form,explode=true,name=after"`
	// A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
	//
	Before *string `queryParam:"style=form,explode=true,name=before"`
	// A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	//
	Limit *int64 `default:"20" queryParam:"style=form,explode=true,name=limit"`
	// Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.
	//
	Order *ListRunsQueryParamOrder `default:"desc" queryParam:"style=form,explode=true,name=order"`
	// The ID of the thread the run belongs to.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*ListRunsRequest) GetAfter

func (o *ListRunsRequest) GetAfter() *string

func (*ListRunsRequest) GetBefore

func (o *ListRunsRequest) GetBefore() *string

func (*ListRunsRequest) GetLimit

func (o *ListRunsRequest) GetLimit() *int64

func (*ListRunsRequest) GetOrder

func (*ListRunsRequest) GetThreadID

func (o *ListRunsRequest) GetThreadID() string

func (ListRunsRequest) MarshalJSON

func (l ListRunsRequest) MarshalJSON() ([]byte, error)

func (*ListRunsRequest) UnmarshalJSON

func (l *ListRunsRequest) UnmarshalJSON(data []byte) error

type ListRunsResponse

type ListRunsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	ListRunsResponse *shared.ListRunsResponse
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ListRunsResponse) GetContentType

func (o *ListRunsResponse) GetContentType() string

func (*ListRunsResponse) GetListRunsResponse

func (o *ListRunsResponse) GetListRunsResponse() *shared.ListRunsResponse

func (*ListRunsResponse) GetRawResponse

func (o *ListRunsResponse) GetRawResponse() *http.Response

func (*ListRunsResponse) GetStatusCode

func (o *ListRunsResponse) GetStatusCode() int

type ModifyAssistantRequest

type ModifyAssistantRequest struct {
	ModifyAssistantRequest shared.ModifyAssistantRequest `request:"mediaType=application/json"`
	// The ID of the assistant to modify.
	AssistantID string `pathParam:"style=simple,explode=false,name=assistant_id"`
}

func (*ModifyAssistantRequest) GetAssistantID

func (o *ModifyAssistantRequest) GetAssistantID() string

func (*ModifyAssistantRequest) GetModifyAssistantRequest

func (o *ModifyAssistantRequest) GetModifyAssistantRequest() shared.ModifyAssistantRequest

type ModifyAssistantResponse

type ModifyAssistantResponse struct {
	// OK
	AssistantObject *shared.AssistantObject
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ModifyAssistantResponse) GetAssistantObject

func (o *ModifyAssistantResponse) GetAssistantObject() *shared.AssistantObject

func (*ModifyAssistantResponse) GetContentType

func (o *ModifyAssistantResponse) GetContentType() string

func (*ModifyAssistantResponse) GetRawResponse

func (o *ModifyAssistantResponse) GetRawResponse() *http.Response

func (*ModifyAssistantResponse) GetStatusCode

func (o *ModifyAssistantResponse) GetStatusCode() int

type ModifyMessageRequest

type ModifyMessageRequest struct {
	ModifyMessageRequest shared.ModifyMessageRequest `request:"mediaType=application/json"`
	// The ID of the message to modify.
	MessageID string `pathParam:"style=simple,explode=false,name=message_id"`
	// The ID of the thread to which this message belongs.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*ModifyMessageRequest) GetMessageID

func (o *ModifyMessageRequest) GetMessageID() string

func (*ModifyMessageRequest) GetModifyMessageRequest

func (o *ModifyMessageRequest) GetModifyMessageRequest() shared.ModifyMessageRequest

func (*ModifyMessageRequest) GetThreadID

func (o *ModifyMessageRequest) GetThreadID() string

type ModifyMessageResponse

type ModifyMessageResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	MessageObject *shared.MessageObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ModifyMessageResponse) GetContentType

func (o *ModifyMessageResponse) GetContentType() string

func (*ModifyMessageResponse) GetMessageObject

func (o *ModifyMessageResponse) GetMessageObject() *shared.MessageObject

func (*ModifyMessageResponse) GetRawResponse

func (o *ModifyMessageResponse) GetRawResponse() *http.Response

func (*ModifyMessageResponse) GetStatusCode

func (o *ModifyMessageResponse) GetStatusCode() int

type ModifyRunRequest

type ModifyRunRequest struct {
	ModifyRunRequest shared.ModifyRunRequest `request:"mediaType=application/json"`
	// The ID of the run to modify.
	RunID string `pathParam:"style=simple,explode=false,name=run_id"`
	// The ID of the [thread](/docs/api-reference/threads) that was run.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*ModifyRunRequest) GetModifyRunRequest

func (o *ModifyRunRequest) GetModifyRunRequest() shared.ModifyRunRequest

func (*ModifyRunRequest) GetRunID

func (o *ModifyRunRequest) GetRunID() string

func (*ModifyRunRequest) GetThreadID

func (o *ModifyRunRequest) GetThreadID() string

type ModifyRunResponse

type ModifyRunResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	RunObject *shared.RunObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*ModifyRunResponse) GetContentType

func (o *ModifyRunResponse) GetContentType() string

func (*ModifyRunResponse) GetRawResponse

func (o *ModifyRunResponse) GetRawResponse() *http.Response

func (*ModifyRunResponse) GetRunObject

func (o *ModifyRunResponse) GetRunObject() *shared.RunObject

func (*ModifyRunResponse) GetStatusCode

func (o *ModifyRunResponse) GetStatusCode() int

type ModifyThreadRequest

type ModifyThreadRequest struct {
	ModifyThreadRequest shared.ModifyThreadRequest `request:"mediaType=application/json"`
	// The ID of the thread to modify. Only the `metadata` can be modified.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*ModifyThreadRequest) GetModifyThreadRequest

func (o *ModifyThreadRequest) GetModifyThreadRequest() shared.ModifyThreadRequest

func (*ModifyThreadRequest) GetThreadID

func (o *ModifyThreadRequest) GetThreadID() string

type ModifyThreadResponse

type ModifyThreadResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	ThreadObject *shared.ThreadObject
}

func (*ModifyThreadResponse) GetContentType

func (o *ModifyThreadResponse) GetContentType() string

func (*ModifyThreadResponse) GetRawResponse

func (o *ModifyThreadResponse) GetRawResponse() *http.Response

func (*ModifyThreadResponse) GetStatusCode

func (o *ModifyThreadResponse) GetStatusCode() int

func (*ModifyThreadResponse) GetThreadObject

func (o *ModifyThreadResponse) GetThreadObject() *shared.ThreadObject

type Order

type Order string

Order - Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.

const (
	OrderAsc  Order = "asc"
	OrderDesc Order = "desc"
)

func (Order) ToPointer

func (e Order) ToPointer() *Order

func (*Order) UnmarshalJSON

func (e *Order) UnmarshalJSON(data []byte) error

type QueryParamOrder

type QueryParamOrder string

QueryParamOrder - Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.

const (
	QueryParamOrderAsc  QueryParamOrder = "asc"
	QueryParamOrderDesc QueryParamOrder = "desc"
)

func (QueryParamOrder) ToPointer

func (e QueryParamOrder) ToPointer() *QueryParamOrder

func (*QueryParamOrder) UnmarshalJSON

func (e *QueryParamOrder) UnmarshalJSON(data []byte) error

type RetrieveFileRequest

type RetrieveFileRequest struct {
	// The ID of the file to use for this request.
	FileID string `pathParam:"style=simple,explode=false,name=file_id"`
}

func (*RetrieveFileRequest) GetFileID

func (o *RetrieveFileRequest) GetFileID() string

type RetrieveFileResponse

type RetrieveFileResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	OpenAIFile *shared.OpenAIFile
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*RetrieveFileResponse) GetContentType

func (o *RetrieveFileResponse) GetContentType() string

func (*RetrieveFileResponse) GetOpenAIFile

func (o *RetrieveFileResponse) GetOpenAIFile() *shared.OpenAIFile

func (*RetrieveFileResponse) GetRawResponse

func (o *RetrieveFileResponse) GetRawResponse() *http.Response

func (*RetrieveFileResponse) GetStatusCode

func (o *RetrieveFileResponse) GetStatusCode() int

type RetrieveFineTuningJobRequest

type RetrieveFineTuningJobRequest struct {
	// The ID of the fine-tuning job.
	//
	FineTuningJobID string `pathParam:"style=simple,explode=false,name=fine_tuning_job_id"`
}

func (*RetrieveFineTuningJobRequest) GetFineTuningJobID

func (o *RetrieveFineTuningJobRequest) GetFineTuningJobID() string

type RetrieveFineTuningJobResponse

type RetrieveFineTuningJobResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	FineTuningJob *shared.FineTuningJob
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*RetrieveFineTuningJobResponse) GetContentType

func (o *RetrieveFineTuningJobResponse) GetContentType() string

func (*RetrieveFineTuningJobResponse) GetFineTuningJob

func (o *RetrieveFineTuningJobResponse) GetFineTuningJob() *shared.FineTuningJob

func (*RetrieveFineTuningJobResponse) GetRawResponse

func (o *RetrieveFineTuningJobResponse) GetRawResponse() *http.Response

func (*RetrieveFineTuningJobResponse) GetStatusCode

func (o *RetrieveFineTuningJobResponse) GetStatusCode() int

type RetrieveModelRequest

type RetrieveModelRequest struct {
	// The ID of the model to use for this request
	Model string `pathParam:"style=simple,explode=false,name=model"`
}

func (*RetrieveModelRequest) GetModel

func (o *RetrieveModelRequest) GetModel() string

type RetrieveModelResponse

type RetrieveModelResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	Model *shared.Model
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*RetrieveModelResponse) GetContentType

func (o *RetrieveModelResponse) GetContentType() string

func (*RetrieveModelResponse) GetModel

func (o *RetrieveModelResponse) GetModel() *shared.Model

func (*RetrieveModelResponse) GetRawResponse

func (o *RetrieveModelResponse) GetRawResponse() *http.Response

func (*RetrieveModelResponse) GetStatusCode

func (o *RetrieveModelResponse) GetStatusCode() int

type SubmitToolOuputsToRunRequest

type SubmitToolOuputsToRunRequest struct {
	SubmitToolOutputsRunRequest shared.SubmitToolOutputsRunRequest `request:"mediaType=application/json"`
	// The ID of the run that requires the tool output submission.
	RunID string `pathParam:"style=simple,explode=false,name=run_id"`
	// The ID of the [thread](/docs/api-reference/threads) to which this run belongs.
	ThreadID string `pathParam:"style=simple,explode=false,name=thread_id"`
}

func (*SubmitToolOuputsToRunRequest) GetRunID

func (o *SubmitToolOuputsToRunRequest) GetRunID() string

func (*SubmitToolOuputsToRunRequest) GetSubmitToolOutputsRunRequest

func (o *SubmitToolOuputsToRunRequest) GetSubmitToolOutputsRunRequest() shared.SubmitToolOutputsRunRequest

func (*SubmitToolOuputsToRunRequest) GetThreadID

func (o *SubmitToolOuputsToRunRequest) GetThreadID() string

type SubmitToolOuputsToRunResponse

type SubmitToolOuputsToRunResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// OK
	RunObject *shared.RunObject
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*SubmitToolOuputsToRunResponse) GetContentType

func (o *SubmitToolOuputsToRunResponse) GetContentType() string

func (*SubmitToolOuputsToRunResponse) GetRawResponse

func (o *SubmitToolOuputsToRunResponse) GetRawResponse() *http.Response

func (*SubmitToolOuputsToRunResponse) GetRunObject

func (o *SubmitToolOuputsToRunResponse) GetRunObject() *shared.RunObject

func (*SubmitToolOuputsToRunResponse) GetStatusCode

func (o *SubmitToolOuputsToRunResponse) GetStatusCode() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL