Versions in this module Expand all Collapse all v0 v0.1.2 Sep 18, 2024 v0.1.1 Sep 18, 2024 Changes in this version + const ResponseFormatJSONObjectTypeJSONObject + const ResponseFormatJSONSchemaTypeJSONSchema + const ResponseFormatTextTypeText + func Bool(value bool) param.Field[bool] + func F[T any](value T) param.Field[T] + func FileParam(reader io.Reader, filename string, contentType string) param.Field[io.Reader] + func Float(value float64) param.Field[float64] + func Int(value int64) param.Field[int64] + func Null[T any]() param.Field[T] + func Raw[T any](value any) param.Field[T] + func String(value string) param.Field[string] + type Annotation struct + EndIndex int64 + FileCitation interface{} + FilePath interface{} + JSON annotationJSON + StartIndex int64 + Text string + Type AnnotationType + func (r *Annotation) UnmarshalJSON(data []byte) (err error) + func (r Annotation) AsUnion() AnnotationUnion + type AnnotationDelta struct + EndIndex int64 + FileCitation interface{} + FilePath interface{} + Index int64 + JSON annotationDeltaJSON + StartIndex int64 + Text string + Type AnnotationDeltaType + func (r *AnnotationDelta) UnmarshalJSON(data []byte) (err error) + func (r AnnotationDelta) AsUnion() AnnotationDeltaUnion + type AnnotationDeltaType string + const AnnotationDeltaTypeFileCitation + const AnnotationDeltaTypeFilePath + func (r AnnotationDeltaType) IsKnown() bool + type AnnotationDeltaUnion interface + type AnnotationType string + const AnnotationTypeFileCitation + const AnnotationTypeFilePath + func (r AnnotationType) IsKnown() bool + type AnnotationUnion interface + type Assistant struct + CreatedAt int64 + Description string + ID string + Instructions string + JSON assistantJSON + Metadata interface{} + Model string + Name string + Object AssistantObject + Temperature float64 + ToolResources AssistantToolResources + Tools []AssistantTool + TopP float64 + func (r *Assistant) UnmarshalJSON(data []byte) (err error) + type AssistantDeleted struct + Deleted bool + ID string + JSON assistantDeletedJSON + Object AssistantDeletedObject + func (r *AssistantDeleted) UnmarshalJSON(data []byte) (err error) + type AssistantDeletedObject string + const AssistantDeletedObjectAssistantDeleted + func (r AssistantDeletedObject) IsKnown() bool + type AssistantObject string + const AssistantObjectAssistant + func (r AssistantObject) IsKnown() bool + type AssistantStreamEvent struct + Data interface{} + Event AssistantStreamEventEvent + JSON assistantStreamEventJSON + func (r *AssistantStreamEvent) UnmarshalJSON(data []byte) (err error) + func (r AssistantStreamEvent) AsUnion() AssistantStreamEventUnion + type AssistantStreamEventErrorEvent struct + Data shared.ErrorObject + Event AssistantStreamEventErrorEventEvent + JSON assistantStreamEventErrorEventJSON + func (r *AssistantStreamEventErrorEvent) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventErrorEventEvent string + const AssistantStreamEventErrorEventEventError + func (r AssistantStreamEventErrorEventEvent) IsKnown() bool + type AssistantStreamEventEvent string + const AssistantStreamEventEventError + const AssistantStreamEventEventThreadCreated + const AssistantStreamEventEventThreadMessageCompleted + const AssistantStreamEventEventThreadMessageCreated + const AssistantStreamEventEventThreadMessageDelta + const AssistantStreamEventEventThreadMessageInProgress + const AssistantStreamEventEventThreadMessageIncomplete + const AssistantStreamEventEventThreadRunCancelled + const AssistantStreamEventEventThreadRunCancelling + const AssistantStreamEventEventThreadRunCompleted + const AssistantStreamEventEventThreadRunCreated + const AssistantStreamEventEventThreadRunExpired + const AssistantStreamEventEventThreadRunFailed + const AssistantStreamEventEventThreadRunInProgress + const AssistantStreamEventEventThreadRunIncomplete + const AssistantStreamEventEventThreadRunQueued + const AssistantStreamEventEventThreadRunRequiresAction + const AssistantStreamEventEventThreadRunStepCancelled + const AssistantStreamEventEventThreadRunStepCompleted + const AssistantStreamEventEventThreadRunStepCreated + const AssistantStreamEventEventThreadRunStepDelta + const AssistantStreamEventEventThreadRunStepExpired + const AssistantStreamEventEventThreadRunStepFailed + const AssistantStreamEventEventThreadRunStepInProgress + func (r AssistantStreamEventEvent) IsKnown() bool + type AssistantStreamEventThreadCreated struct + Data Thread + Event AssistantStreamEventThreadCreatedEvent + JSON assistantStreamEventThreadCreatedJSON + func (r *AssistantStreamEventThreadCreated) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadCreatedEvent string + const AssistantStreamEventThreadCreatedEventThreadCreated + func (r AssistantStreamEventThreadCreatedEvent) IsKnown() bool + type AssistantStreamEventThreadMessageCompleted struct + Data Message + Event AssistantStreamEventThreadMessageCompletedEvent + JSON assistantStreamEventThreadMessageCompletedJSON + func (r *AssistantStreamEventThreadMessageCompleted) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadMessageCompletedEvent string + const AssistantStreamEventThreadMessageCompletedEventThreadMessageCompleted + func (r AssistantStreamEventThreadMessageCompletedEvent) IsKnown() bool + type AssistantStreamEventThreadMessageCreated struct + Data Message + Event AssistantStreamEventThreadMessageCreatedEvent + JSON assistantStreamEventThreadMessageCreatedJSON + func (r *AssistantStreamEventThreadMessageCreated) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadMessageCreatedEvent string + const AssistantStreamEventThreadMessageCreatedEventThreadMessageCreated + func (r AssistantStreamEventThreadMessageCreatedEvent) IsKnown() bool + type AssistantStreamEventThreadMessageDelta struct + Data MessageDeltaEvent + Event AssistantStreamEventThreadMessageDeltaEvent + JSON assistantStreamEventThreadMessageDeltaJSON + func (r *AssistantStreamEventThreadMessageDelta) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadMessageDeltaEvent string + const AssistantStreamEventThreadMessageDeltaEventThreadMessageDelta + func (r AssistantStreamEventThreadMessageDeltaEvent) IsKnown() bool + type AssistantStreamEventThreadMessageInProgress struct + Data Message + Event AssistantStreamEventThreadMessageInProgressEvent + JSON assistantStreamEventThreadMessageInProgressJSON + func (r *AssistantStreamEventThreadMessageInProgress) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadMessageInProgressEvent string + const AssistantStreamEventThreadMessageInProgressEventThreadMessageInProgress + func (r AssistantStreamEventThreadMessageInProgressEvent) IsKnown() bool + type AssistantStreamEventThreadMessageIncomplete struct + Data Message + Event AssistantStreamEventThreadMessageIncompleteEvent + JSON assistantStreamEventThreadMessageIncompleteJSON + func (r *AssistantStreamEventThreadMessageIncomplete) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadMessageIncompleteEvent string + const AssistantStreamEventThreadMessageIncompleteEventThreadMessageIncomplete + func (r AssistantStreamEventThreadMessageIncompleteEvent) IsKnown() bool + type AssistantStreamEventThreadRunCancelled struct + Data Run + Event AssistantStreamEventThreadRunCancelledEvent + JSON assistantStreamEventThreadRunCancelledJSON + func (r *AssistantStreamEventThreadRunCancelled) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunCancelledEvent string + const AssistantStreamEventThreadRunCancelledEventThreadRunCancelled + func (r AssistantStreamEventThreadRunCancelledEvent) IsKnown() bool + type AssistantStreamEventThreadRunCancelling struct + Data Run + Event AssistantStreamEventThreadRunCancellingEvent + JSON assistantStreamEventThreadRunCancellingJSON + func (r *AssistantStreamEventThreadRunCancelling) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunCancellingEvent string + const AssistantStreamEventThreadRunCancellingEventThreadRunCancelling + func (r AssistantStreamEventThreadRunCancellingEvent) IsKnown() bool + type AssistantStreamEventThreadRunCompleted struct + Data Run + Event AssistantStreamEventThreadRunCompletedEvent + JSON assistantStreamEventThreadRunCompletedJSON + func (r *AssistantStreamEventThreadRunCompleted) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunCompletedEvent string + const AssistantStreamEventThreadRunCompletedEventThreadRunCompleted + func (r AssistantStreamEventThreadRunCompletedEvent) IsKnown() bool + type AssistantStreamEventThreadRunCreated struct + Data Run + Event AssistantStreamEventThreadRunCreatedEvent + JSON assistantStreamEventThreadRunCreatedJSON + func (r *AssistantStreamEventThreadRunCreated) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunCreatedEvent string + const AssistantStreamEventThreadRunCreatedEventThreadRunCreated + func (r AssistantStreamEventThreadRunCreatedEvent) IsKnown() bool + type AssistantStreamEventThreadRunExpired struct + Data Run + Event AssistantStreamEventThreadRunExpiredEvent + JSON assistantStreamEventThreadRunExpiredJSON + func (r *AssistantStreamEventThreadRunExpired) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunExpiredEvent string + const AssistantStreamEventThreadRunExpiredEventThreadRunExpired + func (r AssistantStreamEventThreadRunExpiredEvent) IsKnown() bool + type AssistantStreamEventThreadRunFailed struct + Data Run + Event AssistantStreamEventThreadRunFailedEvent + JSON assistantStreamEventThreadRunFailedJSON + func (r *AssistantStreamEventThreadRunFailed) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunFailedEvent string + const AssistantStreamEventThreadRunFailedEventThreadRunFailed + func (r AssistantStreamEventThreadRunFailedEvent) IsKnown() bool + type AssistantStreamEventThreadRunInProgress struct + Data Run + Event AssistantStreamEventThreadRunInProgressEvent + JSON assistantStreamEventThreadRunInProgressJSON + func (r *AssistantStreamEventThreadRunInProgress) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunInProgressEvent string + const AssistantStreamEventThreadRunInProgressEventThreadRunInProgress + func (r AssistantStreamEventThreadRunInProgressEvent) IsKnown() bool + type AssistantStreamEventThreadRunIncomplete struct + Data Run + Event AssistantStreamEventThreadRunIncompleteEvent + JSON assistantStreamEventThreadRunIncompleteJSON + func (r *AssistantStreamEventThreadRunIncomplete) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunIncompleteEvent string + const AssistantStreamEventThreadRunIncompleteEventThreadRunIncomplete + func (r AssistantStreamEventThreadRunIncompleteEvent) IsKnown() bool + type AssistantStreamEventThreadRunQueued struct + Data Run + Event AssistantStreamEventThreadRunQueuedEvent + JSON assistantStreamEventThreadRunQueuedJSON + func (r *AssistantStreamEventThreadRunQueued) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunQueuedEvent string + const AssistantStreamEventThreadRunQueuedEventThreadRunQueued + func (r AssistantStreamEventThreadRunQueuedEvent) IsKnown() bool + type AssistantStreamEventThreadRunRequiresAction struct + Data Run + Event AssistantStreamEventThreadRunRequiresActionEvent + JSON assistantStreamEventThreadRunRequiresActionJSON + func (r *AssistantStreamEventThreadRunRequiresAction) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunRequiresActionEvent string + const AssistantStreamEventThreadRunRequiresActionEventThreadRunRequiresAction + func (r AssistantStreamEventThreadRunRequiresActionEvent) IsKnown() bool + type AssistantStreamEventThreadRunStepCancelled struct + Data RunStep + Event AssistantStreamEventThreadRunStepCancelledEvent + JSON assistantStreamEventThreadRunStepCancelledJSON + func (r *AssistantStreamEventThreadRunStepCancelled) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunStepCancelledEvent string + const AssistantStreamEventThreadRunStepCancelledEventThreadRunStepCancelled + func (r AssistantStreamEventThreadRunStepCancelledEvent) IsKnown() bool + type AssistantStreamEventThreadRunStepCompleted struct + Data RunStep + Event AssistantStreamEventThreadRunStepCompletedEvent + JSON assistantStreamEventThreadRunStepCompletedJSON + func (r *AssistantStreamEventThreadRunStepCompleted) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunStepCompletedEvent string + const AssistantStreamEventThreadRunStepCompletedEventThreadRunStepCompleted + func (r AssistantStreamEventThreadRunStepCompletedEvent) IsKnown() bool + type AssistantStreamEventThreadRunStepCreated struct + Data RunStep + Event AssistantStreamEventThreadRunStepCreatedEvent + JSON assistantStreamEventThreadRunStepCreatedJSON + func (r *AssistantStreamEventThreadRunStepCreated) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunStepCreatedEvent string + const AssistantStreamEventThreadRunStepCreatedEventThreadRunStepCreated + func (r AssistantStreamEventThreadRunStepCreatedEvent) IsKnown() bool + type AssistantStreamEventThreadRunStepDelta struct + Data RunStepDeltaEvent + Event AssistantStreamEventThreadRunStepDeltaEvent + JSON assistantStreamEventThreadRunStepDeltaJSON + func (r *AssistantStreamEventThreadRunStepDelta) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunStepDeltaEvent string + const AssistantStreamEventThreadRunStepDeltaEventThreadRunStepDelta + func (r AssistantStreamEventThreadRunStepDeltaEvent) IsKnown() bool + type AssistantStreamEventThreadRunStepExpired struct + Data RunStep + Event AssistantStreamEventThreadRunStepExpiredEvent + JSON assistantStreamEventThreadRunStepExpiredJSON + func (r *AssistantStreamEventThreadRunStepExpired) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunStepExpiredEvent string + const AssistantStreamEventThreadRunStepExpiredEventThreadRunStepExpired + func (r AssistantStreamEventThreadRunStepExpiredEvent) IsKnown() bool + type AssistantStreamEventThreadRunStepFailed struct + Data RunStep + Event AssistantStreamEventThreadRunStepFailedEvent + JSON assistantStreamEventThreadRunStepFailedJSON + func (r *AssistantStreamEventThreadRunStepFailed) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunStepFailedEvent string + const AssistantStreamEventThreadRunStepFailedEventThreadRunStepFailed + func (r AssistantStreamEventThreadRunStepFailedEvent) IsKnown() bool + type AssistantStreamEventThreadRunStepInProgress struct + Data RunStep + Event AssistantStreamEventThreadRunStepInProgressEvent + JSON assistantStreamEventThreadRunStepInProgressJSON + func (r *AssistantStreamEventThreadRunStepInProgress) UnmarshalJSON(data []byte) (err error) + type AssistantStreamEventThreadRunStepInProgressEvent string + const AssistantStreamEventThreadRunStepInProgressEventThreadRunStepInProgress + func (r AssistantStreamEventThreadRunStepInProgressEvent) IsKnown() bool + type AssistantStreamEventUnion interface + type AssistantTool struct + FileSearch interface{} + Function shared.FunctionDefinition + JSON assistantToolJSON + Type AssistantToolType + func (r *AssistantTool) UnmarshalJSON(data []byte) (err error) + func (r AssistantTool) AsUnion() AssistantToolUnion + type AssistantToolChoice struct + Function AssistantToolChoiceFunction + JSON assistantToolChoiceJSON + Type AssistantToolChoiceType + func (r *AssistantToolChoice) UnmarshalJSON(data []byte) (err error) + type AssistantToolChoiceFunction struct + JSON assistantToolChoiceFunctionJSON + Name string + func (r *AssistantToolChoiceFunction) UnmarshalJSON(data []byte) (err error) + type AssistantToolChoiceFunctionParam struct + Name param.Field[string] + func (r AssistantToolChoiceFunctionParam) MarshalJSON() (data []byte, err error) + type AssistantToolChoiceOptionString string + const AssistantToolChoiceOptionStringAuto + const AssistantToolChoiceOptionStringNone + const AssistantToolChoiceOptionStringRequired + func (r AssistantToolChoiceOptionString) IsKnown() bool + type AssistantToolChoiceOptionUnion interface + type AssistantToolChoiceOptionUnionParam interface + type AssistantToolChoiceParam struct + Function param.Field[AssistantToolChoiceFunctionParam] + Type param.Field[AssistantToolChoiceType] + func (r AssistantToolChoiceParam) MarshalJSON() (data []byte, err error) + type AssistantToolChoiceType string + const AssistantToolChoiceTypeCodeInterpreter + const AssistantToolChoiceTypeFileSearch + const AssistantToolChoiceTypeFunction + func (r AssistantToolChoiceType) IsKnown() bool + type AssistantToolParam struct + FileSearch param.Field[interface{}] + Function param.Field[shared.FunctionDefinitionParam] + Type param.Field[AssistantToolType] + func (r AssistantToolParam) MarshalJSON() (data []byte, err error) + type AssistantToolResources struct + CodeInterpreter AssistantToolResourcesCodeInterpreter + FileSearch AssistantToolResourcesFileSearch + JSON assistantToolResourcesJSON + func (r *AssistantToolResources) UnmarshalJSON(data []byte) (err error) + type AssistantToolResourcesCodeInterpreter struct + FileIDs []string + JSON assistantToolResourcesCodeInterpreterJSON + func (r *AssistantToolResourcesCodeInterpreter) UnmarshalJSON(data []byte) (err error) + type AssistantToolResourcesFileSearch struct + JSON assistantToolResourcesFileSearchJSON + VectorStoreIDs []string + func (r *AssistantToolResourcesFileSearch) UnmarshalJSON(data []byte) (err error) + type AssistantToolType string + const AssistantToolTypeCodeInterpreter + const AssistantToolTypeFileSearch + const AssistantToolTypeFunction + func (r AssistantToolType) IsKnown() bool + type AssistantToolUnion interface + type AssistantToolUnionParam interface + type AudioModel = string + const AudioModelWhisper1 + type AudioService struct + Options []option.RequestOption + Speech *AudioSpeechService + Transcriptions *AudioTranscriptionService + Translations *AudioTranslationService + func NewAudioService(opts ...option.RequestOption) (r *AudioService) + type AudioSpeechNewParams struct + Input param.Field[string] + Model param.Field[SpeechModel] + ResponseFormat param.Field[AudioSpeechNewParamsResponseFormat] + Speed param.Field[float64] + Voice param.Field[AudioSpeechNewParamsVoice] + func (r AudioSpeechNewParams) MarshalJSON() (data []byte, err error) + type AudioSpeechNewParamsResponseFormat string + const AudioSpeechNewParamsResponseFormatAAC + const AudioSpeechNewParamsResponseFormatFLAC + const AudioSpeechNewParamsResponseFormatMP3 + const AudioSpeechNewParamsResponseFormatOpus + const AudioSpeechNewParamsResponseFormatPCM + const AudioSpeechNewParamsResponseFormatWAV + func (r AudioSpeechNewParamsResponseFormat) IsKnown() bool + type AudioSpeechNewParamsVoice string + const AudioSpeechNewParamsVoiceAlloy + const AudioSpeechNewParamsVoiceEcho + const AudioSpeechNewParamsVoiceFable + const AudioSpeechNewParamsVoiceNova + const AudioSpeechNewParamsVoiceOnyx + const AudioSpeechNewParamsVoiceShimmer + func (r AudioSpeechNewParamsVoice) IsKnown() bool + type AudioSpeechService struct + Options []option.RequestOption + func NewAudioSpeechService(opts ...option.RequestOption) (r *AudioSpeechService) + func (r *AudioSpeechService) New(ctx context.Context, body AudioSpeechNewParams, opts ...option.RequestOption) (res *http.Response, err error) + type AudioTranscriptionNewParams struct + File param.Field[io.Reader] + Language param.Field[string] + Model param.Field[AudioModel] + Prompt param.Field[string] + ResponseFormat param.Field[AudioTranscriptionNewParamsResponseFormat] + Temperature param.Field[float64] + TimestampGranularities param.Field[[]AudioTranscriptionNewParamsTimestampGranularity] + func (r AudioTranscriptionNewParams) MarshalMultipart() (data []byte, contentType string, err error) + type AudioTranscriptionNewParamsResponseFormat string + const AudioTranscriptionNewParamsResponseFormatJSON + const AudioTranscriptionNewParamsResponseFormatSRT + const AudioTranscriptionNewParamsResponseFormatText + const AudioTranscriptionNewParamsResponseFormatVTT + const AudioTranscriptionNewParamsResponseFormatVerboseJSON + func (r AudioTranscriptionNewParamsResponseFormat) IsKnown() bool + type AudioTranscriptionNewParamsTimestampGranularity string + const AudioTranscriptionNewParamsTimestampGranularitySegment + const AudioTranscriptionNewParamsTimestampGranularityWord + func (r AudioTranscriptionNewParamsTimestampGranularity) IsKnown() bool + type AudioTranscriptionService struct + Options []option.RequestOption + func NewAudioTranscriptionService(opts ...option.RequestOption) (r *AudioTranscriptionService) + func (r *AudioTranscriptionService) New(ctx context.Context, body AudioTranscriptionNewParams, ...) (res *Transcription, err error) + type AudioTranslationNewParams struct + File param.Field[io.Reader] + Model param.Field[AudioModel] + Prompt param.Field[string] + ResponseFormat param.Field[string] + Temperature param.Field[float64] + func (r AudioTranslationNewParams) MarshalMultipart() (data []byte, contentType string, err error) + type AudioTranslationService struct + Options []option.RequestOption + func NewAudioTranslationService(opts ...option.RequestOption) (r *AudioTranslationService) + func (r *AudioTranslationService) New(ctx context.Context, body AudioTranslationNewParams, ...) (res *Translation, err error) + type AutoFileChunkingStrategyParam struct + Type param.Field[AutoFileChunkingStrategyParamType] + func (r AutoFileChunkingStrategyParam) MarshalJSON() (data []byte, err error) + type AutoFileChunkingStrategyParamType string + const AutoFileChunkingStrategyParamTypeAuto + func (r AutoFileChunkingStrategyParamType) IsKnown() bool + type Batch struct + CancelledAt int64 + CancellingAt int64 + CompletedAt int64 + CompletionWindow string + CreatedAt int64 + Endpoint string + ErrorFileID string + Errors BatchErrors + ExpiredAt int64 + ExpiresAt int64 + FailedAt int64 + FinalizingAt int64 + ID string + InProgressAt int64 + InputFileID string + JSON batchJSON + Metadata interface{} + Object BatchObject + OutputFileID string + RequestCounts BatchRequestCounts + Status BatchStatus + func (r *Batch) UnmarshalJSON(data []byte) (err error) + type BatchError struct + Code string + JSON batchErrorJSON + Line int64 + Message string + Param string + func (r *BatchError) UnmarshalJSON(data []byte) (err error) + type BatchErrors struct + Data []BatchError + JSON batchErrorsJSON + Object string + func (r *BatchErrors) UnmarshalJSON(data []byte) (err error) + type BatchListParams struct + After param.Field[string] + Limit param.Field[int64] + func (r BatchListParams) URLQuery() (v url.Values) + type BatchNewParams struct + CompletionWindow param.Field[BatchNewParamsCompletionWindow] + Endpoint param.Field[BatchNewParamsEndpoint] + InputFileID param.Field[string] + Metadata param.Field[map[string]string] + func (r BatchNewParams) MarshalJSON() (data []byte, err error) + type BatchNewParamsCompletionWindow string + const BatchNewParamsCompletionWindow24h + func (r BatchNewParamsCompletionWindow) IsKnown() bool + type BatchNewParamsEndpoint string + const BatchNewParamsEndpointV1ChatCompletions + const BatchNewParamsEndpointV1Completions + const BatchNewParamsEndpointV1Embeddings + func (r BatchNewParamsEndpoint) IsKnown() bool + type BatchObject string + const BatchObjectBatch + func (r BatchObject) IsKnown() bool + type BatchRequestCounts struct + Completed int64 + Failed int64 + JSON batchRequestCountsJSON + Total int64 + func (r *BatchRequestCounts) UnmarshalJSON(data []byte) (err error) + type BatchService struct + Options []option.RequestOption + func NewBatchService(opts ...option.RequestOption) (r *BatchService) + func (r *BatchService) Cancel(ctx context.Context, batchID string, opts ...option.RequestOption) (res *Batch, err error) + func (r *BatchService) Get(ctx context.Context, batchID string, opts ...option.RequestOption) (res *Batch, err error) + func (r *BatchService) List(ctx context.Context, query BatchListParams, opts ...option.RequestOption) (res *pagination.CursorPage[Batch], err error) + func (r *BatchService) ListAutoPaging(ctx context.Context, query BatchListParams, opts ...option.RequestOption) *pagination.CursorPageAutoPager[Batch] + func (r *BatchService) New(ctx context.Context, body BatchNewParams, opts ...option.RequestOption) (res *Batch, err error) + type BatchStatus string + const BatchStatusCancelled + const BatchStatusCancelling + const BatchStatusCompleted + const BatchStatusExpired + const BatchStatusFailed + const BatchStatusFinalizing + const BatchStatusInProgress + const BatchStatusValidating + func (r BatchStatus) IsKnown() bool + type BetaAssistantListParams struct + After param.Field[string] + Before param.Field[string] + Limit param.Field[int64] + Order param.Field[BetaAssistantListParamsOrder] + func (r BetaAssistantListParams) URLQuery() (v url.Values) + type BetaAssistantListParamsOrder string + const BetaAssistantListParamsOrderAsc + const BetaAssistantListParamsOrderDesc + func (r BetaAssistantListParamsOrder) IsKnown() bool + type BetaAssistantNewParams struct + Description param.Field[string] + Instructions param.Field[string] + Metadata param.Field[interface{}] + Model param.Field[ChatModel] + Name param.Field[string] + Temperature param.Field[float64] + ToolResources param.Field[BetaAssistantNewParamsToolResources] + Tools param.Field[[]AssistantToolUnionParam] + TopP param.Field[float64] + func (r BetaAssistantNewParams) MarshalJSON() (data []byte, err error) + type BetaAssistantNewParamsToolResources struct + CodeInterpreter param.Field[BetaAssistantNewParamsToolResourcesCodeInterpreter] + FileSearch param.Field[BetaAssistantNewParamsToolResourcesFileSearch] + func (r BetaAssistantNewParamsToolResources) MarshalJSON() (data []byte, err error) + type BetaAssistantNewParamsToolResourcesCodeInterpreter struct + FileIDs param.Field[[]string] + func (r BetaAssistantNewParamsToolResourcesCodeInterpreter) MarshalJSON() (data []byte, err error) + type BetaAssistantNewParamsToolResourcesFileSearch struct + VectorStoreIDs param.Field[[]string] + VectorStores param.Field[[]BetaAssistantNewParamsToolResourcesFileSearchVectorStore] + func (r BetaAssistantNewParamsToolResourcesFileSearch) MarshalJSON() (data []byte, err error) + type BetaAssistantNewParamsToolResourcesFileSearchVectorStore struct + ChunkingStrategy param.Field[FileChunkingStrategyParamUnion] + FileIDs param.Field[[]string] + Metadata param.Field[interface{}] + func (r BetaAssistantNewParamsToolResourcesFileSearchVectorStore) MarshalJSON() (data []byte, err error) + type BetaAssistantService struct + Options []option.RequestOption + func NewBetaAssistantService(opts ...option.RequestOption) (r *BetaAssistantService) + func (r *BetaAssistantService) Delete(ctx context.Context, assistantID string, opts ...option.RequestOption) (res *AssistantDeleted, err error) + func (r *BetaAssistantService) Get(ctx context.Context, assistantID string, opts ...option.RequestOption) (res *Assistant, err error) + func (r *BetaAssistantService) List(ctx context.Context, query BetaAssistantListParams, ...) (res *pagination.CursorPage[Assistant], err error) + func (r *BetaAssistantService) ListAutoPaging(ctx context.Context, query BetaAssistantListParams, ...) *pagination.CursorPageAutoPager[Assistant] + func (r *BetaAssistantService) New(ctx context.Context, body BetaAssistantNewParams, opts ...option.RequestOption) (res *Assistant, err error) + func (r *BetaAssistantService) Update(ctx context.Context, assistantID string, body BetaAssistantUpdateParams, ...) (res *Assistant, err error) + type BetaAssistantUpdateParams struct + Description param.Field[string] + Instructions param.Field[string] + Metadata param.Field[interface{}] + Model param.Field[string] + Name param.Field[string] + Temperature param.Field[float64] + ToolResources param.Field[BetaAssistantUpdateParamsToolResources] + Tools param.Field[[]AssistantToolUnionParam] + TopP param.Field[float64] + func (r BetaAssistantUpdateParams) MarshalJSON() (data []byte, err error) + type BetaAssistantUpdateParamsToolResources struct + CodeInterpreter param.Field[BetaAssistantUpdateParamsToolResourcesCodeInterpreter] + FileSearch param.Field[BetaAssistantUpdateParamsToolResourcesFileSearch] + func (r BetaAssistantUpdateParamsToolResources) MarshalJSON() (data []byte, err error) + type BetaAssistantUpdateParamsToolResourcesCodeInterpreter struct + FileIDs param.Field[[]string] + func (r BetaAssistantUpdateParamsToolResourcesCodeInterpreter) MarshalJSON() (data []byte, err error) + type BetaAssistantUpdateParamsToolResourcesFileSearch struct + VectorStoreIDs param.Field[[]string] + func (r BetaAssistantUpdateParamsToolResourcesFileSearch) MarshalJSON() (data []byte, err error) + type BetaService struct + Assistants *BetaAssistantService + Options []option.RequestOption + Threads *BetaThreadService + VectorStores *BetaVectorStoreService + func NewBetaService(opts ...option.RequestOption) (r *BetaService) + type BetaThreadMessageListParams struct + After param.Field[string] + Before param.Field[string] + Limit param.Field[int64] + Order param.Field[BetaThreadMessageListParamsOrder] + RunID param.Field[string] + func (r BetaThreadMessageListParams) URLQuery() (v url.Values) + type BetaThreadMessageListParamsOrder string + const BetaThreadMessageListParamsOrderAsc + const BetaThreadMessageListParamsOrderDesc + func (r BetaThreadMessageListParamsOrder) IsKnown() bool + type BetaThreadMessageNewParams struct + Attachments param.Field[[]BetaThreadMessageNewParamsAttachment] + Content param.Field[[]MessageContentPartParamUnion] + Metadata param.Field[interface{}] + Role param.Field[BetaThreadMessageNewParamsRole] + func (r BetaThreadMessageNewParams) MarshalJSON() (data []byte, err error) + type BetaThreadMessageNewParamsAttachment struct + FileID param.Field[string] + Tools param.Field[[]BetaThreadMessageNewParamsAttachmentsToolUnion] + func (r BetaThreadMessageNewParamsAttachment) MarshalJSON() (data []byte, err error) + type BetaThreadMessageNewParamsAttachmentsTool struct + Type param.Field[BetaThreadMessageNewParamsAttachmentsToolsType] + func (r BetaThreadMessageNewParamsAttachmentsTool) MarshalJSON() (data []byte, err error) + type BetaThreadMessageNewParamsAttachmentsToolUnion interface + type BetaThreadMessageNewParamsAttachmentsToolsFileSearch struct + Type param.Field[BetaThreadMessageNewParamsAttachmentsToolsFileSearchType] + func (r BetaThreadMessageNewParamsAttachmentsToolsFileSearch) MarshalJSON() (data []byte, err error) + type BetaThreadMessageNewParamsAttachmentsToolsFileSearchType string + const BetaThreadMessageNewParamsAttachmentsToolsFileSearchTypeFileSearch + func (r BetaThreadMessageNewParamsAttachmentsToolsFileSearchType) IsKnown() bool + type BetaThreadMessageNewParamsAttachmentsToolsType string + const BetaThreadMessageNewParamsAttachmentsToolsTypeCodeInterpreter + const BetaThreadMessageNewParamsAttachmentsToolsTypeFileSearch + func (r BetaThreadMessageNewParamsAttachmentsToolsType) IsKnown() bool + type BetaThreadMessageNewParamsRole string + const BetaThreadMessageNewParamsRoleAssistant + const BetaThreadMessageNewParamsRoleUser + func (r BetaThreadMessageNewParamsRole) IsKnown() bool + type BetaThreadMessageService struct + Options []option.RequestOption + func NewBetaThreadMessageService(opts ...option.RequestOption) (r *BetaThreadMessageService) + func (r *BetaThreadMessageService) Delete(ctx context.Context, threadID string, messageID string, ...) (res *MessageDeleted, err error) + func (r *BetaThreadMessageService) Get(ctx context.Context, threadID string, messageID string, ...) (res *Message, err error) + func (r *BetaThreadMessageService) List(ctx context.Context, threadID string, query BetaThreadMessageListParams, ...) (res *pagination.CursorPage[Message], err error) + func (r *BetaThreadMessageService) ListAutoPaging(ctx context.Context, threadID string, query BetaThreadMessageListParams, ...) *pagination.CursorPageAutoPager[Message] + func (r *BetaThreadMessageService) New(ctx context.Context, threadID string, body BetaThreadMessageNewParams, ...) (res *Message, err error) + func (r *BetaThreadMessageService) Update(ctx context.Context, threadID string, messageID string, ...) (res *Message, err error) + type BetaThreadMessageUpdateParams struct + Metadata param.Field[interface{}] + func (r BetaThreadMessageUpdateParams) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParams struct + AssistantID param.Field[string] + Instructions param.Field[string] + MaxCompletionTokens param.Field[int64] + MaxPromptTokens param.Field[int64] + Metadata param.Field[interface{}] + Model param.Field[ChatModel] + ParallelToolCalls param.Field[bool] + Temperature param.Field[float64] + Thread param.Field[BetaThreadNewAndRunParamsThread] + ToolChoice param.Field[AssistantToolChoiceOptionUnionParam] + ToolResources param.Field[BetaThreadNewAndRunParamsToolResources] + Tools param.Field[[]BetaThreadNewAndRunParamsToolUnion] + TopP param.Field[float64] + TruncationStrategy param.Field[BetaThreadNewAndRunParamsTruncationStrategy] + func (r BetaThreadNewAndRunParams) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsThread struct + Messages param.Field[[]BetaThreadNewAndRunParamsThreadMessage] + Metadata param.Field[interface{}] + ToolResources param.Field[BetaThreadNewAndRunParamsThreadToolResources] + func (r BetaThreadNewAndRunParamsThread) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsThreadMessage struct + Attachments param.Field[[]BetaThreadNewAndRunParamsThreadMessagesAttachment] + Content param.Field[[]MessageContentPartParamUnion] + Metadata param.Field[interface{}] + Role param.Field[BetaThreadNewAndRunParamsThreadMessagesRole] + func (r BetaThreadNewAndRunParamsThreadMessage) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsThreadMessagesAttachment struct + FileID param.Field[string] + Tools param.Field[[]BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolUnion] + func (r BetaThreadNewAndRunParamsThreadMessagesAttachment) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsThreadMessagesAttachmentsTool struct + Type param.Field[BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsType] + func (r BetaThreadNewAndRunParamsThreadMessagesAttachmentsTool) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolUnion interface + type BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsFileSearch struct + Type param.Field[BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsFileSearchType] + func (r BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsFileSearch) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsFileSearchType string + const BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsFileSearchTypeFileSearch + func (r BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsFileSearchType) IsKnown() bool + type BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsType string + const BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsTypeCodeInterpreter + const BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsTypeFileSearch + func (r BetaThreadNewAndRunParamsThreadMessagesAttachmentsToolsType) IsKnown() bool + type BetaThreadNewAndRunParamsThreadMessagesRole string + const BetaThreadNewAndRunParamsThreadMessagesRoleAssistant + const BetaThreadNewAndRunParamsThreadMessagesRoleUser + func (r BetaThreadNewAndRunParamsThreadMessagesRole) IsKnown() bool + type BetaThreadNewAndRunParamsThreadToolResources struct + CodeInterpreter param.Field[BetaThreadNewAndRunParamsThreadToolResourcesCodeInterpreter] + FileSearch param.Field[BetaThreadNewAndRunParamsThreadToolResourcesFileSearch] + func (r BetaThreadNewAndRunParamsThreadToolResources) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsThreadToolResourcesCodeInterpreter struct + FileIDs param.Field[[]string] + func (r BetaThreadNewAndRunParamsThreadToolResourcesCodeInterpreter) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsThreadToolResourcesFileSearch struct + VectorStoreIDs param.Field[[]string] + VectorStores param.Field[[]BetaThreadNewAndRunParamsThreadToolResourcesFileSearchVectorStore] + func (r BetaThreadNewAndRunParamsThreadToolResourcesFileSearch) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsThreadToolResourcesFileSearchVectorStore struct + ChunkingStrategy param.Field[FileChunkingStrategyParamUnion] + FileIDs param.Field[[]string] + Metadata param.Field[interface{}] + func (r BetaThreadNewAndRunParamsThreadToolResourcesFileSearchVectorStore) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsTool struct + FileSearch param.Field[interface{}] + Function param.Field[shared.FunctionDefinitionParam] + Type param.Field[BetaThreadNewAndRunParamsToolsType] + func (r BetaThreadNewAndRunParamsTool) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsToolResources struct + CodeInterpreter param.Field[BetaThreadNewAndRunParamsToolResourcesCodeInterpreter] + FileSearch param.Field[BetaThreadNewAndRunParamsToolResourcesFileSearch] + func (r BetaThreadNewAndRunParamsToolResources) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsToolResourcesCodeInterpreter struct + FileIDs param.Field[[]string] + func (r BetaThreadNewAndRunParamsToolResourcesCodeInterpreter) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsToolResourcesFileSearch struct + VectorStoreIDs param.Field[[]string] + func (r BetaThreadNewAndRunParamsToolResourcesFileSearch) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsToolUnion interface + type BetaThreadNewAndRunParamsToolsType string + const BetaThreadNewAndRunParamsToolsTypeCodeInterpreter + const BetaThreadNewAndRunParamsToolsTypeFileSearch + const BetaThreadNewAndRunParamsToolsTypeFunction + func (r BetaThreadNewAndRunParamsToolsType) IsKnown() bool + type BetaThreadNewAndRunParamsTruncationStrategy struct + LastMessages param.Field[int64] + Type param.Field[BetaThreadNewAndRunParamsTruncationStrategyType] + func (r BetaThreadNewAndRunParamsTruncationStrategy) MarshalJSON() (data []byte, err error) + type BetaThreadNewAndRunParamsTruncationStrategyType string + const BetaThreadNewAndRunParamsTruncationStrategyTypeAuto + const BetaThreadNewAndRunParamsTruncationStrategyTypeLastMessages + func (r BetaThreadNewAndRunParamsTruncationStrategyType) IsKnown() bool + type BetaThreadNewParams struct + Messages param.Field[[]BetaThreadNewParamsMessage] + Metadata param.Field[interface{}] + ToolResources param.Field[BetaThreadNewParamsToolResources] + func (r BetaThreadNewParams) MarshalJSON() (data []byte, err error) + type BetaThreadNewParamsMessage struct + Attachments param.Field[[]BetaThreadNewParamsMessagesAttachment] + Content param.Field[[]MessageContentPartParamUnion] + Metadata param.Field[interface{}] + Role param.Field[BetaThreadNewParamsMessagesRole] + func (r BetaThreadNewParamsMessage) MarshalJSON() (data []byte, err error) + type BetaThreadNewParamsMessagesAttachment struct + FileID param.Field[string] + Tools param.Field[[]BetaThreadNewParamsMessagesAttachmentsToolUnion] + func (r BetaThreadNewParamsMessagesAttachment) MarshalJSON() (data []byte, err error) + type BetaThreadNewParamsMessagesAttachmentsTool struct + Type param.Field[BetaThreadNewParamsMessagesAttachmentsToolsType] + func (r BetaThreadNewParamsMessagesAttachmentsTool) MarshalJSON() (data []byte, err error) + type BetaThreadNewParamsMessagesAttachmentsToolUnion interface + type BetaThreadNewParamsMessagesAttachmentsToolsFileSearch struct + Type param.Field[BetaThreadNewParamsMessagesAttachmentsToolsFileSearchType] + func (r BetaThreadNewParamsMessagesAttachmentsToolsFileSearch) MarshalJSON() (data []byte, err error) + type BetaThreadNewParamsMessagesAttachmentsToolsFileSearchType string + const BetaThreadNewParamsMessagesAttachmentsToolsFileSearchTypeFileSearch + func (r BetaThreadNewParamsMessagesAttachmentsToolsFileSearchType) IsKnown() bool + type BetaThreadNewParamsMessagesAttachmentsToolsType string + const BetaThreadNewParamsMessagesAttachmentsToolsTypeCodeInterpreter + const BetaThreadNewParamsMessagesAttachmentsToolsTypeFileSearch + func (r BetaThreadNewParamsMessagesAttachmentsToolsType) IsKnown() bool + type BetaThreadNewParamsMessagesRole string + const BetaThreadNewParamsMessagesRoleAssistant + const BetaThreadNewParamsMessagesRoleUser + func (r BetaThreadNewParamsMessagesRole) IsKnown() bool + type BetaThreadNewParamsToolResources struct + CodeInterpreter param.Field[BetaThreadNewParamsToolResourcesCodeInterpreter] + FileSearch param.Field[BetaThreadNewParamsToolResourcesFileSearch] + func (r BetaThreadNewParamsToolResources) MarshalJSON() (data []byte, err error) + type BetaThreadNewParamsToolResourcesCodeInterpreter struct + FileIDs param.Field[[]string] + func (r BetaThreadNewParamsToolResourcesCodeInterpreter) MarshalJSON() (data []byte, err error) + type BetaThreadNewParamsToolResourcesFileSearch struct + VectorStoreIDs param.Field[[]string] + VectorStores param.Field[[]BetaThreadNewParamsToolResourcesFileSearchVectorStore] + func (r BetaThreadNewParamsToolResourcesFileSearch) MarshalJSON() (data []byte, err error) + type BetaThreadNewParamsToolResourcesFileSearchVectorStore struct + ChunkingStrategy param.Field[FileChunkingStrategyParamUnion] + FileIDs param.Field[[]string] + Metadata param.Field[interface{}] + func (r BetaThreadNewParamsToolResourcesFileSearchVectorStore) MarshalJSON() (data []byte, err error) + type BetaThreadRunListParams struct + After param.Field[string] + Before param.Field[string] + Limit param.Field[int64] + Order param.Field[BetaThreadRunListParamsOrder] + func (r BetaThreadRunListParams) URLQuery() (v url.Values) + type BetaThreadRunListParamsOrder string + const BetaThreadRunListParamsOrderAsc + const BetaThreadRunListParamsOrderDesc + func (r BetaThreadRunListParamsOrder) IsKnown() bool + type BetaThreadRunNewParams struct + AdditionalInstructions param.Field[string] + AdditionalMessages param.Field[[]BetaThreadRunNewParamsAdditionalMessage] + AssistantID param.Field[string] + Include param.Field[[]RunStepInclude] + Instructions param.Field[string] + MaxCompletionTokens param.Field[int64] + MaxPromptTokens param.Field[int64] + Metadata param.Field[interface{}] + Model param.Field[ChatModel] + ParallelToolCalls param.Field[bool] + ResponseFormat param.Field[ThreadRunParamsResponseFormatUnion] + Temperature param.Field[float64] + ToolChoice param.Field[AssistantToolChoiceOptionUnionParam] + Tools param.Field[[]AssistantToolUnionParam] + TopP param.Field[float64] + TruncationStrategy param.Field[BetaThreadRunNewParamsTruncationStrategy] + func (r BetaThreadRunNewParams) MarshalJSON() (data []byte, err error) + func (r BetaThreadRunNewParams) URLQuery() (v url.Values) + type BetaThreadRunNewParamsAdditionalMessage struct + Attachments param.Field[[]BetaThreadRunNewParamsAdditionalMessagesAttachment] + Content param.Field[[]MessageContentPartParamUnion] + Metadata param.Field[interface{}] + Role param.Field[BetaThreadRunNewParamsAdditionalMessagesRole] + func (r BetaThreadRunNewParamsAdditionalMessage) MarshalJSON() (data []byte, err error) + type BetaThreadRunNewParamsAdditionalMessagesAttachment struct + FileID param.Field[string] + Tools param.Field[[]BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolUnion] + func (r BetaThreadRunNewParamsAdditionalMessagesAttachment) MarshalJSON() (data []byte, err error) + type BetaThreadRunNewParamsAdditionalMessagesAttachmentsTool struct + Type param.Field[BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsType] + func (r BetaThreadRunNewParamsAdditionalMessagesAttachmentsTool) MarshalJSON() (data []byte, err error) + type BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolUnion interface + type BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsFileSearch struct + Type param.Field[BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsFileSearchType] + func (r BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsFileSearch) MarshalJSON() (data []byte, err error) + type BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsFileSearchType string + const BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsFileSearchTypeFileSearch + func (r BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsFileSearchType) IsKnown() bool + type BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsType string + const BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsTypeCodeInterpreter + const BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsTypeFileSearch + func (r BetaThreadRunNewParamsAdditionalMessagesAttachmentsToolsType) IsKnown() bool + type BetaThreadRunNewParamsAdditionalMessagesRole string + const BetaThreadRunNewParamsAdditionalMessagesRoleAssistant + const BetaThreadRunNewParamsAdditionalMessagesRoleUser + func (r BetaThreadRunNewParamsAdditionalMessagesRole) IsKnown() bool + type BetaThreadRunNewParamsTruncationStrategy struct + LastMessages param.Field[int64] + Type param.Field[BetaThreadRunNewParamsTruncationStrategyType] + func (r BetaThreadRunNewParamsTruncationStrategy) MarshalJSON() (data []byte, err error) + type BetaThreadRunNewParamsTruncationStrategyType string + const BetaThreadRunNewParamsTruncationStrategyTypeAuto + const BetaThreadRunNewParamsTruncationStrategyTypeLastMessages + func (r BetaThreadRunNewParamsTruncationStrategyType) IsKnown() bool + type BetaThreadRunService struct + Options []option.RequestOption + Steps *BetaThreadRunStepService + func NewBetaThreadRunService(opts ...option.RequestOption) (r *BetaThreadRunService) + func (r *BetaThreadRunService) Cancel(ctx context.Context, threadID string, runID string, ...) (res *Run, err error) + func (r *BetaThreadRunService) Get(ctx context.Context, threadID string, runID string, ...) (res *Run, err error) + func (r *BetaThreadRunService) List(ctx context.Context, threadID string, query BetaThreadRunListParams, ...) (res *pagination.CursorPage[Run], err error) + func (r *BetaThreadRunService) ListAutoPaging(ctx context.Context, threadID string, query BetaThreadRunListParams, ...) *pagination.CursorPageAutoPager[Run] + func (r *BetaThreadRunService) New(ctx context.Context, threadID string, params BetaThreadRunNewParams, ...) (res *Run, err error) + func (r *BetaThreadRunService) NewStreaming(ctx context.Context, threadID string, params BetaThreadRunNewParams, ...) (stream *ssestream.Stream[AssistantStreamEvent]) + func (r *BetaThreadRunService) SubmitToolOutputs(ctx context.Context, threadID string, runID string, ...) (res *Run, err error) + func (r *BetaThreadRunService) SubmitToolOutputsStreaming(ctx context.Context, threadID string, runID string, ...) (stream *ssestream.Stream[AssistantStreamEvent]) + func (r *BetaThreadRunService) Update(ctx context.Context, threadID string, runID string, ...) (res *Run, err error) + type BetaThreadRunStepGetParams struct + Include param.Field[[]RunStepInclude] + func (r BetaThreadRunStepGetParams) URLQuery() (v url.Values) + type BetaThreadRunStepListParams struct + After param.Field[string] + Before param.Field[string] + Include param.Field[[]RunStepInclude] + Limit param.Field[int64] + Order param.Field[BetaThreadRunStepListParamsOrder] + func (r BetaThreadRunStepListParams) URLQuery() (v url.Values) + type BetaThreadRunStepListParamsOrder string + const BetaThreadRunStepListParamsOrderAsc + const BetaThreadRunStepListParamsOrderDesc + func (r BetaThreadRunStepListParamsOrder) IsKnown() bool + type BetaThreadRunStepService struct + Options []option.RequestOption + func NewBetaThreadRunStepService(opts ...option.RequestOption) (r *BetaThreadRunStepService) + func (r *BetaThreadRunStepService) Get(ctx context.Context, threadID string, runID string, stepID string, ...) (res *RunStep, err error) + func (r *BetaThreadRunStepService) List(ctx context.Context, threadID string, runID string, ...) (res *pagination.CursorPage[RunStep], err error) + func (r *BetaThreadRunStepService) ListAutoPaging(ctx context.Context, threadID string, runID string, ...) *pagination.CursorPageAutoPager[RunStep] + type BetaThreadRunSubmitToolOutputsParams struct + ToolOutputs param.Field[[]BetaThreadRunSubmitToolOutputsParamsToolOutput] + func (r BetaThreadRunSubmitToolOutputsParams) MarshalJSON() (data []byte, err error) + type BetaThreadRunSubmitToolOutputsParamsToolOutput struct + Output param.Field[string] + ToolCallID param.Field[string] + func (r BetaThreadRunSubmitToolOutputsParamsToolOutput) MarshalJSON() (data []byte, err error) + type BetaThreadRunUpdateParams struct + Metadata param.Field[interface{}] + func (r BetaThreadRunUpdateParams) MarshalJSON() (data []byte, err error) + type BetaThreadService struct + Messages *BetaThreadMessageService + Options []option.RequestOption + Runs *BetaThreadRunService + func NewBetaThreadService(opts ...option.RequestOption) (r *BetaThreadService) + func (r *BetaThreadService) Delete(ctx context.Context, threadID string, opts ...option.RequestOption) (res *ThreadDeleted, err error) + func (r *BetaThreadService) Get(ctx context.Context, threadID string, opts ...option.RequestOption) (res *Thread, err error) + func (r *BetaThreadService) New(ctx context.Context, body BetaThreadNewParams, opts ...option.RequestOption) (res *Thread, err error) + func (r *BetaThreadService) NewAndRun(ctx context.Context, body BetaThreadNewAndRunParams, ...) (res *Run, err error) + func (r *BetaThreadService) NewAndRunStreaming(ctx context.Context, body BetaThreadNewAndRunParams, ...) (stream *ssestream.Stream[AssistantStreamEvent]) + func (r *BetaThreadService) Update(ctx context.Context, threadID string, body BetaThreadUpdateParams, ...) (res *Thread, err error) + type BetaThreadUpdateParams struct + Metadata param.Field[interface{}] + ToolResources param.Field[BetaThreadUpdateParamsToolResources] + func (r BetaThreadUpdateParams) MarshalJSON() (data []byte, err error) + type BetaThreadUpdateParamsToolResources struct + CodeInterpreter param.Field[BetaThreadUpdateParamsToolResourcesCodeInterpreter] + FileSearch param.Field[BetaThreadUpdateParamsToolResourcesFileSearch] + func (r BetaThreadUpdateParamsToolResources) MarshalJSON() (data []byte, err error) + type BetaThreadUpdateParamsToolResourcesCodeInterpreter struct + FileIDs param.Field[[]string] + func (r BetaThreadUpdateParamsToolResourcesCodeInterpreter) MarshalJSON() (data []byte, err error) + type BetaThreadUpdateParamsToolResourcesFileSearch struct + VectorStoreIDs param.Field[[]string] + func (r BetaThreadUpdateParamsToolResourcesFileSearch) MarshalJSON() (data []byte, err error) + type BetaVectorStoreFileBatchListFilesParams struct + After param.Field[string] + Before param.Field[string] + Filter param.Field[BetaVectorStoreFileBatchListFilesParamsFilter] + Limit param.Field[int64] + Order param.Field[BetaVectorStoreFileBatchListFilesParamsOrder] + func (r BetaVectorStoreFileBatchListFilesParams) URLQuery() (v url.Values) + type BetaVectorStoreFileBatchListFilesParamsFilter string + const BetaVectorStoreFileBatchListFilesParamsFilterCancelled + const BetaVectorStoreFileBatchListFilesParamsFilterCompleted + const BetaVectorStoreFileBatchListFilesParamsFilterFailed + const BetaVectorStoreFileBatchListFilesParamsFilterInProgress + func (r BetaVectorStoreFileBatchListFilesParamsFilter) IsKnown() bool + type BetaVectorStoreFileBatchListFilesParamsOrder string + const BetaVectorStoreFileBatchListFilesParamsOrderAsc + const BetaVectorStoreFileBatchListFilesParamsOrderDesc + func (r BetaVectorStoreFileBatchListFilesParamsOrder) IsKnown() bool + type BetaVectorStoreFileBatchNewParams struct + ChunkingStrategy param.Field[FileChunkingStrategyParamUnion] + FileIDs param.Field[[]string] + func (r BetaVectorStoreFileBatchNewParams) MarshalJSON() (data []byte, err error) + type BetaVectorStoreFileBatchService struct + Options []option.RequestOption + func NewBetaVectorStoreFileBatchService(opts ...option.RequestOption) (r *BetaVectorStoreFileBatchService) + func (r *BetaVectorStoreFileBatchService) Cancel(ctx context.Context, vectorStoreID string, batchID string, ...) (res *VectorStoreFileBatch, err error) + func (r *BetaVectorStoreFileBatchService) Get(ctx context.Context, vectorStoreID string, batchID string, ...) (res *VectorStoreFileBatch, err error) + func (r *BetaVectorStoreFileBatchService) ListFiles(ctx context.Context, vectorStoreID string, batchID string, ...) (res *pagination.CursorPage[VectorStoreFile], err error) + func (r *BetaVectorStoreFileBatchService) ListFilesAutoPaging(ctx context.Context, vectorStoreID string, batchID string, ...) *pagination.CursorPageAutoPager[VectorStoreFile] + func (r *BetaVectorStoreFileBatchService) New(ctx context.Context, vectorStoreID string, ...) (res *VectorStoreFileBatch, err error) + type BetaVectorStoreFileListParams struct + After param.Field[string] + Before param.Field[string] + Filter param.Field[BetaVectorStoreFileListParamsFilter] + Limit param.Field[int64] + Order param.Field[BetaVectorStoreFileListParamsOrder] + func (r BetaVectorStoreFileListParams) URLQuery() (v url.Values) + type BetaVectorStoreFileListParamsFilter string + const BetaVectorStoreFileListParamsFilterCancelled + const BetaVectorStoreFileListParamsFilterCompleted + const BetaVectorStoreFileListParamsFilterFailed + const BetaVectorStoreFileListParamsFilterInProgress + func (r BetaVectorStoreFileListParamsFilter) IsKnown() bool + type BetaVectorStoreFileListParamsOrder string + const BetaVectorStoreFileListParamsOrderAsc + const BetaVectorStoreFileListParamsOrderDesc + func (r BetaVectorStoreFileListParamsOrder) IsKnown() bool + type BetaVectorStoreFileNewParams struct + ChunkingStrategy param.Field[FileChunkingStrategyParamUnion] + FileID param.Field[string] + func (r BetaVectorStoreFileNewParams) MarshalJSON() (data []byte, err error) + type BetaVectorStoreFileService struct + Options []option.RequestOption + func NewBetaVectorStoreFileService(opts ...option.RequestOption) (r *BetaVectorStoreFileService) + func (r *BetaVectorStoreFileService) Delete(ctx context.Context, vectorStoreID string, fileID string, ...) (res *VectorStoreFileDeleted, err error) + func (r *BetaVectorStoreFileService) Get(ctx context.Context, vectorStoreID string, fileID string, ...) (res *VectorStoreFile, err error) + func (r *BetaVectorStoreFileService) List(ctx context.Context, vectorStoreID string, query BetaVectorStoreFileListParams, ...) (res *pagination.CursorPage[VectorStoreFile], err error) + func (r *BetaVectorStoreFileService) ListAutoPaging(ctx context.Context, vectorStoreID string, query BetaVectorStoreFileListParams, ...) *pagination.CursorPageAutoPager[VectorStoreFile] + func (r *BetaVectorStoreFileService) New(ctx context.Context, vectorStoreID string, body BetaVectorStoreFileNewParams, ...) (res *VectorStoreFile, err error) + type BetaVectorStoreListParams struct + After param.Field[string] + Before param.Field[string] + Limit param.Field[int64] + Order param.Field[BetaVectorStoreListParamsOrder] + func (r BetaVectorStoreListParams) URLQuery() (v url.Values) + type BetaVectorStoreListParamsOrder string + const BetaVectorStoreListParamsOrderAsc + const BetaVectorStoreListParamsOrderDesc + func (r BetaVectorStoreListParamsOrder) IsKnown() bool + type BetaVectorStoreNewParams struct + ChunkingStrategy param.Field[FileChunkingStrategyParamUnion] + ExpiresAfter param.Field[BetaVectorStoreNewParamsExpiresAfter] + FileIDs param.Field[[]string] + Metadata param.Field[interface{}] + Name param.Field[string] + func (r BetaVectorStoreNewParams) MarshalJSON() (data []byte, err error) + type BetaVectorStoreNewParamsExpiresAfter struct + Anchor param.Field[BetaVectorStoreNewParamsExpiresAfterAnchor] + Days param.Field[int64] + func (r BetaVectorStoreNewParamsExpiresAfter) MarshalJSON() (data []byte, err error) + type BetaVectorStoreNewParamsExpiresAfterAnchor string + const BetaVectorStoreNewParamsExpiresAfterAnchorLastActiveAt + func (r BetaVectorStoreNewParamsExpiresAfterAnchor) IsKnown() bool + type BetaVectorStoreService struct + FileBatches *BetaVectorStoreFileBatchService + Files *BetaVectorStoreFileService + Options []option.RequestOption + func NewBetaVectorStoreService(opts ...option.RequestOption) (r *BetaVectorStoreService) + func (r *BetaVectorStoreService) Delete(ctx context.Context, vectorStoreID string, opts ...option.RequestOption) (res *VectorStoreDeleted, err error) + func (r *BetaVectorStoreService) Get(ctx context.Context, vectorStoreID string, opts ...option.RequestOption) (res *VectorStore, err error) + func (r *BetaVectorStoreService) List(ctx context.Context, query BetaVectorStoreListParams, ...) (res *pagination.CursorPage[VectorStore], err error) + func (r *BetaVectorStoreService) ListAutoPaging(ctx context.Context, query BetaVectorStoreListParams, ...) *pagination.CursorPageAutoPager[VectorStore] + func (r *BetaVectorStoreService) New(ctx context.Context, body BetaVectorStoreNewParams, ...) (res *VectorStore, err error) + func (r *BetaVectorStoreService) Update(ctx context.Context, vectorStoreID string, body BetaVectorStoreUpdateParams, ...) (res *VectorStore, err error) + type BetaVectorStoreUpdateParams struct + ExpiresAfter param.Field[BetaVectorStoreUpdateParamsExpiresAfter] + Metadata param.Field[interface{}] + Name param.Field[string] + func (r BetaVectorStoreUpdateParams) MarshalJSON() (data []byte, err error) + type BetaVectorStoreUpdateParamsExpiresAfter struct + Anchor param.Field[BetaVectorStoreUpdateParamsExpiresAfterAnchor] + Days param.Field[int64] + func (r BetaVectorStoreUpdateParamsExpiresAfter) MarshalJSON() (data []byte, err error) + type BetaVectorStoreUpdateParamsExpiresAfterAnchor string + const BetaVectorStoreUpdateParamsExpiresAfterAnchorLastActiveAt + func (r BetaVectorStoreUpdateParamsExpiresAfterAnchor) IsKnown() bool + type ChatCompletion struct + Choices []ChatCompletionChoice + Created int64 + ID string + JSON chatCompletionJSON + Model string + Object ChatCompletionObject + ServiceTier ChatCompletionServiceTier + SystemFingerprint string + Usage CompletionUsage + func (r *ChatCompletion) UnmarshalJSON(data []byte) (err error) + type ChatCompletionAccumulator struct + func (acc *ChatCompletionAccumulator) AddChunk(chunk ChatCompletionChunk) bool + func (acc *ChatCompletionAccumulator) JustFinishedContent() (content string, ok bool) + func (acc *ChatCompletionAccumulator) JustFinishedRefusal() (refusal string, ok bool) + func (acc *ChatCompletionAccumulator) JustFinishedToolCall() (toolcall FinishedChatCompletionToolCall, ok bool) + type ChatCompletionAssistantMessageParam struct + Content param.Field[[]ChatCompletionAssistantMessageParamContentUnion] + FunctionCall param.Field[ChatCompletionAssistantMessageParamFunctionCall] + Name param.Field[string] + Refusal param.Field[string] + Role param.Field[ChatCompletionAssistantMessageParamRole] + ToolCalls param.Field[[]ChatCompletionMessageToolCallParam] + func AssistantMessage(content string) ChatCompletionAssistantMessageParam + func (r ChatCompletionAssistantMessageParam) MarshalJSON() (data []byte, err error) + type ChatCompletionAssistantMessageParamContent struct + Refusal param.Field[string] + Text param.Field[string] + Type param.Field[ChatCompletionAssistantMessageParamContentType] + func (r ChatCompletionAssistantMessageParamContent) MarshalJSON() (data []byte, err error) + type ChatCompletionAssistantMessageParamContentType string + const ChatCompletionAssistantMessageParamContentTypeRefusal + const ChatCompletionAssistantMessageParamContentTypeText + func (r ChatCompletionAssistantMessageParamContentType) IsKnown() bool + type ChatCompletionAssistantMessageParamContentUnion interface + type ChatCompletionAssistantMessageParamFunctionCall struct + Arguments param.Field[string] + Name param.Field[string] + func (r ChatCompletionAssistantMessageParamFunctionCall) MarshalJSON() (data []byte, err error) + type ChatCompletionAssistantMessageParamRole string + const ChatCompletionAssistantMessageParamRoleAssistant + func (r ChatCompletionAssistantMessageParamRole) IsKnown() bool + type ChatCompletionChoice struct + FinishReason ChatCompletionChoicesFinishReason + Index int64 + JSON chatCompletionChoiceJSON + Logprobs ChatCompletionChoicesLogprobs + Message ChatCompletionMessage + func (r *ChatCompletionChoice) UnmarshalJSON(data []byte) (err error) + type ChatCompletionChoicesFinishReason string + const ChatCompletionChoicesFinishReasonContentFilter + const ChatCompletionChoicesFinishReasonFunctionCall + const ChatCompletionChoicesFinishReasonLength + const ChatCompletionChoicesFinishReasonStop + const ChatCompletionChoicesFinishReasonToolCalls + func (r ChatCompletionChoicesFinishReason) IsKnown() bool + type ChatCompletionChoicesLogprobs struct + Content []ChatCompletionTokenLogprob + JSON chatCompletionChoicesLogprobsJSON + Refusal []ChatCompletionTokenLogprob + func (r *ChatCompletionChoicesLogprobs) UnmarshalJSON(data []byte) (err error) + type ChatCompletionChunk struct + Choices []ChatCompletionChunkChoice + Created int64 + ID string + JSON chatCompletionChunkJSON + Model string + Object ChatCompletionChunkObject + ServiceTier ChatCompletionChunkServiceTier + SystemFingerprint string + Usage CompletionUsage + func (r *ChatCompletionChunk) UnmarshalJSON(data []byte) (err error) + type ChatCompletionChunkChoice struct + Delta ChatCompletionChunkChoicesDelta + FinishReason ChatCompletionChunkChoicesFinishReason + Index int64 + JSON chatCompletionChunkChoiceJSON + Logprobs ChatCompletionChunkChoicesLogprobs + func (r *ChatCompletionChunkChoice) UnmarshalJSON(data []byte) (err error) + type ChatCompletionChunkChoicesDelta struct + Content string + FunctionCall ChatCompletionChunkChoicesDeltaFunctionCall + JSON chatCompletionChunkChoicesDeltaJSON + Refusal string + Role ChatCompletionChunkChoicesDeltaRole + ToolCalls []ChatCompletionChunkChoicesDeltaToolCall + func (r *ChatCompletionChunkChoicesDelta) UnmarshalJSON(data []byte) (err error) + type ChatCompletionChunkChoicesDeltaFunctionCall struct + Arguments string + JSON chatCompletionChunkChoicesDeltaFunctionCallJSON + Name string + func (r *ChatCompletionChunkChoicesDeltaFunctionCall) UnmarshalJSON(data []byte) (err error) + type ChatCompletionChunkChoicesDeltaRole string + const ChatCompletionChunkChoicesDeltaRoleAssistant + const ChatCompletionChunkChoicesDeltaRoleSystem + const ChatCompletionChunkChoicesDeltaRoleTool + const ChatCompletionChunkChoicesDeltaRoleUser + func (r ChatCompletionChunkChoicesDeltaRole) IsKnown() bool + type ChatCompletionChunkChoicesDeltaToolCall struct + Function ChatCompletionChunkChoicesDeltaToolCallsFunction + ID string + Index int64 + JSON chatCompletionChunkChoicesDeltaToolCallJSON + Type ChatCompletionChunkChoicesDeltaToolCallsType + func (r *ChatCompletionChunkChoicesDeltaToolCall) UnmarshalJSON(data []byte) (err error) + type ChatCompletionChunkChoicesDeltaToolCallsFunction struct + Arguments string + JSON chatCompletionChunkChoicesDeltaToolCallsFunctionJSON + Name string + func (r *ChatCompletionChunkChoicesDeltaToolCallsFunction) UnmarshalJSON(data []byte) (err error) + type ChatCompletionChunkChoicesDeltaToolCallsType string + const ChatCompletionChunkChoicesDeltaToolCallsTypeFunction + func (r ChatCompletionChunkChoicesDeltaToolCallsType) IsKnown() bool + type ChatCompletionChunkChoicesFinishReason string + const ChatCompletionChunkChoicesFinishReasonContentFilter + const ChatCompletionChunkChoicesFinishReasonFunctionCall + const ChatCompletionChunkChoicesFinishReasonLength + const ChatCompletionChunkChoicesFinishReasonStop + const ChatCompletionChunkChoicesFinishReasonToolCalls + func (r ChatCompletionChunkChoicesFinishReason) IsKnown() bool + type ChatCompletionChunkChoicesLogprobs struct + Content []ChatCompletionTokenLogprob + JSON chatCompletionChunkChoicesLogprobsJSON + Refusal []ChatCompletionTokenLogprob + func (r *ChatCompletionChunkChoicesLogprobs) UnmarshalJSON(data []byte) (err error) + type ChatCompletionChunkObject string + const ChatCompletionChunkObjectChatCompletionChunk + func (r ChatCompletionChunkObject) IsKnown() bool + type ChatCompletionChunkServiceTier string + const ChatCompletionChunkServiceTierDefault + const ChatCompletionChunkServiceTierScale + func (r ChatCompletionChunkServiceTier) IsKnown() bool + type ChatCompletionContentPartImageImageURLDetail string + const ChatCompletionContentPartImageImageURLDetailAuto + const ChatCompletionContentPartImageImageURLDetailHigh + const ChatCompletionContentPartImageImageURLDetailLow + func (r ChatCompletionContentPartImageImageURLDetail) IsKnown() bool + type ChatCompletionContentPartImageImageURLParam struct + Detail param.Field[ChatCompletionContentPartImageImageURLDetail] + URL param.Field[string] + func (r ChatCompletionContentPartImageImageURLParam) MarshalJSON() (data []byte, err error) + type ChatCompletionContentPartImageParam struct + ImageURL param.Field[ChatCompletionContentPartImageImageURLParam] + Type param.Field[ChatCompletionContentPartImageType] + func ImagePart(url string) ChatCompletionContentPartImageParam + func (r ChatCompletionContentPartImageParam) MarshalJSON() (data []byte, err error) + type ChatCompletionContentPartImageType string + const ChatCompletionContentPartImageTypeImageURL + func (r ChatCompletionContentPartImageType) IsKnown() bool + type ChatCompletionContentPartParam struct + ImageURL param.Field[interface{}] + Text param.Field[string] + Type param.Field[ChatCompletionContentPartType] + func (r ChatCompletionContentPartParam) MarshalJSON() (data []byte, err error) + type ChatCompletionContentPartRefusalParam struct + Refusal param.Field[string] + Type param.Field[ChatCompletionContentPartRefusalType] + func RefusalPart(refusal string) ChatCompletionContentPartRefusalParam + func (r ChatCompletionContentPartRefusalParam) MarshalJSON() (data []byte, err error) + type ChatCompletionContentPartRefusalType string + const ChatCompletionContentPartRefusalTypeRefusal + func (r ChatCompletionContentPartRefusalType) IsKnown() bool + type ChatCompletionContentPartTextParam struct + Text param.Field[string] + Type param.Field[ChatCompletionContentPartTextType] + func TextPart(content string) ChatCompletionContentPartTextParam + func (r ChatCompletionContentPartTextParam) MarshalJSON() (data []byte, err error) + type ChatCompletionContentPartTextType string + const ChatCompletionContentPartTextTypeText + func (r ChatCompletionContentPartTextType) IsKnown() bool + type ChatCompletionContentPartType string + const ChatCompletionContentPartTypeImageURL + const ChatCompletionContentPartTypeText + func (r ChatCompletionContentPartType) IsKnown() bool + type ChatCompletionContentPartUnionParam interface + type ChatCompletionFunctionCallOptionParam struct + Name param.Field[string] + func (r ChatCompletionFunctionCallOptionParam) MarshalJSON() (data []byte, err error) + type ChatCompletionFunctionMessageParam struct + Content param.Field[string] + Name param.Field[string] + Role param.Field[ChatCompletionFunctionMessageParamRole] + func (r ChatCompletionFunctionMessageParam) MarshalJSON() (data []byte, err error) + type ChatCompletionFunctionMessageParamRole string + const ChatCompletionFunctionMessageParamRoleFunction + func (r ChatCompletionFunctionMessageParamRole) IsKnown() bool + type ChatCompletionMessage struct + Content string + FunctionCall ChatCompletionMessageFunctionCall + JSON chatCompletionMessageJSON + Refusal string + Role ChatCompletionMessageRole + ToolCalls []ChatCompletionMessageToolCall + func (r *ChatCompletionMessage) UnmarshalJSON(data []byte) (err error) + func (r ChatCompletionMessage) MarshalJSON() (data []byte, err error) + type ChatCompletionMessageFunctionCall struct + Arguments string + JSON chatCompletionMessageFunctionCallJSON + Name string + func (r *ChatCompletionMessageFunctionCall) UnmarshalJSON(data []byte) (err error) + type ChatCompletionMessageParam struct + Content param.Field[interface{}] + FunctionCall param.Field[interface{}] + Name param.Field[string] + Refusal param.Field[string] + Role param.Field[ChatCompletionMessageParamRole] + ToolCallID param.Field[string] + ToolCalls param.Field[interface{}] + func (r ChatCompletionMessageParam) MarshalJSON() (data []byte, err error) + type ChatCompletionMessageParamRole string + const ChatCompletionMessageParamRoleAssistant + const ChatCompletionMessageParamRoleFunction + const ChatCompletionMessageParamRoleSystem + const ChatCompletionMessageParamRoleTool + const ChatCompletionMessageParamRoleUser + func (r ChatCompletionMessageParamRole) IsKnown() bool + type ChatCompletionMessageParamUnion interface + func FunctionMessage(name, content string) ChatCompletionMessageParamUnion + func SystemMessage(content string) ChatCompletionMessageParamUnion + func UserMessage(content string) ChatCompletionMessageParamUnion + type ChatCompletionMessageRole string + const ChatCompletionMessageRoleAssistant + func (r ChatCompletionMessageRole) IsKnown() bool + type ChatCompletionMessageToolCall struct + Function ChatCompletionMessageToolCallFunction + ID string + JSON chatCompletionMessageToolCallJSON + Type ChatCompletionMessageToolCallType + func (r *ChatCompletionMessageToolCall) UnmarshalJSON(data []byte) (err error) + type ChatCompletionMessageToolCallFunction struct + Arguments string + JSON chatCompletionMessageToolCallFunctionJSON + Name string + func (r *ChatCompletionMessageToolCallFunction) UnmarshalJSON(data []byte) (err error) + type ChatCompletionMessageToolCallFunctionParam struct + Arguments param.Field[string] + Name param.Field[string] + func (r ChatCompletionMessageToolCallFunctionParam) MarshalJSON() (data []byte, err error) + type ChatCompletionMessageToolCallParam struct + Function param.Field[ChatCompletionMessageToolCallFunctionParam] + ID param.Field[string] + Type param.Field[ChatCompletionMessageToolCallType] + func (r ChatCompletionMessageToolCallParam) MarshalJSON() (data []byte, err error) + type ChatCompletionMessageToolCallType string + const ChatCompletionMessageToolCallTypeFunction + func (r ChatCompletionMessageToolCallType) IsKnown() bool + type ChatCompletionNamedToolChoiceFunctionParam struct + Name param.Field[string] + func (r ChatCompletionNamedToolChoiceFunctionParam) MarshalJSON() (data []byte, err error) + type ChatCompletionNamedToolChoiceParam struct + Function param.Field[ChatCompletionNamedToolChoiceFunctionParam] + Type param.Field[ChatCompletionNamedToolChoiceType] + func (r ChatCompletionNamedToolChoiceParam) MarshalJSON() (data []byte, err error) + type ChatCompletionNamedToolChoiceType string + const ChatCompletionNamedToolChoiceTypeFunction + func (r ChatCompletionNamedToolChoiceType) IsKnown() bool + type ChatCompletionNewParams struct + FrequencyPenalty param.Field[float64] + FunctionCall param.Field[ChatCompletionNewParamsFunctionCallUnion] + Functions param.Field[[]ChatCompletionNewParamsFunction] + LogitBias param.Field[map[string]int64] + Logprobs param.Field[bool] + MaxCompletionTokens param.Field[int64] + MaxTokens param.Field[int64] + Messages param.Field[[]ChatCompletionMessageParamUnion] + Model param.Field[ChatModel] + N param.Field[int64] + ParallelToolCalls param.Field[bool] + PresencePenalty param.Field[float64] + ResponseFormat param.Field[ChatCompletionNewParamsResponseFormatUnion] + Seed param.Field[int64] + ServiceTier param.Field[ChatCompletionNewParamsServiceTier] + Stop param.Field[ChatCompletionNewParamsStopUnion] + StreamOptions param.Field[ChatCompletionStreamOptionsParam] + Temperature param.Field[float64] + ToolChoice param.Field[ChatCompletionToolChoiceOptionUnionParam] + Tools param.Field[[]ChatCompletionToolParam] + TopLogprobs param.Field[int64] + TopP param.Field[float64] + User param.Field[string] + func (r ChatCompletionNewParams) MarshalJSON() (data []byte, err error) + type ChatCompletionNewParamsFunction struct + Description param.Field[string] + Name param.Field[string] + Parameters param.Field[shared.FunctionParameters] + func (r ChatCompletionNewParamsFunction) MarshalJSON() (data []byte, err error) + type ChatCompletionNewParamsFunctionCallString string + const ChatCompletionNewParamsFunctionCallStringAuto + const ChatCompletionNewParamsFunctionCallStringNone + func (r ChatCompletionNewParamsFunctionCallString) IsKnown() bool + type ChatCompletionNewParamsFunctionCallUnion interface + type ChatCompletionNewParamsResponseFormat struct + JSONSchema param.Field[interface{}] + Type param.Field[ChatCompletionNewParamsResponseFormatType] + func (r ChatCompletionNewParamsResponseFormat) ImplementsChatCompletionNewParamsResponseFormatUnion() + func (r ChatCompletionNewParamsResponseFormat) MarshalJSON() (data []byte, err error) + type ChatCompletionNewParamsResponseFormatType string + const ChatCompletionNewParamsResponseFormatTypeJSONObject + const ChatCompletionNewParamsResponseFormatTypeJSONSchema + const ChatCompletionNewParamsResponseFormatTypeText + func (r ChatCompletionNewParamsResponseFormatType) IsKnown() bool + type ChatCompletionNewParamsResponseFormatUnion interface + ImplementsChatCompletionNewParamsResponseFormatUnion func() + type ChatCompletionNewParamsServiceTier string + const ChatCompletionNewParamsServiceTierAuto + const ChatCompletionNewParamsServiceTierDefault + func (r ChatCompletionNewParamsServiceTier) IsKnown() bool + type ChatCompletionNewParamsStopArray []string + func (r ChatCompletionNewParamsStopArray) ImplementsChatCompletionNewParamsStopUnion() + type ChatCompletionNewParamsStopUnion interface + ImplementsChatCompletionNewParamsStopUnion func() + type ChatCompletionObject string + const ChatCompletionObjectChatCompletion + func (r ChatCompletionObject) IsKnown() bool + type ChatCompletionService struct + Options []option.RequestOption + func NewChatCompletionService(opts ...option.RequestOption) (r *ChatCompletionService) + func (r *ChatCompletionService) New(ctx context.Context, body ChatCompletionNewParams, ...) (res *ChatCompletion, err error) + func (r *ChatCompletionService) NewStreaming(ctx context.Context, body ChatCompletionNewParams, ...) (stream *ssestream.Stream[ChatCompletionChunk]) + type ChatCompletionServiceTier string + const ChatCompletionServiceTierDefault + const ChatCompletionServiceTierScale + func (r ChatCompletionServiceTier) IsKnown() bool + type ChatCompletionStreamOptionsParam struct + IncludeUsage param.Field[bool] + func (r ChatCompletionStreamOptionsParam) MarshalJSON() (data []byte, err error) + type ChatCompletionSystemMessageParam struct + Content param.Field[[]ChatCompletionContentPartTextParam] + Name param.Field[string] + Role param.Field[ChatCompletionSystemMessageParamRole] + func (r ChatCompletionSystemMessageParam) MarshalJSON() (data []byte, err error) + type ChatCompletionSystemMessageParamRole string + const ChatCompletionSystemMessageParamRoleSystem + func (r ChatCompletionSystemMessageParamRole) IsKnown() bool + type ChatCompletionTokenLogprob struct + Bytes []int64 + JSON chatCompletionTokenLogprobJSON + Logprob float64 + Token string + TopLogprobs []ChatCompletionTokenLogprobTopLogprob + func (r *ChatCompletionTokenLogprob) UnmarshalJSON(data []byte) (err error) + type ChatCompletionTokenLogprobTopLogprob struct + Bytes []int64 + JSON chatCompletionTokenLogprobTopLogprobJSON + Logprob float64 + Token string + func (r *ChatCompletionTokenLogprobTopLogprob) UnmarshalJSON(data []byte) (err error) + type ChatCompletionToolChoiceOptionString string + const ChatCompletionToolChoiceOptionStringAuto + const ChatCompletionToolChoiceOptionStringNone + const ChatCompletionToolChoiceOptionStringRequired + func (r ChatCompletionToolChoiceOptionString) IsKnown() bool + type ChatCompletionToolChoiceOptionUnionParam interface + type ChatCompletionToolMessageParam struct + Content param.Field[[]ChatCompletionContentPartTextParam] + Role param.Field[ChatCompletionToolMessageParamRole] + ToolCallID param.Field[string] + func ToolMessage(toolCallID, content string) ChatCompletionToolMessageParam + func (r ChatCompletionToolMessageParam) MarshalJSON() (data []byte, err error) + type ChatCompletionToolMessageParamRole string + const ChatCompletionToolMessageParamRoleTool + func (r ChatCompletionToolMessageParamRole) IsKnown() bool + type ChatCompletionToolParam struct + Function param.Field[shared.FunctionDefinitionParam] + Type param.Field[ChatCompletionToolType] + func (r ChatCompletionToolParam) MarshalJSON() (data []byte, err error) + type ChatCompletionToolType string + const ChatCompletionToolTypeFunction + func (r ChatCompletionToolType) IsKnown() bool + type ChatCompletionUserMessageParam struct + Content param.Field[[]ChatCompletionContentPartUnionParam] + Name param.Field[string] + Role param.Field[ChatCompletionUserMessageParamRole] + func UserMessageParts(parts ...ChatCompletionContentPartUnionParam) ChatCompletionUserMessageParam + func (r ChatCompletionUserMessageParam) MarshalJSON() (data []byte, err error) + type ChatCompletionUserMessageParamRole string + const ChatCompletionUserMessageParamRoleUser + func (r ChatCompletionUserMessageParamRole) IsKnown() bool + type ChatModel = string + const ChatModelChatgpt4oLatest + const ChatModelGPT3_5Turbo + const ChatModelGPT3_5Turbo0125 + const ChatModelGPT3_5Turbo0301 + const ChatModelGPT3_5Turbo0613 + const ChatModelGPT3_5Turbo1106 + const ChatModelGPT3_5Turbo16k + const ChatModelGPT3_5Turbo16k0613 + const ChatModelGPT4 + const ChatModelGPT4Turbo + const ChatModelGPT4Turbo2024_04_09 + const ChatModelGPT4TurboPreview + const ChatModelGPT4VisionPreview + const ChatModelGPT4_0125Preview + const ChatModelGPT4_0314 + const ChatModelGPT4_0613 + const ChatModelGPT4_1106Preview + const ChatModelGPT4_32k + const ChatModelGPT4_32k0314 + const ChatModelGPT4_32k0613 + const ChatModelGPT4o + const ChatModelGPT4o2024_05_13 + const ChatModelGPT4o2024_08_06 + const ChatModelGPT4oMini + const ChatModelGPT4oMini2024_07_18 + const ChatModelO1Mini + const ChatModelO1Mini2024_09_12 + const ChatModelO1Preview + const ChatModelO1Preview2024_09_12 + type ChatService struct + Completions *ChatCompletionService + Options []option.RequestOption + func NewChatService(opts ...option.RequestOption) (r *ChatService) + type Client struct + Audio *AudioService + Batches *BatchService + Beta *BetaService + Chat *ChatService + Completions *CompletionService + Embeddings *EmbeddingService + Files *FileService + FineTuning *FineTuningService + Images *ImageService + Models *ModelService + Moderations *ModerationService + Options []option.RequestOption + Uploads *UploadService + func NewClient(opts ...option.RequestOption) (r *Client) + func (r *Client) Delete(ctx context.Context, path string, params interface{}, res interface{}, ...) error + func (r *Client) Execute(ctx context.Context, method string, path string, params interface{}, ...) error + func (r *Client) Get(ctx context.Context, path string, params interface{}, res interface{}, ...) error + func (r *Client) Patch(ctx context.Context, path string, params interface{}, res interface{}, ...) error + func (r *Client) Post(ctx context.Context, path string, params interface{}, res interface{}, ...) error + func (r *Client) Put(ctx context.Context, path string, params interface{}, res interface{}, ...) error + type CodeInterpreterLogs struct + Index int64 + JSON codeInterpreterLogsJSON + Logs string + Type CodeInterpreterLogsType + func (r *CodeInterpreterLogs) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterLogsType string + const CodeInterpreterLogsTypeLogs + func (r CodeInterpreterLogsType) IsKnown() bool + type CodeInterpreterOutputImage struct + Image CodeInterpreterOutputImageImage + Index int64 + JSON codeInterpreterOutputImageJSON + Type CodeInterpreterOutputImageType + func (r *CodeInterpreterOutputImage) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterOutputImageImage struct + FileID string + JSON codeInterpreterOutputImageImageJSON + func (r *CodeInterpreterOutputImageImage) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterOutputImageType string + const CodeInterpreterOutputImageTypeImage + func (r CodeInterpreterOutputImageType) IsKnown() bool + type CodeInterpreterTool struct + JSON codeInterpreterToolJSON + Type CodeInterpreterToolType + func (r *CodeInterpreterTool) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterToolCall struct + CodeInterpreter CodeInterpreterToolCallCodeInterpreter + ID string + JSON codeInterpreterToolCallJSON + Type CodeInterpreterToolCallType + func (r *CodeInterpreterToolCall) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterToolCallCodeInterpreter struct + Input string + JSON codeInterpreterToolCallCodeInterpreterJSON + Outputs []CodeInterpreterToolCallCodeInterpreterOutput + func (r *CodeInterpreterToolCallCodeInterpreter) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterToolCallCodeInterpreterOutput struct + Image interface{} + JSON codeInterpreterToolCallCodeInterpreterOutputJSON + Logs string + Type CodeInterpreterToolCallCodeInterpreterOutputsType + func (r *CodeInterpreterToolCallCodeInterpreterOutput) UnmarshalJSON(data []byte) (err error) + func (r CodeInterpreterToolCallCodeInterpreterOutput) AsUnion() CodeInterpreterToolCallCodeInterpreterOutputsUnion + type CodeInterpreterToolCallCodeInterpreterOutputsImage struct + Image CodeInterpreterToolCallCodeInterpreterOutputsImageImage + JSON codeInterpreterToolCallCodeInterpreterOutputsImageJSON + Type CodeInterpreterToolCallCodeInterpreterOutputsImageType + func (r *CodeInterpreterToolCallCodeInterpreterOutputsImage) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterToolCallCodeInterpreterOutputsImageImage struct + FileID string + JSON codeInterpreterToolCallCodeInterpreterOutputsImageImageJSON + func (r *CodeInterpreterToolCallCodeInterpreterOutputsImageImage) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterToolCallCodeInterpreterOutputsImageType string + const CodeInterpreterToolCallCodeInterpreterOutputsImageTypeImage + func (r CodeInterpreterToolCallCodeInterpreterOutputsImageType) IsKnown() bool + type CodeInterpreterToolCallCodeInterpreterOutputsLogs struct + JSON codeInterpreterToolCallCodeInterpreterOutputsLogsJSON + Logs string + Type CodeInterpreterToolCallCodeInterpreterOutputsLogsType + func (r *CodeInterpreterToolCallCodeInterpreterOutputsLogs) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterToolCallCodeInterpreterOutputsLogsType string + const CodeInterpreterToolCallCodeInterpreterOutputsLogsTypeLogs + func (r CodeInterpreterToolCallCodeInterpreterOutputsLogsType) IsKnown() bool + type CodeInterpreterToolCallCodeInterpreterOutputsType string + const CodeInterpreterToolCallCodeInterpreterOutputsTypeImage + const CodeInterpreterToolCallCodeInterpreterOutputsTypeLogs + func (r CodeInterpreterToolCallCodeInterpreterOutputsType) IsKnown() bool + type CodeInterpreterToolCallCodeInterpreterOutputsUnion interface + type CodeInterpreterToolCallDelta struct + CodeInterpreter CodeInterpreterToolCallDeltaCodeInterpreter + ID string + Index int64 + JSON codeInterpreterToolCallDeltaJSON + Type CodeInterpreterToolCallDeltaType + func (r *CodeInterpreterToolCallDelta) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterToolCallDeltaCodeInterpreter struct + Input string + JSON codeInterpreterToolCallDeltaCodeInterpreterJSON + Outputs []CodeInterpreterToolCallDeltaCodeInterpreterOutput + func (r *CodeInterpreterToolCallDeltaCodeInterpreter) UnmarshalJSON(data []byte) (err error) + type CodeInterpreterToolCallDeltaCodeInterpreterOutput struct + Image interface{} + Index int64 + JSON codeInterpreterToolCallDeltaCodeInterpreterOutputJSON + Logs string + Type CodeInterpreterToolCallDeltaCodeInterpreterOutputsType + func (r *CodeInterpreterToolCallDeltaCodeInterpreterOutput) UnmarshalJSON(data []byte) (err error) + func (r CodeInterpreterToolCallDeltaCodeInterpreterOutput) AsUnion() CodeInterpreterToolCallDeltaCodeInterpreterOutputsUnion + type CodeInterpreterToolCallDeltaCodeInterpreterOutputsType string + const CodeInterpreterToolCallDeltaCodeInterpreterOutputsTypeImage + const CodeInterpreterToolCallDeltaCodeInterpreterOutputsTypeLogs + func (r CodeInterpreterToolCallDeltaCodeInterpreterOutputsType) IsKnown() bool + type CodeInterpreterToolCallDeltaCodeInterpreterOutputsUnion interface + type CodeInterpreterToolCallDeltaType string + const CodeInterpreterToolCallDeltaTypeCodeInterpreter + func (r CodeInterpreterToolCallDeltaType) IsKnown() bool + type CodeInterpreterToolCallType string + const CodeInterpreterToolCallTypeCodeInterpreter + func (r CodeInterpreterToolCallType) IsKnown() bool + type CodeInterpreterToolParam struct + Type param.Field[CodeInterpreterToolType] + func (r CodeInterpreterToolParam) MarshalJSON() (data []byte, err error) + type CodeInterpreterToolType string + const CodeInterpreterToolTypeCodeInterpreter + func (r CodeInterpreterToolType) IsKnown() bool + type Completion struct + Choices []CompletionChoice + Created int64 + ID string + JSON completionJSON + Model string + Object CompletionObject + SystemFingerprint string + Usage CompletionUsage + func (r *Completion) UnmarshalJSON(data []byte) (err error) + type CompletionChoice struct + FinishReason CompletionChoiceFinishReason + Index int64 + JSON completionChoiceJSON + Logprobs CompletionChoiceLogprobs + Text string + func (r *CompletionChoice) UnmarshalJSON(data []byte) (err error) + type CompletionChoiceFinishReason string + const CompletionChoiceFinishReasonContentFilter + const CompletionChoiceFinishReasonLength + const CompletionChoiceFinishReasonStop + func (r CompletionChoiceFinishReason) IsKnown() bool + type CompletionChoiceLogprobs struct + JSON completionChoiceLogprobsJSON + TextOffset []int64 + TokenLogprobs []float64 + Tokens []string + TopLogprobs []map[string]float64 + func (r *CompletionChoiceLogprobs) UnmarshalJSON(data []byte) (err error) + type CompletionNewParams struct + BestOf param.Field[int64] + Echo param.Field[bool] + FrequencyPenalty param.Field[float64] + LogitBias param.Field[map[string]int64] + Logprobs param.Field[int64] + MaxTokens param.Field[int64] + Model param.Field[CompletionNewParamsModel] + N param.Field[int64] + PresencePenalty param.Field[float64] + Prompt param.Field[CompletionNewParamsPromptUnion] + Seed param.Field[int64] + Stop param.Field[CompletionNewParamsStopUnion] + StreamOptions param.Field[ChatCompletionStreamOptionsParam] + Suffix param.Field[string] + Temperature param.Field[float64] + TopP param.Field[float64] + User param.Field[string] + func (r CompletionNewParams) MarshalJSON() (data []byte, err error) + type CompletionNewParamsModel string + const CompletionNewParamsModelBabbage002 + const CompletionNewParamsModelDavinci002 + const CompletionNewParamsModelGPT3_5TurboInstruct + func (r CompletionNewParamsModel) IsKnown() bool + type CompletionNewParamsPromptArrayOfStrings []string + func (r CompletionNewParamsPromptArrayOfStrings) ImplementsCompletionNewParamsPromptUnion() + type CompletionNewParamsPromptArrayOfTokenArrays [][]int64 + func (r CompletionNewParamsPromptArrayOfTokenArrays) ImplementsCompletionNewParamsPromptUnion() + type CompletionNewParamsPromptArrayOfTokens []int64 + func (r CompletionNewParamsPromptArrayOfTokens) ImplementsCompletionNewParamsPromptUnion() + type CompletionNewParamsPromptUnion interface + ImplementsCompletionNewParamsPromptUnion func() + type CompletionNewParamsStopArray []string + func (r CompletionNewParamsStopArray) ImplementsCompletionNewParamsStopUnion() + type CompletionNewParamsStopUnion interface + ImplementsCompletionNewParamsStopUnion func() + type CompletionObject string + const CompletionObjectTextCompletion + func (r CompletionObject) IsKnown() bool + type CompletionService struct + Options []option.RequestOption + func NewCompletionService(opts ...option.RequestOption) (r *CompletionService) + func (r *CompletionService) New(ctx context.Context, body CompletionNewParams, opts ...option.RequestOption) (res *Completion, err error) + func (r *CompletionService) NewStreaming(ctx context.Context, body CompletionNewParams, opts ...option.RequestOption) (stream *ssestream.Stream[Completion]) + type CompletionUsage struct + CompletionTokens int64 + CompletionTokensDetails CompletionUsageCompletionTokensDetails + JSON completionUsageJSON + PromptTokens int64 + TotalTokens int64 + func (r *CompletionUsage) UnmarshalJSON(data []byte) (err error) + type CompletionUsageCompletionTokensDetails struct + JSON completionUsageCompletionTokensDetailsJSON + ReasoningTokens int64 + func (r *CompletionUsageCompletionTokensDetails) UnmarshalJSON(data []byte) (err error) + type CreateEmbeddingResponse struct + Data []Embedding + JSON createEmbeddingResponseJSON + Model string + Object CreateEmbeddingResponseObject + Usage CreateEmbeddingResponseUsage + func (r *CreateEmbeddingResponse) UnmarshalJSON(data []byte) (err error) + type CreateEmbeddingResponseObject string + const CreateEmbeddingResponseObjectList + func (r CreateEmbeddingResponseObject) IsKnown() bool + type CreateEmbeddingResponseUsage struct + JSON createEmbeddingResponseUsageJSON + PromptTokens int64 + TotalTokens int64 + func (r *CreateEmbeddingResponseUsage) UnmarshalJSON(data []byte) (err error) + type Embedding struct + Embedding []float64 + Index int64 + JSON embeddingJSON + Object EmbeddingObject + func (r *Embedding) UnmarshalJSON(data []byte) (err error) + type EmbeddingNewParams struct + Dimensions param.Field[int64] + EncodingFormat param.Field[EmbeddingNewParamsEncodingFormat] + Input param.Field[EmbeddingNewParamsInputUnion] + Model param.Field[EmbeddingNewParamsModel] + User param.Field[string] + func (r EmbeddingNewParams) MarshalJSON() (data []byte, err error) + type EmbeddingNewParamsEncodingFormat string + const EmbeddingNewParamsEncodingFormatBase64 + const EmbeddingNewParamsEncodingFormatFloat + func (r EmbeddingNewParamsEncodingFormat) IsKnown() bool + type EmbeddingNewParamsInputArrayOfStrings []string + func (r EmbeddingNewParamsInputArrayOfStrings) ImplementsEmbeddingNewParamsInputUnion() + type EmbeddingNewParamsInputArrayOfTokenArrays [][]int64 + func (r EmbeddingNewParamsInputArrayOfTokenArrays) ImplementsEmbeddingNewParamsInputUnion() + type EmbeddingNewParamsInputArrayOfTokens []int64 + func (r EmbeddingNewParamsInputArrayOfTokens) ImplementsEmbeddingNewParamsInputUnion() + type EmbeddingNewParamsInputUnion interface + ImplementsEmbeddingNewParamsInputUnion func() + type EmbeddingNewParamsModel string + const EmbeddingNewParamsModelTextEmbedding3Large + const EmbeddingNewParamsModelTextEmbedding3Small + const EmbeddingNewParamsModelTextEmbeddingAda002 + func (r EmbeddingNewParamsModel) IsKnown() bool + type EmbeddingObject string + const EmbeddingObjectEmbedding + func (r EmbeddingObject) IsKnown() bool + type EmbeddingService struct + Options []option.RequestOption + func NewEmbeddingService(opts ...option.RequestOption) (r *EmbeddingService) + func (r *EmbeddingService) New(ctx context.Context, body EmbeddingNewParams, opts ...option.RequestOption) (res *CreateEmbeddingResponse, err error) + type Error = apierror.Error + type ErrorObject = shared.ErrorObject + type FileChunkingStrategy struct + JSON fileChunkingStrategyJSON + Static StaticFileChunkingStrategy + Type FileChunkingStrategyType + func (r *FileChunkingStrategy) UnmarshalJSON(data []byte) (err error) + func (r FileChunkingStrategy) AsUnion() FileChunkingStrategyUnion + type FileChunkingStrategyParam struct + Static param.Field[StaticFileChunkingStrategyParam] + Type param.Field[FileChunkingStrategyParamType] + func (r FileChunkingStrategyParam) MarshalJSON() (data []byte, err error) + type FileChunkingStrategyParamType string + const FileChunkingStrategyParamTypeAuto + const FileChunkingStrategyParamTypeStatic + func (r FileChunkingStrategyParamType) IsKnown() bool + type FileChunkingStrategyParamUnion interface + type FileChunkingStrategyType string + const FileChunkingStrategyTypeOther + const FileChunkingStrategyTypeStatic + func (r FileChunkingStrategyType) IsKnown() bool + type FileChunkingStrategyUnion interface + type FileCitationAnnotation struct + EndIndex int64 + FileCitation FileCitationAnnotationFileCitation + JSON fileCitationAnnotationJSON + StartIndex int64 + Text string + Type FileCitationAnnotationType + func (r *FileCitationAnnotation) UnmarshalJSON(data []byte) (err error) + type FileCitationAnnotationFileCitation struct + FileID string + JSON fileCitationAnnotationFileCitationJSON + func (r *FileCitationAnnotationFileCitation) UnmarshalJSON(data []byte) (err error) + type FileCitationAnnotationType string + const FileCitationAnnotationTypeFileCitation + func (r FileCitationAnnotationType) IsKnown() bool + type FileCitationDeltaAnnotation struct + EndIndex int64 + FileCitation FileCitationDeltaAnnotationFileCitation + Index int64 + JSON fileCitationDeltaAnnotationJSON + StartIndex int64 + Text string + Type FileCitationDeltaAnnotationType + func (r *FileCitationDeltaAnnotation) UnmarshalJSON(data []byte) (err error) + type FileCitationDeltaAnnotationFileCitation struct + FileID string + JSON fileCitationDeltaAnnotationFileCitationJSON + Quote string + func (r *FileCitationDeltaAnnotationFileCitation) UnmarshalJSON(data []byte) (err error) + type FileCitationDeltaAnnotationType string + const FileCitationDeltaAnnotationTypeFileCitation + func (r FileCitationDeltaAnnotationType) IsKnown() bool + type FileDeleted struct + Deleted bool + ID string + JSON fileDeletedJSON + Object FileDeletedObject + func (r *FileDeleted) UnmarshalJSON(data []byte) (err error) + type FileDeletedObject string + const FileDeletedObjectFile + func (r FileDeletedObject) IsKnown() bool + type FileListParams struct + Purpose param.Field[string] + func (r FileListParams) URLQuery() (v url.Values) + type FileNewParams struct + File param.Field[io.Reader] + Purpose param.Field[FilePurpose] + func (r FileNewParams) MarshalMultipart() (data []byte, contentType string, err error) + type FileObject struct + Bytes int64 + CreatedAt int64 + Filename string + ID string + JSON fileObjectJSON + Object FileObjectObject + Purpose FileObjectPurpose + Status FileObjectStatus + StatusDetails string + func (r *FileObject) UnmarshalJSON(data []byte) (err error) + type FileObjectObject string + const FileObjectObjectFile + func (r FileObjectObject) IsKnown() bool + type FileObjectPurpose string + const FileObjectPurposeAssistants + const FileObjectPurposeAssistantsOutput + const FileObjectPurposeBatch + const FileObjectPurposeBatchOutput + const FileObjectPurposeFineTune + const FileObjectPurposeFineTuneResults + const FileObjectPurposeVision + func (r FileObjectPurpose) IsKnown() bool + type FileObjectStatus string + const FileObjectStatusError + const FileObjectStatusProcessed + const FileObjectStatusUploaded + func (r FileObjectStatus) IsKnown() bool + type FilePathAnnotation struct + EndIndex int64 + FilePath FilePathAnnotationFilePath + JSON filePathAnnotationJSON + StartIndex int64 + Text string + Type FilePathAnnotationType + func (r *FilePathAnnotation) UnmarshalJSON(data []byte) (err error) + type FilePathAnnotationFilePath struct + FileID string + JSON filePathAnnotationFilePathJSON + func (r *FilePathAnnotationFilePath) UnmarshalJSON(data []byte) (err error) + type FilePathAnnotationType string + const FilePathAnnotationTypeFilePath + func (r FilePathAnnotationType) IsKnown() bool + type FilePathDeltaAnnotation struct + EndIndex int64 + FilePath FilePathDeltaAnnotationFilePath + Index int64 + JSON filePathDeltaAnnotationJSON + StartIndex int64 + Text string + Type FilePathDeltaAnnotationType + func (r *FilePathDeltaAnnotation) UnmarshalJSON(data []byte) (err error) + type FilePathDeltaAnnotationFilePath struct + FileID string + JSON filePathDeltaAnnotationFilePathJSON + func (r *FilePathDeltaAnnotationFilePath) UnmarshalJSON(data []byte) (err error) + type FilePathDeltaAnnotationType string + const FilePathDeltaAnnotationTypeFilePath + func (r FilePathDeltaAnnotationType) IsKnown() bool + type FilePurpose string + const FilePurposeAssistants + const FilePurposeBatch + const FilePurposeFineTune + const FilePurposeVision + func (r FilePurpose) IsKnown() bool + type FileSearchTool struct + FileSearch FileSearchToolFileSearch + JSON fileSearchToolJSON + Type FileSearchToolType + func (r *FileSearchTool) UnmarshalJSON(data []byte) (err error) + type FileSearchToolCall struct + FileSearch FileSearchToolCallFileSearch + ID string + JSON fileSearchToolCallJSON + Type FileSearchToolCallType + func (r *FileSearchToolCall) UnmarshalJSON(data []byte) (err error) + type FileSearchToolCallDelta struct + FileSearch interface{} + ID string + Index int64 + JSON fileSearchToolCallDeltaJSON + Type FileSearchToolCallDeltaType + func (r *FileSearchToolCallDelta) UnmarshalJSON(data []byte) (err error) + type FileSearchToolCallDeltaType string + const FileSearchToolCallDeltaTypeFileSearch + func (r FileSearchToolCallDeltaType) IsKnown() bool + type FileSearchToolCallFileSearch struct + JSON fileSearchToolCallFileSearchJSON + RankingOptions FileSearchToolCallFileSearchRankingOptions + Results []FileSearchToolCallFileSearchResult + func (r *FileSearchToolCallFileSearch) UnmarshalJSON(data []byte) (err error) + type FileSearchToolCallFileSearchRankingOptions struct + JSON fileSearchToolCallFileSearchRankingOptionsJSON + Ranker FileSearchToolCallFileSearchRankingOptionsRanker + ScoreThreshold float64 + func (r *FileSearchToolCallFileSearchRankingOptions) UnmarshalJSON(data []byte) (err error) + type FileSearchToolCallFileSearchRankingOptionsRanker string + const FileSearchToolCallFileSearchRankingOptionsRankerDefault2024_08_21 + func (r FileSearchToolCallFileSearchRankingOptionsRanker) IsKnown() bool + type FileSearchToolCallFileSearchResult struct + Content []FileSearchToolCallFileSearchResultsContent + FileID string + FileName string + JSON fileSearchToolCallFileSearchResultJSON + Score float64 + func (r *FileSearchToolCallFileSearchResult) UnmarshalJSON(data []byte) (err error) + type FileSearchToolCallFileSearchResultsContent struct + JSON fileSearchToolCallFileSearchResultsContentJSON + Text string + Type FileSearchToolCallFileSearchResultsContentType + func (r *FileSearchToolCallFileSearchResultsContent) UnmarshalJSON(data []byte) (err error) + type FileSearchToolCallFileSearchResultsContentType string + const FileSearchToolCallFileSearchResultsContentTypeText + func (r FileSearchToolCallFileSearchResultsContentType) IsKnown() bool + type FileSearchToolCallType string + const FileSearchToolCallTypeFileSearch + func (r FileSearchToolCallType) IsKnown() bool + type FileSearchToolFileSearch struct + JSON fileSearchToolFileSearchJSON + MaxNumResults int64 + RankingOptions FileSearchToolFileSearchRankingOptions + func (r *FileSearchToolFileSearch) UnmarshalJSON(data []byte) (err error) + type FileSearchToolFileSearchParam struct + MaxNumResults param.Field[int64] + RankingOptions param.Field[FileSearchToolFileSearchRankingOptionsParam] + func (r FileSearchToolFileSearchParam) MarshalJSON() (data []byte, err error) + type FileSearchToolFileSearchRankingOptions struct + JSON fileSearchToolFileSearchRankingOptionsJSON + Ranker FileSearchToolFileSearchRankingOptionsRanker + ScoreThreshold float64 + func (r *FileSearchToolFileSearchRankingOptions) UnmarshalJSON(data []byte) (err error) + type FileSearchToolFileSearchRankingOptionsParam struct + Ranker param.Field[FileSearchToolFileSearchRankingOptionsRanker] + ScoreThreshold param.Field[float64] + func (r FileSearchToolFileSearchRankingOptionsParam) MarshalJSON() (data []byte, err error) + type FileSearchToolFileSearchRankingOptionsRanker string + const FileSearchToolFileSearchRankingOptionsRankerAuto + const FileSearchToolFileSearchRankingOptionsRankerDefault2024_08_21 + func (r FileSearchToolFileSearchRankingOptionsRanker) IsKnown() bool + type FileSearchToolParam struct + FileSearch param.Field[FileSearchToolFileSearchParam] + Type param.Field[FileSearchToolType] + func (r FileSearchToolParam) MarshalJSON() (data []byte, err error) + type FileSearchToolType string + const FileSearchToolTypeFileSearch + func (r FileSearchToolType) IsKnown() bool + type FileService struct + Options []option.RequestOption + func NewFileService(opts ...option.RequestOption) (r *FileService) + func (r *FileService) Content(ctx context.Context, fileID string, opts ...option.RequestOption) (res *http.Response, err error) + func (r *FileService) Delete(ctx context.Context, fileID string, opts ...option.RequestOption) (res *FileDeleted, err error) + func (r *FileService) Get(ctx context.Context, fileID string, opts ...option.RequestOption) (res *FileObject, err error) + func (r *FileService) List(ctx context.Context, query FileListParams, opts ...option.RequestOption) (res *pagination.Page[FileObject], err error) + func (r *FileService) ListAutoPaging(ctx context.Context, query FileListParams, opts ...option.RequestOption) *pagination.PageAutoPager[FileObject] + func (r *FileService) New(ctx context.Context, body FileNewParams, opts ...option.RequestOption) (res *FileObject, err error) + type FineTuningJob struct + CreatedAt int64 + Error FineTuningJobError + EstimatedFinish int64 + FineTunedModel string + FinishedAt int64 + Hyperparameters FineTuningJobHyperparameters + ID string + Integrations []FineTuningJobWandbIntegrationObject + JSON fineTuningJobJSON + Model string + Object FineTuningJobObject + OrganizationID string + ResultFiles []string + Seed int64 + Status FineTuningJobStatus + TrainedTokens int64 + TrainingFile string + ValidationFile string + func (r *FineTuningJob) UnmarshalJSON(data []byte) (err error) + type FineTuningJobCheckpoint struct + CreatedAt int64 + FineTunedModelCheckpoint string + FineTuningJobID string + ID string + JSON fineTuningJobCheckpointJSON + Metrics FineTuningJobCheckpointMetrics + Object FineTuningJobCheckpointObject + StepNumber int64 + func (r *FineTuningJobCheckpoint) UnmarshalJSON(data []byte) (err error) + type FineTuningJobCheckpointListParams struct + After param.Field[string] + Limit param.Field[int64] + func (r FineTuningJobCheckpointListParams) URLQuery() (v url.Values) + type FineTuningJobCheckpointMetrics struct + FullValidLoss float64 + FullValidMeanTokenAccuracy float64 + JSON fineTuningJobCheckpointMetricsJSON + Step float64 + TrainLoss float64 + TrainMeanTokenAccuracy float64 + ValidLoss float64 + ValidMeanTokenAccuracy float64 + func (r *FineTuningJobCheckpointMetrics) UnmarshalJSON(data []byte) (err error) + type FineTuningJobCheckpointObject string + const FineTuningJobCheckpointObjectFineTuningJobCheckpoint + func (r FineTuningJobCheckpointObject) IsKnown() bool + type FineTuningJobCheckpointService struct + Options []option.RequestOption + func NewFineTuningJobCheckpointService(opts ...option.RequestOption) (r *FineTuningJobCheckpointService) + func (r *FineTuningJobCheckpointService) List(ctx context.Context, fineTuningJobID string, ...) (res *pagination.CursorPage[FineTuningJobCheckpoint], err error) + func (r *FineTuningJobCheckpointService) ListAutoPaging(ctx context.Context, fineTuningJobID string, ...) *pagination.CursorPageAutoPager[FineTuningJobCheckpoint] + type FineTuningJobError struct + Code string + JSON fineTuningJobErrorJSON + Message string + Param string + func (r *FineTuningJobError) UnmarshalJSON(data []byte) (err error) + type FineTuningJobEvent struct + CreatedAt int64 + ID string + JSON fineTuningJobEventJSON + Level FineTuningJobEventLevel + Message string + Object FineTuningJobEventObject + func (r *FineTuningJobEvent) UnmarshalJSON(data []byte) (err error) + type FineTuningJobEventLevel string + const FineTuningJobEventLevelError + const FineTuningJobEventLevelInfo + const FineTuningJobEventLevelWarn + func (r FineTuningJobEventLevel) IsKnown() bool + type FineTuningJobEventObject string + const FineTuningJobEventObjectFineTuningJobEvent + func (r FineTuningJobEventObject) IsKnown() bool + type FineTuningJobHyperparameters struct + JSON fineTuningJobHyperparametersJSON + NEpochs FineTuningJobHyperparametersNEpochsUnion + func (r *FineTuningJobHyperparameters) UnmarshalJSON(data []byte) (err error) + type FineTuningJobHyperparametersNEpochsString string + const FineTuningJobHyperparametersNEpochsStringAuto + func (r FineTuningJobHyperparametersNEpochsString) ImplementsFineTuningJobHyperparametersNEpochsUnion() + func (r FineTuningJobHyperparametersNEpochsString) IsKnown() bool + type FineTuningJobHyperparametersNEpochsUnion interface + ImplementsFineTuningJobHyperparametersNEpochsUnion func() + type FineTuningJobListEventsParams struct + After param.Field[string] + Limit param.Field[int64] + func (r FineTuningJobListEventsParams) URLQuery() (v url.Values) + type FineTuningJobListParams struct + After param.Field[string] + Limit param.Field[int64] + func (r FineTuningJobListParams) URLQuery() (v url.Values) + type FineTuningJobNewParams struct + Hyperparameters param.Field[FineTuningJobNewParamsHyperparameters] + Integrations param.Field[[]FineTuningJobNewParamsIntegration] + Model param.Field[FineTuningJobNewParamsModel] + Seed param.Field[int64] + Suffix param.Field[string] + TrainingFile param.Field[string] + ValidationFile param.Field[string] + func (r FineTuningJobNewParams) MarshalJSON() (data []byte, err error) + type FineTuningJobNewParamsHyperparameters struct + BatchSize param.Field[FineTuningJobNewParamsHyperparametersBatchSizeUnion] + LearningRateMultiplier param.Field[FineTuningJobNewParamsHyperparametersLearningRateMultiplierUnion] + NEpochs param.Field[FineTuningJobNewParamsHyperparametersNEpochsUnion] + func (r FineTuningJobNewParamsHyperparameters) MarshalJSON() (data []byte, err error) + type FineTuningJobNewParamsHyperparametersBatchSizeString string + const FineTuningJobNewParamsHyperparametersBatchSizeStringAuto + func (r FineTuningJobNewParamsHyperparametersBatchSizeString) ImplementsFineTuningJobNewParamsHyperparametersBatchSizeUnion() + func (r FineTuningJobNewParamsHyperparametersBatchSizeString) IsKnown() bool + type FineTuningJobNewParamsHyperparametersBatchSizeUnion interface + ImplementsFineTuningJobNewParamsHyperparametersBatchSizeUnion func() + type FineTuningJobNewParamsHyperparametersLearningRateMultiplierString string + const FineTuningJobNewParamsHyperparametersLearningRateMultiplierStringAuto + func (r FineTuningJobNewParamsHyperparametersLearningRateMultiplierString) ImplementsFineTuningJobNewParamsHyperparametersLearningRateMultiplierUnion() + func (r FineTuningJobNewParamsHyperparametersLearningRateMultiplierString) IsKnown() bool + type FineTuningJobNewParamsHyperparametersLearningRateMultiplierUnion interface + ImplementsFineTuningJobNewParamsHyperparametersLearningRateMultiplierUnion func() + type FineTuningJobNewParamsHyperparametersNEpochsString string + const FineTuningJobNewParamsHyperparametersNEpochsStringAuto + func (r FineTuningJobNewParamsHyperparametersNEpochsString) ImplementsFineTuningJobNewParamsHyperparametersNEpochsUnion() + func (r FineTuningJobNewParamsHyperparametersNEpochsString) IsKnown() bool + type FineTuningJobNewParamsHyperparametersNEpochsUnion interface + ImplementsFineTuningJobNewParamsHyperparametersNEpochsUnion func() + type FineTuningJobNewParamsIntegration struct + Type param.Field[FineTuningJobNewParamsIntegrationsType] + Wandb param.Field[FineTuningJobNewParamsIntegrationsWandb] + func (r FineTuningJobNewParamsIntegration) MarshalJSON() (data []byte, err error) + type FineTuningJobNewParamsIntegrationsType string + const FineTuningJobNewParamsIntegrationsTypeWandb + func (r FineTuningJobNewParamsIntegrationsType) IsKnown() bool + type FineTuningJobNewParamsIntegrationsWandb struct + Entity param.Field[string] + Name param.Field[string] + Project param.Field[string] + Tags param.Field[[]string] + func (r FineTuningJobNewParamsIntegrationsWandb) MarshalJSON() (data []byte, err error) + type FineTuningJobNewParamsModel string + const FineTuningJobNewParamsModelBabbage002 + const FineTuningJobNewParamsModelDavinci002 + const FineTuningJobNewParamsModelGPT3_5Turbo + const FineTuningJobNewParamsModelGPT4oMini + func (r FineTuningJobNewParamsModel) IsKnown() bool + type FineTuningJobObject string + const FineTuningJobObjectFineTuningJob + func (r FineTuningJobObject) IsKnown() bool + type FineTuningJobService struct + Checkpoints *FineTuningJobCheckpointService + Options []option.RequestOption + func NewFineTuningJobService(opts ...option.RequestOption) (r *FineTuningJobService) + func (r *FineTuningJobService) Cancel(ctx context.Context, fineTuningJobID string, opts ...option.RequestOption) (res *FineTuningJob, err error) + func (r *FineTuningJobService) Get(ctx context.Context, fineTuningJobID string, opts ...option.RequestOption) (res *FineTuningJob, err error) + func (r *FineTuningJobService) List(ctx context.Context, query FineTuningJobListParams, ...) (res *pagination.CursorPage[FineTuningJob], err error) + func (r *FineTuningJobService) ListAutoPaging(ctx context.Context, query FineTuningJobListParams, ...) *pagination.CursorPageAutoPager[FineTuningJob] + func (r *FineTuningJobService) ListEvents(ctx context.Context, fineTuningJobID string, ...) (res *pagination.CursorPage[FineTuningJobEvent], err error) + func (r *FineTuningJobService) ListEventsAutoPaging(ctx context.Context, fineTuningJobID string, ...) *pagination.CursorPageAutoPager[FineTuningJobEvent] + func (r *FineTuningJobService) New(ctx context.Context, body FineTuningJobNewParams, opts ...option.RequestOption) (res *FineTuningJob, err error) + type FineTuningJobStatus string + const FineTuningJobStatusCancelled + const FineTuningJobStatusFailed + const FineTuningJobStatusQueued + const FineTuningJobStatusRunning + const FineTuningJobStatusSucceeded + const FineTuningJobStatusValidatingFiles + func (r FineTuningJobStatus) IsKnown() bool + type FineTuningJobWandbIntegration struct + Entity string + JSON fineTuningJobWandbIntegrationJSON + Name string + Project string + Tags []string + func (r *FineTuningJobWandbIntegration) UnmarshalJSON(data []byte) (err error) + type FineTuningJobWandbIntegrationObject struct + JSON fineTuningJobWandbIntegrationObjectJSON + Type FineTuningJobWandbIntegrationObjectType + Wandb FineTuningJobWandbIntegration + func (r *FineTuningJobWandbIntegrationObject) UnmarshalJSON(data []byte) (err error) + type FineTuningJobWandbIntegrationObjectType string + const FineTuningJobWandbIntegrationObjectTypeWandb + func (r FineTuningJobWandbIntegrationObjectType) IsKnown() bool + type FineTuningService struct + Jobs *FineTuningJobService + Options []option.RequestOption + func NewFineTuningService(opts ...option.RequestOption) (r *FineTuningService) + type FinishedChatCompletionToolCall struct + Index int + type FunctionDefinition = shared.FunctionDefinition + type FunctionDefinitionParam = shared.FunctionDefinitionParam + type FunctionParameters = shared.FunctionParameters + type FunctionTool struct + Function shared.FunctionDefinition + JSON functionToolJSON + Type FunctionToolType + func (r *FunctionTool) UnmarshalJSON(data []byte) (err error) + type FunctionToolCall struct + Function FunctionToolCallFunction + ID string + JSON functionToolCallJSON + Type FunctionToolCallType + func (r *FunctionToolCall) UnmarshalJSON(data []byte) (err error) + type FunctionToolCallDelta struct + Function FunctionToolCallDeltaFunction + ID string + Index int64 + JSON functionToolCallDeltaJSON + Type FunctionToolCallDeltaType + func (r *FunctionToolCallDelta) UnmarshalJSON(data []byte) (err error) + type FunctionToolCallDeltaFunction struct + Arguments string + JSON functionToolCallDeltaFunctionJSON + Name string + Output string + func (r *FunctionToolCallDeltaFunction) UnmarshalJSON(data []byte) (err error) + type FunctionToolCallDeltaType string + const FunctionToolCallDeltaTypeFunction + func (r FunctionToolCallDeltaType) IsKnown() bool + type FunctionToolCallFunction struct + Arguments string + JSON functionToolCallFunctionJSON + Name string + Output string + func (r *FunctionToolCallFunction) UnmarshalJSON(data []byte) (err error) + type FunctionToolCallType string + const FunctionToolCallTypeFunction + func (r FunctionToolCallType) IsKnown() bool + type FunctionToolParam struct + Function param.Field[shared.FunctionDefinitionParam] + Type param.Field[FunctionToolType] + func (r FunctionToolParam) MarshalJSON() (data []byte, err error) + type FunctionToolType string + const FunctionToolTypeFunction + func (r FunctionToolType) IsKnown() bool + type Image struct + B64JSON string + JSON imageJSON + RevisedPrompt string + URL string + func (r *Image) UnmarshalJSON(data []byte) (err error) + type ImageEditParams struct + Image param.Field[io.Reader] + Mask param.Field[io.Reader] + Model param.Field[ImageModel] + N param.Field[int64] + Prompt param.Field[string] + ResponseFormat param.Field[ImageEditParamsResponseFormat] + Size param.Field[ImageEditParamsSize] + User param.Field[string] + func (r ImageEditParams) MarshalMultipart() (data []byte, contentType string, err error) + type ImageEditParamsResponseFormat string + const ImageEditParamsResponseFormatB64JSON + const ImageEditParamsResponseFormatURL + func (r ImageEditParamsResponseFormat) IsKnown() bool + type ImageEditParamsSize string + const ImageEditParamsSize1024x1024 + const ImageEditParamsSize256x256 + const ImageEditParamsSize512x512 + func (r ImageEditParamsSize) IsKnown() bool + type ImageFile struct + Detail ImageFileDetail + FileID string + JSON imageFileJSON + func (r *ImageFile) UnmarshalJSON(data []byte) (err error) + type ImageFileContentBlock struct + ImageFile ImageFile + JSON imageFileContentBlockJSON + Type ImageFileContentBlockType + func (r *ImageFileContentBlock) UnmarshalJSON(data []byte) (err error) + type ImageFileContentBlockParam struct + ImageFile param.Field[ImageFileParam] + Type param.Field[ImageFileContentBlockType] + func (r ImageFileContentBlockParam) MarshalJSON() (data []byte, err error) + type ImageFileContentBlockType string + const ImageFileContentBlockTypeImageFile + func (r ImageFileContentBlockType) IsKnown() bool + type ImageFileDelta struct + Detail ImageFileDeltaDetail + FileID string + JSON imageFileDeltaJSON + func (r *ImageFileDelta) UnmarshalJSON(data []byte) (err error) + type ImageFileDeltaBlock struct + ImageFile ImageFileDelta + Index int64 + JSON imageFileDeltaBlockJSON + Type ImageFileDeltaBlockType + func (r *ImageFileDeltaBlock) UnmarshalJSON(data []byte) (err error) + type ImageFileDeltaBlockType string + const ImageFileDeltaBlockTypeImageFile + func (r ImageFileDeltaBlockType) IsKnown() bool + type ImageFileDeltaDetail string + const ImageFileDeltaDetailAuto + const ImageFileDeltaDetailHigh + const ImageFileDeltaDetailLow + func (r ImageFileDeltaDetail) IsKnown() bool + type ImageFileDetail string + const ImageFileDetailAuto + const ImageFileDetailHigh + const ImageFileDetailLow + func (r ImageFileDetail) IsKnown() bool + type ImageFileParam struct + Detail param.Field[ImageFileDetail] + FileID param.Field[string] + func (r ImageFileParam) MarshalJSON() (data []byte, err error) + type ImageGenerateParams struct + Model param.Field[ImageModel] + N param.Field[int64] + Prompt param.Field[string] + Quality param.Field[ImageGenerateParamsQuality] + ResponseFormat param.Field[ImageGenerateParamsResponseFormat] + Size param.Field[ImageGenerateParamsSize] + Style param.Field[ImageGenerateParamsStyle] + User param.Field[string] + func (r ImageGenerateParams) MarshalJSON() (data []byte, err error) + type ImageGenerateParamsQuality string + const ImageGenerateParamsQualityHD + const ImageGenerateParamsQualityStandard + func (r ImageGenerateParamsQuality) IsKnown() bool + type ImageGenerateParamsResponseFormat string + const ImageGenerateParamsResponseFormatB64JSON + const ImageGenerateParamsResponseFormatURL + func (r ImageGenerateParamsResponseFormat) IsKnown() bool + type ImageGenerateParamsSize string + const ImageGenerateParamsSize1024x1024 + const ImageGenerateParamsSize1024x1792 + const ImageGenerateParamsSize1792x1024 + const ImageGenerateParamsSize256x256 + const ImageGenerateParamsSize512x512 + func (r ImageGenerateParamsSize) IsKnown() bool + type ImageGenerateParamsStyle string + const ImageGenerateParamsStyleNatural + const ImageGenerateParamsStyleVivid + func (r ImageGenerateParamsStyle) IsKnown() bool + type ImageModel = string + const ImageModelDallE2 + const ImageModelDallE3 + type ImageNewVariationParams struct + Image param.Field[io.Reader] + Model param.Field[ImageModel] + N param.Field[int64] + ResponseFormat param.Field[ImageNewVariationParamsResponseFormat] + Size param.Field[ImageNewVariationParamsSize] + User param.Field[string] + func (r ImageNewVariationParams) MarshalMultipart() (data []byte, contentType string, err error) + type ImageNewVariationParamsResponseFormat string + const ImageNewVariationParamsResponseFormatB64JSON + const ImageNewVariationParamsResponseFormatURL + func (r ImageNewVariationParamsResponseFormat) IsKnown() bool + type ImageNewVariationParamsSize string + const ImageNewVariationParamsSize1024x1024 + const ImageNewVariationParamsSize256x256 + const ImageNewVariationParamsSize512x512 + func (r ImageNewVariationParamsSize) IsKnown() bool + type ImageService struct + Options []option.RequestOption + func NewImageService(opts ...option.RequestOption) (r *ImageService) + func (r *ImageService) Edit(ctx context.Context, body ImageEditParams, opts ...option.RequestOption) (res *ImagesResponse, err error) + func (r *ImageService) Generate(ctx context.Context, body ImageGenerateParams, opts ...option.RequestOption) (res *ImagesResponse, err error) + func (r *ImageService) NewVariation(ctx context.Context, body ImageNewVariationParams, ...) (res *ImagesResponse, err error) + type ImageURL struct + Detail ImageURLDetail + JSON imageURLJSON + URL string + func (r *ImageURL) UnmarshalJSON(data []byte) (err error) + type ImageURLContentBlock struct + ImageURL ImageURL + JSON imageURLContentBlockJSON + Type ImageURLContentBlockType + func (r *ImageURLContentBlock) UnmarshalJSON(data []byte) (err error) + type ImageURLContentBlockParam struct + ImageURL param.Field[ImageURLParam] + Type param.Field[ImageURLContentBlockType] + func (r ImageURLContentBlockParam) MarshalJSON() (data []byte, err error) + type ImageURLContentBlockType string + const ImageURLContentBlockTypeImageURL + func (r ImageURLContentBlockType) IsKnown() bool + type ImageURLDelta struct + Detail ImageURLDeltaDetail + JSON imageURLDeltaJSON + URL string + func (r *ImageURLDelta) UnmarshalJSON(data []byte) (err error) + type ImageURLDeltaBlock struct + ImageURL ImageURLDelta + Index int64 + JSON imageURLDeltaBlockJSON + Type ImageURLDeltaBlockType + func (r *ImageURLDeltaBlock) UnmarshalJSON(data []byte) (err error) + type ImageURLDeltaBlockType string + const ImageURLDeltaBlockTypeImageURL + func (r ImageURLDeltaBlockType) IsKnown() bool + type ImageURLDeltaDetail string + const ImageURLDeltaDetailAuto + const ImageURLDeltaDetailHigh + const ImageURLDeltaDetailLow + func (r ImageURLDeltaDetail) IsKnown() bool + type ImageURLDetail string + const ImageURLDetailAuto + const ImageURLDetailHigh + const ImageURLDetailLow + func (r ImageURLDetail) IsKnown() bool + type ImageURLParam struct + Detail param.Field[ImageURLDetail] + URL param.Field[string] + func (r ImageURLParam) MarshalJSON() (data []byte, err error) + type ImagesResponse struct + Created int64 + Data []Image + JSON imagesResponseJSON + func (r *ImagesResponse) UnmarshalJSON(data []byte) (err error) + type Message struct + AssistantID string + Attachments []MessageAttachment + CompletedAt int64 + Content []MessageContent + CreatedAt int64 + ID string + IncompleteAt int64 + IncompleteDetails MessageIncompleteDetails + JSON messageJSON + Metadata interface{} + Object MessageObject + Role MessageRole + RunID string + Status MessageStatus + ThreadID string + func (r *Message) UnmarshalJSON(data []byte) (err error) + type MessageAttachment struct + FileID string + JSON messageAttachmentJSON + Tools []MessageAttachmentsTool + func (r *MessageAttachment) UnmarshalJSON(data []byte) (err error) + type MessageAttachmentsTool struct + JSON messageAttachmentsToolJSON + Type MessageAttachmentsToolsType + func (r *MessageAttachmentsTool) UnmarshalJSON(data []byte) (err error) + func (r MessageAttachmentsTool) AsUnion() MessageAttachmentsToolsUnion + type MessageAttachmentsToolsAssistantToolsFileSearchTypeOnly struct + JSON messageAttachmentsToolsAssistantToolsFileSearchTypeOnlyJSON + Type MessageAttachmentsToolsAssistantToolsFileSearchTypeOnlyType + func (r *MessageAttachmentsToolsAssistantToolsFileSearchTypeOnly) UnmarshalJSON(data []byte) (err error) + type MessageAttachmentsToolsAssistantToolsFileSearchTypeOnlyType string + const MessageAttachmentsToolsAssistantToolsFileSearchTypeOnlyTypeFileSearch + func (r MessageAttachmentsToolsAssistantToolsFileSearchTypeOnlyType) IsKnown() bool + type MessageAttachmentsToolsType string + const MessageAttachmentsToolsTypeCodeInterpreter + const MessageAttachmentsToolsTypeFileSearch + func (r MessageAttachmentsToolsType) IsKnown() bool + type MessageAttachmentsToolsUnion interface + type MessageContent struct + ImageFile ImageFile + ImageURL ImageURL + JSON messageContentJSON + Refusal string + Text Text + Type MessageContentType + func (r *MessageContent) UnmarshalJSON(data []byte) (err error) + func (r MessageContent) AsUnion() MessageContentUnion + type MessageContentDelta struct + ImageFile ImageFileDelta + ImageURL ImageURLDelta + Index int64 + JSON messageContentDeltaJSON + Refusal string + Text TextDelta + Type MessageContentDeltaType + func (r *MessageContentDelta) UnmarshalJSON(data []byte) (err error) + func (r MessageContentDelta) AsUnion() MessageContentDeltaUnion + type MessageContentDeltaType string + const MessageContentDeltaTypeImageFile + const MessageContentDeltaTypeImageURL + const MessageContentDeltaTypeRefusal + const MessageContentDeltaTypeText + func (r MessageContentDeltaType) IsKnown() bool + type MessageContentDeltaUnion interface + type MessageContentPartParam struct + ImageFile param.Field[ImageFileParam] + ImageURL param.Field[ImageURLParam] + Text param.Field[string] + Type param.Field[MessageContentPartParamType] + func (r MessageContentPartParam) MarshalJSON() (data []byte, err error) + type MessageContentPartParamType string + const MessageContentPartParamTypeImageFile + const MessageContentPartParamTypeImageURL + const MessageContentPartParamTypeText + func (r MessageContentPartParamType) IsKnown() bool + type MessageContentPartParamUnion interface + type MessageContentType string + const MessageContentTypeImageFile + const MessageContentTypeImageURL + const MessageContentTypeRefusal + const MessageContentTypeText + func (r MessageContentType) IsKnown() bool + type MessageContentUnion interface + type MessageCreationStepDetails struct + JSON messageCreationStepDetailsJSON + MessageCreation MessageCreationStepDetailsMessageCreation + Type MessageCreationStepDetailsType + func (r *MessageCreationStepDetails) UnmarshalJSON(data []byte) (err error) + type MessageCreationStepDetailsMessageCreation struct + JSON messageCreationStepDetailsMessageCreationJSON + MessageID string + func (r *MessageCreationStepDetailsMessageCreation) UnmarshalJSON(data []byte) (err error) + type MessageCreationStepDetailsType string + const MessageCreationStepDetailsTypeMessageCreation + func (r MessageCreationStepDetailsType) IsKnown() bool + type MessageDeleted struct + Deleted bool + ID string + JSON messageDeletedJSON + Object MessageDeletedObject + func (r *MessageDeleted) UnmarshalJSON(data []byte) (err error) + type MessageDeletedObject string + const MessageDeletedObjectThreadMessageDeleted + func (r MessageDeletedObject) IsKnown() bool + type MessageDelta struct + Content []MessageContentDelta + JSON messageDeltaJSON + Role MessageDeltaRole + func (r *MessageDelta) UnmarshalJSON(data []byte) (err error) + type MessageDeltaEvent struct + Delta MessageDelta + ID string + JSON messageDeltaEventJSON + Object MessageDeltaEventObject + func (r *MessageDeltaEvent) UnmarshalJSON(data []byte) (err error) + type MessageDeltaEventObject string + const MessageDeltaEventObjectThreadMessageDelta + func (r MessageDeltaEventObject) IsKnown() bool + type MessageDeltaRole string + const MessageDeltaRoleAssistant + const MessageDeltaRoleUser + func (r MessageDeltaRole) IsKnown() bool + type MessageIncompleteDetails struct + JSON messageIncompleteDetailsJSON + Reason MessageIncompleteDetailsReason + func (r *MessageIncompleteDetails) UnmarshalJSON(data []byte) (err error) + type MessageIncompleteDetailsReason string + const MessageIncompleteDetailsReasonContentFilter + const MessageIncompleteDetailsReasonMaxTokens + const MessageIncompleteDetailsReasonRunCancelled + const MessageIncompleteDetailsReasonRunExpired + const MessageIncompleteDetailsReasonRunFailed + func (r MessageIncompleteDetailsReason) IsKnown() bool + type MessageObject string + const MessageObjectThreadMessage + func (r MessageObject) IsKnown() bool + type MessageRole string + const MessageRoleAssistant + const MessageRoleUser + func (r MessageRole) IsKnown() bool + type MessageStatus string + const MessageStatusCompleted + const MessageStatusInProgress + const MessageStatusIncomplete + func (r MessageStatus) IsKnown() bool + type Model struct + Created int64 + ID string + JSON modelJSON + Object ModelObject + OwnedBy string + func (r *Model) UnmarshalJSON(data []byte) (err error) + type ModelDeleted struct + Deleted bool + ID string + JSON modelDeletedJSON + Object string + func (r *ModelDeleted) UnmarshalJSON(data []byte) (err error) + type ModelObject string + const ModelObjectModel + func (r ModelObject) IsKnown() bool + type ModelService struct + Options []option.RequestOption + func NewModelService(opts ...option.RequestOption) (r *ModelService) + func (r *ModelService) Delete(ctx context.Context, model string, opts ...option.RequestOption) (res *ModelDeleted, err error) + func (r *ModelService) Get(ctx context.Context, model string, opts ...option.RequestOption) (res *Model, err error) + func (r *ModelService) List(ctx context.Context, opts ...option.RequestOption) (res *pagination.Page[Model], err error) + func (r *ModelService) ListAutoPaging(ctx context.Context, opts ...option.RequestOption) *pagination.PageAutoPager[Model] + type Moderation struct + Categories ModerationCategories + CategoryScores ModerationCategoryScores + Flagged bool + JSON moderationJSON + func (r *Moderation) UnmarshalJSON(data []byte) (err error) + type ModerationCategories struct + Harassment bool + HarassmentThreatening bool + Hate bool + HateThreatening bool + JSON moderationCategoriesJSON + SelfHarm bool + SelfHarmInstructions bool + SelfHarmIntent bool + Sexual bool + SexualMinors bool + Violence bool + ViolenceGraphic bool + func (r *ModerationCategories) UnmarshalJSON(data []byte) (err error) + type ModerationCategoryScores struct + Harassment float64 + HarassmentThreatening float64 + Hate float64 + HateThreatening float64 + JSON moderationCategoryScoresJSON + SelfHarm float64 + SelfHarmInstructions float64 + SelfHarmIntent float64 + Sexual float64 + SexualMinors float64 + Violence float64 + ViolenceGraphic float64 + func (r *ModerationCategoryScores) UnmarshalJSON(data []byte) (err error) + type ModerationModel = string + const ModerationModelTextModerationLatest + const ModerationModelTextModerationStable + type ModerationNewParams struct + Input param.Field[ModerationNewParamsInputUnion] + Model param.Field[ModerationModel] + func (r ModerationNewParams) MarshalJSON() (data []byte, err error) + type ModerationNewParamsInputArray []string + func (r ModerationNewParamsInputArray) ImplementsModerationNewParamsInputUnion() + type ModerationNewParamsInputUnion interface + ImplementsModerationNewParamsInputUnion func() + type ModerationNewResponse struct + ID string + JSON moderationNewResponseJSON + Model string + Results []Moderation + func (r *ModerationNewResponse) UnmarshalJSON(data []byte) (err error) + type ModerationService struct + Options []option.RequestOption + func NewModerationService(opts ...option.RequestOption) (r *ModerationService) + func (r *ModerationService) New(ctx context.Context, body ModerationNewParams, opts ...option.RequestOption) (res *ModerationNewResponse, err error) + type OtherFileChunkingStrategyObject struct + JSON otherFileChunkingStrategyObjectJSON + Type OtherFileChunkingStrategyObjectType + func (r *OtherFileChunkingStrategyObject) UnmarshalJSON(data []byte) (err error) + type OtherFileChunkingStrategyObjectType string + const OtherFileChunkingStrategyObjectTypeOther + func (r OtherFileChunkingStrategyObjectType) IsKnown() bool + type RefusalContentBlock struct + JSON refusalContentBlockJSON + Refusal string + Type RefusalContentBlockType + func (r *RefusalContentBlock) UnmarshalJSON(data []byte) (err error) + type RefusalContentBlockType string + const RefusalContentBlockTypeRefusal + func (r RefusalContentBlockType) IsKnown() bool + type RefusalDeltaBlock struct + Index int64 + JSON refusalDeltaBlockJSON + Refusal string + Type RefusalDeltaBlockType + func (r *RefusalDeltaBlock) UnmarshalJSON(data []byte) (err error) + type RefusalDeltaBlockType string + const RefusalDeltaBlockTypeRefusal + func (r RefusalDeltaBlockType) IsKnown() bool + type RequiredActionFunctionToolCall struct + Function RequiredActionFunctionToolCallFunction + ID string + JSON requiredActionFunctionToolCallJSON + Type RequiredActionFunctionToolCallType + func (r *RequiredActionFunctionToolCall) UnmarshalJSON(data []byte) (err error) + type RequiredActionFunctionToolCallFunction struct + Arguments string + JSON requiredActionFunctionToolCallFunctionJSON + Name string + func (r *RequiredActionFunctionToolCallFunction) UnmarshalJSON(data []byte) (err error) + type RequiredActionFunctionToolCallType string + const RequiredActionFunctionToolCallTypeFunction + func (r RequiredActionFunctionToolCallType) IsKnown() bool + type ResponseFormatJSONObjectParam = shared.ResponseFormatJSONObjectParam + type ResponseFormatJSONObjectType = shared.ResponseFormatJSONObjectType + type ResponseFormatJSONSchemaJSONSchemaParam = shared.ResponseFormatJSONSchemaJSONSchemaParam + type ResponseFormatJSONSchemaParam = shared.ResponseFormatJSONSchemaParam + type ResponseFormatJSONSchemaType = shared.ResponseFormatJSONSchemaType + type ResponseFormatTextParam = shared.ResponseFormatTextParam + type ResponseFormatTextType = shared.ResponseFormatTextType + type Run struct + AssistantID string + CancelledAt int64 + CompletedAt int64 + CreatedAt int64 + ExpiresAt int64 + FailedAt int64 + ID string + IncompleteDetails RunIncompleteDetails + Instructions string + JSON runJSON + LastError RunLastError + MaxCompletionTokens int64 + MaxPromptTokens int64 + Metadata interface{} + Model string + Object RunObject + ParallelToolCalls bool + RequiredAction RunRequiredAction + StartedAt int64 + Status RunStatus + Temperature float64 + ThreadID string + ToolChoice AssistantToolChoiceOptionUnion + Tools []AssistantTool + TopP float64 + TruncationStrategy RunTruncationStrategy + Usage RunUsage + func (r *Run) UnmarshalJSON(data []byte) (err error) + type RunIncompleteDetails struct + JSON runIncompleteDetailsJSON + Reason RunIncompleteDetailsReason + func (r *RunIncompleteDetails) UnmarshalJSON(data []byte) (err error) + type RunIncompleteDetailsReason string + const RunIncompleteDetailsReasonMaxCompletionTokens + const RunIncompleteDetailsReasonMaxPromptTokens + func (r RunIncompleteDetailsReason) IsKnown() bool + type RunLastError struct + Code RunLastErrorCode + JSON runLastErrorJSON + Message string + func (r *RunLastError) UnmarshalJSON(data []byte) (err error) + type RunLastErrorCode string + const RunLastErrorCodeInvalidPrompt + const RunLastErrorCodeRateLimitExceeded + const RunLastErrorCodeServerError + func (r RunLastErrorCode) IsKnown() bool + type RunObject string + const RunObjectThreadRun + func (r RunObject) IsKnown() bool + type RunRequiredAction struct + JSON runRequiredActionJSON + SubmitToolOutputs RunRequiredActionSubmitToolOutputs + Type RunRequiredActionType + func (r *RunRequiredAction) UnmarshalJSON(data []byte) (err error) + type RunRequiredActionSubmitToolOutputs struct + JSON runRequiredActionSubmitToolOutputsJSON + ToolCalls []RequiredActionFunctionToolCall + func (r *RunRequiredActionSubmitToolOutputs) UnmarshalJSON(data []byte) (err error) + type RunRequiredActionType string + const RunRequiredActionTypeSubmitToolOutputs + func (r RunRequiredActionType) IsKnown() bool + type RunStatus string + const RunStatusCancelled + const RunStatusCancelling + const RunStatusCompleted + const RunStatusExpired + const RunStatusFailed + const RunStatusInProgress + const RunStatusIncomplete + const RunStatusQueued + const RunStatusRequiresAction + func (r RunStatus) IsKnown() bool + type RunStep struct + AssistantID string + CancelledAt int64 + CompletedAt int64 + CreatedAt int64 + ExpiredAt int64 + FailedAt int64 + ID string + JSON runStepJSON + LastError RunStepLastError + Metadata interface{} + Object RunStepObject + RunID string + Status RunStepStatus + StepDetails RunStepStepDetails + ThreadID string + Type RunStepType + Usage RunStepUsage + func (r *RunStep) UnmarshalJSON(data []byte) (err error) + type RunStepDelta struct + JSON runStepDeltaJSON + StepDetails RunStepDeltaStepDetails + func (r *RunStepDelta) UnmarshalJSON(data []byte) (err error) + type RunStepDeltaEvent struct + Delta RunStepDelta + ID string + JSON runStepDeltaEventJSON + Object RunStepDeltaEventObject + func (r *RunStepDeltaEvent) UnmarshalJSON(data []byte) (err error) + type RunStepDeltaEventObject string + const RunStepDeltaEventObjectThreadRunStepDelta + func (r RunStepDeltaEventObject) IsKnown() bool + type RunStepDeltaMessageDelta struct + JSON runStepDeltaMessageDeltaJSON + MessageCreation RunStepDeltaMessageDeltaMessageCreation + Type RunStepDeltaMessageDeltaType + func (r *RunStepDeltaMessageDelta) UnmarshalJSON(data []byte) (err error) + type RunStepDeltaMessageDeltaMessageCreation struct + JSON runStepDeltaMessageDeltaMessageCreationJSON + MessageID string + func (r *RunStepDeltaMessageDeltaMessageCreation) UnmarshalJSON(data []byte) (err error) + type RunStepDeltaMessageDeltaType string + const RunStepDeltaMessageDeltaTypeMessageCreation + func (r RunStepDeltaMessageDeltaType) IsKnown() bool + type RunStepDeltaStepDetails struct + JSON runStepDeltaStepDetailsJSON + MessageCreation interface{} + ToolCalls interface{} + Type RunStepDeltaStepDetailsType + func (r *RunStepDeltaStepDetails) UnmarshalJSON(data []byte) (err error) + func (r RunStepDeltaStepDetails) AsUnion() RunStepDeltaStepDetailsUnion + type RunStepDeltaStepDetailsType string + const RunStepDeltaStepDetailsTypeMessageCreation + const RunStepDeltaStepDetailsTypeToolCalls + func (r RunStepDeltaStepDetailsType) IsKnown() bool + type RunStepDeltaStepDetailsUnion interface + type RunStepInclude string + const RunStepIncludeStepDetailsToolCallsFileSearchResultsContent + func (r RunStepInclude) IsKnown() bool + type RunStepLastError struct + Code RunStepLastErrorCode + JSON runStepLastErrorJSON + Message string + func (r *RunStepLastError) UnmarshalJSON(data []byte) (err error) + type RunStepLastErrorCode string + const RunStepLastErrorCodeRateLimitExceeded + const RunStepLastErrorCodeServerError + func (r RunStepLastErrorCode) IsKnown() bool + type RunStepObject string + const RunStepObjectThreadRunStep + func (r RunStepObject) IsKnown() bool + type RunStepStatus string + const RunStepStatusCancelled + const RunStepStatusCompleted + const RunStepStatusExpired + const RunStepStatusFailed + const RunStepStatusInProgress + func (r RunStepStatus) IsKnown() bool + type RunStepStepDetails struct + JSON runStepStepDetailsJSON + MessageCreation interface{} + ToolCalls interface{} + Type RunStepStepDetailsType + func (r *RunStepStepDetails) UnmarshalJSON(data []byte) (err error) + func (r RunStepStepDetails) AsUnion() RunStepStepDetailsUnion + type RunStepStepDetailsType string + const RunStepStepDetailsTypeMessageCreation + const RunStepStepDetailsTypeToolCalls + func (r RunStepStepDetailsType) IsKnown() bool + type RunStepStepDetailsUnion interface + type RunStepType string + const RunStepTypeMessageCreation + const RunStepTypeToolCalls + func (r RunStepType) IsKnown() bool + type RunStepUsage struct + CompletionTokens int64 + JSON runStepUsageJSON + PromptTokens int64 + TotalTokens int64 + func (r *RunStepUsage) UnmarshalJSON(data []byte) (err error) + type RunTruncationStrategy struct + JSON runTruncationStrategyJSON + LastMessages int64 + Type RunTruncationStrategyType + func (r *RunTruncationStrategy) UnmarshalJSON(data []byte) (err error) + type RunTruncationStrategyType string + const RunTruncationStrategyTypeAuto + const RunTruncationStrategyTypeLastMessages + func (r RunTruncationStrategyType) IsKnown() bool + type RunUsage struct + CompletionTokens int64 + JSON runUsageJSON + PromptTokens int64 + TotalTokens int64 + func (r *RunUsage) UnmarshalJSON(data []byte) (err error) + type SpeechModel = string + const SpeechModelTTS1 + const SpeechModelTTS1HD + type StaticFileChunkingStrategy struct + ChunkOverlapTokens int64 + JSON staticFileChunkingStrategyJSON + MaxChunkSizeTokens int64 + func (r *StaticFileChunkingStrategy) UnmarshalJSON(data []byte) (err error) + type StaticFileChunkingStrategyObject struct + JSON staticFileChunkingStrategyObjectJSON + Static StaticFileChunkingStrategy + Type StaticFileChunkingStrategyObjectType + func (r *StaticFileChunkingStrategyObject) UnmarshalJSON(data []byte) (err error) + type StaticFileChunkingStrategyObjectType string + const StaticFileChunkingStrategyObjectTypeStatic + func (r StaticFileChunkingStrategyObjectType) IsKnown() bool + type StaticFileChunkingStrategyParam struct + ChunkOverlapTokens param.Field[int64] + MaxChunkSizeTokens param.Field[int64] + func (r StaticFileChunkingStrategyParam) MarshalJSON() (data []byte, err error) + type Text struct + Annotations []Annotation + JSON textJSON + Value string + func (r *Text) UnmarshalJSON(data []byte) (err error) + type TextContentBlock struct + JSON textContentBlockJSON + Text Text + Type TextContentBlockType + func (r *TextContentBlock) UnmarshalJSON(data []byte) (err error) + type TextContentBlockParam struct + Text param.Field[string] + Type param.Field[TextContentBlockParamType] + func (r TextContentBlockParam) MarshalJSON() (data []byte, err error) + type TextContentBlockParamType string + const TextContentBlockParamTypeText + func (r TextContentBlockParamType) IsKnown() bool + type TextContentBlockType string + const TextContentBlockTypeText + func (r TextContentBlockType) IsKnown() bool + type TextDelta struct + Annotations []AnnotationDelta + JSON textDeltaJSON + Value string + func (r *TextDelta) UnmarshalJSON(data []byte) (err error) + type TextDeltaBlock struct + Index int64 + JSON textDeltaBlockJSON + Text TextDelta + Type TextDeltaBlockType + func (r *TextDeltaBlock) UnmarshalJSON(data []byte) (err error) + type TextDeltaBlockType string + const TextDeltaBlockTypeText + func (r TextDeltaBlockType) IsKnown() bool + type Thread struct + CreatedAt int64 + ID string + JSON threadJSON + Metadata interface{} + Object ThreadObject + ToolResources ThreadToolResources + func (r *Thread) UnmarshalJSON(data []byte) (err error) + type ThreadDeleted struct + Deleted bool + ID string + JSON threadDeletedJSON + Object ThreadDeletedObject + func (r *ThreadDeleted) UnmarshalJSON(data []byte) (err error) + type ThreadDeletedObject string + const ThreadDeletedObjectThreadDeleted + func (r ThreadDeletedObject) IsKnown() bool + type ThreadObject string + const ThreadObjectThread + func (r ThreadObject) IsKnown() bool + type ThreadRunParamsResponseFormat struct + JSONSchema param.Field[interface{}] + Type param.Field[ThreadRunParamsResponseFormatType] + func (r ThreadRunParamsResponseFormat) ImplementsThreadRunParamsResponseFormatUnion() + func (r ThreadRunParamsResponseFormat) MarshalJSON() (data []byte, err error) + type ThreadRunParamsResponseFormatType string + const ThreadRunParamsResponseFormatTypeJSONObject + const ThreadRunParamsResponseFormatTypeJSONSchema + const ThreadRunParamsResponseFormatTypeText + func (r ThreadRunParamsResponseFormatType) IsKnown() bool + type ThreadRunParamsResponseFormatUnion interface + ImplementsThreadRunParamsResponseFormatUnion func() + type ThreadToolResources struct + CodeInterpreter ThreadToolResourcesCodeInterpreter + FileSearch ThreadToolResourcesFileSearch + JSON threadToolResourcesJSON + func (r *ThreadToolResources) UnmarshalJSON(data []byte) (err error) + type ThreadToolResourcesCodeInterpreter struct + FileIDs []string + JSON threadToolResourcesCodeInterpreterJSON + func (r *ThreadToolResourcesCodeInterpreter) UnmarshalJSON(data []byte) (err error) + type ThreadToolResourcesFileSearch struct + JSON threadToolResourcesFileSearchJSON + VectorStoreIDs []string + func (r *ThreadToolResourcesFileSearch) UnmarshalJSON(data []byte) (err error) + type ToolCall struct + CodeInterpreter interface{} + FileSearch interface{} + Function interface{} + ID string + JSON toolCallJSON + Type ToolCallType + func (r *ToolCall) UnmarshalJSON(data []byte) (err error) + func (r ToolCall) AsUnion() ToolCallUnion + type ToolCallDelta struct + CodeInterpreter interface{} + FileSearch interface{} + Function interface{} + ID string + Index int64 + JSON toolCallDeltaJSON + Type ToolCallDeltaType + func (r *ToolCallDelta) UnmarshalJSON(data []byte) (err error) + func (r ToolCallDelta) AsUnion() ToolCallDeltaUnion + type ToolCallDeltaObject struct + JSON toolCallDeltaObjectJSON + ToolCalls []ToolCallDelta + Type ToolCallDeltaObjectType + func (r *ToolCallDeltaObject) UnmarshalJSON(data []byte) (err error) + type ToolCallDeltaObjectType string + const ToolCallDeltaObjectTypeToolCalls + func (r ToolCallDeltaObjectType) IsKnown() bool + type ToolCallDeltaType string + const ToolCallDeltaTypeCodeInterpreter + const ToolCallDeltaTypeFileSearch + const ToolCallDeltaTypeFunction + func (r ToolCallDeltaType) IsKnown() bool + type ToolCallDeltaUnion interface + type ToolCallType string + const ToolCallTypeCodeInterpreter + const ToolCallTypeFileSearch + const ToolCallTypeFunction + func (r ToolCallType) IsKnown() bool + type ToolCallUnion interface + type ToolCallsStepDetails struct + JSON toolCallsStepDetailsJSON + ToolCalls []ToolCall + Type ToolCallsStepDetailsType + func (r *ToolCallsStepDetails) UnmarshalJSON(data []byte) (err error) + type ToolCallsStepDetailsType string + const ToolCallsStepDetailsTypeToolCalls + func (r ToolCallsStepDetailsType) IsKnown() bool + type Transcription struct + JSON transcriptionJSON + Text string + func (r *Transcription) UnmarshalJSON(data []byte) (err error) + type Translation struct + JSON translationJSON + Text string + func (r *Translation) UnmarshalJSON(data []byte) (err error) + type Upload struct + Bytes int64 + CreatedAt int64 + ExpiresAt int64 + File FileObject + Filename string + ID string + JSON uploadJSON + Object UploadObject + Purpose string + Status UploadStatus + func (r *Upload) UnmarshalJSON(data []byte) (err error) + type UploadCompleteParams struct + Md5 param.Field[string] + PartIDs param.Field[[]string] + func (r UploadCompleteParams) MarshalJSON() (data []byte, err error) + type UploadNewParams struct + Bytes param.Field[int64] + Filename param.Field[string] + MimeType param.Field[string] + Purpose param.Field[FilePurpose] + func (r UploadNewParams) MarshalJSON() (data []byte, err error) + type UploadObject string + const UploadObjectUpload + func (r UploadObject) IsKnown() bool + type UploadPart struct + CreatedAt int64 + ID string + JSON uploadPartJSON + Object UploadPartObject + UploadID string + func (r *UploadPart) UnmarshalJSON(data []byte) (err error) + type UploadPartNewParams struct + Data param.Field[io.Reader] + func (r UploadPartNewParams) MarshalMultipart() (data []byte, contentType string, err error) + type UploadPartObject string + const UploadPartObjectUploadPart + func (r UploadPartObject) IsKnown() bool + type UploadPartService struct + Options []option.RequestOption + func NewUploadPartService(opts ...option.RequestOption) (r *UploadPartService) + func (r *UploadPartService) New(ctx context.Context, uploadID string, body UploadPartNewParams, ...) (res *UploadPart, err error) + type UploadService struct + Options []option.RequestOption + Parts *UploadPartService + func NewUploadService(opts ...option.RequestOption) (r *UploadService) + func (r *UploadService) Cancel(ctx context.Context, uploadID string, opts ...option.RequestOption) (res *Upload, err error) + func (r *UploadService) Complete(ctx context.Context, uploadID string, body UploadCompleteParams, ...) (res *Upload, err error) + func (r *UploadService) New(ctx context.Context, body UploadNewParams, opts ...option.RequestOption) (res *Upload, err error) + type UploadStatus string + const UploadStatusCancelled + const UploadStatusCompleted + const UploadStatusExpired + const UploadStatusPending + func (r UploadStatus) IsKnown() bool + type VectorStore struct + CreatedAt int64 + ExpiresAfter VectorStoreExpiresAfter + ExpiresAt int64 + FileCounts VectorStoreFileCounts + ID string + JSON vectorStoreJSON + LastActiveAt int64 + Metadata interface{} + Name string + Object VectorStoreObject + Status VectorStoreStatus + UsageBytes int64 + func (r *VectorStore) UnmarshalJSON(data []byte) (err error) + type VectorStoreDeleted struct + Deleted bool + ID string + JSON vectorStoreDeletedJSON + Object VectorStoreDeletedObject + func (r *VectorStoreDeleted) UnmarshalJSON(data []byte) (err error) + type VectorStoreDeletedObject string + const VectorStoreDeletedObjectVectorStoreDeleted + func (r VectorStoreDeletedObject) IsKnown() bool + type VectorStoreExpiresAfter struct + Anchor VectorStoreExpiresAfterAnchor + Days int64 + JSON vectorStoreExpiresAfterJSON + func (r *VectorStoreExpiresAfter) UnmarshalJSON(data []byte) (err error) + type VectorStoreExpiresAfterAnchor string + const VectorStoreExpiresAfterAnchorLastActiveAt + func (r VectorStoreExpiresAfterAnchor) IsKnown() bool + type VectorStoreFile struct + ChunkingStrategy FileChunkingStrategy + CreatedAt int64 + ID string + JSON vectorStoreFileJSON + LastError VectorStoreFileLastError + Object VectorStoreFileObject + Status VectorStoreFileStatus + UsageBytes int64 + VectorStoreID string + func (r *VectorStoreFile) UnmarshalJSON(data []byte) (err error) + type VectorStoreFileBatch struct + CreatedAt int64 + FileCounts VectorStoreFileBatchFileCounts + ID string + JSON vectorStoreFileBatchJSON + Object VectorStoreFileBatchObject + Status VectorStoreFileBatchStatus + VectorStoreID string + func (r *VectorStoreFileBatch) UnmarshalJSON(data []byte) (err error) + type VectorStoreFileBatchFileCounts struct + Cancelled int64 + Completed int64 + Failed int64 + InProgress int64 + JSON vectorStoreFileBatchFileCountsJSON + Total int64 + func (r *VectorStoreFileBatchFileCounts) UnmarshalJSON(data []byte) (err error) + type VectorStoreFileBatchObject string + const VectorStoreFileBatchObjectVectorStoreFilesBatch + func (r VectorStoreFileBatchObject) IsKnown() bool + type VectorStoreFileBatchStatus string + const VectorStoreFileBatchStatusCancelled + const VectorStoreFileBatchStatusCompleted + const VectorStoreFileBatchStatusFailed + const VectorStoreFileBatchStatusInProgress + func (r VectorStoreFileBatchStatus) IsKnown() bool + type VectorStoreFileCounts struct + Cancelled int64 + Completed int64 + Failed int64 + InProgress int64 + JSON vectorStoreFileCountsJSON + Total int64 + func (r *VectorStoreFileCounts) UnmarshalJSON(data []byte) (err error) + type VectorStoreFileDeleted struct + Deleted bool + ID string + JSON vectorStoreFileDeletedJSON + Object VectorStoreFileDeletedObject + func (r *VectorStoreFileDeleted) UnmarshalJSON(data []byte) (err error) + type VectorStoreFileDeletedObject string + const VectorStoreFileDeletedObjectVectorStoreFileDeleted + func (r VectorStoreFileDeletedObject) IsKnown() bool + type VectorStoreFileLastError struct + Code VectorStoreFileLastErrorCode + JSON vectorStoreFileLastErrorJSON + Message string + func (r *VectorStoreFileLastError) UnmarshalJSON(data []byte) (err error) + type VectorStoreFileLastErrorCode string + const VectorStoreFileLastErrorCodeInvalidFile + const VectorStoreFileLastErrorCodeServerError + const VectorStoreFileLastErrorCodeUnsupportedFile + func (r VectorStoreFileLastErrorCode) IsKnown() bool + type VectorStoreFileObject string + const VectorStoreFileObjectVectorStoreFile + func (r VectorStoreFileObject) IsKnown() bool + type VectorStoreFileStatus string + const VectorStoreFileStatusCancelled + const VectorStoreFileStatusCompleted + const VectorStoreFileStatusFailed + const VectorStoreFileStatusInProgress + func (r VectorStoreFileStatus) IsKnown() bool + type VectorStoreObject string + const VectorStoreObjectVectorStore + func (r VectorStoreObject) IsKnown() bool + type VectorStoreStatus string + const VectorStoreStatusCompleted + const VectorStoreStatusExpired + const VectorStoreStatusInProgress + func (r VectorStoreStatus) IsKnown() bool