Help us shape the future of Go! Take the 2026 Go Developer Survey

constant

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 1 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueOf

func ValueOf[T Constant[T]]() T

ValueOf gives the default value of a constant from its type. It's helpful when constructing constants as variants in a one-of. Note that empty structs are marshalled by default. Usage: constant.ValueOf[constant.Foo]()

Types

type Approximate

type Approximate string // Always "approximate"

func (Approximate) Default

func (c Approximate) Default() Approximate

func (Approximate) MarshalJSON

func (c Approximate) MarshalJSON() ([]byte, error)

type Assistant

type Assistant string // Always "assistant"

func (Assistant) Default

func (c Assistant) Default() Assistant

func (Assistant) MarshalJSON

func (c Assistant) MarshalJSON() ([]byte, error)

type AssistantDeleted added in v1.1.0

type AssistantDeleted string // Always "assistant.deleted"

func (AssistantDeleted) Default added in v1.1.0

func (c AssistantDeleted) Default() AssistantDeleted

func (AssistantDeleted) MarshalJSON added in v1.1.0

func (c AssistantDeleted) MarshalJSON() ([]byte, error)

type Auto

type Auto string // Always "auto"

func (Auto) Default

func (c Auto) Default() Auto

func (Auto) MarshalJSON

func (c Auto) MarshalJSON() ([]byte, error)

type Batch

type Batch string // Always "batch"

func (Batch) Default

func (c Batch) Default() Batch

func (Batch) MarshalJSON

func (c Batch) MarshalJSON() ([]byte, error)

type BatchCancelled added in v1.8.0

type BatchCancelled string // Always "batch.cancelled"

func (BatchCancelled) Default added in v1.8.0

func (c BatchCancelled) Default() BatchCancelled

func (BatchCancelled) MarshalJSON added in v1.8.0

func (c BatchCancelled) MarshalJSON() ([]byte, error)

type BatchCompleted added in v1.8.0

type BatchCompleted string // Always "batch.completed"

func (BatchCompleted) Default added in v1.8.0

func (c BatchCompleted) Default() BatchCompleted

func (BatchCompleted) MarshalJSON added in v1.8.0

func (c BatchCompleted) MarshalJSON() ([]byte, error)

type BatchExpired added in v1.8.0

type BatchExpired string // Always "batch.expired"

func (BatchExpired) Default added in v1.8.0

func (c BatchExpired) Default() BatchExpired

func (BatchExpired) MarshalJSON added in v1.8.0

func (c BatchExpired) MarshalJSON() ([]byte, error)

type BatchFailed added in v1.8.0

type BatchFailed string // Always "batch.failed"

func (BatchFailed) Default added in v1.8.0

func (c BatchFailed) Default() BatchFailed

func (BatchFailed) MarshalJSON added in v1.8.0

func (c BatchFailed) MarshalJSON() ([]byte, error)

type ChatCompletion

type ChatCompletion string // Always "chat.completion"

func (ChatCompletion) Default

func (c ChatCompletion) Default() ChatCompletion

func (ChatCompletion) MarshalJSON

func (c ChatCompletion) MarshalJSON() ([]byte, error)

type ChatCompletionChunk

type ChatCompletionChunk string // Always "chat.completion.chunk"

func (ChatCompletionChunk) Default

func (ChatCompletionChunk) MarshalJSON

func (c ChatCompletionChunk) MarshalJSON() ([]byte, error)

type ChatCompletionDeleted

type ChatCompletionDeleted string // Always "chat.completion.deleted"

func (ChatCompletionDeleted) Default

func (ChatCompletionDeleted) MarshalJSON

func (c ChatCompletionDeleted) MarshalJSON() ([]byte, error)

type CheckpointPermission

type CheckpointPermission string // Always "checkpoint.permission"

func (CheckpointPermission) Default

func (CheckpointPermission) MarshalJSON

func (c CheckpointPermission) MarshalJSON() ([]byte, error)

type Click

type Click string // Always "click"

func (Click) Default

func (c Click) Default() Click

func (Click) MarshalJSON

func (c Click) MarshalJSON() ([]byte, error)

type CodeInterpreter added in v1.1.0

type CodeInterpreter string // Always "code_interpreter"

func (CodeInterpreter) Default added in v1.1.0

func (c CodeInterpreter) Default() CodeInterpreter

func (CodeInterpreter) MarshalJSON added in v1.1.0

func (c CodeInterpreter) MarshalJSON() ([]byte, error)

type CodeInterpreterCall

type CodeInterpreterCall string // Always "code_interpreter_call"

func (CodeInterpreterCall) Default

func (CodeInterpreterCall) MarshalJSON

func (c CodeInterpreterCall) MarshalJSON() ([]byte, error)

type ComputerCallOutput

type ComputerCallOutput string // Always "computer_call_output"

func (ComputerCallOutput) Default

func (ComputerCallOutput) MarshalJSON

func (c ComputerCallOutput) MarshalJSON() ([]byte, error)

type ComputerScreenshot

type ComputerScreenshot string // Always "computer_screenshot"

func (ComputerScreenshot) Default

func (ComputerScreenshot) MarshalJSON

func (c ComputerScreenshot) MarshalJSON() ([]byte, error)

type ComputerUsePreview

type ComputerUsePreview string // Always "computer_use_preview"

func (ComputerUsePreview) Default

func (ComputerUsePreview) MarshalJSON

func (c ComputerUsePreview) MarshalJSON() ([]byte, error)

type Constant

type Constant[T any] interface {
	Default() T
}

type ContainerFile added in v1.1.0

type ContainerFile string // Always "container.file"

func (ContainerFile) Default added in v1.1.0

func (c ContainerFile) Default() ContainerFile

func (ContainerFile) MarshalJSON added in v1.1.0

func (c ContainerFile) MarshalJSON() ([]byte, error)

type ContainerFileCitation added in v1.2.1

type ContainerFileCitation string // Always "container_file_citation"

func (ContainerFileCitation) Default added in v1.2.1

func (ContainerFileCitation) MarshalJSON added in v1.2.1

func (c ContainerFileCitation) MarshalJSON() ([]byte, error)

type Content

type Content string // Always "content"

func (Content) Default

func (c Content) Default() Content

func (Content) MarshalJSON

func (c Content) MarshalJSON() ([]byte, error)

type Developer

type Developer string // Always "developer"

func (Developer) Default

func (c Developer) Default() Developer

func (Developer) MarshalJSON

func (c Developer) MarshalJSON() ([]byte, error)

type DoubleClick

type DoubleClick string // Always "double_click"

func (DoubleClick) Default

func (c DoubleClick) Default() DoubleClick

func (DoubleClick) MarshalJSON

func (c DoubleClick) MarshalJSON() ([]byte, error)

type Drag

type Drag string // Always "drag"

func (Drag) Default

func (c Drag) Default() Drag

func (Drag) MarshalJSON

func (c Drag) MarshalJSON() ([]byte, error)

type Duration added in v1.7.0

type Duration string // Always "duration"

func (Duration) Default added in v1.7.0

func (c Duration) Default() Duration

func (Duration) MarshalJSON added in v1.7.0

func (c Duration) MarshalJSON() ([]byte, error)

type Embedding

type Embedding string // Always "embedding"

func (Embedding) Default

func (c Embedding) Default() Embedding

func (Embedding) MarshalJSON

func (c Embedding) MarshalJSON() ([]byte, error)

type Error

type Error string // Always "error"

func (Error) Default

func (c Error) Default() Error

func (Error) MarshalJSON

func (c Error) MarshalJSON() ([]byte, error)

type EvalRunCanceled added in v1.8.0

type EvalRunCanceled string // Always "eval.run.canceled"

func (EvalRunCanceled) Default added in v1.8.0

func (c EvalRunCanceled) Default() EvalRunCanceled

func (EvalRunCanceled) MarshalJSON added in v1.8.0

func (c EvalRunCanceled) MarshalJSON() ([]byte, error)

type EvalRunFailed added in v1.8.0

type EvalRunFailed string // Always "eval.run.failed"

func (EvalRunFailed) Default added in v1.8.0

func (c EvalRunFailed) Default() EvalRunFailed

func (EvalRunFailed) MarshalJSON added in v1.8.0

func (c EvalRunFailed) MarshalJSON() ([]byte, error)

type EvalRunSucceeded added in v1.8.0

type EvalRunSucceeded string // Always "eval.run.succeeded"

func (EvalRunSucceeded) Default added in v1.8.0

func (c EvalRunSucceeded) Default() EvalRunSucceeded

func (EvalRunSucceeded) MarshalJSON added in v1.8.0

func (c EvalRunSucceeded) MarshalJSON() ([]byte, error)

type Exec added in v1.1.0

type Exec string // Always "exec"

func (Exec) Default added in v1.1.0

func (c Exec) Default() Exec

func (Exec) MarshalJSON added in v1.1.0

func (c Exec) MarshalJSON() ([]byte, error)

type File

type File string // Always "file"

func (File) Default

func (c File) Default() File

func (File) MarshalJSON

func (c File) MarshalJSON() ([]byte, error)

type FileCitation

type FileCitation string // Always "file_citation"

func (FileCitation) Default

func (c FileCitation) Default() FileCitation

func (FileCitation) MarshalJSON

func (c FileCitation) MarshalJSON() ([]byte, error)

type FilePath

type FilePath string // Always "file_path"

func (FilePath) Default

func (c FilePath) Default() FilePath

func (FilePath) MarshalJSON

func (c FilePath) MarshalJSON() ([]byte, error)

type FileSearch

type FileSearch string // Always "file_search"

func (FileSearch) Default

func (c FileSearch) Default() FileSearch

func (FileSearch) MarshalJSON

func (c FileSearch) MarshalJSON() ([]byte, error)

type FileSearchCall

type FileSearchCall string // Always "file_search_call"

func (FileSearchCall) Default

func (c FileSearchCall) Default() FileSearchCall

func (FileSearchCall) MarshalJSON

func (c FileSearchCall) MarshalJSON() ([]byte, error)

type Find added in v1.8.0

type Find string // Always "find"

func (Find) Default added in v1.8.0

func (c Find) Default() Find

func (Find) MarshalJSON added in v1.8.0

func (c Find) MarshalJSON() ([]byte, error)

type FineTuningJob

type FineTuningJob string // Always "fine_tuning.job"

func (FineTuningJob) Default

func (c FineTuningJob) Default() FineTuningJob

func (FineTuningJob) MarshalJSON

func (c FineTuningJob) MarshalJSON() ([]byte, error)

type FineTuningJobCancelled added in v1.8.0

type FineTuningJobCancelled string // Always "fine_tuning.job.cancelled"

func (FineTuningJobCancelled) Default added in v1.8.0

func (FineTuningJobCancelled) MarshalJSON added in v1.8.0

func (c FineTuningJobCancelled) MarshalJSON() ([]byte, error)

type FineTuningJobCheckpoint

type FineTuningJobCheckpoint string // Always "fine_tuning.job.checkpoint"

func (FineTuningJobCheckpoint) Default

func (FineTuningJobCheckpoint) MarshalJSON

func (c FineTuningJobCheckpoint) MarshalJSON() ([]byte, error)

type FineTuningJobEvent

type FineTuningJobEvent string // Always "fine_tuning.job.event"

func (FineTuningJobEvent) Default

func (FineTuningJobEvent) MarshalJSON

func (c FineTuningJobEvent) MarshalJSON() ([]byte, error)

type FineTuningJobFailed added in v1.8.0

type FineTuningJobFailed string // Always "fine_tuning.job.failed"

func (FineTuningJobFailed) Default added in v1.8.0

func (FineTuningJobFailed) MarshalJSON added in v1.8.0

func (c FineTuningJobFailed) MarshalJSON() ([]byte, error)

type FineTuningJobSucceeded added in v1.8.0

type FineTuningJobSucceeded string // Always "fine_tuning.job.succeeded"

func (FineTuningJobSucceeded) Default added in v1.8.0

func (FineTuningJobSucceeded) MarshalJSON added in v1.8.0

func (c FineTuningJobSucceeded) MarshalJSON() ([]byte, error)

type Function

type Function string // Always "function"

func (Function) Default

func (c Function) Default() Function

func (Function) MarshalJSON

func (c Function) MarshalJSON() ([]byte, error)

type FunctionCall

type FunctionCall string // Always "function_call"

func (FunctionCall) Default

func (c FunctionCall) Default() FunctionCall

func (FunctionCall) MarshalJSON

func (c FunctionCall) MarshalJSON() ([]byte, error)

type FunctionCallOutput

type FunctionCallOutput string // Always "function_call_output"

func (FunctionCallOutput) Default

func (FunctionCallOutput) MarshalJSON

func (c FunctionCallOutput) MarshalJSON() ([]byte, error)

type Image added in v1.1.0

type Image string // Always "image"

func (Image) Default added in v1.1.0

func (c Image) Default() Image

func (Image) MarshalJSON added in v1.1.0

func (c Image) MarshalJSON() ([]byte, error)

type ImageEditCompleted added in v1.11.0

type ImageEditCompleted string // Always "image_edit.completed"

func (ImageEditCompleted) Default added in v1.11.0

func (ImageEditCompleted) MarshalJSON added in v1.11.0

func (c ImageEditCompleted) MarshalJSON() ([]byte, error)

type ImageEditPartialImage added in v1.11.0

type ImageEditPartialImage string // Always "image_edit.partial_image"

func (ImageEditPartialImage) Default added in v1.11.0

func (ImageEditPartialImage) MarshalJSON added in v1.11.0

func (c ImageEditPartialImage) MarshalJSON() ([]byte, error)

type ImageFile added in v1.1.0

type ImageFile string // Always "image_file"

func (ImageFile) Default added in v1.1.0

func (c ImageFile) Default() ImageFile

func (ImageFile) MarshalJSON added in v1.1.0

func (c ImageFile) MarshalJSON() ([]byte, error)

type ImageGeneration added in v1.1.0

type ImageGeneration string // Always "image_generation"

func (ImageGeneration) Default added in v1.1.0

func (c ImageGeneration) Default() ImageGeneration

func (ImageGeneration) MarshalJSON added in v1.1.0

func (c ImageGeneration) MarshalJSON() ([]byte, error)

type ImageGenerationCall added in v1.1.0

type ImageGenerationCall string // Always "image_generation_call"

func (ImageGenerationCall) Default added in v1.1.0

func (ImageGenerationCall) MarshalJSON added in v1.1.0

func (c ImageGenerationCall) MarshalJSON() ([]byte, error)

type ImageGenerationCompleted added in v1.11.0

type ImageGenerationCompleted string // Always "image_generation.completed"

func (ImageGenerationCompleted) Default added in v1.11.0

func (ImageGenerationCompleted) MarshalJSON added in v1.11.0

func (c ImageGenerationCompleted) MarshalJSON() ([]byte, error)

type ImageGenerationPartialImage added in v1.11.0

type ImageGenerationPartialImage string // Always "image_generation.partial_image"

func (ImageGenerationPartialImage) Default added in v1.11.0

func (ImageGenerationPartialImage) MarshalJSON added in v1.11.0

func (c ImageGenerationPartialImage) MarshalJSON() ([]byte, error)

type ImageURL

type ImageURL string // Always "image_url"

func (ImageURL) Default

func (c ImageURL) Default() ImageURL

func (ImageURL) MarshalJSON

func (c ImageURL) MarshalJSON() ([]byte, error)

type InputAudio

type InputAudio string // Always "input_audio"

func (InputAudio) Default

func (c InputAudio) Default() InputAudio

func (InputAudio) MarshalJSON

func (c InputAudio) MarshalJSON() ([]byte, error)

type InputFile

type InputFile string // Always "input_file"

func (InputFile) Default

func (c InputFile) Default() InputFile

func (InputFile) MarshalJSON

func (c InputFile) MarshalJSON() ([]byte, error)

type InputImage

type InputImage string // Always "input_image"

func (InputImage) Default

func (c InputImage) Default() InputImage

func (InputImage) MarshalJSON

func (c InputImage) MarshalJSON() ([]byte, error)

type InputText

type InputText string // Always "input_text"

func (InputText) Default

func (c InputText) Default() InputText

func (InputText) MarshalJSON

func (c InputText) MarshalJSON() ([]byte, error)

type JSONObject

type JSONObject string // Always "json_object"

func (JSONObject) Default

func (c JSONObject) Default() JSONObject

func (JSONObject) MarshalJSON

func (c JSONObject) MarshalJSON() ([]byte, error)

type JSONSchema

type JSONSchema string // Always "json_schema"

func (JSONSchema) Default

func (c JSONSchema) Default() JSONSchema

func (JSONSchema) MarshalJSON

func (c JSONSchema) MarshalJSON() ([]byte, error)

type Keypress

type Keypress string // Always "keypress"

func (Keypress) Default

func (c Keypress) Default() Keypress

func (Keypress) MarshalJSON

func (c Keypress) MarshalJSON() ([]byte, error)

type LabelModel

type LabelModel string // Always "label_model"

func (LabelModel) Default

func (c LabelModel) Default() LabelModel

func (LabelModel) MarshalJSON

func (c LabelModel) MarshalJSON() ([]byte, error)

type LastActiveAt

type LastActiveAt string // Always "last_active_at"

func (LastActiveAt) Default

func (c LastActiveAt) Default() LastActiveAt

func (LastActiveAt) MarshalJSON

func (c LastActiveAt) MarshalJSON() ([]byte, error)

type List

type List string // Always "list"

func (List) Default

func (c List) Default() List

func (List) MarshalJSON

func (c List) MarshalJSON() ([]byte, error)

type LocalShell added in v1.1.0

type LocalShell string // Always "local_shell"

func (LocalShell) Default added in v1.1.0

func (c LocalShell) Default() LocalShell

func (LocalShell) MarshalJSON added in v1.1.0

func (c LocalShell) MarshalJSON() ([]byte, error)

type LocalShellCall added in v1.1.0

type LocalShellCall string // Always "local_shell_call"

func (LocalShellCall) Default added in v1.1.0

func (c LocalShellCall) Default() LocalShellCall

func (LocalShellCall) MarshalJSON added in v1.1.0

func (c LocalShellCall) MarshalJSON() ([]byte, error)

type LocalShellCallOutput added in v1.1.0

type LocalShellCallOutput string // Always "local_shell_call_output"

func (LocalShellCallOutput) Default added in v1.1.0

func (LocalShellCallOutput) MarshalJSON added in v1.1.0

func (c LocalShellCallOutput) MarshalJSON() ([]byte, error)

type Logs

type Logs string // Always "logs"

func (Logs) Default

func (c Logs) Default() Logs

func (Logs) MarshalJSON

func (c Logs) MarshalJSON() ([]byte, error)

type Mcp added in v1.1.0

type Mcp string // Always "mcp"

func (Mcp) Default added in v1.1.0

func (c Mcp) Default() Mcp

func (Mcp) MarshalJSON added in v1.1.0

func (c Mcp) MarshalJSON() ([]byte, error)

type McpApprovalRequest added in v1.1.0

type McpApprovalRequest string // Always "mcp_approval_request"

func (McpApprovalRequest) Default added in v1.1.0

func (McpApprovalRequest) MarshalJSON added in v1.1.0

func (c McpApprovalRequest) MarshalJSON() ([]byte, error)

type McpApprovalResponse added in v1.1.0

type McpApprovalResponse string // Always "mcp_approval_response"

func (McpApprovalResponse) Default added in v1.1.0

func (McpApprovalResponse) MarshalJSON added in v1.1.0

func (c McpApprovalResponse) MarshalJSON() ([]byte, error)

type McpCall added in v1.1.0

type McpCall string // Always "mcp_call"

func (McpCall) Default added in v1.1.0

func (c McpCall) Default() McpCall

func (McpCall) MarshalJSON added in v1.1.0

func (c McpCall) MarshalJSON() ([]byte, error)

type McpListTools added in v1.1.0

type McpListTools string // Always "mcp_list_tools"

func (McpListTools) Default added in v1.1.0

func (c McpListTools) Default() McpListTools

func (McpListTools) MarshalJSON added in v1.1.0

func (c McpListTools) MarshalJSON() ([]byte, error)

type Message

type Message string // Always "message"

func (Message) Default

func (c Message) Default() Message

func (Message) MarshalJSON

func (c Message) MarshalJSON() ([]byte, error)

type MessageCreation added in v1.1.0

type MessageCreation string // Always "message_creation"

func (MessageCreation) Default added in v1.1.0

func (c MessageCreation) Default() MessageCreation

func (MessageCreation) MarshalJSON added in v1.1.0

func (c MessageCreation) MarshalJSON() ([]byte, error)

type Model

type Model string // Always "model"

func (Model) Default

func (c Model) Default() Model

func (Model) MarshalJSON

func (c Model) MarshalJSON() ([]byte, error)

type Move

type Move string // Always "move"

func (Move) Default

func (c Move) Default() Move

func (Move) MarshalJSON

func (c Move) MarshalJSON() ([]byte, error)

type Multi

type Multi string // Always "multi"

func (Multi) Default

func (c Multi) Default() Multi

func (Multi) MarshalJSON

func (c Multi) MarshalJSON() ([]byte, error)

type OpenPage added in v1.8.0

type OpenPage string // Always "open_page"

func (OpenPage) Default added in v1.8.0

func (c OpenPage) Default() OpenPage

func (OpenPage) MarshalJSON added in v1.8.0

func (c OpenPage) MarshalJSON() ([]byte, error)

type Other

type Other string // Always "other"

func (Other) Default

func (c Other) Default() Other

func (Other) MarshalJSON

func (c Other) MarshalJSON() ([]byte, error)

type OutputAudio

type OutputAudio string // Always "output_audio"

func (OutputAudio) Default

func (c OutputAudio) Default() OutputAudio

func (OutputAudio) MarshalJSON

func (c OutputAudio) MarshalJSON() ([]byte, error)

type OutputText

type OutputText string // Always "output_text"

func (OutputText) Default

func (c OutputText) Default() OutputText

func (OutputText) MarshalJSON

func (c OutputText) MarshalJSON() ([]byte, error)

type Python

type Python string // Always "python"

func (Python) Default

func (c Python) Default() Python

func (Python) MarshalJSON

func (c Python) MarshalJSON() ([]byte, error)

type Reasoning

type Reasoning string // Always "reasoning"

func (Reasoning) Default

func (c Reasoning) Default() Reasoning

func (Reasoning) MarshalJSON

func (c Reasoning) MarshalJSON() ([]byte, error)

type Refusal

type Refusal string // Always "refusal"

func (Refusal) Default

func (c Refusal) Default() Refusal

func (Refusal) MarshalJSON

func (c Refusal) MarshalJSON() ([]byte, error)

type Response

type Response string // Always "response"

func (Response) Default

func (c Response) Default() Response

func (Response) MarshalJSON

func (c Response) MarshalJSON() ([]byte, error)

type ResponseAudioDelta

type ResponseAudioDelta string // Always "response.audio.delta"

func (ResponseAudioDelta) Default

func (ResponseAudioDelta) MarshalJSON

func (c ResponseAudioDelta) MarshalJSON() ([]byte, error)

type ResponseAudioDone

type ResponseAudioDone string // Always "response.audio.done"

func (ResponseAudioDone) Default

func (ResponseAudioDone) MarshalJSON

func (c ResponseAudioDone) MarshalJSON() ([]byte, error)

type ResponseAudioTranscriptDelta

type ResponseAudioTranscriptDelta string // Always "response.audio.transcript.delta"

func (ResponseAudioTranscriptDelta) Default

func (ResponseAudioTranscriptDelta) MarshalJSON

func (c ResponseAudioTranscriptDelta) MarshalJSON() ([]byte, error)

type ResponseAudioTranscriptDone

type ResponseAudioTranscriptDone string // Always "response.audio.transcript.done"

func (ResponseAudioTranscriptDone) Default

func (ResponseAudioTranscriptDone) MarshalJSON

func (c ResponseAudioTranscriptDone) MarshalJSON() ([]byte, error)

type ResponseCancelled added in v1.8.0

type ResponseCancelled string // Always "response.cancelled"

func (ResponseCancelled) Default added in v1.8.0

func (ResponseCancelled) MarshalJSON added in v1.8.0

func (c ResponseCancelled) MarshalJSON() ([]byte, error)

type ResponseCodeInterpreterCallCodeDelta

type ResponseCodeInterpreterCallCodeDelta string // Always "response.code_interpreter_call_code.delta"

func (ResponseCodeInterpreterCallCodeDelta) Default

func (ResponseCodeInterpreterCallCodeDelta) MarshalJSON

func (c ResponseCodeInterpreterCallCodeDelta) MarshalJSON() ([]byte, error)

type ResponseCodeInterpreterCallCodeDone

type ResponseCodeInterpreterCallCodeDone string // Always "response.code_interpreter_call_code.done"

func (ResponseCodeInterpreterCallCodeDone) Default

func (ResponseCodeInterpreterCallCodeDone) MarshalJSON

func (c ResponseCodeInterpreterCallCodeDone) MarshalJSON() ([]byte, error)

type ResponseCodeInterpreterCallCompleted

type ResponseCodeInterpreterCallCompleted string // Always "response.code_interpreter_call.completed"

func (ResponseCodeInterpreterCallCompleted) Default

func (ResponseCodeInterpreterCallCompleted) MarshalJSON

func (c ResponseCodeInterpreterCallCompleted) MarshalJSON() ([]byte, error)

type ResponseCodeInterpreterCallInProgress

type ResponseCodeInterpreterCallInProgress string // Always "response.code_interpreter_call.in_progress"

func (ResponseCodeInterpreterCallInProgress) Default

func (ResponseCodeInterpreterCallInProgress) MarshalJSON

func (c ResponseCodeInterpreterCallInProgress) MarshalJSON() ([]byte, error)

type ResponseCodeInterpreterCallInterpreting

type ResponseCodeInterpreterCallInterpreting string // Always "response.code_interpreter_call.interpreting"

func (ResponseCodeInterpreterCallInterpreting) Default

func (ResponseCodeInterpreterCallInterpreting) MarshalJSON

func (c ResponseCodeInterpreterCallInterpreting) MarshalJSON() ([]byte, error)

type ResponseCompleted

type ResponseCompleted string // Always "response.completed"

func (ResponseCompleted) Default

func (ResponseCompleted) MarshalJSON

func (c ResponseCompleted) MarshalJSON() ([]byte, error)

type ResponseContentPartAdded

type ResponseContentPartAdded string // Always "response.content_part.added"

func (ResponseContentPartAdded) Default

func (ResponseContentPartAdded) MarshalJSON

func (c ResponseContentPartAdded) MarshalJSON() ([]byte, error)

type ResponseContentPartDone

type ResponseContentPartDone string // Always "response.content_part.done"

func (ResponseContentPartDone) Default

func (ResponseContentPartDone) MarshalJSON

func (c ResponseContentPartDone) MarshalJSON() ([]byte, error)

type ResponseCreated

type ResponseCreated string // Always "response.created"

func (ResponseCreated) Default

func (c ResponseCreated) Default() ResponseCreated

func (ResponseCreated) MarshalJSON

func (c ResponseCreated) MarshalJSON() ([]byte, error)

type ResponseFailed

type ResponseFailed string // Always "response.failed"

func (ResponseFailed) Default

func (c ResponseFailed) Default() ResponseFailed

func (ResponseFailed) MarshalJSON

func (c ResponseFailed) MarshalJSON() ([]byte, error)

type ResponseFileSearchCallCompleted

type ResponseFileSearchCallCompleted string // Always "response.file_search_call.completed"

func (ResponseFileSearchCallCompleted) Default

func (ResponseFileSearchCallCompleted) MarshalJSON

func (c ResponseFileSearchCallCompleted) MarshalJSON() ([]byte, error)

type ResponseFileSearchCallInProgress

type ResponseFileSearchCallInProgress string // Always "response.file_search_call.in_progress"

func (ResponseFileSearchCallInProgress) Default

func (ResponseFileSearchCallInProgress) MarshalJSON

func (c ResponseFileSearchCallInProgress) MarshalJSON() ([]byte, error)

type ResponseFileSearchCallSearching

type ResponseFileSearchCallSearching string // Always "response.file_search_call.searching"

func (ResponseFileSearchCallSearching) Default

func (ResponseFileSearchCallSearching) MarshalJSON

func (c ResponseFileSearchCallSearching) MarshalJSON() ([]byte, error)

type ResponseFunctionCallArgumentsDelta

type ResponseFunctionCallArgumentsDelta string // Always "response.function_call_arguments.delta"

func (ResponseFunctionCallArgumentsDelta) Default

func (ResponseFunctionCallArgumentsDelta) MarshalJSON

func (c ResponseFunctionCallArgumentsDelta) MarshalJSON() ([]byte, error)

type ResponseFunctionCallArgumentsDone

type ResponseFunctionCallArgumentsDone string // Always "response.function_call_arguments.done"

func (ResponseFunctionCallArgumentsDone) Default

func (ResponseFunctionCallArgumentsDone) MarshalJSON

func (c ResponseFunctionCallArgumentsDone) MarshalJSON() ([]byte, error)

type ResponseImageGenerationCallCompleted added in v1.1.0

type ResponseImageGenerationCallCompleted string // Always "response.image_generation_call.completed"

func (ResponseImageGenerationCallCompleted) Default added in v1.1.0

func (ResponseImageGenerationCallCompleted) MarshalJSON added in v1.1.0

func (c ResponseImageGenerationCallCompleted) MarshalJSON() ([]byte, error)

type ResponseImageGenerationCallGenerating added in v1.1.0

type ResponseImageGenerationCallGenerating string // Always "response.image_generation_call.generating"

func (ResponseImageGenerationCallGenerating) Default added in v1.1.0

func (ResponseImageGenerationCallGenerating) MarshalJSON added in v1.1.0

func (c ResponseImageGenerationCallGenerating) MarshalJSON() ([]byte, error)

type ResponseImageGenerationCallInProgress added in v1.1.0

type ResponseImageGenerationCallInProgress string // Always "response.image_generation_call.in_progress"

func (ResponseImageGenerationCallInProgress) Default added in v1.1.0

func (ResponseImageGenerationCallInProgress) MarshalJSON added in v1.1.0

func (c ResponseImageGenerationCallInProgress) MarshalJSON() ([]byte, error)

type ResponseImageGenerationCallPartialImage added in v1.1.0

type ResponseImageGenerationCallPartialImage string // Always "response.image_generation_call.partial_image"

func (ResponseImageGenerationCallPartialImage) Default added in v1.1.0

func (ResponseImageGenerationCallPartialImage) MarshalJSON added in v1.1.0

func (c ResponseImageGenerationCallPartialImage) MarshalJSON() ([]byte, error)

type ResponseInProgress

type ResponseInProgress string // Always "response.in_progress"

func (ResponseInProgress) Default

func (ResponseInProgress) MarshalJSON

func (c ResponseInProgress) MarshalJSON() ([]byte, error)

type ResponseIncomplete

type ResponseIncomplete string // Always "response.incomplete"

func (ResponseIncomplete) Default

func (ResponseIncomplete) MarshalJSON

func (c ResponseIncomplete) MarshalJSON() ([]byte, error)

type ResponseMcpCallArgumentsDelta added in v1.1.0

type ResponseMcpCallArgumentsDelta string // Always "response.mcp_call_arguments.delta"

func (ResponseMcpCallArgumentsDelta) Default added in v1.1.0

func (ResponseMcpCallArgumentsDelta) MarshalJSON added in v1.1.0

func (c ResponseMcpCallArgumentsDelta) MarshalJSON() ([]byte, error)

type ResponseMcpCallArgumentsDone added in v1.1.0

type ResponseMcpCallArgumentsDone string // Always "response.mcp_call_arguments.done"

func (ResponseMcpCallArgumentsDone) Default added in v1.1.0

func (ResponseMcpCallArgumentsDone) MarshalJSON added in v1.1.0

func (c ResponseMcpCallArgumentsDone) MarshalJSON() ([]byte, error)

type ResponseMcpCallCompleted added in v1.1.0

type ResponseMcpCallCompleted string // Always "response.mcp_call.completed"

func (ResponseMcpCallCompleted) Default added in v1.1.0

func (ResponseMcpCallCompleted) MarshalJSON added in v1.1.0

func (c ResponseMcpCallCompleted) MarshalJSON() ([]byte, error)

type ResponseMcpCallFailed added in v1.1.0

type ResponseMcpCallFailed string // Always "response.mcp_call.failed"

func (ResponseMcpCallFailed) Default added in v1.1.0

func (ResponseMcpCallFailed) MarshalJSON added in v1.1.0

func (c ResponseMcpCallFailed) MarshalJSON() ([]byte, error)

type ResponseMcpCallInProgress added in v1.1.0

type ResponseMcpCallInProgress string // Always "response.mcp_call.in_progress"

func (ResponseMcpCallInProgress) Default added in v1.1.0

func (ResponseMcpCallInProgress) MarshalJSON added in v1.1.0

func (c ResponseMcpCallInProgress) MarshalJSON() ([]byte, error)

type ResponseMcpListToolsCompleted added in v1.1.0

type ResponseMcpListToolsCompleted string // Always "response.mcp_list_tools.completed"

func (ResponseMcpListToolsCompleted) Default added in v1.1.0

func (ResponseMcpListToolsCompleted) MarshalJSON added in v1.1.0

func (c ResponseMcpListToolsCompleted) MarshalJSON() ([]byte, error)

type ResponseMcpListToolsFailed added in v1.1.0

type ResponseMcpListToolsFailed string // Always "response.mcp_list_tools.failed"

func (ResponseMcpListToolsFailed) Default added in v1.1.0

func (ResponseMcpListToolsFailed) MarshalJSON added in v1.1.0

func (c ResponseMcpListToolsFailed) MarshalJSON() ([]byte, error)

type ResponseMcpListToolsInProgress added in v1.1.0

type ResponseMcpListToolsInProgress string // Always "response.mcp_list_tools.in_progress"

func (ResponseMcpListToolsInProgress) Default added in v1.1.0

func (ResponseMcpListToolsInProgress) MarshalJSON added in v1.1.0

func (c ResponseMcpListToolsInProgress) MarshalJSON() ([]byte, error)

type ResponseOutputItemAdded

type ResponseOutputItemAdded string // Always "response.output_item.added"

func (ResponseOutputItemAdded) Default

func (ResponseOutputItemAdded) MarshalJSON

func (c ResponseOutputItemAdded) MarshalJSON() ([]byte, error)

type ResponseOutputItemDone

type ResponseOutputItemDone string // Always "response.output_item.done"

func (ResponseOutputItemDone) Default

func (ResponseOutputItemDone) MarshalJSON

func (c ResponseOutputItemDone) MarshalJSON() ([]byte, error)

type ResponseOutputTextAnnotationAdded

type ResponseOutputTextAnnotationAdded string // Always "response.output_text.annotation.added"

func (ResponseOutputTextAnnotationAdded) Default

func (ResponseOutputTextAnnotationAdded) MarshalJSON

func (c ResponseOutputTextAnnotationAdded) MarshalJSON() ([]byte, error)

type ResponseOutputTextDelta

type ResponseOutputTextDelta string // Always "response.output_text.delta"

func (ResponseOutputTextDelta) Default

func (ResponseOutputTextDelta) MarshalJSON

func (c ResponseOutputTextDelta) MarshalJSON() ([]byte, error)

type ResponseOutputTextDone

type ResponseOutputTextDone string // Always "response.output_text.done"

func (ResponseOutputTextDone) Default

func (ResponseOutputTextDone) MarshalJSON

func (c ResponseOutputTextDone) MarshalJSON() ([]byte, error)

type ResponseQueued added in v1.1.0

type ResponseQueued string // Always "response.queued"

func (ResponseQueued) Default added in v1.1.0

func (c ResponseQueued) Default() ResponseQueued

func (ResponseQueued) MarshalJSON added in v1.1.0

func (c ResponseQueued) MarshalJSON() ([]byte, error)

type ResponseReasoningSummaryDelta added in v1.1.0

type ResponseReasoningSummaryDelta string // Always "response.reasoning_summary.delta"

func (ResponseReasoningSummaryDelta) Default added in v1.1.0

func (ResponseReasoningSummaryDelta) MarshalJSON added in v1.1.0

func (c ResponseReasoningSummaryDelta) MarshalJSON() ([]byte, error)

type ResponseReasoningSummaryDone added in v1.1.0

type ResponseReasoningSummaryDone string // Always "response.reasoning_summary.done"

func (ResponseReasoningSummaryDone) Default added in v1.1.0

func (ResponseReasoningSummaryDone) MarshalJSON added in v1.1.0

func (c ResponseReasoningSummaryDone) MarshalJSON() ([]byte, error)

type ResponseReasoningSummaryPartAdded

type ResponseReasoningSummaryPartAdded string // Always "response.reasoning_summary_part.added"

func (ResponseReasoningSummaryPartAdded) Default

func (ResponseReasoningSummaryPartAdded) MarshalJSON

func (c ResponseReasoningSummaryPartAdded) MarshalJSON() ([]byte, error)

type ResponseReasoningSummaryPartDone

type ResponseReasoningSummaryPartDone string // Always "response.reasoning_summary_part.done"

func (ResponseReasoningSummaryPartDone) Default

func (ResponseReasoningSummaryPartDone) MarshalJSON

func (c ResponseReasoningSummaryPartDone) MarshalJSON() ([]byte, error)

type ResponseReasoningSummaryTextDelta

type ResponseReasoningSummaryTextDelta string // Always "response.reasoning_summary_text.delta"

func (ResponseReasoningSummaryTextDelta) Default

func (ResponseReasoningSummaryTextDelta) MarshalJSON

func (c ResponseReasoningSummaryTextDelta) MarshalJSON() ([]byte, error)

type ResponseReasoningSummaryTextDone

type ResponseReasoningSummaryTextDone string // Always "response.reasoning_summary_text.done"

func (ResponseReasoningSummaryTextDone) Default

func (ResponseReasoningSummaryTextDone) MarshalJSON

func (c ResponseReasoningSummaryTextDone) MarshalJSON() ([]byte, error)

type ResponseRefusalDelta

type ResponseRefusalDelta string // Always "response.refusal.delta"

func (ResponseRefusalDelta) Default

func (ResponseRefusalDelta) MarshalJSON

func (c ResponseRefusalDelta) MarshalJSON() ([]byte, error)

type ResponseRefusalDone

type ResponseRefusalDone string // Always "response.refusal.done"

func (ResponseRefusalDone) Default

func (ResponseRefusalDone) MarshalJSON

func (c ResponseRefusalDone) MarshalJSON() ([]byte, error)

type ResponseWebSearchCallCompleted

type ResponseWebSearchCallCompleted string // Always "response.web_search_call.completed"

func (ResponseWebSearchCallCompleted) Default

func (ResponseWebSearchCallCompleted) MarshalJSON

func (c ResponseWebSearchCallCompleted) MarshalJSON() ([]byte, error)

type ResponseWebSearchCallInProgress

type ResponseWebSearchCallInProgress string // Always "response.web_search_call.in_progress"

func (ResponseWebSearchCallInProgress) Default

func (ResponseWebSearchCallInProgress) MarshalJSON

func (c ResponseWebSearchCallInProgress) MarshalJSON() ([]byte, error)

type ResponseWebSearchCallSearching

type ResponseWebSearchCallSearching string // Always "response.web_search_call.searching"

func (ResponseWebSearchCallSearching) Default

func (ResponseWebSearchCallSearching) MarshalJSON

func (c ResponseWebSearchCallSearching) MarshalJSON() ([]byte, error)

type ScoreModel

type ScoreModel string // Always "score_model"

func (ScoreModel) Default

func (c ScoreModel) Default() ScoreModel

func (ScoreModel) MarshalJSON

func (c ScoreModel) MarshalJSON() ([]byte, error)

type Screenshot

type Screenshot string // Always "screenshot"

func (Screenshot) Default

func (c Screenshot) Default() Screenshot

func (Screenshot) MarshalJSON

func (c Screenshot) MarshalJSON() ([]byte, error)

type Scroll

type Scroll string // Always "scroll"

func (Scroll) Default

func (c Scroll) Default() Scroll

func (Scroll) MarshalJSON

func (c Scroll) MarshalJSON() ([]byte, error)
type Search string // Always "search"

func (Search) Default added in v1.8.0

func (c Search) Default() Search

func (Search) MarshalJSON added in v1.8.0

func (c Search) MarshalJSON() ([]byte, error)

type Static

type Static string // Always "static"

func (Static) Default

func (c Static) Default() Static

func (Static) MarshalJSON

func (c Static) MarshalJSON() ([]byte, error)

type StringCheck

type StringCheck string // Always "string_check"

func (StringCheck) Default

func (c StringCheck) Default() StringCheck

func (StringCheck) MarshalJSON

func (c StringCheck) MarshalJSON() ([]byte, error)

type SubmitToolOutputs added in v1.1.0

type SubmitToolOutputs string // Always "submit_tool_outputs"

func (SubmitToolOutputs) Default added in v1.1.0

func (SubmitToolOutputs) MarshalJSON added in v1.1.0

func (c SubmitToolOutputs) MarshalJSON() ([]byte, error)

type SummaryText

type SummaryText string // Always "summary_text"

func (SummaryText) Default

func (c SummaryText) Default() SummaryText

func (SummaryText) MarshalJSON

func (c SummaryText) MarshalJSON() ([]byte, error)

type System

type System string // Always "system"

func (System) Default

func (c System) Default() System

func (System) MarshalJSON

func (c System) MarshalJSON() ([]byte, error)

type Text

type Text string // Always "text"

func (Text) Default

func (c Text) Default() Text

func (Text) MarshalJSON

func (c Text) MarshalJSON() ([]byte, error)

type TextCompletion

type TextCompletion string // Always "text_completion"

func (TextCompletion) Default

func (c TextCompletion) Default() TextCompletion

func (TextCompletion) MarshalJSON

func (c TextCompletion) MarshalJSON() ([]byte, error)

type TextSimilarity

type TextSimilarity string // Always "text_similarity"

func (TextSimilarity) Default

func (c TextSimilarity) Default() TextSimilarity

func (TextSimilarity) MarshalJSON

func (c TextSimilarity) MarshalJSON() ([]byte, error)

type Thread added in v1.1.0

type Thread string // Always "thread"

func (Thread) Default added in v1.1.0

func (c Thread) Default() Thread

func (Thread) MarshalJSON added in v1.1.0

func (c Thread) MarshalJSON() ([]byte, error)

type ThreadCreated added in v1.1.0

type ThreadCreated string // Always "thread.created"

func (ThreadCreated) Default added in v1.1.0

func (c ThreadCreated) Default() ThreadCreated

func (ThreadCreated) MarshalJSON added in v1.1.0

func (c ThreadCreated) MarshalJSON() ([]byte, error)

type ThreadDeleted added in v1.1.0

type ThreadDeleted string // Always "thread.deleted"

func (ThreadDeleted) Default added in v1.1.0

func (c ThreadDeleted) Default() ThreadDeleted

func (ThreadDeleted) MarshalJSON added in v1.1.0

func (c ThreadDeleted) MarshalJSON() ([]byte, error)

type ThreadMessage added in v1.1.0

type ThreadMessage string // Always "thread.message"

func (ThreadMessage) Default added in v1.1.0

func (c ThreadMessage) Default() ThreadMessage

func (ThreadMessage) MarshalJSON added in v1.1.0

func (c ThreadMessage) MarshalJSON() ([]byte, error)

type ThreadMessageCompleted added in v1.1.0

type ThreadMessageCompleted string // Always "thread.message.completed"

func (ThreadMessageCompleted) Default added in v1.1.0

func (ThreadMessageCompleted) MarshalJSON added in v1.1.0

func (c ThreadMessageCompleted) MarshalJSON() ([]byte, error)

type ThreadMessageCreated added in v1.1.0

type ThreadMessageCreated string // Always "thread.message.created"

func (ThreadMessageCreated) Default added in v1.1.0

func (ThreadMessageCreated) MarshalJSON added in v1.1.0

func (c ThreadMessageCreated) MarshalJSON() ([]byte, error)

type ThreadMessageDeleted added in v1.1.0

type ThreadMessageDeleted string // Always "thread.message.deleted"

func (ThreadMessageDeleted) Default added in v1.1.0

func (ThreadMessageDeleted) MarshalJSON added in v1.1.0

func (c ThreadMessageDeleted) MarshalJSON() ([]byte, error)

type ThreadMessageDelta added in v1.1.0

type ThreadMessageDelta string // Always "thread.message.delta"

func (ThreadMessageDelta) Default added in v1.1.0

func (ThreadMessageDelta) MarshalJSON added in v1.1.0

func (c ThreadMessageDelta) MarshalJSON() ([]byte, error)

type ThreadMessageInProgress added in v1.1.0

type ThreadMessageInProgress string // Always "thread.message.in_progress"

func (ThreadMessageInProgress) Default added in v1.1.0

func (ThreadMessageInProgress) MarshalJSON added in v1.1.0

func (c ThreadMessageInProgress) MarshalJSON() ([]byte, error)

type ThreadMessageIncomplete added in v1.1.0

type ThreadMessageIncomplete string // Always "thread.message.incomplete"

func (ThreadMessageIncomplete) Default added in v1.1.0

func (ThreadMessageIncomplete) MarshalJSON added in v1.1.0

func (c ThreadMessageIncomplete) MarshalJSON() ([]byte, error)

type ThreadRun added in v1.1.0

type ThreadRun string // Always "thread.run"

func (ThreadRun) Default added in v1.1.0

func (c ThreadRun) Default() ThreadRun

func (ThreadRun) MarshalJSON added in v1.1.0

func (c ThreadRun) MarshalJSON() ([]byte, error)

type ThreadRunCancelled added in v1.1.0

type ThreadRunCancelled string // Always "thread.run.cancelled"

func (ThreadRunCancelled) Default added in v1.1.0

func (ThreadRunCancelled) MarshalJSON added in v1.1.0

func (c ThreadRunCancelled) MarshalJSON() ([]byte, error)

type ThreadRunCancelling added in v1.1.0

type ThreadRunCancelling string // Always "thread.run.cancelling"

func (ThreadRunCancelling) Default added in v1.1.0

func (ThreadRunCancelling) MarshalJSON added in v1.1.0

func (c ThreadRunCancelling) MarshalJSON() ([]byte, error)

type ThreadRunCompleted added in v1.1.0

type ThreadRunCompleted string // Always "thread.run.completed"

func (ThreadRunCompleted) Default added in v1.1.0

func (ThreadRunCompleted) MarshalJSON added in v1.1.0

func (c ThreadRunCompleted) MarshalJSON() ([]byte, error)

type ThreadRunCreated added in v1.1.0

type ThreadRunCreated string // Always "thread.run.created"

func (ThreadRunCreated) Default added in v1.1.0

func (c ThreadRunCreated) Default() ThreadRunCreated

func (ThreadRunCreated) MarshalJSON added in v1.1.0

func (c ThreadRunCreated) MarshalJSON() ([]byte, error)

type ThreadRunExpired added in v1.1.0

type ThreadRunExpired string // Always "thread.run.expired"

func (ThreadRunExpired) Default added in v1.1.0

func (c ThreadRunExpired) Default() ThreadRunExpired

func (ThreadRunExpired) MarshalJSON added in v1.1.0

func (c ThreadRunExpired) MarshalJSON() ([]byte, error)

type ThreadRunFailed added in v1.1.0

type ThreadRunFailed string // Always "thread.run.failed"

func (ThreadRunFailed) Default added in v1.1.0

func (c ThreadRunFailed) Default() ThreadRunFailed

func (ThreadRunFailed) MarshalJSON added in v1.1.0

func (c ThreadRunFailed) MarshalJSON() ([]byte, error)

type ThreadRunInProgress added in v1.1.0

type ThreadRunInProgress string // Always "thread.run.in_progress"

func (ThreadRunInProgress) Default added in v1.1.0

func (ThreadRunInProgress) MarshalJSON added in v1.1.0

func (c ThreadRunInProgress) MarshalJSON() ([]byte, error)

type ThreadRunIncomplete added in v1.1.0

type ThreadRunIncomplete string // Always "thread.run.incomplete"

func (ThreadRunIncomplete) Default added in v1.1.0

func (ThreadRunIncomplete) MarshalJSON added in v1.1.0

func (c ThreadRunIncomplete) MarshalJSON() ([]byte, error)

type ThreadRunQueued added in v1.1.0

type ThreadRunQueued string // Always "thread.run.queued"

func (ThreadRunQueued) Default added in v1.1.0

func (c ThreadRunQueued) Default() ThreadRunQueued

func (ThreadRunQueued) MarshalJSON added in v1.1.0

func (c ThreadRunQueued) MarshalJSON() ([]byte, error)

type ThreadRunRequiresAction added in v1.1.0

type ThreadRunRequiresAction string // Always "thread.run.requires_action"

func (ThreadRunRequiresAction) Default added in v1.1.0

func (ThreadRunRequiresAction) MarshalJSON added in v1.1.0

func (c ThreadRunRequiresAction) MarshalJSON() ([]byte, error)

type ThreadRunStep added in v1.1.0

type ThreadRunStep string // Always "thread.run.step"

func (ThreadRunStep) Default added in v1.1.0

func (c ThreadRunStep) Default() ThreadRunStep

func (ThreadRunStep) MarshalJSON added in v1.1.0

func (c ThreadRunStep) MarshalJSON() ([]byte, error)

type ThreadRunStepCancelled added in v1.1.0

type ThreadRunStepCancelled string // Always "thread.run.step.cancelled"

func (ThreadRunStepCancelled) Default added in v1.1.0

func (ThreadRunStepCancelled) MarshalJSON added in v1.1.0

func (c ThreadRunStepCancelled) MarshalJSON() ([]byte, error)

type ThreadRunStepCompleted added in v1.1.0

type ThreadRunStepCompleted string // Always "thread.run.step.completed"

func (ThreadRunStepCompleted) Default added in v1.1.0

func (ThreadRunStepCompleted) MarshalJSON added in v1.1.0

func (c ThreadRunStepCompleted) MarshalJSON() ([]byte, error)

type ThreadRunStepCreated added in v1.1.0

type ThreadRunStepCreated string // Always "thread.run.step.created"

func (ThreadRunStepCreated) Default added in v1.1.0

func (ThreadRunStepCreated) MarshalJSON added in v1.1.0

func (c ThreadRunStepCreated) MarshalJSON() ([]byte, error)

type ThreadRunStepDelta added in v1.1.0

type ThreadRunStepDelta string // Always "thread.run.step.delta"

func (ThreadRunStepDelta) Default added in v1.1.0

func (ThreadRunStepDelta) MarshalJSON added in v1.1.0

func (c ThreadRunStepDelta) MarshalJSON() ([]byte, error)

type ThreadRunStepExpired added in v1.1.0

type ThreadRunStepExpired string // Always "thread.run.step.expired"

func (ThreadRunStepExpired) Default added in v1.1.0

func (ThreadRunStepExpired) MarshalJSON added in v1.1.0

func (c ThreadRunStepExpired) MarshalJSON() ([]byte, error)

type ThreadRunStepFailed added in v1.1.0

type ThreadRunStepFailed string // Always "thread.run.step.failed"

func (ThreadRunStepFailed) Default added in v1.1.0

func (ThreadRunStepFailed) MarshalJSON added in v1.1.0

func (c ThreadRunStepFailed) MarshalJSON() ([]byte, error)

type ThreadRunStepInProgress added in v1.1.0

type ThreadRunStepInProgress string // Always "thread.run.step.in_progress"

func (ThreadRunStepInProgress) Default added in v1.1.0

func (ThreadRunStepInProgress) MarshalJSON added in v1.1.0

func (c ThreadRunStepInProgress) MarshalJSON() ([]byte, error)

type Tokens added in v1.7.0

type Tokens string // Always "tokens"

func (Tokens) Default added in v1.7.0

func (c Tokens) Default() Tokens

func (Tokens) MarshalJSON added in v1.7.0

func (c Tokens) MarshalJSON() ([]byte, error)

type Tool

type Tool string // Always "tool"

func (Tool) Default

func (c Tool) Default() Tool

func (Tool) MarshalJSON

func (c Tool) MarshalJSON() ([]byte, error)

type ToolCalls added in v1.1.0

type ToolCalls string // Always "tool_calls"

func (ToolCalls) Default added in v1.1.0

func (c ToolCalls) Default() ToolCalls

func (ToolCalls) MarshalJSON added in v1.1.0

func (c ToolCalls) MarshalJSON() ([]byte, error)

type TranscriptTextDelta

type TranscriptTextDelta string // Always "transcript.text.delta"

func (TranscriptTextDelta) Default

func (TranscriptTextDelta) MarshalJSON

func (c TranscriptTextDelta) MarshalJSON() ([]byte, error)

type TranscriptTextDone

type TranscriptTextDone string // Always "transcript.text.done"

func (TranscriptTextDone) Default

func (TranscriptTextDone) MarshalJSON

func (c TranscriptTextDone) MarshalJSON() ([]byte, error)

type Type

type Type string // Always "type"

func (Type) Default

func (c Type) Default() Type

func (Type) MarshalJSON

func (c Type) MarshalJSON() ([]byte, error)

type URLCitation

type URLCitation string // Always "url_citation"

func (URLCitation) Default

func (c URLCitation) Default() URLCitation

func (URLCitation) MarshalJSON

func (c URLCitation) MarshalJSON() ([]byte, error)

type Upload

type Upload string // Always "upload"

func (Upload) Default

func (c Upload) Default() Upload

func (Upload) MarshalJSON

func (c Upload) MarshalJSON() ([]byte, error)

type UploadPart

type UploadPart string // Always "upload.part"

func (UploadPart) Default

func (c UploadPart) Default() UploadPart

func (UploadPart) MarshalJSON

func (c UploadPart) MarshalJSON() ([]byte, error)

type User

type User string // Always "user"

func (User) Default

func (c User) Default() User

func (User) MarshalJSON

func (c User) MarshalJSON() ([]byte, error)

type VectorStore

type VectorStore string // Always "vector_store"

func (VectorStore) Default

func (c VectorStore) Default() VectorStore

func (VectorStore) MarshalJSON

func (c VectorStore) MarshalJSON() ([]byte, error)

type VectorStoreDeleted

type VectorStoreDeleted string // Always "vector_store.deleted"

func (VectorStoreDeleted) Default

func (VectorStoreDeleted) MarshalJSON

func (c VectorStoreDeleted) MarshalJSON() ([]byte, error)

type VectorStoreFile

type VectorStoreFile string // Always "vector_store.file"

func (VectorStoreFile) Default

func (c VectorStoreFile) Default() VectorStoreFile

func (VectorStoreFile) MarshalJSON

func (c VectorStoreFile) MarshalJSON() ([]byte, error)

type VectorStoreFileContentPage

type VectorStoreFileContentPage string // Always "vector_store.file_content.page"

func (VectorStoreFileContentPage) Default

func (VectorStoreFileContentPage) MarshalJSON

func (c VectorStoreFileContentPage) MarshalJSON() ([]byte, error)

type VectorStoreFileDeleted

type VectorStoreFileDeleted string // Always "vector_store.file.deleted"

func (VectorStoreFileDeleted) Default

func (VectorStoreFileDeleted) MarshalJSON

func (c VectorStoreFileDeleted) MarshalJSON() ([]byte, error)

type VectorStoreFilesBatch

type VectorStoreFilesBatch string // Always "vector_store.files_batch"

func (VectorStoreFilesBatch) Default

func (VectorStoreFilesBatch) MarshalJSON

func (c VectorStoreFilesBatch) MarshalJSON() ([]byte, error)

type VectorStoreSearchResultsPage

type VectorStoreSearchResultsPage string // Always "vector_store.search_results.page"

func (VectorStoreSearchResultsPage) Default

func (VectorStoreSearchResultsPage) MarshalJSON

func (c VectorStoreSearchResultsPage) MarshalJSON() ([]byte, error)

type Wait

type Wait string // Always "wait"

func (Wait) Default

func (c Wait) Default() Wait

func (Wait) MarshalJSON

func (c Wait) MarshalJSON() ([]byte, error)

type Wandb

type Wandb string // Always "wandb"

func (Wandb) Default

func (c Wandb) Default() Wandb

func (Wandb) MarshalJSON

func (c Wandb) MarshalJSON() ([]byte, error)

type WebSearchCall

type WebSearchCall string // Always "web_search_call"

func (WebSearchCall) Default

func (c WebSearchCall) Default() WebSearchCall

func (WebSearchCall) MarshalJSON

func (c WebSearchCall) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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