Documentation
¶
Overview ¶
Package perplexity provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Package perplexity is a Go client for the Perplexity REST API, generated with oapi-codegen from the OpenAPI document Perplexity publishes.
Example ¶
This is the README usage example. It talks to the live API, so it has no Output comment and only has to compile.
package main
import (
"context"
"net/http"
"os"
"github.com/psyb0t/go-perplexity"
)
func main() {
auth := perplexity.WithRequestEditorFn(
func(_ context.Context, req *http.Request) error {
req.Header.Set(
"Authorization",
"Bearer "+os.Getenv("PERPLEXITY_API_KEY"),
)
return nil
},
)
client, err := perplexity.NewClientWithResponses(
"https://api.perplexity.ai",
auth,
)
if err != nil {
panic(err)
}
res, err := client.ListModelsWithResponse(context.Background())
if err != nil {
panic(err)
}
_ = res.JSON200
}
Output:
Index ¶
- func NewCancelAgentResponseRequest(server string, id string) (*http.Request, error)
- func NewCancelBatchRequest(server string, batchId BatchId) (*http.Request, error)
- func NewChatCompletionsChatCompletionsPostRequest(server string, body ChatCompletionsChatCompletionsPostJSONRequestBody) (*http.Request, error)
- func NewChatCompletionsChatCompletionsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewContextRequest(server string, body ContextJSONRequestBody) (*http.Request, error)
- func NewContextRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewContextualizedEmbeddingsV1ContextualizedembeddingsPostRequest(server string, ...) (*http.Request, error)
- func NewContextualizedEmbeddingsV1ContextualizedembeddingsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAgentRequest(server string, body CreateAgentJSONRequestBody) (*http.Request, error)
- func NewCreateAgentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAsyncChatCompletionsAsyncChatCompletionsPostRequest(server string, ...) (*http.Request, error)
- func NewCreateAsyncChatCompletionsAsyncChatCompletionsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateBatchRequest(server string, params *CreateBatchParams, body CreateBatchJSONRequestBody) (*http.Request, error)
- func NewCreateBatchRequestWithBody(server string, params *CreateBatchParams, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateMonitorRequest(server string, params *CreateMonitorParams, body CreateMonitorJSONRequestBody) (*http.Request, error)
- func NewCreateMonitorRequestWithBody(server string, params *CreateMonitorParams, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSkillRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDecisionsV1DecisionsPostRequest(server string, body DecisionsV1DecisionsPostJSONRequestBody) (*http.Request, error)
- func NewDecisionsV1DecisionsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteFileRequest(server string, fileId BatchFileId) (*http.Request, error)
- func NewDeleteMonitorRequest(server string, monitorId MonitorId) (*http.Request, error)
- func NewDeleteSkillRequest(server string, skillId SkillId, params *DeleteSkillParams) (*http.Request, error)
- func NewDownloadAgentFileRequest(server string, id string, fileId string) (*http.Request, error)
- func NewDownloadSkillRequest(server string, skillId SkillId, params *DownloadSkillParams) (*http.Request, error)
- func NewEmbeddingsV1EmbeddingsPostRequest(server string, body EmbeddingsV1EmbeddingsPostJSONRequestBody) (*http.Request, error)
- func NewEmbeddingsV1EmbeddingsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGatewayCreateChatCompletionRequest(server string, body GatewayCreateChatCompletionJSONRequestBody) (*http.Request, error)
- func NewGatewayCreateChatCompletionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGatewayCreateMessageRequest(server string, body GatewayCreateMessageJSONRequestBody) (*http.Request, error)
- func NewGatewayCreateMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGatewayCreateResponseRequest(server string, body GatewayCreateResponseJSONRequestBody) (*http.Request, error)
- func NewGatewayCreateResponseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGatewayListModelsRequest(server string) (*http.Request, error)
- func NewGatewayRetrieveModelRequest(server string, model string) (*http.Request, error)
- func NewGetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetRequest(server string, apiRequest string) (*http.Request, error)
- func NewGetBatchRequest(server string, batchId BatchId) (*http.Request, error)
- func NewGetComputerUsageAnalyticsRequest(server string, params *GetComputerUsageAnalyticsParams) (*http.Request, error)
- func NewGetComputerUsageAnalyticsV2Request(server string, params *GetComputerUsageAnalyticsV2Params) (*http.Request, error)
- func NewGetFileContentRequest(server string, fileId BatchFileId) (*http.Request, error)
- func NewGetFileRequest(server string, fileId BatchFileId) (*http.Request, error)
- func NewGetMonitorRequest(server string, monitorId MonitorId) (*http.Request, error)
- func NewGetMonitorRunRequest(server string, monitorId MonitorId, runId MonitorRunId) (*http.Request, error)
- func NewGetSkillRequest(server string, skillId SkillId, params *GetSkillParams) (*http.Request, error)
- func NewListAdminAuditEventsV1AdminAuditEventsGetRequest(server string, params *ListAdminAuditEventsV1AdminAuditEventsGetParams) (*http.Request, error)
- func NewListAgentFilesRequest(server string, id string) (*http.Request, error)
- func NewListAsyncChatCompletionsAsyncChatCompletionsGetRequest(server string) (*http.Request, error)
- func NewListBatchesRequest(server string, params *ListBatchesParams) (*http.Request, error)
- func NewListFilesRequest(server string, params *ListFilesParams) (*http.Request, error)
- func NewListModelsRequest(server string) (*http.Request, error)
- func NewListMonitorRunsRequest(server string, monitorId MonitorId, params *ListMonitorRunsParams) (*http.Request, error)
- func NewListMonitorsRequest(server string, params *ListMonitorsParams) (*http.Request, error)
- func NewListSkillRevisionsRequest(server string, skillId SkillId, params *ListSkillRevisionsParams) (*http.Request, error)
- func NewListSkillsRequest(server string, params *ListSkillsParams) (*http.Request, error)
- func NewPauseMonitorRequest(server string, monitorId MonitorId) (*http.Request, error)
- func NewResumeMonitorRequest(server string, monitorId MonitorId) (*http.Request, error)
- func NewRetrieveAgentRequest(server string, id string) (*http.Request, error)
- func NewRunMonitorRequest(server string, monitorId MonitorId) (*http.Request, error)
- func NewSearchSearchPostRequest(server string, body SearchSearchPostJSONRequestBody) (*http.Request, error)
- func NewSearchSearchPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewTestMonitorWebhookRequest(server string, monitorId MonitorId) (*http.Request, error)
- func NewUpdateMonitorRequest(server string, monitorId MonitorId, body UpdateMonitorJSONRequestBody) (*http.Request, error)
- func NewUpdateMonitorRequestWithBody(server string, monitorId MonitorId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSkillRequestWithBody(server string, skillId SkillId, params *UpdateSkillParams, contentType string, ...) (*http.Request, error)
- type AdminApiErrorResponse
- type AnalyticsErrorResponse
- type Annotation
- type Answer
- func (t Answer) AsChoiceAnswer() (ChoiceAnswer, error)
- func (t Answer) AsLocateAnswer() (LocateAnswer, error)
- func (t Answer) AsNoulAnswer() (NoulAnswer, error)
- func (t Answer) AsScoreAnswer() (ScoreAnswer, error)
- func (t Answer) Discriminator() (string, error)
- func (t *Answer) FromChoiceAnswer(v ChoiceAnswer) error
- func (t *Answer) FromLocateAnswer(v LocateAnswer) error
- func (t *Answer) FromNoulAnswer(v NoulAnswer) error
- func (t *Answer) FromScoreAnswer(v ScoreAnswer) error
- func (t Answer) MarshalJSON() ([]byte, error)
- func (t *Answer) MergeChoiceAnswer(v ChoiceAnswer) error
- func (t *Answer) MergeLocateAnswer(v LocateAnswer) error
- func (t *Answer) MergeNoulAnswer(v NoulAnswer) error
- func (t *Answer) MergeScoreAnswer(v ScoreAnswer) error
- func (t *Answer) UnmarshalJSON(b []byte) error
- func (t Answer) ValueByDiscriminator() (interface{}, error)
- type ApiChatCompletionsRequest
- type ApiChatCompletionsRequestModel
- type ApiChatCompletionsRequestReasoningEffort
- type ApiChatCompletionsRequestSearchMode
- type ApiChatCompletionsRequestSearchRecencyFilter
- type ApiChatCompletionsRequestStop0
- type ApiChatCompletionsRequestStop1
- type ApiChatCompletionsRequestStreamMode
- type ApiChatCompletionsRequest_ResponseFormat
- func (t ApiChatCompletionsRequest_ResponseFormat) AsResponseFormatJSONSchema() (ResponseFormatJSONSchema, error)
- func (t ApiChatCompletionsRequest_ResponseFormat) AsResponseFormatText() (ResponseFormatText, error)
- func (t ApiChatCompletionsRequest_ResponseFormat) Discriminator() (string, error)
- func (t *ApiChatCompletionsRequest_ResponseFormat) FromResponseFormatJSONSchema(v ResponseFormatJSONSchema) error
- func (t *ApiChatCompletionsRequest_ResponseFormat) FromResponseFormatText(v ResponseFormatText) error
- func (t ApiChatCompletionsRequest_ResponseFormat) MarshalJSON() ([]byte, error)
- func (t *ApiChatCompletionsRequest_ResponseFormat) MergeResponseFormatJSONSchema(v ResponseFormatJSONSchema) error
- func (t *ApiChatCompletionsRequest_ResponseFormat) MergeResponseFormatText(v ResponseFormatText) error
- func (t *ApiChatCompletionsRequest_ResponseFormat) UnmarshalJSON(b []byte) error
- func (t ApiChatCompletionsRequest_ResponseFormat) ValueByDiscriminator() (interface{}, error)
- type ApiChatCompletionsRequest_Stop
- func (t ApiChatCompletionsRequest_Stop) AsApiChatCompletionsRequestStop0() (ApiChatCompletionsRequestStop0, error)
- func (t ApiChatCompletionsRequest_Stop) AsApiChatCompletionsRequestStop1() (ApiChatCompletionsRequestStop1, error)
- func (t *ApiChatCompletionsRequest_Stop) FromApiChatCompletionsRequestStop0(v ApiChatCompletionsRequestStop0) error
- func (t *ApiChatCompletionsRequest_Stop) FromApiChatCompletionsRequestStop1(v ApiChatCompletionsRequestStop1) error
- func (t ApiChatCompletionsRequest_Stop) MarshalJSON() ([]byte, error)
- func (t *ApiChatCompletionsRequest_Stop) MergeApiChatCompletionsRequestStop0(v ApiChatCompletionsRequestStop0) error
- func (t *ApiChatCompletionsRequest_Stop) MergeApiChatCompletionsRequestStop1(v ApiChatCompletionsRequestStop1) error
- func (t *ApiChatCompletionsRequest_Stop) UnmarshalJSON(b []byte) error
- type ApiError
- type ApiPublicSearchResult
- type ApiPublicSearchResultSource
- type ApiSearchErrorResponse
- type ApiSearchPage
- type ApiSearchRequest
- type ApiSearchRequestQuery0
- type ApiSearchRequestQuery1
- type ApiSearchRequestSearchType
- type ApiSearchRequest_Query
- func (t ApiSearchRequest_Query) AsApiSearchRequestQuery0() (ApiSearchRequestQuery0, error)
- func (t ApiSearchRequest_Query) AsApiSearchRequestQuery1() (ApiSearchRequestQuery1, error)
- func (t *ApiSearchRequest_Query) FromApiSearchRequestQuery0(v ApiSearchRequestQuery0) error
- func (t *ApiSearchRequest_Query) FromApiSearchRequestQuery1(v ApiSearchRequestQuery1) error
- func (t ApiSearchRequest_Query) MarshalJSON() ([]byte, error)
- func (t *ApiSearchRequest_Query) MergeApiSearchRequestQuery0(v ApiSearchRequestQuery0) error
- func (t *ApiSearchRequest_Query) MergeApiSearchRequestQuery1(v ApiSearchRequestQuery1) error
- func (t *ApiSearchRequest_Query) UnmarshalJSON(b []byte) error
- type ApiSearchResponse
- type ApprovalFilter
- type ApprovalFilters
- type AsyncApiChatCompletionsRequest
- type AsyncApiChatCompletionsResponse
- type AsyncApiChatCompletionsResponseSummary
- type AsyncProcessingStatus
- type AuditEvent
- type AuditEventsResponse
- type BadRequest
- type Batch
- type BatchError
- type BatchErrors
- type BatchErrorsObject
- type BatchFile
- type BatchFileDeleted
- type BatchFileDeletedObject
- type BatchFileId
- type BatchFileList
- type BatchFileListObject
- type BatchFileObject
- type BatchFilePurpose
- type BatchId
- type BatchIdempotencyKey
- type BatchList
- type BatchListObject
- type BatchObject
- type BatchRequestCounts
- type BatchStatus
- type BatchUsage
- type BuiltinSkill
- type BuiltinSkillName
- type BuiltinSkillType
- type CancelAgentResponse200JSONResponseBodyStatus
- type CancelAgentResponseResponse
- func (r CancelAgentResponseResponse) ContentType() string
- func (r CancelAgentResponseResponse) GetBody() []byte
- func (r CancelAgentResponseResponse) GetJSON200() ...
- func (r CancelAgentResponseResponse) GetJSON400() ...
- func (r CancelAgentResponseResponse) GetJSON404() ...
- func (r CancelAgentResponseResponse) Status() string
- func (r CancelAgentResponseResponse) StatusCode() int
- type CancelBatchResponse
- func (r CancelBatchResponse) ContentType() string
- func (r CancelBatchResponse) GetBody() []byte
- func (r CancelBatchResponse) GetJSON200() *Batch
- func (r CancelBatchResponse) GetJSON404() *ApiError
- func (r CancelBatchResponse) GetJSON409() *ApiError
- func (r CancelBatchResponse) GetJSON429() *ApiError
- func (r CancelBatchResponse) Status() string
- func (r CancelBatchResponse) StatusCode() int
- type ChatCompletionsChatCompletionsPostJSONRequestBody
- type ChatCompletionsChatCompletionsPostResponse
- func (r ChatCompletionsChatCompletionsPostResponse) ContentType() string
- func (r ChatCompletionsChatCompletionsPostResponse) GetBody() []byte
- func (r ChatCompletionsChatCompletionsPostResponse) GetJSON200() *CompletionResponse
- func (r ChatCompletionsChatCompletionsPostResponse) GetJSON422() *HTTPValidationError
- func (r ChatCompletionsChatCompletionsPostResponse) Status() string
- func (r ChatCompletionsChatCompletionsPostResponse) StatusCode() int
- type ChatMessageContentFileChunk
- type ChatMessageContentFileChunkFileUrl1
- type ChatMessageContentFileChunkType
- type ChatMessageContentFileChunk_FileUrl
- func (t ChatMessageContentFileChunk_FileUrl) AsChatMessageContentFileChunkFileUrl1() (ChatMessageContentFileChunkFileUrl1, error)
- func (t ChatMessageContentFileChunk_FileUrl) AsURL() (URL, error)
- func (t *ChatMessageContentFileChunk_FileUrl) FromChatMessageContentFileChunkFileUrl1(v ChatMessageContentFileChunkFileUrl1) error
- func (t *ChatMessageContentFileChunk_FileUrl) FromURL(v URL) error
- func (t ChatMessageContentFileChunk_FileUrl) MarshalJSON() ([]byte, error)
- func (t *ChatMessageContentFileChunk_FileUrl) MergeChatMessageContentFileChunkFileUrl1(v ChatMessageContentFileChunkFileUrl1) error
- func (t *ChatMessageContentFileChunk_FileUrl) MergeURL(v URL) error
- func (t *ChatMessageContentFileChunk_FileUrl) UnmarshalJSON(b []byte) error
- type ChatMessageContentImageChunk
- type ChatMessageContentImageChunkImageUrl1
- type ChatMessageContentImageChunkType
- type ChatMessageContentImageChunk_ImageUrl
- func (t ChatMessageContentImageChunk_ImageUrl) AsChatMessageContentImageChunkImageUrl1() (ChatMessageContentImageChunkImageUrl1, error)
- func (t ChatMessageContentImageChunk_ImageUrl) AsURL() (URL, error)
- func (t *ChatMessageContentImageChunk_ImageUrl) FromChatMessageContentImageChunkImageUrl1(v ChatMessageContentImageChunkImageUrl1) error
- func (t *ChatMessageContentImageChunk_ImageUrl) FromURL(v URL) error
- func (t ChatMessageContentImageChunk_ImageUrl) MarshalJSON() ([]byte, error)
- func (t *ChatMessageContentImageChunk_ImageUrl) MergeChatMessageContentImageChunkImageUrl1(v ChatMessageContentImageChunkImageUrl1) error
- func (t *ChatMessageContentImageChunk_ImageUrl) MergeURL(v URL) error
- func (t *ChatMessageContentImageChunk_ImageUrl) UnmarshalJSON(b []byte) error
- type ChatMessageContentPDFChunk
- type ChatMessageContentPDFChunkPdfUrl1
- type ChatMessageContentPDFChunkType
- type ChatMessageContentPDFChunk_PdfUrl
- func (t ChatMessageContentPDFChunk_PdfUrl) AsChatMessageContentPDFChunkPdfUrl1() (ChatMessageContentPDFChunkPdfUrl1, error)
- func (t ChatMessageContentPDFChunk_PdfUrl) AsURL() (URL, error)
- func (t *ChatMessageContentPDFChunk_PdfUrl) FromChatMessageContentPDFChunkPdfUrl1(v ChatMessageContentPDFChunkPdfUrl1) error
- func (t *ChatMessageContentPDFChunk_PdfUrl) FromURL(v URL) error
- func (t ChatMessageContentPDFChunk_PdfUrl) MarshalJSON() ([]byte, error)
- func (t *ChatMessageContentPDFChunk_PdfUrl) MergeChatMessageContentPDFChunkPdfUrl1(v ChatMessageContentPDFChunkPdfUrl1) error
- func (t *ChatMessageContentPDFChunk_PdfUrl) MergeURL(v URL) error
- func (t *ChatMessageContentPDFChunk_PdfUrl) UnmarshalJSON(b []byte) error
- type ChatMessageContentTextChunk
- type ChatMessageContentTextChunkType
- type ChatMessageContentVideoChunk
- type ChatMessageContentVideoChunkType
- type ChatMessageContentVideoChunkVideoUrl1
- type ChatMessageContentVideoChunk_VideoUrl
- func (t ChatMessageContentVideoChunk_VideoUrl) AsChatMessageContentVideoChunkVideoUrl1() (ChatMessageContentVideoChunkVideoUrl1, error)
- func (t ChatMessageContentVideoChunk_VideoUrl) AsVideoURL() (VideoURL, error)
- func (t *ChatMessageContentVideoChunk_VideoUrl) FromChatMessageContentVideoChunkVideoUrl1(v ChatMessageContentVideoChunkVideoUrl1) error
- func (t *ChatMessageContentVideoChunk_VideoUrl) FromVideoURL(v VideoURL) error
- func (t ChatMessageContentVideoChunk_VideoUrl) MarshalJSON() ([]byte, error)
- func (t *ChatMessageContentVideoChunk_VideoUrl) MergeChatMessageContentVideoChunkVideoUrl1(v ChatMessageContentVideoChunkVideoUrl1) error
- func (t *ChatMessageContentVideoChunk_VideoUrl) MergeVideoURL(v VideoURL) error
- func (t *ChatMessageContentVideoChunk_VideoUrl) UnmarshalJSON(b []byte) error
- type ChatMessageInput
- type ChatMessageInputContent0
- type ChatMessageInputContent1
- type ChatMessageInput_Content
- func (t ChatMessageInput_Content) AsChatMessageInputContent0() (ChatMessageInputContent0, error)
- func (t ChatMessageInput_Content) AsChatMessageInputContent1() (ChatMessageInputContent1, error)
- func (t *ChatMessageInput_Content) FromChatMessageInputContent0(v ChatMessageInputContent0) error
- func (t *ChatMessageInput_Content) FromChatMessageInputContent1(v ChatMessageInputContent1) error
- func (t ChatMessageInput_Content) MarshalJSON() ([]byte, error)
- func (t *ChatMessageInput_Content) MergeChatMessageInputContent0(v ChatMessageInputContent0) error
- func (t *ChatMessageInput_Content) MergeChatMessageInputContent1(v ChatMessageInputContent1) error
- func (t *ChatMessageInput_Content) UnmarshalJSON(b []byte) error
- type ChatMessageInput_Content_1_Item
- func (t ChatMessageInput_Content_1_Item) AsChatMessageContentFileChunk() (ChatMessageContentFileChunk, error)
- func (t ChatMessageInput_Content_1_Item) AsChatMessageContentImageChunk() (ChatMessageContentImageChunk, error)
- func (t ChatMessageInput_Content_1_Item) AsChatMessageContentPDFChunk() (ChatMessageContentPDFChunk, error)
- func (t ChatMessageInput_Content_1_Item) AsChatMessageContentTextChunk() (ChatMessageContentTextChunk, error)
- func (t ChatMessageInput_Content_1_Item) AsChatMessageContentVideoChunk() (ChatMessageContentVideoChunk, error)
- func (t *ChatMessageInput_Content_1_Item) FromChatMessageContentFileChunk(v ChatMessageContentFileChunk) error
- func (t *ChatMessageInput_Content_1_Item) FromChatMessageContentImageChunk(v ChatMessageContentImageChunk) error
- func (t *ChatMessageInput_Content_1_Item) FromChatMessageContentPDFChunk(v ChatMessageContentPDFChunk) error
- func (t *ChatMessageInput_Content_1_Item) FromChatMessageContentTextChunk(v ChatMessageContentTextChunk) error
- func (t *ChatMessageInput_Content_1_Item) FromChatMessageContentVideoChunk(v ChatMessageContentVideoChunk) error
- func (t ChatMessageInput_Content_1_Item) MarshalJSON() ([]byte, error)
- func (t *ChatMessageInput_Content_1_Item) MergeChatMessageContentFileChunk(v ChatMessageContentFileChunk) error
- func (t *ChatMessageInput_Content_1_Item) MergeChatMessageContentImageChunk(v ChatMessageContentImageChunk) error
- func (t *ChatMessageInput_Content_1_Item) MergeChatMessageContentPDFChunk(v ChatMessageContentPDFChunk) error
- func (t *ChatMessageInput_Content_1_Item) MergeChatMessageContentTextChunk(v ChatMessageContentTextChunk) error
- func (t *ChatMessageInput_Content_1_Item) MergeChatMessageContentVideoChunk(v ChatMessageContentVideoChunk) error
- func (t *ChatMessageInput_Content_1_Item) UnmarshalJSON(b []byte) error
- type ChatMessageOutput
- type ChatMessageOutputContent0
- type ChatMessageOutputContent1
- type ChatMessageOutput_Content
- func (t ChatMessageOutput_Content) AsChatMessageOutputContent0() (ChatMessageOutputContent0, error)
- func (t ChatMessageOutput_Content) AsChatMessageOutputContent1() (ChatMessageOutputContent1, error)
- func (t *ChatMessageOutput_Content) FromChatMessageOutputContent0(v ChatMessageOutputContent0) error
- func (t *ChatMessageOutput_Content) FromChatMessageOutputContent1(v ChatMessageOutputContent1) error
- func (t ChatMessageOutput_Content) MarshalJSON() ([]byte, error)
- func (t *ChatMessageOutput_Content) MergeChatMessageOutputContent0(v ChatMessageOutputContent0) error
- func (t *ChatMessageOutput_Content) MergeChatMessageOutputContent1(v ChatMessageOutputContent1) error
- func (t *ChatMessageOutput_Content) UnmarshalJSON(b []byte) error
- type ChatMessageOutput_Content_1_Item
- func (t ChatMessageOutput_Content_1_Item) AsChatMessageContentFileChunk() (ChatMessageContentFileChunk, error)
- func (t ChatMessageOutput_Content_1_Item) AsChatMessageContentImageChunk() (ChatMessageContentImageChunk, error)
- func (t ChatMessageOutput_Content_1_Item) AsChatMessageContentPDFChunk() (ChatMessageContentPDFChunk, error)
- func (t ChatMessageOutput_Content_1_Item) AsChatMessageContentTextChunk() (ChatMessageContentTextChunk, error)
- func (t ChatMessageOutput_Content_1_Item) AsChatMessageContentVideoChunk() (ChatMessageContentVideoChunk, error)
- func (t *ChatMessageOutput_Content_1_Item) FromChatMessageContentFileChunk(v ChatMessageContentFileChunk) error
- func (t *ChatMessageOutput_Content_1_Item) FromChatMessageContentImageChunk(v ChatMessageContentImageChunk) error
- func (t *ChatMessageOutput_Content_1_Item) FromChatMessageContentPDFChunk(v ChatMessageContentPDFChunk) error
- func (t *ChatMessageOutput_Content_1_Item) FromChatMessageContentTextChunk(v ChatMessageContentTextChunk) error
- func (t *ChatMessageOutput_Content_1_Item) FromChatMessageContentVideoChunk(v ChatMessageContentVideoChunk) error
- func (t ChatMessageOutput_Content_1_Item) MarshalJSON() ([]byte, error)
- func (t *ChatMessageOutput_Content_1_Item) MergeChatMessageContentFileChunk(v ChatMessageContentFileChunk) error
- func (t *ChatMessageOutput_Content_1_Item) MergeChatMessageContentImageChunk(v ChatMessageContentImageChunk) error
- func (t *ChatMessageOutput_Content_1_Item) MergeChatMessageContentPDFChunk(v ChatMessageContentPDFChunk) error
- func (t *ChatMessageOutput_Content_1_Item) MergeChatMessageContentTextChunk(v ChatMessageContentTextChunk) error
- func (t *ChatMessageOutput_Content_1_Item) MergeChatMessageContentVideoChunk(v ChatMessageContentVideoChunk) error
- func (t *ChatMessageOutput_Content_1_Item) UnmarshalJSON(b []byte) error
- type ChatMessageRole
- type Choice
- type ChoiceAnswer
- type ChoiceAnswerType
- type ChoiceFinishReason
- type ChoiceQuestion
- type ChoiceQuestionCriteria0
- type ChoiceQuestionCriteria1
- type ChoiceQuestionCriteria2
- type ChoiceQuestionInstructions0
- type ChoiceQuestionInstructions1
- type ChoiceQuestionInstructions2
- type ChoiceQuestionType
- type ChoiceQuestion_Criteria_AdditionalProperties
- func (t ChoiceQuestion_Criteria_AdditionalProperties) AsChoiceQuestionCriteria0() (ChoiceQuestionCriteria0, error)
- func (t ChoiceQuestion_Criteria_AdditionalProperties) AsChoiceQuestionCriteria1() (ChoiceQuestionCriteria1, error)
- func (t ChoiceQuestion_Criteria_AdditionalProperties) AsChoiceQuestionCriteria2() (ChoiceQuestionCriteria2, error)
- func (t *ChoiceQuestion_Criteria_AdditionalProperties) FromChoiceQuestionCriteria0(v ChoiceQuestionCriteria0) error
- func (t *ChoiceQuestion_Criteria_AdditionalProperties) FromChoiceQuestionCriteria1(v ChoiceQuestionCriteria1) error
- func (t *ChoiceQuestion_Criteria_AdditionalProperties) FromChoiceQuestionCriteria2(v ChoiceQuestionCriteria2) error
- func (t ChoiceQuestion_Criteria_AdditionalProperties) MarshalJSON() ([]byte, error)
- func (t *ChoiceQuestion_Criteria_AdditionalProperties) MergeChoiceQuestionCriteria0(v ChoiceQuestionCriteria0) error
- func (t *ChoiceQuestion_Criteria_AdditionalProperties) MergeChoiceQuestionCriteria1(v ChoiceQuestionCriteria1) error
- func (t *ChoiceQuestion_Criteria_AdditionalProperties) MergeChoiceQuestionCriteria2(v ChoiceQuestionCriteria2) error
- func (t *ChoiceQuestion_Criteria_AdditionalProperties) UnmarshalJSON(b []byte) error
- type ChoiceQuestion_Instructions
- func (t ChoiceQuestion_Instructions) AsChoiceQuestionInstructions0() (ChoiceQuestionInstructions0, error)
- func (t ChoiceQuestion_Instructions) AsChoiceQuestionInstructions1() (ChoiceQuestionInstructions1, error)
- func (t ChoiceQuestion_Instructions) AsChoiceQuestionInstructions2() (ChoiceQuestionInstructions2, error)
- func (t *ChoiceQuestion_Instructions) FromChoiceQuestionInstructions0(v ChoiceQuestionInstructions0) error
- func (t *ChoiceQuestion_Instructions) FromChoiceQuestionInstructions1(v ChoiceQuestionInstructions1) error
- func (t *ChoiceQuestion_Instructions) FromChoiceQuestionInstructions2(v ChoiceQuestionInstructions2) error
- func (t ChoiceQuestion_Instructions) MarshalJSON() ([]byte, error)
- func (t *ChoiceQuestion_Instructions) MergeChoiceQuestionInstructions0(v ChoiceQuestionInstructions0) error
- func (t *ChoiceQuestion_Instructions) MergeChoiceQuestionInstructions1(v ChoiceQuestionInstructions1) error
- func (t *ChoiceQuestion_Instructions) MergeChoiceQuestionInstructions2(v ChoiceQuestionInstructions2) error
- func (t *ChoiceQuestion_Instructions) UnmarshalJSON(b []byte) error
- type Client
- func (c *Client) CancelAgentResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CancelBatch(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ChatCompletionsChatCompletionsPost(ctx context.Context, body ChatCompletionsChatCompletionsPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ChatCompletionsChatCompletionsPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Context(ctx context.Context, body ContextJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ContextWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ContextualizedEmbeddingsV1ContextualizedembeddingsPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAgent(ctx context.Context, body CreateAgentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAgentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAsyncChatCompletionsAsyncChatCompletionsPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateBatch(ctx context.Context, params *CreateBatchParams, ...) (*http.Response, error)
- func (c *Client) CreateBatchWithBody(ctx context.Context, params *CreateBatchParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateFileWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateMonitor(ctx context.Context, params *CreateMonitorParams, ...) (*http.Response, error)
- func (c *Client) CreateMonitorWithBody(ctx context.Context, params *CreateMonitorParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateSkillWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DecisionsV1DecisionsPost(ctx context.Context, body DecisionsV1DecisionsPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DecisionsV1DecisionsPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteFile(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSkill(ctx context.Context, skillId SkillId, params *DeleteSkillParams, ...) (*http.Response, error)
- func (c *Client) DownloadAgentFile(ctx context.Context, id string, fileId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DownloadSkill(ctx context.Context, skillId SkillId, params *DownloadSkillParams, ...) (*http.Response, error)
- func (c *Client) EmbeddingsV1EmbeddingsPost(ctx context.Context, body EmbeddingsV1EmbeddingsPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EmbeddingsV1EmbeddingsPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GatewayCreateChatCompletion(ctx context.Context, body GatewayCreateChatCompletionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GatewayCreateChatCompletionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GatewayCreateMessage(ctx context.Context, body GatewayCreateMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GatewayCreateMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GatewayCreateResponse(ctx context.Context, body GatewayCreateResponseJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GatewayCreateResponseWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GatewayListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GatewayRetrieveModel(ctx context.Context, model string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet(ctx context.Context, apiRequest string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBatch(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetComputerUsageAnalytics(ctx context.Context, params *GetComputerUsageAnalyticsParams, ...) (*http.Response, error)
- func (c *Client) GetComputerUsageAnalyticsV2(ctx context.Context, params *GetComputerUsageAnalyticsV2Params, ...) (*http.Response, error)
- func (c *Client) GetFile(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFileContent(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMonitorRun(ctx context.Context, monitorId MonitorId, runId MonitorRunId, ...) (*http.Response, error)
- func (c *Client) GetSkill(ctx context.Context, skillId SkillId, params *GetSkillParams, ...) (*http.Response, error)
- func (c *Client) ListAdminAuditEventsV1AdminAuditEventsGet(ctx context.Context, params *ListAdminAuditEventsV1AdminAuditEventsGetParams, ...) (*http.Response, error)
- func (c *Client) ListAgentFiles(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAsyncChatCompletionsAsyncChatCompletionsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListBatches(ctx context.Context, params *ListBatchesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListFiles(ctx context.Context, params *ListFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListMonitorRuns(ctx context.Context, monitorId MonitorId, params *ListMonitorRunsParams, ...) (*http.Response, error)
- func (c *Client) ListMonitors(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSkillRevisions(ctx context.Context, skillId SkillId, params *ListSkillRevisionsParams, ...) (*http.Response, error)
- func (c *Client) ListSkills(ctx context.Context, params *ListSkillsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PauseMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ResumeMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RetrieveAgent(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RunMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SearchSearchPost(ctx context.Context, body SearchSearchPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SearchSearchPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TestMonitorWebhook(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateMonitor(ctx context.Context, monitorId MonitorId, body UpdateMonitorJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateMonitorWithBody(ctx context.Context, monitorId MonitorId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSkillWithBody(ctx context.Context, skillId SkillId, params *UpdateSkillParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CancelAgentResponseWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CancelAgentResponseResponse, error)
- func (c *ClientWithResponses) CancelBatchWithResponse(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*CancelBatchResponse, error)
- func (c *ClientWithResponses) ChatCompletionsChatCompletionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ChatCompletionsChatCompletionsPostResponse, error)
- func (c *ClientWithResponses) ChatCompletionsChatCompletionsPostWithResponse(ctx context.Context, body ChatCompletionsChatCompletionsPostJSONRequestBody, ...) (*ChatCompletionsChatCompletionsPostResponse, error)
- func (c *ClientWithResponses) ContextWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ContextResponse2, error)
- func (c *ClientWithResponses) ContextWithResponse(ctx context.Context, body ContextJSONRequestBody, ...) (*ContextResponse2, error)
- func (c *ClientWithResponses) ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse, error)
- func (c *ClientWithResponses) ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithResponse(ctx context.Context, ...) (*ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse, error)
- func (c *ClientWithResponses) CreateAgentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAgentResponse, error)
- func (c *ClientWithResponses) CreateAgentWithResponse(ctx context.Context, body CreateAgentJSONRequestBody, ...) (*CreateAgentResponse, error)
- func (c *ClientWithResponses) CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse, error)
- func (c *ClientWithResponses) CreateAsyncChatCompletionsAsyncChatCompletionsPostWithResponse(ctx context.Context, ...) (*CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse, error)
- func (c *ClientWithResponses) CreateBatchWithBodyWithResponse(ctx context.Context, params *CreateBatchParams, contentType string, ...) (*CreateBatchResponse, error)
- func (c *ClientWithResponses) CreateBatchWithResponse(ctx context.Context, params *CreateBatchParams, ...) (*CreateBatchResponse, error)
- func (c *ClientWithResponses) CreateFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateFileResponse, error)
- func (c *ClientWithResponses) CreateMonitorWithBodyWithResponse(ctx context.Context, params *CreateMonitorParams, contentType string, ...) (*CreateMonitorResponse, error)
- func (c *ClientWithResponses) CreateMonitorWithResponse(ctx context.Context, params *CreateMonitorParams, ...) (*CreateMonitorResponse, error)
- func (c *ClientWithResponses) CreateSkillWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSkillResponse, error)
- func (c *ClientWithResponses) DecisionsV1DecisionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DecisionsV1DecisionsPostResponse, error)
- func (c *ClientWithResponses) DecisionsV1DecisionsPostWithResponse(ctx context.Context, body DecisionsV1DecisionsPostJSONRequestBody, ...) (*DecisionsV1DecisionsPostResponse, error)
- func (c *ClientWithResponses) DeleteFileWithResponse(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*DeleteFileResponse, error)
- func (c *ClientWithResponses) DeleteMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*DeleteMonitorResponse2, error)
- func (c *ClientWithResponses) DeleteSkillWithResponse(ctx context.Context, skillId SkillId, params *DeleteSkillParams, ...) (*DeleteSkillResponse, error)
- func (c *ClientWithResponses) DownloadAgentFileWithResponse(ctx context.Context, id string, fileId string, reqEditors ...RequestEditorFn) (*DownloadAgentFileResponse, error)
- func (c *ClientWithResponses) DownloadSkillWithResponse(ctx context.Context, skillId SkillId, params *DownloadSkillParams, ...) (*DownloadSkillResponse, error)
- func (c *ClientWithResponses) EmbeddingsV1EmbeddingsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EmbeddingsV1EmbeddingsPostResponse, error)
- func (c *ClientWithResponses) EmbeddingsV1EmbeddingsPostWithResponse(ctx context.Context, body EmbeddingsV1EmbeddingsPostJSONRequestBody, ...) (*EmbeddingsV1EmbeddingsPostResponse, error)
- func (c *ClientWithResponses) GatewayCreateChatCompletionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GatewayCreateChatCompletionResponse, error)
- func (c *ClientWithResponses) GatewayCreateChatCompletionWithResponse(ctx context.Context, body GatewayCreateChatCompletionJSONRequestBody, ...) (*GatewayCreateChatCompletionResponse, error)
- func (c *ClientWithResponses) GatewayCreateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GatewayCreateMessageResponse, error)
- func (c *ClientWithResponses) GatewayCreateMessageWithResponse(ctx context.Context, body GatewayCreateMessageJSONRequestBody, ...) (*GatewayCreateMessageResponse, error)
- func (c *ClientWithResponses) GatewayCreateResponseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GatewayCreateResponseResponse, error)
- func (c *ClientWithResponses) GatewayCreateResponseWithResponse(ctx context.Context, body GatewayCreateResponseJSONRequestBody, ...) (*GatewayCreateResponseResponse, error)
- func (c *ClientWithResponses) GatewayListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GatewayListModelsResponse, error)
- func (c *ClientWithResponses) GatewayRetrieveModelWithResponse(ctx context.Context, model string, reqEditors ...RequestEditorFn) (*GatewayRetrieveModelResponse, error)
- func (c *ClientWithResponses) GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetWithResponse(ctx context.Context, apiRequest string, reqEditors ...RequestEditorFn) (*GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse, ...)
- func (c *ClientWithResponses) GetBatchWithResponse(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*GetBatchResponse, error)
- func (c *ClientWithResponses) GetComputerUsageAnalyticsV2WithResponse(ctx context.Context, params *GetComputerUsageAnalyticsV2Params, ...) (*GetComputerUsageAnalyticsV2Response, error)
- func (c *ClientWithResponses) GetComputerUsageAnalyticsWithResponse(ctx context.Context, params *GetComputerUsageAnalyticsParams, ...) (*GetComputerUsageAnalyticsResponse, error)
- func (c *ClientWithResponses) GetFileContentWithResponse(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*GetFileContentResponse, error)
- func (c *ClientWithResponses) GetFileWithResponse(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*GetFileResponse, error)
- func (c *ClientWithResponses) GetMonitorRunWithResponse(ctx context.Context, monitorId MonitorId, runId MonitorRunId, ...) (*GetMonitorRunResponse, error)
- func (c *ClientWithResponses) GetMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*GetMonitorResponse, error)
- func (c *ClientWithResponses) GetSkillWithResponse(ctx context.Context, skillId SkillId, params *GetSkillParams, ...) (*GetSkillResponse, error)
- func (c *ClientWithResponses) ListAdminAuditEventsV1AdminAuditEventsGetWithResponse(ctx context.Context, params *ListAdminAuditEventsV1AdminAuditEventsGetParams, ...) (*ListAdminAuditEventsV1AdminAuditEventsGetResponse, error)
- func (c *ClientWithResponses) ListAgentFilesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListAgentFilesResponse, error)
- func (c *ClientWithResponses) ListAsyncChatCompletionsAsyncChatCompletionsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAsyncChatCompletionsAsyncChatCompletionsGetResponse, error)
- func (c *ClientWithResponses) ListBatchesWithResponse(ctx context.Context, params *ListBatchesParams, reqEditors ...RequestEditorFn) (*ListBatchesResponse, error)
- func (c *ClientWithResponses) ListFilesWithResponse(ctx context.Context, params *ListFilesParams, reqEditors ...RequestEditorFn) (*ListFilesResponse, error)
- func (c *ClientWithResponses) ListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListModelsResponse2, error)
- func (c *ClientWithResponses) ListMonitorRunsWithResponse(ctx context.Context, monitorId MonitorId, params *ListMonitorRunsParams, ...) (*ListMonitorRunsResponse, error)
- func (c *ClientWithResponses) ListMonitorsWithResponse(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*ListMonitorsResponse, error)
- func (c *ClientWithResponses) ListSkillRevisionsWithResponse(ctx context.Context, skillId SkillId, params *ListSkillRevisionsParams, ...) (*ListSkillRevisionsResponse, error)
- func (c *ClientWithResponses) ListSkillsWithResponse(ctx context.Context, params *ListSkillsParams, reqEditors ...RequestEditorFn) (*ListSkillsResponse, error)
- func (c *ClientWithResponses) PauseMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*PauseMonitorResponse, error)
- func (c *ClientWithResponses) ResumeMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*ResumeMonitorResponse, error)
- func (c *ClientWithResponses) RetrieveAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveAgentResponse, error)
- func (c *ClientWithResponses) RunMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*RunMonitorResponse, error)
- func (c *ClientWithResponses) SearchSearchPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SearchSearchPostResponse, error)
- func (c *ClientWithResponses) SearchSearchPostWithResponse(ctx context.Context, body SearchSearchPostJSONRequestBody, ...) (*SearchSearchPostResponse, error)
- func (c *ClientWithResponses) TestMonitorWebhookWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*TestMonitorWebhookResponse, error)
- func (c *ClientWithResponses) UpdateMonitorWithBodyWithResponse(ctx context.Context, monitorId MonitorId, contentType string, body io.Reader, ...) (*UpdateMonitorResponse, error)
- func (c *ClientWithResponses) UpdateMonitorWithResponse(ctx context.Context, monitorId MonitorId, body UpdateMonitorJSONRequestBody, ...) (*UpdateMonitorResponse, error)
- func (c *ClientWithResponses) UpdateSkillWithBodyWithResponse(ctx context.Context, skillId SkillId, params *UpdateSkillParams, ...) (*UpdateSkillResponse, error)
- type ClientWithResponsesInterface
- type CompletionResponse
- type ComputerUsageBucket
- type ComputerUsageCategoryCount
- type ComputerUsageResponse
- type ComputerUsageV2Bucket
- type ComputerUsageV2Response
- type ComputerUsageV2Result
- type ConnectorTool
- type ConnectorToolType
- type ContentPart
- type ContentPartType
- type ContextCost
- type ContextCriteriaOutcomes
- type ContextCriteriaQuestion
- type ContextCriteriaQuestionType
- type ContextCriteriaUsage
- type ContextCurrency
- type ContextDecisionNoulAnswer
- type ContextDecisionNoulAnswerType
- type ContextDocument
- type ContextDocumentCriteriaError
- type ContextErrorResponse
- type ContextErrorResponseErrorType
- type ContextHighlights
- type ContextJSONRequestBody
- type ContextMetadata
- func (a ContextMetadata) Get(fieldName string) (value ContextMetadata_AdditionalProperties, found bool)
- func (a ContextMetadata) MarshalJSON() ([]byte, error)
- func (a *ContextMetadata) Set(fieldName string, value ContextMetadata_AdditionalProperties)
- func (a *ContextMetadata) UnmarshalJSON(b []byte) error
- type ContextMetadata0
- type ContextMetadata1
- type ContextMetadataOrigin
- type ContextMetadata_AdditionalProperties
- func (t ContextMetadata_AdditionalProperties) AsContextMetadata0() (ContextMetadata0, error)
- func (t ContextMetadata_AdditionalProperties) AsContextMetadata1() (ContextMetadata1, error)
- func (t *ContextMetadata_AdditionalProperties) FromContextMetadata0(v ContextMetadata0) error
- func (t *ContextMetadata_AdditionalProperties) FromContextMetadata1(v ContextMetadata1) error
- func (t ContextMetadata_AdditionalProperties) MarshalJSON() ([]byte, error)
- func (t *ContextMetadata_AdditionalProperties) MergeContextMetadata0(v ContextMetadata0) error
- func (t *ContextMetadata_AdditionalProperties) MergeContextMetadata1(v ContextMetadata1) error
- func (t *ContextMetadata_AdditionalProperties) UnmarshalJSON(b []byte) error
- type ContextRequest
- type ContextRequestFormats
- type ContextResponse
- type ContextResponse2
- func (r ContextResponse2) ContentType() string
- func (r ContextResponse2) GetBody() []byte
- func (r ContextResponse2) GetJSON200() *ContextResponse
- func (r ContextResponse2) GetJSON400() *ContextErrorResponse
- func (r ContextResponse2) GetJSON401() *ContextErrorResponse
- func (r ContextResponse2) GetJSON403() *ContextErrorResponse
- func (r ContextResponse2) GetJSON405() *ContextErrorResponse
- func (r ContextResponse2) GetJSON429() *ContextErrorResponse
- func (r ContextResponse2) GetJSON500() *ContextErrorResponse
- func (r ContextResponse2) GetJSON502() *ContextErrorResponse
- func (r ContextResponse2) GetJSON503() *ContextErrorResponse
- func (r ContextResponse2) GetJSON504() *ContextErrorResponse
- func (r ContextResponse2) Status() string
- func (r ContextResponse2) StatusCode() int
- type ContextResponse2429Headers
- type ContextStatus
- type ContextStatusType
- type ContextUsage
- type ContextualizedEmbeddingObject
- type ContextualizedEmbeddingsRequest
- type ContextualizedEmbeddingsRequestEncodingFormat
- type ContextualizedEmbeddingsRequestModel
- type ContextualizedEmbeddingsResponse
- type ContextualizedEmbeddingsV1ContextualizedembeddingsPostJSONRequestBody
- type ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse
- func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) ContentType() string
- func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) GetBody() []byte
- func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) GetJSON200() *ContextualizedEmbeddingsResponse
- func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) GetJSON422() *HTTPValidationError
- func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) Status() string
- func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) StatusCode() int
- type Cost
- type CreateAgentJSONRequestBody
- type CreateAgentResponse
- type CreateAsyncChatCompletionsAsyncChatCompletionsPostJSONRequestBody
- type CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse
- func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) ContentType() string
- func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) GetBody() []byte
- func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) GetJSON200() *AsyncApiChatCompletionsResponse
- func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) GetJSON422() *HTTPValidationError
- func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) Status() string
- func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) StatusCode() int
- type CreateBatchJSONRequestBody
- type CreateBatchParams
- type CreateBatchRequest
- type CreateBatchRequestCompletionWindow
- type CreateBatchRequestEndpoint
- type CreateBatchResponse
- func (r CreateBatchResponse) ContentType() string
- func (r CreateBatchResponse) GetBody() []byte
- func (r CreateBatchResponse) GetJSON200() *Batch
- func (r CreateBatchResponse) GetJSON400() *ApiError
- func (r CreateBatchResponse) GetJSON402() *ApiError
- func (r CreateBatchResponse) GetJSON403() *ApiError
- func (r CreateBatchResponse) GetJSON429() *ApiError
- func (r CreateBatchResponse) GetJSON503() *ApiError
- func (r CreateBatchResponse) Status() string
- func (r CreateBatchResponse) StatusCode() int
- type CreateFileMultipartBody
- type CreateFileMultipartBodyPurpose
- type CreateFileMultipartRequestBody
- type CreateFileResponse
- func (r CreateFileResponse) ContentType() string
- func (r CreateFileResponse) GetBody() []byte
- func (r CreateFileResponse) GetJSON200() *BatchFile
- func (r CreateFileResponse) GetJSON400() *ApiError
- func (r CreateFileResponse) GetJSON403() *ApiError
- func (r CreateFileResponse) GetJSON413() *ApiError
- func (r CreateFileResponse) GetJSON429() *ApiError
- func (r CreateFileResponse) Status() string
- func (r CreateFileResponse) StatusCode() int
- type CreateMonitorJSONRequestBody
- type CreateMonitorParams
- type CreateMonitorRequest
- type CreateMonitorResponse
- func (r CreateMonitorResponse) ContentType() string
- func (r CreateMonitorResponse) GetBody() []byte
- func (r CreateMonitorResponse) GetJSON200() *Monitor
- func (r CreateMonitorResponse) GetJSON400() *MonitorBadRequest
- func (r CreateMonitorResponse) GetJSON401() *MonitorUnauthorized
- func (r CreateMonitorResponse) GetJSON402() *MonitorPaymentRequired
- func (r CreateMonitorResponse) GetJSON403() *MonitorForbidden
- func (r CreateMonitorResponse) GetJSON409() *MonitorApiError
- func (r CreateMonitorResponse) GetJSON429() *MonitorTooManyRequests
- func (r CreateMonitorResponse) GetJSON502() *MonitorBadGateway
- func (r CreateMonitorResponse) GetJSON503() *MonitorUnavailable
- func (r CreateMonitorResponse) GetJSON504() *MonitorGatewayTimeout
- func (r CreateMonitorResponse) Status() string
- func (r CreateMonitorResponse) StatusCode() int
- type CreateMonitorResponse429Headers
- type CreateSkillMultipartBody
- type CreateSkillMultipartRequestBody
- type CreateSkillResponse
- func (r CreateSkillResponse) ContentType() string
- func (r CreateSkillResponse) GetBody() []byte
- func (r CreateSkillResponse) GetJSON201() *ManagedSkill
- func (r CreateSkillResponse) GetJSON400() *ApiError
- func (r CreateSkillResponse) GetJSON409() *ApiError
- func (r CreateSkillResponse) GetJSON413() *ApiError
- func (r CreateSkillResponse) GetJSON429() *ApiError
- func (r CreateSkillResponse) GetJSON502() *ApiError
- func (r CreateSkillResponse) Status() string
- func (r CreateSkillResponse) StatusCode() int
- type Currency
- type CustomSkill
- type CustomSkillType
- type Date
- type DateFilters
- type DecisionFetchedResult
- type DecisionSearchResult
- type DecisionToolCallDetails
- type DecisionsRequest
- type DecisionsRequestMode
- type DecisionsRequestState0
- type DecisionsRequestState1
- type DecisionsRequestState2
- type DecisionsRequest_State
- func (t DecisionsRequest_State) AsDecisionsRequestState0() (DecisionsRequestState0, error)
- func (t DecisionsRequest_State) AsDecisionsRequestState1() (DecisionsRequestState1, error)
- func (t DecisionsRequest_State) AsDecisionsRequestState2() (DecisionsRequestState2, error)
- func (t *DecisionsRequest_State) FromDecisionsRequestState0(v DecisionsRequestState0) error
- func (t *DecisionsRequest_State) FromDecisionsRequestState1(v DecisionsRequestState1) error
- func (t *DecisionsRequest_State) FromDecisionsRequestState2(v DecisionsRequestState2) error
- func (t DecisionsRequest_State) MarshalJSON() ([]byte, error)
- func (t *DecisionsRequest_State) MergeDecisionsRequestState0(v DecisionsRequestState0) error
- func (t *DecisionsRequest_State) MergeDecisionsRequestState1(v DecisionsRequestState1) error
- func (t *DecisionsRequest_State) MergeDecisionsRequestState2(v DecisionsRequestState2) error
- func (t *DecisionsRequest_State) UnmarshalJSON(b []byte) error
- type DecisionsResponse
- type DecisionsV1DecisionsPostJSONRequestBody
- type DecisionsV1DecisionsPostResponse
- func (r DecisionsV1DecisionsPostResponse) ContentType() string
- func (r DecisionsV1DecisionsPostResponse) GetBody() []byte
- func (r DecisionsV1DecisionsPostResponse) GetJSON200() *DecisionsResponse
- func (r DecisionsV1DecisionsPostResponse) GetJSON400() *BadRequest
- func (r DecisionsV1DecisionsPostResponse) GetJSON401() *Unauthorized
- func (r DecisionsV1DecisionsPostResponse) GetJSON413() *PayloadTooLarge
- func (r DecisionsV1DecisionsPostResponse) GetJSON429() *TooManyRequests
- func (r DecisionsV1DecisionsPostResponse) Status() string
- func (r DecisionsV1DecisionsPostResponse) StatusCode() int
- type DecisionsV1DecisionsPostResponse200Headers
- type DecisionsV1DecisionsPostResponse400Headers
- type DecisionsV1DecisionsPostResponse405Headers
- type DecisionsV1DecisionsPostResponse413Headers
- type DecisionsV1DecisionsPostResponse429Headers
- type DeleteFileResponse
- type DeleteMonitorResponse
- type DeleteMonitorResponse2
- func (r DeleteMonitorResponse2) ContentType() string
- func (r DeleteMonitorResponse2) GetBody() []byte
- func (r DeleteMonitorResponse2) GetJSON200() *DeleteMonitorResponse
- func (r DeleteMonitorResponse2) GetJSON401() *MonitorUnauthorized
- func (r DeleteMonitorResponse2) GetJSON403() *MonitorForbidden
- func (r DeleteMonitorResponse2) GetJSON404() *MonitorNotFound
- func (r DeleteMonitorResponse2) GetJSON429() *MonitorTooManyRequests
- func (r DeleteMonitorResponse2) GetJSON502() *MonitorBadGateway
- func (r DeleteMonitorResponse2) GetJSON503() *MonitorUnavailable
- func (r DeleteMonitorResponse2) GetJSON504() *MonitorGatewayTimeout
- func (r DeleteMonitorResponse2) Status() string
- func (r DeleteMonitorResponse2) StatusCode() int
- type DeleteMonitorResponse2429Headers
- type DeleteMonitorResponseObject
- type DeleteSkillParams
- type DeleteSkillResponse
- func (r DeleteSkillResponse) ContentType() string
- func (r DeleteSkillResponse) GetBody() []byte
- func (r DeleteSkillResponse) GetJSON400() *ApiError
- func (r DeleteSkillResponse) GetJSON404() *ApiError
- func (r DeleteSkillResponse) GetJSON409() *ApiError
- func (r DeleteSkillResponse) GetJSON429() *ApiError
- func (r DeleteSkillResponse) GetJSON502() *ApiError
- func (r DeleteSkillResponse) Status() string
- func (r DeleteSkillResponse) StatusCode() int
- type DownloadAgentFileResponse
- type DownloadSkillParams
- type DownloadSkillResponse
- func (r DownloadSkillResponse) ContentType() string
- func (r DownloadSkillResponse) GetBody() []byte
- func (r DownloadSkillResponse) GetJSON200() *SkillDownload
- func (r DownloadSkillResponse) GetJSON400() *ApiError
- func (r DownloadSkillResponse) GetJSON404() *ApiError
- func (r DownloadSkillResponse) GetJSON429() *ApiError
- func (r DownloadSkillResponse) GetJSON502() *ApiError
- func (r DownloadSkillResponse) Status() string
- func (r DownloadSkillResponse) StatusCode() int
- type EmbeddingObject
- type EmbeddingsRequest
- type EmbeddingsRequestEncodingFormat
- type EmbeddingsRequestInput0
- type EmbeddingsRequestInput1
- type EmbeddingsRequestInput2
- type EmbeddingsRequestInput3
- type EmbeddingsRequestInput3Type
- type EmbeddingsRequestInputType
- type EmbeddingsRequestModel
- type EmbeddingsRequestNumChunks
- type EmbeddingsRequest_Input
- func (t EmbeddingsRequest_Input) AsEmbeddingsRequestInput0() (EmbeddingsRequestInput0, error)
- func (t EmbeddingsRequest_Input) AsEmbeddingsRequestInput1() (EmbeddingsRequestInput1, error)
- func (t EmbeddingsRequest_Input) AsEmbeddingsRequestInput2() (EmbeddingsRequestInput2, error)
- func (t EmbeddingsRequest_Input) AsEmbeddingsRequestInput3() (EmbeddingsRequestInput3, error)
- func (t *EmbeddingsRequest_Input) FromEmbeddingsRequestInput0(v EmbeddingsRequestInput0) error
- func (t *EmbeddingsRequest_Input) FromEmbeddingsRequestInput1(v EmbeddingsRequestInput1) error
- func (t *EmbeddingsRequest_Input) FromEmbeddingsRequestInput2(v EmbeddingsRequestInput2) error
- func (t *EmbeddingsRequest_Input) FromEmbeddingsRequestInput3(v EmbeddingsRequestInput3) error
- func (t EmbeddingsRequest_Input) MarshalJSON() ([]byte, error)
- func (t *EmbeddingsRequest_Input) MergeEmbeddingsRequestInput0(v EmbeddingsRequestInput0) error
- func (t *EmbeddingsRequest_Input) MergeEmbeddingsRequestInput1(v EmbeddingsRequestInput1) error
- func (t *EmbeddingsRequest_Input) MergeEmbeddingsRequestInput2(v EmbeddingsRequestInput2) error
- func (t *EmbeddingsRequest_Input) MergeEmbeddingsRequestInput3(v EmbeddingsRequestInput3) error
- func (t *EmbeddingsRequest_Input) UnmarshalJSON(b []byte) error
- type EmbeddingsResponse
- type EmbeddingsResponse_Data_Item
- func (t EmbeddingsResponse_Data_Item) AsContextualizedEmbeddingObject() (ContextualizedEmbeddingObject, error)
- func (t EmbeddingsResponse_Data_Item) AsEmbeddingObject() (EmbeddingObject, error)
- func (t *EmbeddingsResponse_Data_Item) FromContextualizedEmbeddingObject(v ContextualizedEmbeddingObject) error
- func (t *EmbeddingsResponse_Data_Item) FromEmbeddingObject(v EmbeddingObject) error
- func (t EmbeddingsResponse_Data_Item) MarshalJSON() ([]byte, error)
- func (t *EmbeddingsResponse_Data_Item) MergeContextualizedEmbeddingObject(v ContextualizedEmbeddingObject) error
- func (t *EmbeddingsResponse_Data_Item) MergeEmbeddingObject(v EmbeddingObject) error
- func (t *EmbeddingsResponse_Data_Item) UnmarshalJSON(b []byte) error
- type EmbeddingsUsage
- type EmbeddingsUsageCostCurrency
- type EmbeddingsV1EmbeddingsPostJSONRequestBody
- type EmbeddingsV1EmbeddingsPostResponse
- func (r EmbeddingsV1EmbeddingsPostResponse) ContentType() string
- func (r EmbeddingsV1EmbeddingsPostResponse) GetBody() []byte
- func (r EmbeddingsV1EmbeddingsPostResponse) GetJSON200() *EmbeddingsResponse
- func (r EmbeddingsV1EmbeddingsPostResponse) GetJSON422() *HTTPValidationError
- func (r EmbeddingsV1EmbeddingsPostResponse) Status() string
- func (r EmbeddingsV1EmbeddingsPostResponse) StatusCode() int
- type Error
- type ErrorCode0
- type ErrorCode1
- type ErrorInfo
- type ErrorResponse
- type Error_Code
- func (t Error_Code) AsErrorCode0() (ErrorCode0, error)
- func (t Error_Code) AsErrorCode1() (ErrorCode1, error)
- func (t *Error_Code) FromErrorCode0(v ErrorCode0) error
- func (t *Error_Code) FromErrorCode1(v ErrorCode1) error
- func (t Error_Code) MarshalJSON() ([]byte, error)
- func (t *Error_Code) MergeErrorCode0(v ErrorCode0) error
- func (t *Error_Code) MergeErrorCode1(v ErrorCode1) error
- func (t *Error_Code) UnmarshalJSON(b []byte) error
- type EventType
- type ExpectedRevisionRequired
- type FetchUrlQueriesEvent
- type FetchUrlResultsEvent
- type FetchUrlResultsOutputItem
- type FetchUrlResultsOutputItemType
- type FetchUrlTool
- type FetchUrlToolType
- type FinanceResult
- type FinanceResultsOutputItem
- type FinanceResultsOutputItemType
- type FinanceSearchTool
- type FinanceSearchToolType
- type FunctionCallInput
- type FunctionCallInputType
- type FunctionCallOutputImagePart
- type FunctionCallOutputImagePartDetail
- type FunctionCallOutputImagePartType
- type FunctionCallOutputInput
- type FunctionCallOutputInputOutput0
- type FunctionCallOutputInputOutput1
- type FunctionCallOutputInputStatus
- type FunctionCallOutputInputType
- type FunctionCallOutputInput_Output
- func (t FunctionCallOutputInput_Output) AsFunctionCallOutputInputOutput0() (FunctionCallOutputInputOutput0, error)
- func (t FunctionCallOutputInput_Output) AsFunctionCallOutputInputOutput1() (FunctionCallOutputInputOutput1, error)
- func (t *FunctionCallOutputInput_Output) FromFunctionCallOutputInputOutput0(v FunctionCallOutputInputOutput0) error
- func (t *FunctionCallOutputInput_Output) FromFunctionCallOutputInputOutput1(v FunctionCallOutputInputOutput1) error
- func (t FunctionCallOutputInput_Output) MarshalJSON() ([]byte, error)
- func (t *FunctionCallOutputInput_Output) MergeFunctionCallOutputInputOutput0(v FunctionCallOutputInputOutput0) error
- func (t *FunctionCallOutputInput_Output) MergeFunctionCallOutputInputOutput1(v FunctionCallOutputInputOutput1) error
- func (t *FunctionCallOutputInput_Output) UnmarshalJSON(b []byte) error
- type FunctionCallOutputInput_Output_1_Item
- func (t FunctionCallOutputInput_Output_1_Item) AsFunctionCallOutputImagePart() (FunctionCallOutputImagePart, error)
- func (t FunctionCallOutputInput_Output_1_Item) AsFunctionCallOutputTextPart() (FunctionCallOutputTextPart, error)
- func (t FunctionCallOutputInput_Output_1_Item) Discriminator() (string, error)
- func (t *FunctionCallOutputInput_Output_1_Item) FromFunctionCallOutputImagePart(v FunctionCallOutputImagePart) error
- func (t *FunctionCallOutputInput_Output_1_Item) FromFunctionCallOutputTextPart(v FunctionCallOutputTextPart) error
- func (t FunctionCallOutputInput_Output_1_Item) MarshalJSON() ([]byte, error)
- func (t *FunctionCallOutputInput_Output_1_Item) MergeFunctionCallOutputImagePart(v FunctionCallOutputImagePart) error
- func (t *FunctionCallOutputInput_Output_1_Item) MergeFunctionCallOutputTextPart(v FunctionCallOutputTextPart) error
- func (t *FunctionCallOutputInput_Output_1_Item) UnmarshalJSON(b []byte) error
- func (t FunctionCallOutputInput_Output_1_Item) ValueByDiscriminator() (interface{}, error)
- type FunctionCallOutputItem
- type FunctionCallOutputItemType
- type FunctionCallOutputTextPart
- type FunctionCallOutputTextPartType
- type FunctionTool
- type FunctionToolType
- type GatewayCreateChatCompletionJSONRequestBody
- type GatewayCreateChatCompletionResponse
- func (r GatewayCreateChatCompletionResponse) ContentType() string
- func (r GatewayCreateChatCompletionResponse) GetBody() []byte
- func (r GatewayCreateChatCompletionResponse) GetJSON200() *OrchestratorChatCreateChatCompletionResponse
- func (r GatewayCreateChatCompletionResponse) GetJSON400() *OrchestratorChatErrorResponse
- func (r GatewayCreateChatCompletionResponse) GetJSON404() *OrchestratorChatErrorResponse
- func (r GatewayCreateChatCompletionResponse) GetJSON429() *OrchestratorChatErrorResponse
- func (r GatewayCreateChatCompletionResponse) Status() string
- func (r GatewayCreateChatCompletionResponse) StatusCode() int
- type GatewayCreateMessageJSONRequestBody
- type GatewayCreateMessageResponse
- func (r GatewayCreateMessageResponse) ContentType() string
- func (r GatewayCreateMessageResponse) GetBody() []byte
- func (r GatewayCreateMessageResponse) GetJSON200() *OrchestratorMessagesMessage
- func (r GatewayCreateMessageResponse) GetJSON400() *OrchestratorMessagesErrorResponse
- func (r GatewayCreateMessageResponse) GetJSON404() *OrchestratorMessagesErrorResponse
- func (r GatewayCreateMessageResponse) GetJSON429() *OrchestratorMessagesErrorResponse
- func (r GatewayCreateMessageResponse) Status() string
- func (r GatewayCreateMessageResponse) StatusCode() int
- type GatewayCreateResponseJSONRequestBody
- type GatewayCreateResponseResponse
- func (r GatewayCreateResponseResponse) ContentType() string
- func (r GatewayCreateResponseResponse) GetBody() []byte
- func (r GatewayCreateResponseResponse) GetJSON200() *OrchestratorResponsesResponseResource
- func (r GatewayCreateResponseResponse) GetJSON400() *OrchestratorResponsesErrorResponse
- func (r GatewayCreateResponseResponse) GetJSON404() *OrchestratorResponsesErrorResponse
- func (r GatewayCreateResponseResponse) GetJSON429() *OrchestratorResponsesErrorResponse
- func (r GatewayCreateResponseResponse) GetJSON500() *OrchestratorResponsesErrorResponse
- func (r GatewayCreateResponseResponse) Status() string
- func (r GatewayCreateResponseResponse) StatusCode() int
- type GatewayListModelsResponse
- type GatewayRetrieveModelResponse
- func (r GatewayRetrieveModelResponse) ContentType() string
- func (r GatewayRetrieveModelResponse) GetBody() []byte
- func (r GatewayRetrieveModelResponse) GetJSON200() *OrchestratorChatModel
- func (r GatewayRetrieveModelResponse) GetJSON404() *OrchestratorChatErrorResponse
- func (r GatewayRetrieveModelResponse) Status() string
- func (r GatewayRetrieveModelResponse) StatusCode() int
- type GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse
- func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) ContentType() string
- func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) GetBody() []byte
- func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) GetJSON200() *AsyncApiChatCompletionsResponse
- func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) GetJSON422() *HTTPValidationError
- func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) Status() string
- func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) StatusCode() int
- type GetBatchResponse
- func (r GetBatchResponse) ContentType() string
- func (r GetBatchResponse) GetBody() []byte
- func (r GetBatchResponse) GetJSON200() *Batch
- func (r GetBatchResponse) GetJSON404() *ApiError
- func (r GetBatchResponse) GetJSON429() *ApiError
- func (r GetBatchResponse) Status() string
- func (r GetBatchResponse) StatusCode() int
- type GetComputerUsageAnalyticsParams
- type GetComputerUsageAnalyticsParamsBucketWidth
- type GetComputerUsageAnalyticsParamsDataset
- type GetComputerUsageAnalyticsResponse
- func (r GetComputerUsageAnalyticsResponse) ContentType() string
- func (r GetComputerUsageAnalyticsResponse) GetBody() []byte
- func (r GetComputerUsageAnalyticsResponse) GetJSON200() *ComputerUsageResponse
- func (r GetComputerUsageAnalyticsResponse) GetJSON400() *AnalyticsErrorResponse
- func (r GetComputerUsageAnalyticsResponse) GetJSON401() *AnalyticsErrorResponse
- func (r GetComputerUsageAnalyticsResponse) GetJSON404() *AnalyticsErrorResponse
- func (r GetComputerUsageAnalyticsResponse) GetJSON429() *AnalyticsErrorResponse
- func (r GetComputerUsageAnalyticsResponse) Status() string
- func (r GetComputerUsageAnalyticsResponse) StatusCode() int
- type GetComputerUsageAnalyticsV2Params
- type GetComputerUsageAnalyticsV2ParamsDataset
- type GetComputerUsageAnalyticsV2ParamsGroupBy
- type GetComputerUsageAnalyticsV2Response
- func (r GetComputerUsageAnalyticsV2Response) ContentType() string
- func (r GetComputerUsageAnalyticsV2Response) GetBody() []byte
- func (r GetComputerUsageAnalyticsV2Response) GetJSON200() *ComputerUsageV2Response
- func (r GetComputerUsageAnalyticsV2Response) GetJSON400() *AnalyticsErrorResponse
- func (r GetComputerUsageAnalyticsV2Response) GetJSON401() *AnalyticsErrorResponse
- func (r GetComputerUsageAnalyticsV2Response) GetJSON404() *AnalyticsErrorResponse
- func (r GetComputerUsageAnalyticsV2Response) GetJSON429() *AnalyticsErrorResponse
- func (r GetComputerUsageAnalyticsV2Response) Status() string
- func (r GetComputerUsageAnalyticsV2Response) StatusCode() int
- type GetFileContentResponse
- type GetFileResponse
- type GetMonitorResponse
- func (r GetMonitorResponse) ContentType() string
- func (r GetMonitorResponse) GetBody() []byte
- func (r GetMonitorResponse) GetJSON200() *Monitor
- func (r GetMonitorResponse) GetJSON401() *MonitorUnauthorized
- func (r GetMonitorResponse) GetJSON403() *MonitorForbidden
- func (r GetMonitorResponse) GetJSON404() *MonitorNotFound
- func (r GetMonitorResponse) GetJSON429() *MonitorTooManyRequests
- func (r GetMonitorResponse) GetJSON502() *MonitorBadGateway
- func (r GetMonitorResponse) GetJSON503() *MonitorUnavailable
- func (r GetMonitorResponse) GetJSON504() *MonitorGatewayTimeout
- func (r GetMonitorResponse) Status() string
- func (r GetMonitorResponse) StatusCode() int
- type GetMonitorResponse429Headers
- type GetMonitorRunResponse
- func (r GetMonitorRunResponse) ContentType() string
- func (r GetMonitorRunResponse) GetBody() []byte
- func (r GetMonitorRunResponse) GetJSON200() *MonitorRun
- func (r GetMonitorRunResponse) GetJSON401() *MonitorUnauthorized
- func (r GetMonitorRunResponse) GetJSON403() *MonitorForbidden
- func (r GetMonitorRunResponse) GetJSON404() *MonitorApiError
- func (r GetMonitorRunResponse) GetJSON429() *MonitorTooManyRequests
- func (r GetMonitorRunResponse) GetJSON502() *MonitorBadGateway
- func (r GetMonitorRunResponse) GetJSON503() *MonitorUnavailable
- func (r GetMonitorRunResponse) GetJSON504() *MonitorGatewayTimeout
- func (r GetMonitorRunResponse) Status() string
- func (r GetMonitorRunResponse) StatusCode() int
- type GetMonitorRunResponse429Headers
- type GetSkillParams
- type GetSkillResponse
- func (r GetSkillResponse) ContentType() string
- func (r GetSkillResponse) GetBody() []byte
- func (r GetSkillResponse) GetJSON200() *ManagedSkill
- func (r GetSkillResponse) GetJSON400() *ApiError
- func (r GetSkillResponse) GetJSON404() *ApiError
- func (r GetSkillResponse) GetJSON429() *ApiError
- func (r GetSkillResponse) GetJSON502() *ApiError
- func (r GetSkillResponse) Status() string
- func (r GetSkillResponse) StatusCode() int
- type HTTPValidationError
- type HttpRequestDoer
- type ImageResult
- type ImageSearchFilters
- type ImageSearchFiltersFormatFilter
- type ImageSearchQueriesEvent
- type ImageSearchResultsEvent
- type ImageSearchResultsOutputItem
- type ImageSearchResultsOutputItemType
- type ImageSearchTool
- type ImageSearchToolType
- type InlineSkill
- type InlineSkillType
- type Input
- func (t Input) AsInput0() (Input0, error)
- func (t Input) AsInput1() (Input1, error)
- func (t *Input) FromInput0(v Input0) error
- func (t *Input) FromInput1(v Input1) error
- func (t Input) MarshalJSON() ([]byte, error)
- func (t *Input) MergeInput0(v Input0) error
- func (t *Input) MergeInput1(v Input1) error
- func (t *Input) UnmarshalJSON(b []byte) error
- type Input0
- type Input1
- type InputContent
- func (t InputContent) AsInputContent0() (InputContent0, error)
- func (t InputContent) AsInputContent1() (InputContent1, error)
- func (t *InputContent) FromInputContent0(v InputContent0) error
- func (t *InputContent) FromInputContent1(v InputContent1) error
- func (t InputContent) MarshalJSON() ([]byte, error)
- func (t *InputContent) MergeInputContent0(v InputContent0) error
- func (t *InputContent) MergeInputContent1(v InputContent1) error
- func (t *InputContent) UnmarshalJSON(b []byte) error
- type InputContent0
- type InputContent1
- type InputContentPart
- type InputContentPartType
- type InputItem
- func (t InputItem) AsFunctionCallInput() (FunctionCallInput, error)
- func (t InputItem) AsFunctionCallOutputInput() (FunctionCallOutputInput, error)
- func (t InputItem) AsInputMessage() (InputMessage, error)
- func (t InputItem) AsMcpApprovalRequestInput() (McpApprovalRequestInput, error)
- func (t InputItem) AsMcpApprovalResponseInput() (McpApprovalResponseInput, error)
- func (t InputItem) AsMcpCallInput() (McpCallInput, error)
- func (t InputItem) AsMcpListToolsInput() (McpListToolsInput, error)
- func (t InputItem) Discriminator() (string, error)
- func (t *InputItem) FromFunctionCallInput(v FunctionCallInput) error
- func (t *InputItem) FromFunctionCallOutputInput(v FunctionCallOutputInput) error
- func (t *InputItem) FromInputMessage(v InputMessage) error
- func (t *InputItem) FromMcpApprovalRequestInput(v McpApprovalRequestInput) error
- func (t *InputItem) FromMcpApprovalResponseInput(v McpApprovalResponseInput) error
- func (t *InputItem) FromMcpCallInput(v McpCallInput) error
- func (t *InputItem) FromMcpListToolsInput(v McpListToolsInput) error
- func (t InputItem) MarshalJSON() ([]byte, error)
- func (t *InputItem) MergeFunctionCallInput(v FunctionCallInput) error
- func (t *InputItem) MergeFunctionCallOutputInput(v FunctionCallOutputInput) error
- func (t *InputItem) MergeInputMessage(v InputMessage) error
- func (t *InputItem) MergeMcpApprovalRequestInput(v McpApprovalRequestInput) error
- func (t *InputItem) MergeMcpApprovalResponseInput(v McpApprovalResponseInput) error
- func (t *InputItem) MergeMcpCallInput(v McpCallInput) error
- func (t *InputItem) MergeMcpListToolsInput(v McpListToolsInput) error
- func (t *InputItem) UnmarshalJSON(b []byte) error
- func (t InputItem) ValueByDiscriminator() (interface{}, error)
- type InputMessage
- type InputMessageRole
- type InputMessageType
- type InputTokensDetails
- type JSONSchema
- type JSONSchemaFormat
- type Limit
- type ListAdminAuditEventsV1AdminAuditEventsGetParams
- type ListAdminAuditEventsV1AdminAuditEventsGetResponse
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) ContentType() string
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetBody() []byte
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON200() *AuditEventsResponse
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON400() *AdminApiErrorResponse
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON401() *AdminApiErrorResponse
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON403() *AdminApiErrorResponse
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON404() *AdminApiErrorResponse
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON429() *AdminApiErrorResponse
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON503() *AdminApiErrorResponse
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) Status() string
- func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) StatusCode() int
- type ListAgentFilesResponse
- func (r ListAgentFilesResponse) ContentType() string
- func (r ListAgentFilesResponse) GetBody() []byte
- func (r ListAgentFilesResponse) GetJSON200() *ResponseFileList
- func (r ListAgentFilesResponse) GetJSON404() ...
- func (r ListAgentFilesResponse) Status() string
- func (r ListAgentFilesResponse) StatusCode() int
- type ListAsyncApiChatCompletionsResponse
- type ListAsyncChatCompletionsAsyncChatCompletionsGetResponse
- func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) ContentType() string
- func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) GetBody() []byte
- func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) GetJSON200() *ListAsyncApiChatCompletionsResponse
- func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) GetJSON422() *HTTPValidationError
- func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) Status() string
- func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) StatusCode() int
- type ListBatchesParams
- type ListBatchesResponse
- func (r ListBatchesResponse) ContentType() string
- func (r ListBatchesResponse) GetBody() []byte
- func (r ListBatchesResponse) GetJSON200() *BatchList
- func (r ListBatchesResponse) GetJSON400() *ApiError
- func (r ListBatchesResponse) GetJSON429() *ApiError
- func (r ListBatchesResponse) Status() string
- func (r ListBatchesResponse) StatusCode() int
- type ListFilesParams
- type ListFilesParamsOrder
- type ListFilesParamsPurpose
- type ListFilesResponse
- func (r ListFilesResponse) ContentType() string
- func (r ListFilesResponse) GetBody() []byte
- func (r ListFilesResponse) GetJSON200() *BatchFileList
- func (r ListFilesResponse) GetJSON400() *ApiError
- func (r ListFilesResponse) GetJSON429() *ApiError
- func (r ListFilesResponse) Status() string
- func (r ListFilesResponse) StatusCode() int
- type ListModelsResponse
- type ListModelsResponse2
- type ListModelsResponseObject
- type ListMonitorRunsParams
- type ListMonitorRunsResponse
- func (r ListMonitorRunsResponse) ContentType() string
- func (r ListMonitorRunsResponse) GetBody() []byte
- func (r ListMonitorRunsResponse) GetJSON200() *MonitorRunList
- func (r ListMonitorRunsResponse) GetJSON400() *MonitorBadRequest
- func (r ListMonitorRunsResponse) GetJSON401() *MonitorUnauthorized
- func (r ListMonitorRunsResponse) GetJSON403() *MonitorForbidden
- func (r ListMonitorRunsResponse) GetJSON404() *MonitorNotFound
- func (r ListMonitorRunsResponse) GetJSON429() *MonitorTooManyRequests
- func (r ListMonitorRunsResponse) GetJSON502() *MonitorBadGateway
- func (r ListMonitorRunsResponse) GetJSON503() *MonitorUnavailable
- func (r ListMonitorRunsResponse) GetJSON504() *MonitorGatewayTimeout
- func (r ListMonitorRunsResponse) Status() string
- func (r ListMonitorRunsResponse) StatusCode() int
- type ListMonitorRunsResponse429Headers
- type ListMonitorsParams
- type ListMonitorsResponse
- func (r ListMonitorsResponse) ContentType() string
- func (r ListMonitorsResponse) GetBody() []byte
- func (r ListMonitorsResponse) GetJSON200() *MonitorList
- func (r ListMonitorsResponse) GetJSON400() *MonitorBadRequest
- func (r ListMonitorsResponse) GetJSON401() *MonitorUnauthorized
- func (r ListMonitorsResponse) GetJSON403() *MonitorForbidden
- func (r ListMonitorsResponse) GetJSON429() *MonitorTooManyRequests
- func (r ListMonitorsResponse) GetJSON502() *MonitorBadGateway
- func (r ListMonitorsResponse) GetJSON503() *MonitorUnavailable
- func (r ListMonitorsResponse) GetJSON504() *MonitorGatewayTimeout
- func (r ListMonitorsResponse) Status() string
- func (r ListMonitorsResponse) StatusCode() int
- type ListMonitorsResponse429Headers
- type ListSkillRevisionsParams
- type ListSkillRevisionsResponse
- func (r ListSkillRevisionsResponse) ContentType() string
- func (r ListSkillRevisionsResponse) GetBody() []byte
- func (r ListSkillRevisionsResponse) GetJSON200() *SkillRevisionList
- func (r ListSkillRevisionsResponse) GetJSON400() *ApiError
- func (r ListSkillRevisionsResponse) GetJSON404() *ApiError
- func (r ListSkillRevisionsResponse) GetJSON429() *ApiError
- func (r ListSkillRevisionsResponse) GetJSON502() *ApiError
- func (r ListSkillRevisionsResponse) Status() string
- func (r ListSkillRevisionsResponse) StatusCode() int
- type ListSkillsParams
- type ListSkillsResponse
- func (r ListSkillsResponse) ContentType() string
- func (r ListSkillsResponse) GetBody() []byte
- func (r ListSkillsResponse) GetJSON200() *SkillList
- func (r ListSkillsResponse) GetJSON400() *ApiError
- func (r ListSkillsResponse) GetJSON429() *ApiError
- func (r ListSkillsResponse) GetJSON502() *ApiError
- func (r ListSkillsResponse) Status() string
- func (r ListSkillsResponse) StatusCode() int
- type LocateAnswer
- type LocateAnswerType
- type LocateQuestion
- type LocateQuestionType
- type LocateSpan
- type ManagedSkill
- type McpApprovalRequestInput
- type McpApprovalRequestInputType
- type McpApprovalRequestOutputItem
- type McpApprovalRequestOutputItemType
- type McpApprovalResponseInput
- type McpApprovalResponseInputType
- type McpCallInput
- type McpCallInputType
- type McpCallOutputItem
- type McpCallOutputItemType
- type McpListToolsInput
- type McpListToolsInputType
- type McpListToolsOutputItem
- type McpListToolsOutputItemType
- type McpTool
- type McpToolDef
- type McpToolDef_Annotations
- type McpToolType
- type MessageOutputItem
- type MessageOutputItemType
- type Model
- type ModelObject
- type Monitor
- type MonitorAfter
- type MonitorAgentFilters
- type MonitorAgentFiltersRequest
- type MonitorAgentProfileReference
- type MonitorAgentProfileReferenceType
- type MonitorAgentSource
- type MonitorAgentTarget
- type MonitorAgentTargetRequest
- type MonitorAgentTargetRequestType
- type MonitorAgentTargetType
- type MonitorAgentUpdateChange
- type MonitorAgentUpdateChangeType
- type MonitorApiError
- type MonitorApiErrorType
- type MonitorBadGateway
- type MonitorBadRequest
- type MonitorChange
- func (t MonitorChange) AsMonitorAgentUpdateChange() (MonitorAgentUpdateChange, error)
- func (t MonitorChange) AsMonitorPageChange() (MonitorPageChange, error)
- func (t MonitorChange) AsMonitorSearchResultChange() (MonitorSearchResultChange, error)
- func (t MonitorChange) Discriminator() (string, error)
- func (t *MonitorChange) FromMonitorAgentUpdateChange(v MonitorAgentUpdateChange) error
- func (t *MonitorChange) FromMonitorPageChange(v MonitorPageChange) error
- func (t *MonitorChange) FromMonitorSearchResultChange(v MonitorSearchResultChange) error
- func (t MonitorChange) MarshalJSON() ([]byte, error)
- func (t *MonitorChange) MergeMonitorAgentUpdateChange(v MonitorAgentUpdateChange) error
- func (t *MonitorChange) MergeMonitorPageChange(v MonitorPageChange) error
- func (t *MonitorChange) MergeMonitorSearchResultChange(v MonitorSearchResultChange) error
- func (t *MonitorChange) UnmarshalJSON(b []byte) error
- func (t MonitorChange) ValueByDiscriminator() (interface{}, error)
- type MonitorChangeId
- type MonitorConcurrentUpdate
- type MonitorCronSchedule
- type MonitorCronScheduleRequest
- type MonitorCronScheduleRequestType
- type MonitorCronScheduleType
- type MonitorCurrency
- type MonitorDiff
- type MonitorDomain
- type MonitorEventType
- type MonitorForbidden
- type MonitorFreshness
- type MonitorGatewayTimeout
- type MonitorId
- type MonitorIdempotencyKey
- type MonitorIntervalSchedule
- type MonitorIntervalScheduleRequest
- type MonitorIntervalScheduleRequestType
- type MonitorIntervalScheduleType
- type MonitorInvalidState
- type MonitorJudge
- type MonitorJudgeRequest
- type MonitorLastRun
- type MonitorLimit
- type MonitorList
- type MonitorListObject
- type MonitorMetadata
- type MonitorNotFound
- type MonitorObject
- type MonitorPageChange
- type MonitorPageChangeType
- type MonitorPageTarget
- type MonitorPageTargetError
- type MonitorPageTargetErrorType
- type MonitorPageTargetRequest
- type MonitorPageTargetRequestType
- type MonitorPageTargetType
- type MonitorPauseReason
- type MonitorPaymentRequired
- type MonitorRun
- type MonitorRunCost
- type MonitorRunCounts
- type MonitorRunError
- type MonitorRunFailureCode
- type MonitorRunId
- type MonitorRunInProgressError
- type MonitorRunInProgressErrorErrorCode
- type MonitorRunInProgressErrorErrorType
- type MonitorRunList
- type MonitorRunListObject
- type MonitorRunObject
- type MonitorRunStatus
- type MonitorRunTrigger
- type MonitorRunUsage
- type MonitorRunWindow
- type MonitorSchedule
- func (t MonitorSchedule) AsMonitorCronSchedule() (MonitorCronSchedule, error)
- func (t MonitorSchedule) AsMonitorIntervalSchedule() (MonitorIntervalSchedule, error)
- func (t MonitorSchedule) Discriminator() (string, error)
- func (t *MonitorSchedule) FromMonitorCronSchedule(v MonitorCronSchedule) error
- func (t *MonitorSchedule) FromMonitorIntervalSchedule(v MonitorIntervalSchedule) error
- func (t MonitorSchedule) MarshalJSON() ([]byte, error)
- func (t *MonitorSchedule) MergeMonitorCronSchedule(v MonitorCronSchedule) error
- func (t *MonitorSchedule) MergeMonitorIntervalSchedule(v MonitorIntervalSchedule) error
- func (t *MonitorSchedule) UnmarshalJSON(b []byte) error
- func (t MonitorSchedule) ValueByDiscriminator() (interface{}, error)
- type MonitorScheduleRequest
- func (t MonitorScheduleRequest) AsMonitorCronScheduleRequest() (MonitorCronScheduleRequest, error)
- func (t MonitorScheduleRequest) AsMonitorIntervalScheduleRequest() (MonitorIntervalScheduleRequest, error)
- func (t MonitorScheduleRequest) Discriminator() (string, error)
- func (t *MonitorScheduleRequest) FromMonitorCronScheduleRequest(v MonitorCronScheduleRequest) error
- func (t *MonitorScheduleRequest) FromMonitorIntervalScheduleRequest(v MonitorIntervalScheduleRequest) error
- func (t MonitorScheduleRequest) MarshalJSON() ([]byte, error)
- func (t *MonitorScheduleRequest) MergeMonitorCronScheduleRequest(v MonitorCronScheduleRequest) error
- func (t *MonitorScheduleRequest) MergeMonitorIntervalScheduleRequest(v MonitorIntervalScheduleRequest) error
- func (t *MonitorScheduleRequest) UnmarshalJSON(b []byte) error
- func (t MonitorScheduleRequest) ValueByDiscriminator() (interface{}, error)
- type MonitorSearchFilters
- type MonitorSearchFiltersRequest
- type MonitorSearchResultChange
- type MonitorSearchResultChangeType
- type MonitorSearchTarget
- type MonitorSearchTargetRequest
- type MonitorSearchTargetRequestType
- type MonitorSearchTargetType
- type MonitorStatus
- type MonitorTarget
- func (t MonitorTarget) AsMonitorAgentTarget() (MonitorAgentTarget, error)
- func (t MonitorTarget) AsMonitorPageTarget() (MonitorPageTarget, error)
- func (t MonitorTarget) AsMonitorSearchTarget() (MonitorSearchTarget, error)
- func (t MonitorTarget) Discriminator() (string, error)
- func (t *MonitorTarget) FromMonitorAgentTarget(v MonitorAgentTarget) error
- func (t *MonitorTarget) FromMonitorPageTarget(v MonitorPageTarget) error
- func (t *MonitorTarget) FromMonitorSearchTarget(v MonitorSearchTarget) error
- func (t MonitorTarget) MarshalJSON() ([]byte, error)
- func (t *MonitorTarget) MergeMonitorAgentTarget(v MonitorAgentTarget) error
- func (t *MonitorTarget) MergeMonitorPageTarget(v MonitorPageTarget) error
- func (t *MonitorTarget) MergeMonitorSearchTarget(v MonitorSearchTarget) error
- func (t *MonitorTarget) UnmarshalJSON(b []byte) error
- func (t MonitorTarget) ValueByDiscriminator() (interface{}, error)
- type MonitorTargetError
- func (t MonitorTargetError) AsMonitorPageTargetError() (MonitorPageTargetError, error)
- func (t MonitorTargetError) Discriminator() (string, error)
- func (t *MonitorTargetError) FromMonitorPageTargetError(v MonitorPageTargetError) error
- func (t MonitorTargetError) MarshalJSON() ([]byte, error)
- func (t *MonitorTargetError) MergeMonitorPageTargetError(v MonitorPageTargetError) error
- func (t *MonitorTargetError) UnmarshalJSON(b []byte) error
- func (t MonitorTargetError) ValueByDiscriminator() (interface{}, error)
- type MonitorTargetErrorCode
- type MonitorTargetRequest
- func (t MonitorTargetRequest) AsMonitorAgentTargetRequest() (MonitorAgentTargetRequest, error)
- func (t MonitorTargetRequest) AsMonitorPageTargetRequest() (MonitorPageTargetRequest, error)
- func (t MonitorTargetRequest) AsMonitorSearchTargetRequest() (MonitorSearchTargetRequest, error)
- func (t MonitorTargetRequest) Discriminator() (string, error)
- func (t *MonitorTargetRequest) FromMonitorAgentTargetRequest(v MonitorAgentTargetRequest) error
- func (t *MonitorTargetRequest) FromMonitorPageTargetRequest(v MonitorPageTargetRequest) error
- func (t *MonitorTargetRequest) FromMonitorSearchTargetRequest(v MonitorSearchTargetRequest) error
- func (t MonitorTargetRequest) MarshalJSON() ([]byte, error)
- func (t *MonitorTargetRequest) MergeMonitorAgentTargetRequest(v MonitorAgentTargetRequest) error
- func (t *MonitorTargetRequest) MergeMonitorPageTargetRequest(v MonitorPageTargetRequest) error
- func (t *MonitorTargetRequest) MergeMonitorSearchTargetRequest(v MonitorSearchTargetRequest) error
- func (t *MonitorTargetRequest) UnmarshalJSON(b []byte) error
- func (t MonitorTargetRequest) ValueByDiscriminator() (interface{}, error)
- type MonitorTargets
- type MonitorTimestamp
- type MonitorTooManyRequests
- type MonitorUnauthorized
- type MonitorUnavailable
- type MonitorWebhook
- type MonitorWebhookRequest
- type MonitorWebhookSecret
- type MonitorWebhookTest
- type MonitorWebhookTestError
- type MonitorWebhookTestObject
- type NamespaceTool
- type NamespaceToolDef
- type NamespaceToolDefType
- type NamespaceToolType
- type NoulAnswer
- type NoulAnswerType
- type NoulCriteria
- type NoulCriteriaFalse0
- type NoulCriteriaFalse1
- type NoulCriteriaFalse2
- type NoulCriteriaTrue0
- type NoulCriteriaTrue1
- type NoulCriteriaTrue2
- type NoulCriteria_False
- func (t NoulCriteria_False) AsNoulCriteriaFalse0() (NoulCriteriaFalse0, error)
- func (t NoulCriteria_False) AsNoulCriteriaFalse1() (NoulCriteriaFalse1, error)
- func (t NoulCriteria_False) AsNoulCriteriaFalse2() (NoulCriteriaFalse2, error)
- func (t *NoulCriteria_False) FromNoulCriteriaFalse0(v NoulCriteriaFalse0) error
- func (t *NoulCriteria_False) FromNoulCriteriaFalse1(v NoulCriteriaFalse1) error
- func (t *NoulCriteria_False) FromNoulCriteriaFalse2(v NoulCriteriaFalse2) error
- func (t NoulCriteria_False) MarshalJSON() ([]byte, error)
- func (t *NoulCriteria_False) MergeNoulCriteriaFalse0(v NoulCriteriaFalse0) error
- func (t *NoulCriteria_False) MergeNoulCriteriaFalse1(v NoulCriteriaFalse1) error
- func (t *NoulCriteria_False) MergeNoulCriteriaFalse2(v NoulCriteriaFalse2) error
- func (t *NoulCriteria_False) UnmarshalJSON(b []byte) error
- type NoulCriteria_True
- func (t NoulCriteria_True) AsNoulCriteriaTrue0() (NoulCriteriaTrue0, error)
- func (t NoulCriteria_True) AsNoulCriteriaTrue1() (NoulCriteriaTrue1, error)
- func (t NoulCriteria_True) AsNoulCriteriaTrue2() (NoulCriteriaTrue2, error)
- func (t *NoulCriteria_True) FromNoulCriteriaTrue0(v NoulCriteriaTrue0) error
- func (t *NoulCriteria_True) FromNoulCriteriaTrue1(v NoulCriteriaTrue1) error
- func (t *NoulCriteria_True) FromNoulCriteriaTrue2(v NoulCriteriaTrue2) error
- func (t NoulCriteria_True) MarshalJSON() ([]byte, error)
- func (t *NoulCriteria_True) MergeNoulCriteriaTrue0(v NoulCriteriaTrue0) error
- func (t *NoulCriteria_True) MergeNoulCriteriaTrue1(v NoulCriteriaTrue1) error
- func (t *NoulCriteria_True) MergeNoulCriteriaTrue2(v NoulCriteriaTrue2) error
- func (t *NoulCriteria_True) UnmarshalJSON(b []byte) error
- type NoulQuestion
- type NoulQuestionInstructions0
- type NoulQuestionInstructions1
- type NoulQuestionInstructions2
- type NoulQuestionType
- type NoulQuestion_Instructions
- func (t NoulQuestion_Instructions) AsNoulQuestionInstructions0() (NoulQuestionInstructions0, error)
- func (t NoulQuestion_Instructions) AsNoulQuestionInstructions1() (NoulQuestionInstructions1, error)
- func (t NoulQuestion_Instructions) AsNoulQuestionInstructions2() (NoulQuestionInstructions2, error)
- func (t *NoulQuestion_Instructions) FromNoulQuestionInstructions0(v NoulQuestionInstructions0) error
- func (t *NoulQuestion_Instructions) FromNoulQuestionInstructions1(v NoulQuestionInstructions1) error
- func (t *NoulQuestion_Instructions) FromNoulQuestionInstructions2(v NoulQuestionInstructions2) error
- func (t NoulQuestion_Instructions) MarshalJSON() ([]byte, error)
- func (t *NoulQuestion_Instructions) MergeNoulQuestionInstructions0(v NoulQuestionInstructions0) error
- func (t *NoulQuestion_Instructions) MergeNoulQuestionInstructions1(v NoulQuestionInstructions1) error
- func (t *NoulQuestion_Instructions) MergeNoulQuestionInstructions2(v NoulQuestionInstructions2) error
- func (t *NoulQuestion_Instructions) UnmarshalJSON(b []byte) error
- type OrchestratorChatChatCompletionAllowedTools
- type OrchestratorChatChatCompletionAllowedToolsChoice
- type OrchestratorChatChatCompletionAllowedToolsChoiceType
- type OrchestratorChatChatCompletionAllowedToolsMode
- type OrchestratorChatChatCompletionMessageCustomToolCall
- type OrchestratorChatChatCompletionMessageCustomToolCallType
- type OrchestratorChatChatCompletionMessageToolCall
- type OrchestratorChatChatCompletionMessageToolCallChunk
- type OrchestratorChatChatCompletionMessageToolCallChunkType
- type OrchestratorChatChatCompletionMessageToolCallType
- type OrchestratorChatChatCompletionMessageToolCalls
- type OrchestratorChatChatCompletionMessageToolCalls_Item
- func (t OrchestratorChatChatCompletionMessageToolCalls_Item) AsOrchestratorChatChatCompletionMessageCustomToolCall() (OrchestratorChatChatCompletionMessageCustomToolCall, error)
- func (t OrchestratorChatChatCompletionMessageToolCalls_Item) AsOrchestratorChatChatCompletionMessageToolCall() (OrchestratorChatChatCompletionMessageToolCall, error)
- func (t OrchestratorChatChatCompletionMessageToolCalls_Item) Discriminator() (string, error)
- func (t *OrchestratorChatChatCompletionMessageToolCalls_Item) FromOrchestratorChatChatCompletionMessageCustomToolCall(v OrchestratorChatChatCompletionMessageCustomToolCall) error
- func (t *OrchestratorChatChatCompletionMessageToolCalls_Item) FromOrchestratorChatChatCompletionMessageToolCall(v OrchestratorChatChatCompletionMessageToolCall) error
- func (t OrchestratorChatChatCompletionMessageToolCalls_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionMessageToolCalls_Item) MergeOrchestratorChatChatCompletionMessageCustomToolCall(v OrchestratorChatChatCompletionMessageCustomToolCall) error
- func (t *OrchestratorChatChatCompletionMessageToolCalls_Item) MergeOrchestratorChatChatCompletionMessageToolCall(v OrchestratorChatChatCompletionMessageToolCall) error
- func (t *OrchestratorChatChatCompletionMessageToolCalls_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorChatChatCompletionMessageToolCalls_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorChatChatCompletionModeration
- type OrchestratorChatChatCompletionModerationError
- type OrchestratorChatChatCompletionModerationErrorType
- type OrchestratorChatChatCompletionModerationResults
- type OrchestratorChatChatCompletionModerationResultsType
- type OrchestratorChatChatCompletionModeration_Input
- func (t OrchestratorChatChatCompletionModeration_Input) AsOrchestratorChatChatCompletionModerationError() (OrchestratorChatChatCompletionModerationError, error)
- func (t OrchestratorChatChatCompletionModeration_Input) AsOrchestratorChatChatCompletionModerationResults() (OrchestratorChatChatCompletionModerationResults, error)
- func (t OrchestratorChatChatCompletionModeration_Input) Discriminator() (string, error)
- func (t *OrchestratorChatChatCompletionModeration_Input) FromOrchestratorChatChatCompletionModerationError(v OrchestratorChatChatCompletionModerationError) error
- func (t *OrchestratorChatChatCompletionModeration_Input) FromOrchestratorChatChatCompletionModerationResults(v OrchestratorChatChatCompletionModerationResults) error
- func (t OrchestratorChatChatCompletionModeration_Input) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionModeration_Input) MergeOrchestratorChatChatCompletionModerationError(v OrchestratorChatChatCompletionModerationError) error
- func (t *OrchestratorChatChatCompletionModeration_Input) MergeOrchestratorChatChatCompletionModerationResults(v OrchestratorChatChatCompletionModerationResults) error
- func (t *OrchestratorChatChatCompletionModeration_Input) UnmarshalJSON(b []byte) error
- func (t OrchestratorChatChatCompletionModeration_Input) ValueByDiscriminator() (interface{}, error)
- type OrchestratorChatChatCompletionModeration_Output
- func (t OrchestratorChatChatCompletionModeration_Output) AsOrchestratorChatChatCompletionModerationError() (OrchestratorChatChatCompletionModerationError, error)
- func (t OrchestratorChatChatCompletionModeration_Output) AsOrchestratorChatChatCompletionModerationResults() (OrchestratorChatChatCompletionModerationResults, error)
- func (t OrchestratorChatChatCompletionModeration_Output) Discriminator() (string, error)
- func (t *OrchestratorChatChatCompletionModeration_Output) FromOrchestratorChatChatCompletionModerationError(v OrchestratorChatChatCompletionModerationError) error
- func (t *OrchestratorChatChatCompletionModeration_Output) FromOrchestratorChatChatCompletionModerationResults(v OrchestratorChatChatCompletionModerationResults) error
- func (t OrchestratorChatChatCompletionModeration_Output) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionModeration_Output) MergeOrchestratorChatChatCompletionModerationError(v OrchestratorChatChatCompletionModerationError) error
- func (t *OrchestratorChatChatCompletionModeration_Output) MergeOrchestratorChatChatCompletionModerationResults(v OrchestratorChatChatCompletionModerationResults) error
- func (t *OrchestratorChatChatCompletionModeration_Output) UnmarshalJSON(b []byte) error
- func (t OrchestratorChatChatCompletionModeration_Output) ValueByDiscriminator() (interface{}, error)
- type OrchestratorChatChatCompletionNamedToolChoice
- type OrchestratorChatChatCompletionNamedToolChoiceCustom
- type OrchestratorChatChatCompletionNamedToolChoiceCustomType
- type OrchestratorChatChatCompletionNamedToolChoiceType
- type OrchestratorChatChatCompletionRequestAssistantMessage
- type OrchestratorChatChatCompletionRequestAssistantMessageContent0
- type OrchestratorChatChatCompletionRequestAssistantMessageContent1
- type OrchestratorChatChatCompletionRequestAssistantMessageContentPart
- func (t OrchestratorChatChatCompletionRequestAssistantMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartRefusal() (OrchestratorChatChatCompletionRequestMessageContentPartRefusal, error)
- func (t OrchestratorChatChatCompletionRequestAssistantMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText() (OrchestratorChatChatCompletionRequestMessageContentPartText, error)
- func (t OrchestratorChatChatCompletionRequestAssistantMessageContentPart) Discriminator() (string, error)
- func (t *OrchestratorChatChatCompletionRequestAssistantMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartRefusal(v OrchestratorChatChatCompletionRequestMessageContentPartRefusal) error
- func (t *OrchestratorChatChatCompletionRequestAssistantMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
- func (t OrchestratorChatChatCompletionRequestAssistantMessageContentPart) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionRequestAssistantMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartRefusal(v OrchestratorChatChatCompletionRequestMessageContentPartRefusal) error
- func (t *OrchestratorChatChatCompletionRequestAssistantMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
- func (t *OrchestratorChatChatCompletionRequestAssistantMessageContentPart) UnmarshalJSON(b []byte) error
- func (t OrchestratorChatChatCompletionRequestAssistantMessageContentPart) ValueByDiscriminator() (interface{}, error)
- type OrchestratorChatChatCompletionRequestAssistantMessageRole
- type OrchestratorChatChatCompletionRequestDeveloperMessage
- type OrchestratorChatChatCompletionRequestDeveloperMessageContent0
- type OrchestratorChatChatCompletionRequestDeveloperMessageContent1
- type OrchestratorChatChatCompletionRequestDeveloperMessageRole
- type OrchestratorChatChatCompletionRequestDeveloperMessage_Content
- func (t OrchestratorChatChatCompletionRequestDeveloperMessage_Content) AsOrchestratorChatChatCompletionRequestDeveloperMessageContent0() (OrchestratorChatChatCompletionRequestDeveloperMessageContent0, error)
- func (t OrchestratorChatChatCompletionRequestDeveloperMessage_Content) AsOrchestratorChatChatCompletionRequestDeveloperMessageContent1() (OrchestratorChatChatCompletionRequestDeveloperMessageContent1, error)
- func (t *OrchestratorChatChatCompletionRequestDeveloperMessage_Content) FromOrchestratorChatChatCompletionRequestDeveloperMessageContent0(v OrchestratorChatChatCompletionRequestDeveloperMessageContent0) error
- func (t *OrchestratorChatChatCompletionRequestDeveloperMessage_Content) FromOrchestratorChatChatCompletionRequestDeveloperMessageContent1(v OrchestratorChatChatCompletionRequestDeveloperMessageContent1) error
- func (t OrchestratorChatChatCompletionRequestDeveloperMessage_Content) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionRequestDeveloperMessage_Content) MergeOrchestratorChatChatCompletionRequestDeveloperMessageContent0(v OrchestratorChatChatCompletionRequestDeveloperMessageContent0) error
- func (t *OrchestratorChatChatCompletionRequestDeveloperMessage_Content) MergeOrchestratorChatChatCompletionRequestDeveloperMessageContent1(v OrchestratorChatChatCompletionRequestDeveloperMessageContent1) error
- func (t *OrchestratorChatChatCompletionRequestDeveloperMessage_Content) UnmarshalJSON(b []byte) error
- type OrchestratorChatChatCompletionRequestFunctionMessagedeprecated
- type OrchestratorChatChatCompletionRequestFunctionMessageRole
- type OrchestratorChatChatCompletionRequestMessage
- func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestAssistantMessage() (OrchestratorChatChatCompletionRequestAssistantMessage, error)
- func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestDeveloperMessage() (OrchestratorChatChatCompletionRequestDeveloperMessage, error)
- func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestFunctionMessage() (OrchestratorChatChatCompletionRequestFunctionMessage, error)
- func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestSystemMessage() (OrchestratorChatChatCompletionRequestSystemMessage, error)
- func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestToolMessage() (OrchestratorChatChatCompletionRequestToolMessage, error)
- func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestUserMessage() (OrchestratorChatChatCompletionRequestUserMessage, error)
- func (t OrchestratorChatChatCompletionRequestMessage) Discriminator() (string, error)
- func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestAssistantMessage(v OrchestratorChatChatCompletionRequestAssistantMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestDeveloperMessage(v OrchestratorChatChatCompletionRequestDeveloperMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestFunctionMessage(v OrchestratorChatChatCompletionRequestFunctionMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestSystemMessage(v OrchestratorChatChatCompletionRequestSystemMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestToolMessage(v OrchestratorChatChatCompletionRequestToolMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestUserMessage(v OrchestratorChatChatCompletionRequestUserMessage) error
- func (t OrchestratorChatChatCompletionRequestMessage) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestAssistantMessage(v OrchestratorChatChatCompletionRequestAssistantMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestDeveloperMessage(v OrchestratorChatChatCompletionRequestDeveloperMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestFunctionMessage(v OrchestratorChatChatCompletionRequestFunctionMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestSystemMessage(v OrchestratorChatChatCompletionRequestSystemMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestToolMessage(v OrchestratorChatChatCompletionRequestToolMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestUserMessage(v OrchestratorChatChatCompletionRequestUserMessage) error
- func (t *OrchestratorChatChatCompletionRequestMessage) UnmarshalJSON(b []byte) error
- func (t OrchestratorChatChatCompletionRequestMessage) ValueByDiscriminator() (interface{}, error)
- type OrchestratorChatChatCompletionRequestMessageContentPartAudio
- type OrchestratorChatChatCompletionRequestMessageContentPartAudioInputAudioFormat
- type OrchestratorChatChatCompletionRequestMessageContentPartAudioType
- type OrchestratorChatChatCompletionRequestMessageContentPartFile
- type OrchestratorChatChatCompletionRequestMessageContentPartFileType
- type OrchestratorChatChatCompletionRequestMessageContentPartImage
- type OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetail
- type OrchestratorChatChatCompletionRequestMessageContentPartImageType
- type OrchestratorChatChatCompletionRequestMessageContentPartRefusal
- type OrchestratorChatChatCompletionRequestMessageContentPartRefusalType
- type OrchestratorChatChatCompletionRequestMessageContentPartText
- type OrchestratorChatChatCompletionRequestMessageContentPartTextType
- type OrchestratorChatChatCompletionRequestSystemMessage
- type OrchestratorChatChatCompletionRequestSystemMessageContent0
- type OrchestratorChatChatCompletionRequestSystemMessageContent1
- type OrchestratorChatChatCompletionRequestSystemMessageContentPart
- func (t OrchestratorChatChatCompletionRequestSystemMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText() (OrchestratorChatChatCompletionRequestMessageContentPartText, error)
- func (t *OrchestratorChatChatCompletionRequestSystemMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
- func (t OrchestratorChatChatCompletionRequestSystemMessageContentPart) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionRequestSystemMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
- func (t *OrchestratorChatChatCompletionRequestSystemMessageContentPart) UnmarshalJSON(b []byte) error
- type OrchestratorChatChatCompletionRequestSystemMessageRole
- type OrchestratorChatChatCompletionRequestSystemMessage_Content
- func (t OrchestratorChatChatCompletionRequestSystemMessage_Content) AsOrchestratorChatChatCompletionRequestSystemMessageContent0() (OrchestratorChatChatCompletionRequestSystemMessageContent0, error)
- func (t OrchestratorChatChatCompletionRequestSystemMessage_Content) AsOrchestratorChatChatCompletionRequestSystemMessageContent1() (OrchestratorChatChatCompletionRequestSystemMessageContent1, error)
- func (t *OrchestratorChatChatCompletionRequestSystemMessage_Content) FromOrchestratorChatChatCompletionRequestSystemMessageContent0(v OrchestratorChatChatCompletionRequestSystemMessageContent0) error
- func (t *OrchestratorChatChatCompletionRequestSystemMessage_Content) FromOrchestratorChatChatCompletionRequestSystemMessageContent1(v OrchestratorChatChatCompletionRequestSystemMessageContent1) error
- func (t OrchestratorChatChatCompletionRequestSystemMessage_Content) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionRequestSystemMessage_Content) MergeOrchestratorChatChatCompletionRequestSystemMessageContent0(v OrchestratorChatChatCompletionRequestSystemMessageContent0) error
- func (t *OrchestratorChatChatCompletionRequestSystemMessage_Content) MergeOrchestratorChatChatCompletionRequestSystemMessageContent1(v OrchestratorChatChatCompletionRequestSystemMessageContent1) error
- func (t *OrchestratorChatChatCompletionRequestSystemMessage_Content) UnmarshalJSON(b []byte) error
- type OrchestratorChatChatCompletionRequestToolMessage
- type OrchestratorChatChatCompletionRequestToolMessageContent0
- type OrchestratorChatChatCompletionRequestToolMessageContent1
- type OrchestratorChatChatCompletionRequestToolMessageContentPart
- func (t OrchestratorChatChatCompletionRequestToolMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText() (OrchestratorChatChatCompletionRequestMessageContentPartText, error)
- func (t *OrchestratorChatChatCompletionRequestToolMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
- func (t OrchestratorChatChatCompletionRequestToolMessageContentPart) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionRequestToolMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
- func (t *OrchestratorChatChatCompletionRequestToolMessageContentPart) UnmarshalJSON(b []byte) error
- type OrchestratorChatChatCompletionRequestToolMessageRole
- type OrchestratorChatChatCompletionRequestToolMessage_Content
- func (t OrchestratorChatChatCompletionRequestToolMessage_Content) AsOrchestratorChatChatCompletionRequestToolMessageContent0() (OrchestratorChatChatCompletionRequestToolMessageContent0, error)
- func (t OrchestratorChatChatCompletionRequestToolMessage_Content) AsOrchestratorChatChatCompletionRequestToolMessageContent1() (OrchestratorChatChatCompletionRequestToolMessageContent1, error)
- func (t *OrchestratorChatChatCompletionRequestToolMessage_Content) FromOrchestratorChatChatCompletionRequestToolMessageContent0(v OrchestratorChatChatCompletionRequestToolMessageContent0) error
- func (t *OrchestratorChatChatCompletionRequestToolMessage_Content) FromOrchestratorChatChatCompletionRequestToolMessageContent1(v OrchestratorChatChatCompletionRequestToolMessageContent1) error
- func (t OrchestratorChatChatCompletionRequestToolMessage_Content) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionRequestToolMessage_Content) MergeOrchestratorChatChatCompletionRequestToolMessageContent0(v OrchestratorChatChatCompletionRequestToolMessageContent0) error
- func (t *OrchestratorChatChatCompletionRequestToolMessage_Content) MergeOrchestratorChatChatCompletionRequestToolMessageContent1(v OrchestratorChatChatCompletionRequestToolMessageContent1) error
- func (t *OrchestratorChatChatCompletionRequestToolMessage_Content) UnmarshalJSON(b []byte) error
- type OrchestratorChatChatCompletionRequestUserMessage
- type OrchestratorChatChatCompletionRequestUserMessageContent0
- type OrchestratorChatChatCompletionRequestUserMessageContent1
- type OrchestratorChatChatCompletionRequestUserMessageContentPart
- func (t OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartAudio() (OrchestratorChatChatCompletionRequestMessageContentPartAudio, error)
- func (t OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartFile() (OrchestratorChatChatCompletionRequestMessageContentPartFile, error)
- func (t OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartImage() (OrchestratorChatChatCompletionRequestMessageContentPartImage, error)
- func (t OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText() (OrchestratorChatChatCompletionRequestMessageContentPartText, error)
- func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartAudio(v OrchestratorChatChatCompletionRequestMessageContentPartAudio) error
- func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartFile(v OrchestratorChatChatCompletionRequestMessageContentPartFile) error
- func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartImage(v OrchestratorChatChatCompletionRequestMessageContentPartImage) error
- func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
- func (t OrchestratorChatChatCompletionRequestUserMessageContentPart) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartAudio(v OrchestratorChatChatCompletionRequestMessageContentPartAudio) error
- func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartFile(v OrchestratorChatChatCompletionRequestMessageContentPartFile) error
- func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartImage(v OrchestratorChatChatCompletionRequestMessageContentPartImage) error
- func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
- func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) UnmarshalJSON(b []byte) error
- type OrchestratorChatChatCompletionRequestUserMessageRole
- type OrchestratorChatChatCompletionRequestUserMessage_Content
- func (t OrchestratorChatChatCompletionRequestUserMessage_Content) AsOrchestratorChatChatCompletionRequestUserMessageContent0() (OrchestratorChatChatCompletionRequestUserMessageContent0, error)
- func (t OrchestratorChatChatCompletionRequestUserMessage_Content) AsOrchestratorChatChatCompletionRequestUserMessageContent1() (OrchestratorChatChatCompletionRequestUserMessageContent1, error)
- func (t *OrchestratorChatChatCompletionRequestUserMessage_Content) FromOrchestratorChatChatCompletionRequestUserMessageContent0(v OrchestratorChatChatCompletionRequestUserMessageContent0) error
- func (t *OrchestratorChatChatCompletionRequestUserMessage_Content) FromOrchestratorChatChatCompletionRequestUserMessageContent1(v OrchestratorChatChatCompletionRequestUserMessageContent1) error
- func (t OrchestratorChatChatCompletionRequestUserMessage_Content) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionRequestUserMessage_Content) MergeOrchestratorChatChatCompletionRequestUserMessageContent0(v OrchestratorChatChatCompletionRequestUserMessageContent0) error
- func (t *OrchestratorChatChatCompletionRequestUserMessage_Content) MergeOrchestratorChatChatCompletionRequestUserMessageContent1(v OrchestratorChatChatCompletionRequestUserMessageContent1) error
- func (t *OrchestratorChatChatCompletionRequestUserMessage_Content) UnmarshalJSON(b []byte) error
- type OrchestratorChatChatCompletionResponseMessage
- type OrchestratorChatChatCompletionResponseMessageAnnotationsType
- type OrchestratorChatChatCompletionResponseMessageRole
- type OrchestratorChatChatCompletionStreamOptions
- type OrchestratorChatChatCompletionStreamResponseDelta
- type OrchestratorChatChatCompletionStreamResponseDeltaRole
- type OrchestratorChatChatCompletionTokenLogprob
- type OrchestratorChatChatCompletionTool
- type OrchestratorChatChatCompletionToolChoiceOption
- func (t OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionAllowedToolsChoice() (OrchestratorChatChatCompletionAllowedToolsChoice, error)
- func (t OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionNamedToolChoice() (OrchestratorChatChatCompletionNamedToolChoice, error)
- func (t OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionNamedToolChoiceCustom() (OrchestratorChatChatCompletionNamedToolChoiceCustom, error)
- func (t OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionToolChoiceOption0() (OrchestratorChatChatCompletionToolChoiceOption0, error)
- func (t *OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionAllowedToolsChoice(v OrchestratorChatChatCompletionAllowedToolsChoice) error
- func (t *OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionNamedToolChoice(v OrchestratorChatChatCompletionNamedToolChoice) error
- func (t *OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionNamedToolChoiceCustom(v OrchestratorChatChatCompletionNamedToolChoiceCustom) error
- func (t *OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionToolChoiceOption0(v OrchestratorChatChatCompletionToolChoiceOption0) error
- func (t OrchestratorChatChatCompletionToolChoiceOption) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionAllowedToolsChoice(v OrchestratorChatChatCompletionAllowedToolsChoice) error
- func (t *OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionNamedToolChoice(v OrchestratorChatChatCompletionNamedToolChoice) error
- func (t *OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionNamedToolChoiceCustom(v OrchestratorChatChatCompletionNamedToolChoiceCustom) error
- func (t *OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionToolChoiceOption0(v OrchestratorChatChatCompletionToolChoiceOption0) error
- func (t *OrchestratorChatChatCompletionToolChoiceOption) UnmarshalJSON(b []byte) error
- type OrchestratorChatChatCompletionToolChoiceOption0
- type OrchestratorChatChatCompletionToolType
- type OrchestratorChatCompletionUsage
- type OrchestratorChatCreateChatCompletionRequest
- type OrchestratorChatCreateChatCompletionRequestRouting1
- type OrchestratorChatCreateChatCompletionRequest_ResponseFormat
- func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) AsOrchestratorChatResponseFormatJsonObject() (OrchestratorChatResponseFormatJsonObject, error)
- func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) AsOrchestratorChatResponseFormatJsonSchema() (OrchestratorChatResponseFormatJsonSchema, error)
- func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) AsOrchestratorChatResponseFormatText() (OrchestratorChatResponseFormatText, error)
- func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) Discriminator() (string, error)
- func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) FromOrchestratorChatResponseFormatJsonObject(v OrchestratorChatResponseFormatJsonObject) error
- func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) FromOrchestratorChatResponseFormatJsonSchema(v OrchestratorChatResponseFormatJsonSchema) error
- func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) FromOrchestratorChatResponseFormatText(v OrchestratorChatResponseFormatText) error
- func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MergeOrchestratorChatResponseFormatJsonObject(v OrchestratorChatResponseFormatJsonObject) error
- func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MergeOrchestratorChatResponseFormatJsonSchema(v OrchestratorChatResponseFormatJsonSchema) error
- func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MergeOrchestratorChatResponseFormatText(v OrchestratorChatResponseFormatText) error
- func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) UnmarshalJSON(b []byte) error
- func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) ValueByDiscriminator() (interface{}, error)
- type OrchestratorChatCreateChatCompletionRequest_Routing
- func (t OrchestratorChatCreateChatCompletionRequest_Routing) AsOrchestratorChatCreateChatCompletionRequestRouting1() (OrchestratorChatCreateChatCompletionRequestRouting1, error)
- func (t OrchestratorChatCreateChatCompletionRequest_Routing) AsOrchestratorRouting() (OrchestratorRouting, error)
- func (t *OrchestratorChatCreateChatCompletionRequest_Routing) FromOrchestratorChatCreateChatCompletionRequestRouting1(v OrchestratorChatCreateChatCompletionRequestRouting1) error
- func (t *OrchestratorChatCreateChatCompletionRequest_Routing) FromOrchestratorRouting(v OrchestratorRouting) error
- func (t OrchestratorChatCreateChatCompletionRequest_Routing) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatCreateChatCompletionRequest_Routing) MergeOrchestratorChatCreateChatCompletionRequestRouting1(v OrchestratorChatCreateChatCompletionRequestRouting1) error
- func (t *OrchestratorChatCreateChatCompletionRequest_Routing) MergeOrchestratorRouting(v OrchestratorRouting) error
- func (t *OrchestratorChatCreateChatCompletionRequest_Routing) UnmarshalJSON(b []byte) error
- type OrchestratorChatCreateChatCompletionRequest_Tools_Item
- func (t OrchestratorChatCreateChatCompletionRequest_Tools_Item) AsOrchestratorChatChatCompletionTool() (OrchestratorChatChatCompletionTool, error)
- func (t OrchestratorChatCreateChatCompletionRequest_Tools_Item) AsOrchestratorChatCustomToolChatCompletions() (OrchestratorChatCustomToolChatCompletions, error)
- func (t *OrchestratorChatCreateChatCompletionRequest_Tools_Item) FromOrchestratorChatChatCompletionTool(v OrchestratorChatChatCompletionTool) error
- func (t *OrchestratorChatCreateChatCompletionRequest_Tools_Item) FromOrchestratorChatCustomToolChatCompletions(v OrchestratorChatCustomToolChatCompletions) error
- func (t OrchestratorChatCreateChatCompletionRequest_Tools_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatCreateChatCompletionRequest_Tools_Item) MergeOrchestratorChatChatCompletionTool(v OrchestratorChatChatCompletionTool) error
- func (t *OrchestratorChatCreateChatCompletionRequest_Tools_Item) MergeOrchestratorChatCustomToolChatCompletions(v OrchestratorChatCustomToolChatCompletions) error
- func (t *OrchestratorChatCreateChatCompletionRequest_Tools_Item) UnmarshalJSON(b []byte) error
- type OrchestratorChatCreateChatCompletionResponse
- type OrchestratorChatCreateChatCompletionResponseChoicesFinishReason
- type OrchestratorChatCreateChatCompletionResponseObject
- type OrchestratorChatCreateChatCompletionResponse_Moderation
- func (t OrchestratorChatCreateChatCompletionResponse_Moderation) AsOrchestratorChatChatCompletionModeration() (OrchestratorChatChatCompletionModeration, error)
- func (t *OrchestratorChatCreateChatCompletionResponse_Moderation) FromOrchestratorChatChatCompletionModeration(v OrchestratorChatChatCompletionModeration) error
- func (t OrchestratorChatCreateChatCompletionResponse_Moderation) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatCreateChatCompletionResponse_Moderation) MergeOrchestratorChatChatCompletionModeration(v OrchestratorChatChatCompletionModeration) error
- func (t *OrchestratorChatCreateChatCompletionResponse_Moderation) UnmarshalJSON(b []byte) error
- type OrchestratorChatCreateChatCompletionStreamResponse
- type OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason
- type OrchestratorChatCreateChatCompletionStreamResponseObject
- type OrchestratorChatCreateChatCompletionStreamResponse_Moderation
- func (t OrchestratorChatCreateChatCompletionStreamResponse_Moderation) AsOrchestratorChatChatCompletionModeration() (OrchestratorChatChatCompletionModeration, error)
- func (t *OrchestratorChatCreateChatCompletionStreamResponse_Moderation) FromOrchestratorChatChatCompletionModeration(v OrchestratorChatChatCompletionModeration) error
- func (t OrchestratorChatCreateChatCompletionStreamResponse_Moderation) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatCreateChatCompletionStreamResponse_Moderation) MergeOrchestratorChatChatCompletionModeration(v OrchestratorChatChatCompletionModeration) error
- func (t *OrchestratorChatCreateChatCompletionStreamResponse_Moderation) UnmarshalJSON(b []byte) error
- type OrchestratorChatCreateModelResponseProperties
- type OrchestratorChatCustomToolChatCompletions
- type OrchestratorChatCustomToolChatCompletionsCustomFormat0
- type OrchestratorChatCustomToolChatCompletionsCustomFormat0Type
- type OrchestratorChatCustomToolChatCompletionsCustomFormat1
- type OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax
- type OrchestratorChatCustomToolChatCompletionsCustomFormat1Type
- type OrchestratorChatCustomToolChatCompletionsType
- type OrchestratorChatCustomToolChatCompletions_Custom_Format
- func (t OrchestratorChatCustomToolChatCompletions_Custom_Format) AsOrchestratorChatCustomToolChatCompletionsCustomFormat0() (OrchestratorChatCustomToolChatCompletionsCustomFormat0, error)
- func (t OrchestratorChatCustomToolChatCompletions_Custom_Format) AsOrchestratorChatCustomToolChatCompletionsCustomFormat1() (OrchestratorChatCustomToolChatCompletionsCustomFormat1, error)
- func (t *OrchestratorChatCustomToolChatCompletions_Custom_Format) FromOrchestratorChatCustomToolChatCompletionsCustomFormat0(v OrchestratorChatCustomToolChatCompletionsCustomFormat0) error
- func (t *OrchestratorChatCustomToolChatCompletions_Custom_Format) FromOrchestratorChatCustomToolChatCompletionsCustomFormat1(v OrchestratorChatCustomToolChatCompletionsCustomFormat1) error
- func (t OrchestratorChatCustomToolChatCompletions_Custom_Format) MarshalJSON() ([]byte, error)
- func (t *OrchestratorChatCustomToolChatCompletions_Custom_Format) MergeOrchestratorChatCustomToolChatCompletionsCustomFormat0(v OrchestratorChatCustomToolChatCompletionsCustomFormat0) error
- func (t *OrchestratorChatCustomToolChatCompletions_Custom_Format) MergeOrchestratorChatCustomToolChatCompletionsCustomFormat1(v OrchestratorChatCustomToolChatCompletionsCustomFormat1) error
- func (t *OrchestratorChatCustomToolChatCompletions_Custom_Format) UnmarshalJSON(b []byte) error
- type OrchestratorChatError
- type OrchestratorChatErrorResponse
- type OrchestratorChatFunctionObject
- type OrchestratorChatFunctionParameters
- type OrchestratorChatMetadata
- type OrchestratorChatModel
- type OrchestratorChatModelIdsShared
- type OrchestratorChatModelList
- type OrchestratorChatModelPricing
- type OrchestratorChatModelPricingUnit
- type OrchestratorChatModelResponseProperties
- type OrchestratorChatModerationInputType
- type OrchestratorChatModerationResultBody
- type OrchestratorChatModerationResultBodyType
- type OrchestratorChatParallelToolCalls
- type OrchestratorChatPromptCacheBreakpointParam
- type OrchestratorChatPromptCacheBreakpointParamMode
- type OrchestratorChatPromptCacheModeEnum
- type OrchestratorChatPromptCacheOptionsParam
- type OrchestratorChatPromptCacheTTLEnum
- type OrchestratorChatReasoningEffort
- type OrchestratorChatResponseFormatJsonObject
- type OrchestratorChatResponseFormatJsonObjectType
- type OrchestratorChatResponseFormatJsonSchema
- type OrchestratorChatResponseFormatJsonSchemaSchema
- type OrchestratorChatResponseFormatJsonSchemaType
- type OrchestratorChatResponseFormatText
- type OrchestratorChatResponseFormatTextType
- type OrchestratorChatServiceTier
- type OrchestratorChatStopConfiguration
- type OrchestratorChatStopConfiguration0
- type OrchestratorChatStopConfiguration1
- type OrchestratorMessagesBase64DocumentSource
- type OrchestratorMessagesBase64DocumentSourceMediaType
- type OrchestratorMessagesBase64DocumentSourceType
- type OrchestratorMessagesBase64ImageSource
- type OrchestratorMessagesBase64ImageSourceMediaType
- type OrchestratorMessagesBase64ImageSourceType
- type OrchestratorMessagesCacheControl
- type OrchestratorMessagesCacheControlTtl
- type OrchestratorMessagesCacheControlType
- type OrchestratorMessagesCacheCreation
- type OrchestratorMessagesContentBlock
- func (t OrchestratorMessagesContentBlock) AsOrchestratorMessagesTextBlock() (OrchestratorMessagesTextBlock, error)
- func (t OrchestratorMessagesContentBlock) AsOrchestratorMessagesThinkingBlock() (OrchestratorMessagesThinkingBlock, error)
- func (t OrchestratorMessagesContentBlock) AsOrchestratorMessagesToolUseBlock() (OrchestratorMessagesToolUseBlock, error)
- func (t OrchestratorMessagesContentBlock) Discriminator() (string, error)
- func (t *OrchestratorMessagesContentBlock) FromOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
- func (t *OrchestratorMessagesContentBlock) FromOrchestratorMessagesThinkingBlock(v OrchestratorMessagesThinkingBlock) error
- func (t *OrchestratorMessagesContentBlock) FromOrchestratorMessagesToolUseBlock(v OrchestratorMessagesToolUseBlock) error
- func (t OrchestratorMessagesContentBlock) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesContentBlock) MergeOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
- func (t *OrchestratorMessagesContentBlock) MergeOrchestratorMessagesThinkingBlock(v OrchestratorMessagesThinkingBlock) error
- func (t *OrchestratorMessagesContentBlock) MergeOrchestratorMessagesToolUseBlock(v OrchestratorMessagesToolUseBlock) error
- func (t *OrchestratorMessagesContentBlock) UnmarshalJSON(b []byte) error
- func (t OrchestratorMessagesContentBlock) ValueByDiscriminator() (interface{}, error)
- type OrchestratorMessagesCreateMessageRequest
- type OrchestratorMessagesCreateMessageRequestRouting1
- type OrchestratorMessagesCreateMessageRequestServiceTier
- type OrchestratorMessagesCreateMessageRequestSpeed
- type OrchestratorMessagesCreateMessageRequestSystem0
- type OrchestratorMessagesCreateMessageRequestSystem1
- type OrchestratorMessagesCreateMessageRequest_Routing
- func (t OrchestratorMessagesCreateMessageRequest_Routing) AsOrchestratorMessagesCreateMessageRequestRouting1() (OrchestratorMessagesCreateMessageRequestRouting1, error)
- func (t OrchestratorMessagesCreateMessageRequest_Routing) AsOrchestratorRouting() (OrchestratorRouting, error)
- func (t *OrchestratorMessagesCreateMessageRequest_Routing) FromOrchestratorMessagesCreateMessageRequestRouting1(v OrchestratorMessagesCreateMessageRequestRouting1) error
- func (t *OrchestratorMessagesCreateMessageRequest_Routing) FromOrchestratorRouting(v OrchestratorRouting) error
- func (t OrchestratorMessagesCreateMessageRequest_Routing) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesCreateMessageRequest_Routing) MergeOrchestratorMessagesCreateMessageRequestRouting1(v OrchestratorMessagesCreateMessageRequestRouting1) error
- func (t *OrchestratorMessagesCreateMessageRequest_Routing) MergeOrchestratorRouting(v OrchestratorRouting) error
- func (t *OrchestratorMessagesCreateMessageRequest_Routing) UnmarshalJSON(b []byte) error
- type OrchestratorMessagesCreateMessageRequest_System
- func (t OrchestratorMessagesCreateMessageRequest_System) AsOrchestratorMessagesCreateMessageRequestSystem0() (OrchestratorMessagesCreateMessageRequestSystem0, error)
- func (t OrchestratorMessagesCreateMessageRequest_System) AsOrchestratorMessagesCreateMessageRequestSystem1() (OrchestratorMessagesCreateMessageRequestSystem1, error)
- func (t *OrchestratorMessagesCreateMessageRequest_System) FromOrchestratorMessagesCreateMessageRequestSystem0(v OrchestratorMessagesCreateMessageRequestSystem0) error
- func (t *OrchestratorMessagesCreateMessageRequest_System) FromOrchestratorMessagesCreateMessageRequestSystem1(v OrchestratorMessagesCreateMessageRequestSystem1) error
- func (t OrchestratorMessagesCreateMessageRequest_System) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesCreateMessageRequest_System) MergeOrchestratorMessagesCreateMessageRequestSystem0(v OrchestratorMessagesCreateMessageRequestSystem0) error
- func (t *OrchestratorMessagesCreateMessageRequest_System) MergeOrchestratorMessagesCreateMessageRequestSystem1(v OrchestratorMessagesCreateMessageRequestSystem1) error
- func (t *OrchestratorMessagesCreateMessageRequest_System) UnmarshalJSON(b []byte) error
- type OrchestratorMessagesDocumentBlock
- type OrchestratorMessagesDocumentBlockType
- type OrchestratorMessagesDocumentSource
- func (t OrchestratorMessagesDocumentSource) AsOrchestratorMessagesBase64DocumentSource() (OrchestratorMessagesBase64DocumentSource, error)
- func (t OrchestratorMessagesDocumentSource) AsOrchestratorMessagesPlainTextDocumentSource() (OrchestratorMessagesPlainTextDocumentSource, error)
- func (t OrchestratorMessagesDocumentSource) AsOrchestratorMessagesURLDocumentSource() (OrchestratorMessagesURLDocumentSource, error)
- func (t OrchestratorMessagesDocumentSource) Discriminator() (string, error)
- func (t *OrchestratorMessagesDocumentSource) FromOrchestratorMessagesBase64DocumentSource(v OrchestratorMessagesBase64DocumentSource) error
- func (t *OrchestratorMessagesDocumentSource) FromOrchestratorMessagesPlainTextDocumentSource(v OrchestratorMessagesPlainTextDocumentSource) error
- func (t *OrchestratorMessagesDocumentSource) FromOrchestratorMessagesURLDocumentSource(v OrchestratorMessagesURLDocumentSource) error
- func (t OrchestratorMessagesDocumentSource) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesDocumentSource) MergeOrchestratorMessagesBase64DocumentSource(v OrchestratorMessagesBase64DocumentSource) error
- func (t *OrchestratorMessagesDocumentSource) MergeOrchestratorMessagesPlainTextDocumentSource(v OrchestratorMessagesPlainTextDocumentSource) error
- func (t *OrchestratorMessagesDocumentSource) MergeOrchestratorMessagesURLDocumentSource(v OrchestratorMessagesURLDocumentSource) error
- func (t *OrchestratorMessagesDocumentSource) UnmarshalJSON(b []byte) error
- func (t OrchestratorMessagesDocumentSource) ValueByDiscriminator() (interface{}, error)
- type OrchestratorMessagesErrorObject
- type OrchestratorMessagesErrorObjectType
- type OrchestratorMessagesErrorResponse
- type OrchestratorMessagesErrorResponseType
- type OrchestratorMessagesImageBlock
- type OrchestratorMessagesImageBlockType
- type OrchestratorMessagesImageSource
- func (t OrchestratorMessagesImageSource) AsOrchestratorMessagesBase64ImageSource() (OrchestratorMessagesBase64ImageSource, error)
- func (t OrchestratorMessagesImageSource) AsOrchestratorMessagesURLImageSource() (OrchestratorMessagesURLImageSource, error)
- func (t OrchestratorMessagesImageSource) Discriminator() (string, error)
- func (t *OrchestratorMessagesImageSource) FromOrchestratorMessagesBase64ImageSource(v OrchestratorMessagesBase64ImageSource) error
- func (t *OrchestratorMessagesImageSource) FromOrchestratorMessagesURLImageSource(v OrchestratorMessagesURLImageSource) error
- func (t OrchestratorMessagesImageSource) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesImageSource) MergeOrchestratorMessagesBase64ImageSource(v OrchestratorMessagesBase64ImageSource) error
- func (t *OrchestratorMessagesImageSource) MergeOrchestratorMessagesURLImageSource(v OrchestratorMessagesURLImageSource) error
- func (t *OrchestratorMessagesImageSource) UnmarshalJSON(b []byte) error
- func (t OrchestratorMessagesImageSource) ValueByDiscriminator() (interface{}, error)
- type OrchestratorMessagesInputContentBlock
- func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesDocumentBlock() (OrchestratorMessagesDocumentBlock, error)
- func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesImageBlock() (OrchestratorMessagesImageBlock, error)
- func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesRedactedThinkingBlock() (OrchestratorMessagesRedactedThinkingBlock, error)
- func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesSearchResultBlock() (OrchestratorMessagesSearchResultBlock, error)
- func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesTextBlock() (OrchestratorMessagesTextBlock, error)
- func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesThinkingBlock() (OrchestratorMessagesThinkingBlock, error)
- func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesToolResultBlock() (OrchestratorMessagesToolResultBlock, error)
- func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesToolUseBlock() (OrchestratorMessagesToolUseBlock, error)
- func (t OrchestratorMessagesInputContentBlock) Discriminator() (string, error)
- func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesDocumentBlock(v OrchestratorMessagesDocumentBlock) error
- func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesImageBlock(v OrchestratorMessagesImageBlock) error
- func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesRedactedThinkingBlock(v OrchestratorMessagesRedactedThinkingBlock) error
- func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesSearchResultBlock(v OrchestratorMessagesSearchResultBlock) error
- func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
- func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesThinkingBlock(v OrchestratorMessagesThinkingBlock) error
- func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesToolResultBlock(v OrchestratorMessagesToolResultBlock) error
- func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesToolUseBlock(v OrchestratorMessagesToolUseBlock) error
- func (t OrchestratorMessagesInputContentBlock) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesDocumentBlock(v OrchestratorMessagesDocumentBlock) error
- func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesImageBlock(v OrchestratorMessagesImageBlock) error
- func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesRedactedThinkingBlock(v OrchestratorMessagesRedactedThinkingBlock) error
- func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesSearchResultBlock(v OrchestratorMessagesSearchResultBlock) error
- func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
- func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesThinkingBlock(v OrchestratorMessagesThinkingBlock) error
- func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesToolResultBlock(v OrchestratorMessagesToolResultBlock) error
- func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesToolUseBlock(v OrchestratorMessagesToolUseBlock) error
- func (t *OrchestratorMessagesInputContentBlock) UnmarshalJSON(b []byte) error
- func (t OrchestratorMessagesInputContentBlock) ValueByDiscriminator() (interface{}, error)
- type OrchestratorMessagesInputMessage
- type OrchestratorMessagesInputMessageContent0
- type OrchestratorMessagesInputMessageContent1
- type OrchestratorMessagesInputMessageRole
- type OrchestratorMessagesInputMessage_Content
- func (t OrchestratorMessagesInputMessage_Content) AsOrchestratorMessagesInputMessageContent0() (OrchestratorMessagesInputMessageContent0, error)
- func (t OrchestratorMessagesInputMessage_Content) AsOrchestratorMessagesInputMessageContent1() (OrchestratorMessagesInputMessageContent1, error)
- func (t *OrchestratorMessagesInputMessage_Content) FromOrchestratorMessagesInputMessageContent0(v OrchestratorMessagesInputMessageContent0) error
- func (t *OrchestratorMessagesInputMessage_Content) FromOrchestratorMessagesInputMessageContent1(v OrchestratorMessagesInputMessageContent1) error
- func (t OrchestratorMessagesInputMessage_Content) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesInputMessage_Content) MergeOrchestratorMessagesInputMessageContent0(v OrchestratorMessagesInputMessageContent0) error
- func (t *OrchestratorMessagesInputMessage_Content) MergeOrchestratorMessagesInputMessageContent1(v OrchestratorMessagesInputMessageContent1) error
- func (t *OrchestratorMessagesInputMessage_Content) UnmarshalJSON(b []byte) error
- type OrchestratorMessagesMessage
- type OrchestratorMessagesMessageRole
- type OrchestratorMessagesMessageStopReason
- type OrchestratorMessagesMessageType
- type OrchestratorMessagesOutputConfig
- type OrchestratorMessagesOutputConfigEffort
- type OrchestratorMessagesOutputConfigFormat
- type OrchestratorMessagesOutputConfigFormatType
- type OrchestratorMessagesPlainTextDocumentSource
- type OrchestratorMessagesPlainTextDocumentSourceMediaType
- type OrchestratorMessagesPlainTextDocumentSourceType
- type OrchestratorMessagesRedactedThinkingBlock
- type OrchestratorMessagesRedactedThinkingBlockType
- type OrchestratorMessagesRequestMetadata
- type OrchestratorMessagesSearchResultBlock
- type OrchestratorMessagesSearchResultBlockType
- type OrchestratorMessagesSearchResultTextBlock
- type OrchestratorMessagesSearchResultTextBlockType
- type OrchestratorMessagesTextBlock
- type OrchestratorMessagesTextBlockType
- type OrchestratorMessagesThinkingBlock
- type OrchestratorMessagesThinkingBlockType
- type OrchestratorMessagesThinkingConfig
- func (t OrchestratorMessagesThinkingConfig) AsOrchestratorMessagesThinkingConfigAdaptive() (OrchestratorMessagesThinkingConfigAdaptive, error)
- func (t OrchestratorMessagesThinkingConfig) AsOrchestratorMessagesThinkingConfigDisabled() (OrchestratorMessagesThinkingConfigDisabled, error)
- func (t OrchestratorMessagesThinkingConfig) AsOrchestratorMessagesThinkingConfigEnabled() (OrchestratorMessagesThinkingConfigEnabled, error)
- func (t OrchestratorMessagesThinkingConfig) Discriminator() (string, error)
- func (t *OrchestratorMessagesThinkingConfig) FromOrchestratorMessagesThinkingConfigAdaptive(v OrchestratorMessagesThinkingConfigAdaptive) error
- func (t *OrchestratorMessagesThinkingConfig) FromOrchestratorMessagesThinkingConfigDisabled(v OrchestratorMessagesThinkingConfigDisabled) error
- func (t *OrchestratorMessagesThinkingConfig) FromOrchestratorMessagesThinkingConfigEnabled(v OrchestratorMessagesThinkingConfigEnabled) error
- func (t OrchestratorMessagesThinkingConfig) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesThinkingConfig) MergeOrchestratorMessagesThinkingConfigAdaptive(v OrchestratorMessagesThinkingConfigAdaptive) error
- func (t *OrchestratorMessagesThinkingConfig) MergeOrchestratorMessagesThinkingConfigDisabled(v OrchestratorMessagesThinkingConfigDisabled) error
- func (t *OrchestratorMessagesThinkingConfig) MergeOrchestratorMessagesThinkingConfigEnabled(v OrchestratorMessagesThinkingConfigEnabled) error
- func (t *OrchestratorMessagesThinkingConfig) UnmarshalJSON(b []byte) error
- func (t OrchestratorMessagesThinkingConfig) ValueByDiscriminator() (interface{}, error)
- type OrchestratorMessagesThinkingConfigAdaptive
- type OrchestratorMessagesThinkingConfigAdaptiveType
- type OrchestratorMessagesThinkingConfigDisabled
- type OrchestratorMessagesThinkingConfigDisabledType
- type OrchestratorMessagesThinkingConfigEnabled
- type OrchestratorMessagesThinkingConfigEnabledType
- type OrchestratorMessagesThinkingDisplay
- type OrchestratorMessagesTool
- type OrchestratorMessagesToolChoice
- func (t OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceAny() (OrchestratorMessagesToolChoiceAny, error)
- func (t OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceAuto() (OrchestratorMessagesToolChoiceAuto, error)
- func (t OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceNone() (OrchestratorMessagesToolChoiceNone, error)
- func (t OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceTool() (OrchestratorMessagesToolChoiceTool, error)
- func (t OrchestratorMessagesToolChoice) Discriminator() (string, error)
- func (t *OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceAny(v OrchestratorMessagesToolChoiceAny) error
- func (t *OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceAuto(v OrchestratorMessagesToolChoiceAuto) error
- func (t *OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceNone(v OrchestratorMessagesToolChoiceNone) error
- func (t *OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceTool(v OrchestratorMessagesToolChoiceTool) error
- func (t OrchestratorMessagesToolChoice) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceAny(v OrchestratorMessagesToolChoiceAny) error
- func (t *OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceAuto(v OrchestratorMessagesToolChoiceAuto) error
- func (t *OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceNone(v OrchestratorMessagesToolChoiceNone) error
- func (t *OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceTool(v OrchestratorMessagesToolChoiceTool) error
- func (t *OrchestratorMessagesToolChoice) UnmarshalJSON(b []byte) error
- func (t OrchestratorMessagesToolChoice) ValueByDiscriminator() (interface{}, error)
- type OrchestratorMessagesToolChoiceAny
- type OrchestratorMessagesToolChoiceAnyType
- type OrchestratorMessagesToolChoiceAuto
- type OrchestratorMessagesToolChoiceAutoType
- type OrchestratorMessagesToolChoiceNone
- type OrchestratorMessagesToolChoiceNoneType
- type OrchestratorMessagesToolChoiceTool
- type OrchestratorMessagesToolChoiceToolType
- type OrchestratorMessagesToolResultBlock
- type OrchestratorMessagesToolResultBlockContent0
- type OrchestratorMessagesToolResultBlockContent1
- type OrchestratorMessagesToolResultBlockType
- type OrchestratorMessagesToolResultBlock_Content
- func (t OrchestratorMessagesToolResultBlock_Content) AsOrchestratorMessagesToolResultBlockContent0() (OrchestratorMessagesToolResultBlockContent0, error)
- func (t OrchestratorMessagesToolResultBlock_Content) AsOrchestratorMessagesToolResultBlockContent1() (OrchestratorMessagesToolResultBlockContent1, error)
- func (t *OrchestratorMessagesToolResultBlock_Content) FromOrchestratorMessagesToolResultBlockContent0(v OrchestratorMessagesToolResultBlockContent0) error
- func (t *OrchestratorMessagesToolResultBlock_Content) FromOrchestratorMessagesToolResultBlockContent1(v OrchestratorMessagesToolResultBlockContent1) error
- func (t OrchestratorMessagesToolResultBlock_Content) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesToolResultBlock_Content) MergeOrchestratorMessagesToolResultBlockContent0(v OrchestratorMessagesToolResultBlockContent0) error
- func (t *OrchestratorMessagesToolResultBlock_Content) MergeOrchestratorMessagesToolResultBlockContent1(v OrchestratorMessagesToolResultBlockContent1) error
- func (t *OrchestratorMessagesToolResultBlock_Content) UnmarshalJSON(b []byte) error
- type OrchestratorMessagesToolResultContentBlock
- func (t OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesDocumentBlock() (OrchestratorMessagesDocumentBlock, error)
- func (t OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesImageBlock() (OrchestratorMessagesImageBlock, error)
- func (t OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesSearchResultBlock() (OrchestratorMessagesSearchResultBlock, error)
- func (t OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesTextBlock() (OrchestratorMessagesTextBlock, error)
- func (t OrchestratorMessagesToolResultContentBlock) Discriminator() (string, error)
- func (t *OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesDocumentBlock(v OrchestratorMessagesDocumentBlock) error
- func (t *OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesImageBlock(v OrchestratorMessagesImageBlock) error
- func (t *OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesSearchResultBlock(v OrchestratorMessagesSearchResultBlock) error
- func (t *OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
- func (t OrchestratorMessagesToolResultContentBlock) MarshalJSON() ([]byte, error)
- func (t *OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesDocumentBlock(v OrchestratorMessagesDocumentBlock) error
- func (t *OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesImageBlock(v OrchestratorMessagesImageBlock) error
- func (t *OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesSearchResultBlock(v OrchestratorMessagesSearchResultBlock) error
- func (t *OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
- func (t *OrchestratorMessagesToolResultContentBlock) UnmarshalJSON(b []byte) error
- func (t OrchestratorMessagesToolResultContentBlock) ValueByDiscriminator() (interface{}, error)
- type OrchestratorMessagesToolType
- type OrchestratorMessagesToolUseBlock
- type OrchestratorMessagesToolUseBlockType
- type OrchestratorMessagesURLDocumentSource
- type OrchestratorMessagesURLDocumentSourceType
- type OrchestratorMessagesURLImageSource
- type OrchestratorMessagesURLImageSourceType
- type OrchestratorMessagesUsage
- type OrchestratorResponsesAdditionalToolsItemParam
- type OrchestratorResponsesAdditionalToolsItemParamType
- type OrchestratorResponsesAllowedToolChoice
- type OrchestratorResponsesAllowedToolChoiceType
- type OrchestratorResponsesAllowedToolChoice_Tools_Item
- func (t OrchestratorResponsesAllowedToolChoice_Tools_Item) AsOrchestratorResponsesFunctionToolChoice() (OrchestratorResponsesFunctionToolChoice, error)
- func (t *OrchestratorResponsesAllowedToolChoice_Tools_Item) FromOrchestratorResponsesFunctionToolChoice(v OrchestratorResponsesFunctionToolChoice) error
- func (t OrchestratorResponsesAllowedToolChoice_Tools_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesAllowedToolChoice_Tools_Item) MergeOrchestratorResponsesFunctionToolChoice(v OrchestratorResponsesFunctionToolChoice) error
- func (t *OrchestratorResponsesAllowedToolChoice_Tools_Item) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesAnnotation
- func (t OrchestratorResponsesAnnotation) AsOrchestratorResponsesUrlCitationBody() (OrchestratorResponsesUrlCitationBody, error)
- func (t OrchestratorResponsesAnnotation) Discriminator() (string, error)
- func (t *OrchestratorResponsesAnnotation) FromOrchestratorResponsesUrlCitationBody(v OrchestratorResponsesUrlCitationBody) error
- func (t OrchestratorResponsesAnnotation) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesAnnotation) MergeOrchestratorResponsesUrlCitationBody(v OrchestratorResponsesUrlCitationBody) error
- func (t *OrchestratorResponsesAnnotation) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesAnnotation) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesAssistantMessageItemParam
- type OrchestratorResponsesAssistantMessageItemParamContent0
- type OrchestratorResponsesAssistantMessageItemParamContent1
- type OrchestratorResponsesAssistantMessageItemParamPhase
- type OrchestratorResponsesAssistantMessageItemParamRole
- type OrchestratorResponsesAssistantMessageItemParamType
- type OrchestratorResponsesAssistantMessageItemParam_Content
- func (t OrchestratorResponsesAssistantMessageItemParam_Content) AsOrchestratorResponsesAssistantMessageItemParamContent0() (OrchestratorResponsesAssistantMessageItemParamContent0, error)
- func (t OrchestratorResponsesAssistantMessageItemParam_Content) AsOrchestratorResponsesAssistantMessageItemParamContent1() (OrchestratorResponsesAssistantMessageItemParamContent1, error)
- func (t *OrchestratorResponsesAssistantMessageItemParam_Content) FromOrchestratorResponsesAssistantMessageItemParamContent0(v OrchestratorResponsesAssistantMessageItemParamContent0) error
- func (t *OrchestratorResponsesAssistantMessageItemParam_Content) FromOrchestratorResponsesAssistantMessageItemParamContent1(v OrchestratorResponsesAssistantMessageItemParamContent1) error
- func (t OrchestratorResponsesAssistantMessageItemParam_Content) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesAssistantMessageItemParam_Content) MergeOrchestratorResponsesAssistantMessageItemParamContent0(v OrchestratorResponsesAssistantMessageItemParamContent0) error
- func (t *OrchestratorResponsesAssistantMessageItemParam_Content) MergeOrchestratorResponsesAssistantMessageItemParamContent1(v OrchestratorResponsesAssistantMessageItemParamContent1) error
- func (t *OrchestratorResponsesAssistantMessageItemParam_Content) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesAssistantMessageItemParam_Content_0_Item
- func (t OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) AsOrchestratorResponsesOutputTextContentParam() (OrchestratorResponsesOutputTextContentParam, error)
- func (t OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) AsOrchestratorResponsesRefusalContentParam() (OrchestratorResponsesRefusalContentParam, error)
- func (t OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) Discriminator() (string, error)
- func (t *OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) FromOrchestratorResponsesOutputTextContentParam(v OrchestratorResponsesOutputTextContentParam) error
- func (t *OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) FromOrchestratorResponsesRefusalContentParam(v OrchestratorResponsesRefusalContentParam) error
- func (t OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) MergeOrchestratorResponsesOutputTextContentParam(v OrchestratorResponsesOutputTextContentParam) error
- func (t *OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) MergeOrchestratorResponsesRefusalContentParam(v OrchestratorResponsesRefusalContentParam) error
- func (t *OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesCreateResponseBody
- type OrchestratorResponsesCreateResponseBodyInput0
- type OrchestratorResponsesCreateResponseBodyInput1
- type OrchestratorResponsesCreateResponseBodyRouting1
- type OrchestratorResponsesCreateResponseBody_Input
- func (t OrchestratorResponsesCreateResponseBody_Input) AsOrchestratorResponsesCreateResponseBodyInput0() (OrchestratorResponsesCreateResponseBodyInput0, error)
- func (t OrchestratorResponsesCreateResponseBody_Input) AsOrchestratorResponsesCreateResponseBodyInput1() (OrchestratorResponsesCreateResponseBodyInput1, error)
- func (t *OrchestratorResponsesCreateResponseBody_Input) FromOrchestratorResponsesCreateResponseBodyInput0(v OrchestratorResponsesCreateResponseBodyInput0) error
- func (t *OrchestratorResponsesCreateResponseBody_Input) FromOrchestratorResponsesCreateResponseBodyInput1(v OrchestratorResponsesCreateResponseBodyInput1) error
- func (t OrchestratorResponsesCreateResponseBody_Input) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesCreateResponseBody_Input) MergeOrchestratorResponsesCreateResponseBodyInput0(v OrchestratorResponsesCreateResponseBodyInput0) error
- func (t *OrchestratorResponsesCreateResponseBody_Input) MergeOrchestratorResponsesCreateResponseBodyInput1(v OrchestratorResponsesCreateResponseBodyInput1) error
- func (t *OrchestratorResponsesCreateResponseBody_Input) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesCreateResponseBody_Routing
- func (t OrchestratorResponsesCreateResponseBody_Routing) AsOrchestratorResponsesCreateResponseBodyRouting1() (OrchestratorResponsesCreateResponseBodyRouting1, error)
- func (t OrchestratorResponsesCreateResponseBody_Routing) AsOrchestratorRouting() (OrchestratorRouting, error)
- func (t *OrchestratorResponsesCreateResponseBody_Routing) FromOrchestratorResponsesCreateResponseBodyRouting1(v OrchestratorResponsesCreateResponseBodyRouting1) error
- func (t *OrchestratorResponsesCreateResponseBody_Routing) FromOrchestratorRouting(v OrchestratorRouting) error
- func (t OrchestratorResponsesCreateResponseBody_Routing) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesCreateResponseBody_Routing) MergeOrchestratorResponsesCreateResponseBodyRouting1(v OrchestratorResponsesCreateResponseBodyRouting1) error
- func (t *OrchestratorResponsesCreateResponseBody_Routing) MergeOrchestratorRouting(v OrchestratorRouting) error
- func (t *OrchestratorResponsesCreateResponseBody_Routing) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesCustomToolCall
- type OrchestratorResponsesCustomToolCallItemParam
- type OrchestratorResponsesCustomToolCallItemParamType
- type OrchestratorResponsesCustomToolCallOutputItemParam
- type OrchestratorResponsesCustomToolCallOutputItemParamOutput0
- type OrchestratorResponsesCustomToolCallOutputItemParamOutput1
- type OrchestratorResponsesCustomToolCallOutputItemParamType
- type OrchestratorResponsesCustomToolCallOutputItemParam_Output
- func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output) AsOrchestratorResponsesCustomToolCallOutputItemParamOutput0() (OrchestratorResponsesCustomToolCallOutputItemParamOutput0, error)
- func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output) AsOrchestratorResponsesCustomToolCallOutputItemParamOutput1() (OrchestratorResponsesCustomToolCallOutputItemParamOutput1, error)
- func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output) FromOrchestratorResponsesCustomToolCallOutputItemParamOutput0(v OrchestratorResponsesCustomToolCallOutputItemParamOutput0) error
- func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output) FromOrchestratorResponsesCustomToolCallOutputItemParamOutput1(v OrchestratorResponsesCustomToolCallOutputItemParamOutput1) error
- func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output) MergeOrchestratorResponsesCustomToolCallOutputItemParamOutput0(v OrchestratorResponsesCustomToolCallOutputItemParamOutput0) error
- func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output) MergeOrchestratorResponsesCustomToolCallOutputItemParamOutput1(v OrchestratorResponsesCustomToolCallOutputItemParamOutput1) error
- func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item
- func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputImageContentParamAutoParam() (OrchestratorResponsesInputImageContentParamAutoParam, error)
- func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputTextContentParam() (OrchestratorResponsesInputTextContentParam, error)
- func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) Discriminator() (string, error)
- func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
- func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
- func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
- func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
- func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesCustomToolCallType
- type OrchestratorResponsesCustomToolParam
- type OrchestratorResponsesCustomToolParamType
- type OrchestratorResponsesDeveloperMessageItemParam
- type OrchestratorResponsesDeveloperMessageItemParamContent0
- type OrchestratorResponsesDeveloperMessageItemParamContent1
- type OrchestratorResponsesDeveloperMessageItemParamRole
- type OrchestratorResponsesDeveloperMessageItemParamType
- type OrchestratorResponsesDeveloperMessageItemParam_Content
- func (t OrchestratorResponsesDeveloperMessageItemParam_Content) AsOrchestratorResponsesDeveloperMessageItemParamContent0() (OrchestratorResponsesDeveloperMessageItemParamContent0, error)
- func (t OrchestratorResponsesDeveloperMessageItemParam_Content) AsOrchestratorResponsesDeveloperMessageItemParamContent1() (OrchestratorResponsesDeveloperMessageItemParamContent1, error)
- func (t *OrchestratorResponsesDeveloperMessageItemParam_Content) FromOrchestratorResponsesDeveloperMessageItemParamContent0(v OrchestratorResponsesDeveloperMessageItemParamContent0) error
- func (t *OrchestratorResponsesDeveloperMessageItemParam_Content) FromOrchestratorResponsesDeveloperMessageItemParamContent1(v OrchestratorResponsesDeveloperMessageItemParamContent1) error
- func (t OrchestratorResponsesDeveloperMessageItemParam_Content) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesDeveloperMessageItemParam_Content) MergeOrchestratorResponsesDeveloperMessageItemParamContent0(v OrchestratorResponsesDeveloperMessageItemParamContent0) error
- func (t *OrchestratorResponsesDeveloperMessageItemParam_Content) MergeOrchestratorResponsesDeveloperMessageItemParamContent1(v OrchestratorResponsesDeveloperMessageItemParamContent1) error
- func (t *OrchestratorResponsesDeveloperMessageItemParam_Content) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item
- func (t OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputTextContentParam() (OrchestratorResponsesInputTextContentParam, error)
- func (t OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) Discriminator() (string, error)
- func (t *OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
- func (t OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
- func (t *OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesError
- type OrchestratorResponsesErrorPayload
- type OrchestratorResponsesErrorResponse
- type OrchestratorResponsesErrorStreamingEvent
- type OrchestratorResponsesErrorStreamingEventType
- type OrchestratorResponsesFunctionCall
- type OrchestratorResponsesFunctionCallItemParam
- type OrchestratorResponsesFunctionCallItemParamType
- type OrchestratorResponsesFunctionCallOutput
- type OrchestratorResponsesFunctionCallOutputItemParam
- type OrchestratorResponsesFunctionCallOutputItemParamOutput0
- type OrchestratorResponsesFunctionCallOutputItemParamOutput1
- type OrchestratorResponsesFunctionCallOutputItemParamType
- type OrchestratorResponsesFunctionCallOutputItemParam_Output
- func (t OrchestratorResponsesFunctionCallOutputItemParam_Output) AsOrchestratorResponsesFunctionCallOutputItemParamOutput0() (OrchestratorResponsesFunctionCallOutputItemParamOutput0, error)
- func (t OrchestratorResponsesFunctionCallOutputItemParam_Output) AsOrchestratorResponsesFunctionCallOutputItemParamOutput1() (OrchestratorResponsesFunctionCallOutputItemParamOutput1, error)
- func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output) FromOrchestratorResponsesFunctionCallOutputItemParamOutput0(v OrchestratorResponsesFunctionCallOutputItemParamOutput0) error
- func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output) FromOrchestratorResponsesFunctionCallOutputItemParamOutput1(v OrchestratorResponsesFunctionCallOutputItemParamOutput1) error
- func (t OrchestratorResponsesFunctionCallOutputItemParam_Output) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output) MergeOrchestratorResponsesFunctionCallOutputItemParamOutput0(v OrchestratorResponsesFunctionCallOutputItemParamOutput0) error
- func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output) MergeOrchestratorResponsesFunctionCallOutputItemParamOutput1(v OrchestratorResponsesFunctionCallOutputItemParamOutput1) error
- func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item
- func (t OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputImageContentParamAutoParam() (OrchestratorResponsesInputImageContentParamAutoParam, error)
- func (t OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputTextContentParam() (OrchestratorResponsesInputTextContentParam, error)
- func (t OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) Discriminator() (string, error)
- func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
- func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
- func (t OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
- func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
- func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesFunctionCallOutputOutput0
- type OrchestratorResponsesFunctionCallOutputOutput1
- type OrchestratorResponsesFunctionCallOutputStatusEnum
- type OrchestratorResponsesFunctionCallOutputType
- type OrchestratorResponsesFunctionCallOutput_Output
- func (t OrchestratorResponsesFunctionCallOutput_Output) AsOrchestratorResponsesFunctionCallOutputOutput0() (OrchestratorResponsesFunctionCallOutputOutput0, error)
- func (t OrchestratorResponsesFunctionCallOutput_Output) AsOrchestratorResponsesFunctionCallOutputOutput1() (OrchestratorResponsesFunctionCallOutputOutput1, error)
- func (t *OrchestratorResponsesFunctionCallOutput_Output) FromOrchestratorResponsesFunctionCallOutputOutput0(v OrchestratorResponsesFunctionCallOutputOutput0) error
- func (t *OrchestratorResponsesFunctionCallOutput_Output) FromOrchestratorResponsesFunctionCallOutputOutput1(v OrchestratorResponsesFunctionCallOutputOutput1) error
- func (t OrchestratorResponsesFunctionCallOutput_Output) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesFunctionCallOutput_Output) MergeOrchestratorResponsesFunctionCallOutputOutput0(v OrchestratorResponsesFunctionCallOutputOutput0) error
- func (t *OrchestratorResponsesFunctionCallOutput_Output) MergeOrchestratorResponsesFunctionCallOutputOutput1(v OrchestratorResponsesFunctionCallOutputOutput1) error
- func (t *OrchestratorResponsesFunctionCallOutput_Output) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesFunctionCallOutput_Output_1_Item
- func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
- func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
- func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
- func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) Discriminator() (string, error)
- func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesFunctionCallStatus
- type OrchestratorResponsesFunctionCallType
- type OrchestratorResponsesFunctionTool
- type OrchestratorResponsesFunctionToolChoice
- type OrchestratorResponsesFunctionToolChoiceType
- type OrchestratorResponsesFunctionToolParam
- type OrchestratorResponsesFunctionToolParamType
- type OrchestratorResponsesFunctionToolType
- type OrchestratorResponsesImageDetail
- type OrchestratorResponsesIncludeEnum
- type OrchestratorResponsesIncompleteDetails
- type OrchestratorResponsesInputFileContent
- type OrchestratorResponsesInputFileContentType
- type OrchestratorResponsesInputImageContent
- type OrchestratorResponsesInputImageContentParamAutoParam
- type OrchestratorResponsesInputImageContentParamAutoParamType
- type OrchestratorResponsesInputImageContentType
- type OrchestratorResponsesInputTextContent
- type OrchestratorResponsesInputTextContentParam
- type OrchestratorResponsesInputTextContentParamType
- type OrchestratorResponsesInputTextContentType
- type OrchestratorResponsesInputTokensDetails
- type OrchestratorResponsesInputVideoContent
- type OrchestratorResponsesInputVideoContentType
- type OrchestratorResponsesItemField
- func (t OrchestratorResponsesItemField) AsOrchestratorResponsesCustomToolCall() (OrchestratorResponsesCustomToolCall, error)
- func (t OrchestratorResponsesItemField) AsOrchestratorResponsesFunctionCall() (OrchestratorResponsesFunctionCall, error)
- func (t OrchestratorResponsesItemField) AsOrchestratorResponsesFunctionCallOutput() (OrchestratorResponsesFunctionCallOutput, error)
- func (t OrchestratorResponsesItemField) AsOrchestratorResponsesMessage() (OrchestratorResponsesMessage, error)
- func (t OrchestratorResponsesItemField) AsOrchestratorResponsesReasoningBody() (OrchestratorResponsesReasoningBody, error)
- func (t OrchestratorResponsesItemField) Discriminator() (string, error)
- func (t *OrchestratorResponsesItemField) FromOrchestratorResponsesCustomToolCall(v OrchestratorResponsesCustomToolCall) error
- func (t *OrchestratorResponsesItemField) FromOrchestratorResponsesFunctionCall(v OrchestratorResponsesFunctionCall) error
- func (t *OrchestratorResponsesItemField) FromOrchestratorResponsesFunctionCallOutput(v OrchestratorResponsesFunctionCallOutput) error
- func (t *OrchestratorResponsesItemField) FromOrchestratorResponsesMessage(v OrchestratorResponsesMessage) error
- func (t *OrchestratorResponsesItemField) FromOrchestratorResponsesReasoningBody(v OrchestratorResponsesReasoningBody) error
- func (t OrchestratorResponsesItemField) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesItemField) MergeOrchestratorResponsesCustomToolCall(v OrchestratorResponsesCustomToolCall) error
- func (t *OrchestratorResponsesItemField) MergeOrchestratorResponsesFunctionCall(v OrchestratorResponsesFunctionCall) error
- func (t *OrchestratorResponsesItemField) MergeOrchestratorResponsesFunctionCallOutput(v OrchestratorResponsesFunctionCallOutput) error
- func (t *OrchestratorResponsesItemField) MergeOrchestratorResponsesMessage(v OrchestratorResponsesMessage) error
- func (t *OrchestratorResponsesItemField) MergeOrchestratorResponsesReasoningBody(v OrchestratorResponsesReasoningBody) error
- func (t *OrchestratorResponsesItemField) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesItemField) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesItemParam
- func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesAdditionalToolsItemParam() (OrchestratorResponsesAdditionalToolsItemParam, error)
- func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesAssistantMessageItemParam() (OrchestratorResponsesAssistantMessageItemParam, error)
- func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesCustomToolCallItemParam() (OrchestratorResponsesCustomToolCallItemParam, error)
- func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesCustomToolCallOutputItemParam() (OrchestratorResponsesCustomToolCallOutputItemParam, error)
- func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesDeveloperMessageItemParam() (OrchestratorResponsesDeveloperMessageItemParam, error)
- func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesFunctionCallItemParam() (OrchestratorResponsesFunctionCallItemParam, error)
- func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesFunctionCallOutputItemParam() (OrchestratorResponsesFunctionCallOutputItemParam, error)
- func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesReasoningItemParam() (OrchestratorResponsesReasoningItemParam, error)
- func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesSystemMessageItemParam() (OrchestratorResponsesSystemMessageItemParam, error)
- func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesUserMessageItemParam() (OrchestratorResponsesUserMessageItemParam, error)
- func (t OrchestratorResponsesItemParam) Discriminator() (string, error)
- func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesAdditionalToolsItemParam(v OrchestratorResponsesAdditionalToolsItemParam) error
- func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesAssistantMessageItemParam(v OrchestratorResponsesAssistantMessageItemParam) error
- func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesCustomToolCallItemParam(v OrchestratorResponsesCustomToolCallItemParam) error
- func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesCustomToolCallOutputItemParam(v OrchestratorResponsesCustomToolCallOutputItemParam) error
- func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesDeveloperMessageItemParam(v OrchestratorResponsesDeveloperMessageItemParam) error
- func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesFunctionCallItemParam(v OrchestratorResponsesFunctionCallItemParam) error
- func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesFunctionCallOutputItemParam(v OrchestratorResponsesFunctionCallOutputItemParam) error
- func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesReasoningItemParam(v OrchestratorResponsesReasoningItemParam) error
- func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesSystemMessageItemParam(v OrchestratorResponsesSystemMessageItemParam) error
- func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesUserMessageItemParam(v OrchestratorResponsesUserMessageItemParam) error
- func (t OrchestratorResponsesItemParam) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesAdditionalToolsItemParam(v OrchestratorResponsesAdditionalToolsItemParam) error
- func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesAssistantMessageItemParam(v OrchestratorResponsesAssistantMessageItemParam) error
- func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesCustomToolCallItemParam(v OrchestratorResponsesCustomToolCallItemParam) error
- func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesCustomToolCallOutputItemParam(v OrchestratorResponsesCustomToolCallOutputItemParam) error
- func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesDeveloperMessageItemParam(v OrchestratorResponsesDeveloperMessageItemParam) error
- func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesFunctionCallItemParam(v OrchestratorResponsesFunctionCallItemParam) error
- func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesFunctionCallOutputItemParam(v OrchestratorResponsesFunctionCallOutputItemParam) error
- func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesReasoningItemParam(v OrchestratorResponsesReasoningItemParam) error
- func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesSystemMessageItemParam(v OrchestratorResponsesSystemMessageItemParam) error
- func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesUserMessageItemParam(v OrchestratorResponsesUserMessageItemParam) error
- func (t *OrchestratorResponsesItemParam) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesItemParam) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesJsonSchemaResponseFormatParam
- type OrchestratorResponsesJsonSchemaResponseFormatParamStrict
- type OrchestratorResponsesJsonSchemaResponseFormatParamType
- type OrchestratorResponsesLogProb
- type OrchestratorResponsesMessage
- type OrchestratorResponsesMessagePhase
- type OrchestratorResponsesMessageRole
- type OrchestratorResponsesMessageStatus
- type OrchestratorResponsesMessageType
- type OrchestratorResponsesMessage_Content_Item
- func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
- func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
- func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
- func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputVideoContent() (OrchestratorResponsesInputVideoContent, error)
- func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
- func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
- func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
- func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
- func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
- func (t OrchestratorResponsesMessage_Content_Item) Discriminator() (string, error)
- func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputVideoContent(v OrchestratorResponsesInputVideoContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t OrchestratorResponsesMessage_Content_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputVideoContent(v OrchestratorResponsesInputVideoContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t *OrchestratorResponsesMessage_Content_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesMessage_Content_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesMetadataParam
- type OrchestratorResponsesNamespaceToolParam
- type OrchestratorResponsesNamespaceToolParamType
- type OrchestratorResponsesOutputTextContent
- type OrchestratorResponsesOutputTextContentParam
- type OrchestratorResponsesOutputTextContentParamAnnotations0
- type OrchestratorResponsesOutputTextContentParamType
- type OrchestratorResponsesOutputTextContentParam_Annotations
- func (t OrchestratorResponsesOutputTextContentParam_Annotations) AsOrchestratorResponsesOutputTextContentParamAnnotations0() (OrchestratorResponsesOutputTextContentParamAnnotations0, error)
- func (t *OrchestratorResponsesOutputTextContentParam_Annotations) FromOrchestratorResponsesOutputTextContentParamAnnotations0(v OrchestratorResponsesOutputTextContentParamAnnotations0) error
- func (t OrchestratorResponsesOutputTextContentParam_Annotations) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesOutputTextContentParam_Annotations) MergeOrchestratorResponsesOutputTextContentParamAnnotations0(v OrchestratorResponsesOutputTextContentParamAnnotations0) error
- func (t *OrchestratorResponsesOutputTextContentParam_Annotations) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesOutputTextContentType
- type OrchestratorResponsesOutputTokensDetails
- type OrchestratorResponsesReasoningBody
- type OrchestratorResponsesReasoningBodyType
- type OrchestratorResponsesReasoningBody_Content_Item
- func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
- func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
- func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
- func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
- func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
- func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
- func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
- func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
- func (t OrchestratorResponsesReasoningBody_Content_Item) Discriminator() (string, error)
- func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t OrchestratorResponsesReasoningBody_Content_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Content_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesReasoningBody_Content_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesReasoningBody_Summary_Item
- func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
- func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
- func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
- func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
- func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
- func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
- func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
- func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
- func (t OrchestratorResponsesReasoningBody_Summary_Item) Discriminator() (string, error)
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t OrchestratorResponsesReasoningBody_Summary_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t *OrchestratorResponsesReasoningBody_Summary_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesReasoningBody_Summary_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesReasoningEffortEnum
- type OrchestratorResponsesReasoningItemParam
- type OrchestratorResponsesReasoningItemParamType
- type OrchestratorResponsesReasoningParam
- type OrchestratorResponsesReasoningSummaryContentParam
- type OrchestratorResponsesReasoningSummaryContentParamType
- type OrchestratorResponsesReasoningSummaryEnum
- type OrchestratorResponsesReasoningTextContent
- type OrchestratorResponsesReasoningTextContentType
- type OrchestratorResponsesRefusalContent
- type OrchestratorResponsesRefusalContentParam
- type OrchestratorResponsesRefusalContentParamType
- type OrchestratorResponsesRefusalContentType
- type OrchestratorResponsesResponseCompletedStreamingEvent
- type OrchestratorResponsesResponseCompletedStreamingEventType
- type OrchestratorResponsesResponseContentPartAddedStreamingEvent
- type OrchestratorResponsesResponseContentPartAddedStreamingEventType
- type OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) Discriminator() (string, error)
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesResponseContentPartDoneStreamingEvent
- type OrchestratorResponsesResponseContentPartDoneStreamingEventType
- type OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) Discriminator() (string, error)
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesResponseCreatedStreamingEvent
- type OrchestratorResponsesResponseCreatedStreamingEventType
- type OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent
- type OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEventType
- type OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent
- type OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEventType
- type OrchestratorResponsesResponseFailedStreamingEvent
- type OrchestratorResponsesResponseFailedStreamingEventType
- type OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent
- type OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEventType
- type OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent
- type OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEventType
- type OrchestratorResponsesResponseInProgressStreamingEvent
- type OrchestratorResponsesResponseInProgressStreamingEventType
- type OrchestratorResponsesResponseIncompleteStreamingEvent
- type OrchestratorResponsesResponseIncompleteStreamingEventType
- type OrchestratorResponsesResponseOutputItemAddedStreamingEvent
- type OrchestratorResponsesResponseOutputItemAddedStreamingEventType
- type OrchestratorResponsesResponseOutputItemDoneStreamingEvent
- type OrchestratorResponsesResponseOutputItemDoneStreamingEventType
- type OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent
- type OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEventType
- type OrchestratorResponsesResponseOutputTextDeltaStreamingEvent
- type OrchestratorResponsesResponseOutputTextDeltaStreamingEventType
- type OrchestratorResponsesResponseOutputTextDoneStreamingEvent
- type OrchestratorResponsesResponseOutputTextDoneStreamingEventType
- type OrchestratorResponsesResponseQueuedStreamingEvent
- type OrchestratorResponsesResponseQueuedStreamingEventType
- type OrchestratorResponsesResponseReasoningDeltaStreamingEvent
- type OrchestratorResponsesResponseReasoningDeltaStreamingEventType
- type OrchestratorResponsesResponseReasoningDoneStreamingEvent
- type OrchestratorResponsesResponseReasoningDoneStreamingEventType
- type OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent
- type OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventType
- type OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent
- type OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventType
- type OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent
- type OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEventType
- type OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) Discriminator() (string, error)
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent
- type OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEventType
- type OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) Discriminator() (string, error)
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
- func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesResponseRefusalDeltaStreamingEvent
- type OrchestratorResponsesResponseRefusalDeltaStreamingEventType
- type OrchestratorResponsesResponseRefusalDoneStreamingEvent
- type OrchestratorResponsesResponseRefusalDoneStreamingEventType
- type OrchestratorResponsesResponseResource
- type OrchestratorResponsesResponseResourceInstructions0
- type OrchestratorResponsesResponseResourceObject
- type OrchestratorResponsesResponseResource_ToolChoice
- func (t OrchestratorResponsesResponseResource_ToolChoice) AsOrchestratorResponsesAllowedToolChoice() (OrchestratorResponsesAllowedToolChoice, error)
- func (t OrchestratorResponsesResponseResource_ToolChoice) AsOrchestratorResponsesFunctionToolChoice() (OrchestratorResponsesFunctionToolChoice, error)
- func (t OrchestratorResponsesResponseResource_ToolChoice) AsOrchestratorResponsesToolChoiceValueEnum() (OrchestratorResponsesToolChoiceValueEnum, error)
- func (t *OrchestratorResponsesResponseResource_ToolChoice) FromOrchestratorResponsesAllowedToolChoice(v OrchestratorResponsesAllowedToolChoice) error
- func (t *OrchestratorResponsesResponseResource_ToolChoice) FromOrchestratorResponsesFunctionToolChoice(v OrchestratorResponsesFunctionToolChoice) error
- func (t *OrchestratorResponsesResponseResource_ToolChoice) FromOrchestratorResponsesToolChoiceValueEnum(v OrchestratorResponsesToolChoiceValueEnum) error
- func (t OrchestratorResponsesResponseResource_ToolChoice) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesResponseResource_ToolChoice) MergeOrchestratorResponsesAllowedToolChoice(v OrchestratorResponsesAllowedToolChoice) error
- func (t *OrchestratorResponsesResponseResource_ToolChoice) MergeOrchestratorResponsesFunctionToolChoice(v OrchestratorResponsesFunctionToolChoice) error
- func (t *OrchestratorResponsesResponseResource_ToolChoice) MergeOrchestratorResponsesToolChoiceValueEnum(v OrchestratorResponsesToolChoiceValueEnum) error
- func (t *OrchestratorResponsesResponseResource_ToolChoice) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesResponseStreamEvent
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesErrorStreamingEvent() (OrchestratorResponsesErrorStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCompletedStreamingEvent() (OrchestratorResponsesResponseCompletedStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseContentPartAddedStreamingEvent() (OrchestratorResponsesResponseContentPartAddedStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseContentPartDoneStreamingEvent() (OrchestratorResponsesResponseContentPartDoneStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCreatedStreamingEvent() (OrchestratorResponsesResponseCreatedStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent() (OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent() (OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseFailedStreamingEvent() (OrchestratorResponsesResponseFailedStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent() (OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent() (OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseInProgressStreamingEvent() (OrchestratorResponsesResponseInProgressStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseIncompleteStreamingEvent() (OrchestratorResponsesResponseIncompleteStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputItemAddedStreamingEvent() (OrchestratorResponsesResponseOutputItemAddedStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputItemDoneStreamingEvent() (OrchestratorResponsesResponseOutputItemDoneStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent() (OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputTextDeltaStreamingEvent() (OrchestratorResponsesResponseOutputTextDeltaStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputTextDoneStreamingEvent() (OrchestratorResponsesResponseOutputTextDoneStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseQueuedStreamingEvent() (OrchestratorResponsesResponseQueuedStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningDeltaStreamingEvent() (OrchestratorResponsesResponseReasoningDeltaStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningDoneStreamingEvent() (OrchestratorResponsesResponseReasoningDoneStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent() (OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent() (OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent() (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent() (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseRefusalDeltaStreamingEvent() (OrchestratorResponsesResponseRefusalDeltaStreamingEvent, error)
- func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseRefusalDoneStreamingEvent() (OrchestratorResponsesResponseRefusalDoneStreamingEvent, error)
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesErrorStreamingEvent(v OrchestratorResponsesErrorStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCompletedStreamingEvent(v OrchestratorResponsesResponseCompletedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseContentPartAddedStreamingEvent(v OrchestratorResponsesResponseContentPartAddedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseContentPartDoneStreamingEvent(v OrchestratorResponsesResponseContentPartDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCreatedStreamingEvent(v OrchestratorResponsesResponseCreatedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent(v OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent(v OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseFailedStreamingEvent(v OrchestratorResponsesResponseFailedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent(v OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent(v OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseInProgressStreamingEvent(v OrchestratorResponsesResponseInProgressStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseIncompleteStreamingEvent(v OrchestratorResponsesResponseIncompleteStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputItemAddedStreamingEvent(v OrchestratorResponsesResponseOutputItemAddedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputItemDoneStreamingEvent(v OrchestratorResponsesResponseOutputItemDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent(v OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputTextDeltaStreamingEvent(v OrchestratorResponsesResponseOutputTextDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputTextDoneStreamingEvent(v OrchestratorResponsesResponseOutputTextDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseQueuedStreamingEvent(v OrchestratorResponsesResponseQueuedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningDeltaStreamingEvent(v OrchestratorResponsesResponseReasoningDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningDoneStreamingEvent(v OrchestratorResponsesResponseReasoningDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseRefusalDeltaStreamingEvent(v OrchestratorResponsesResponseRefusalDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseRefusalDoneStreamingEvent(v OrchestratorResponsesResponseRefusalDoneStreamingEvent) error
- func (t OrchestratorResponsesResponseStreamEvent) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesErrorStreamingEvent(v OrchestratorResponsesErrorStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCompletedStreamingEvent(v OrchestratorResponsesResponseCompletedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseContentPartAddedStreamingEvent(v OrchestratorResponsesResponseContentPartAddedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseContentPartDoneStreamingEvent(v OrchestratorResponsesResponseContentPartDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCreatedStreamingEvent(v OrchestratorResponsesResponseCreatedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent(v OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent(v OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseFailedStreamingEvent(v OrchestratorResponsesResponseFailedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent(v OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent(v OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseInProgressStreamingEvent(v OrchestratorResponsesResponseInProgressStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseIncompleteStreamingEvent(v OrchestratorResponsesResponseIncompleteStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputItemAddedStreamingEvent(v OrchestratorResponsesResponseOutputItemAddedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputItemDoneStreamingEvent(v OrchestratorResponsesResponseOutputItemDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent(v OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputTextDeltaStreamingEvent(v OrchestratorResponsesResponseOutputTextDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputTextDoneStreamingEvent(v OrchestratorResponsesResponseOutputTextDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseQueuedStreamingEvent(v OrchestratorResponsesResponseQueuedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningDeltaStreamingEvent(v OrchestratorResponsesResponseReasoningDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningDoneStreamingEvent(v OrchestratorResponsesResponseReasoningDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseRefusalDeltaStreamingEvent(v OrchestratorResponsesResponseRefusalDeltaStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseRefusalDoneStreamingEvent(v OrchestratorResponsesResponseRefusalDoneStreamingEvent) error
- func (t *OrchestratorResponsesResponseStreamEvent) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesResponsesToolParam
- func (t OrchestratorResponsesResponsesToolParam) AsOrchestratorResponsesCustomToolParam() (OrchestratorResponsesCustomToolParam, error)
- func (t OrchestratorResponsesResponsesToolParam) AsOrchestratorResponsesFunctionToolParam() (OrchestratorResponsesFunctionToolParam, error)
- func (t OrchestratorResponsesResponsesToolParam) AsOrchestratorResponsesNamespaceToolParam() (OrchestratorResponsesNamespaceToolParam, error)
- func (t OrchestratorResponsesResponsesToolParam) Discriminator() (string, error)
- func (t *OrchestratorResponsesResponsesToolParam) FromOrchestratorResponsesCustomToolParam(v OrchestratorResponsesCustomToolParam) error
- func (t *OrchestratorResponsesResponsesToolParam) FromOrchestratorResponsesFunctionToolParam(v OrchestratorResponsesFunctionToolParam) error
- func (t *OrchestratorResponsesResponsesToolParam) FromOrchestratorResponsesNamespaceToolParam(v OrchestratorResponsesNamespaceToolParam) error
- func (t OrchestratorResponsesResponsesToolParam) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesResponsesToolParam) MergeOrchestratorResponsesCustomToolParam(v OrchestratorResponsesCustomToolParam) error
- func (t *OrchestratorResponsesResponsesToolParam) MergeOrchestratorResponsesFunctionToolParam(v OrchestratorResponsesFunctionToolParam) error
- func (t *OrchestratorResponsesResponsesToolParam) MergeOrchestratorResponsesNamespaceToolParam(v OrchestratorResponsesNamespaceToolParam) error
- func (t *OrchestratorResponsesResponsesToolParam) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesResponsesToolParam) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesServiceTierEnum
- type OrchestratorResponsesSpecificFunctionParam
- type OrchestratorResponsesSpecificFunctionParamType
- type OrchestratorResponsesSpecificToolChoiceParam
- func (t OrchestratorResponsesSpecificToolChoiceParam) AsOrchestratorResponsesSpecificFunctionParam() (OrchestratorResponsesSpecificFunctionParam, error)
- func (t *OrchestratorResponsesSpecificToolChoiceParam) FromOrchestratorResponsesSpecificFunctionParam(v OrchestratorResponsesSpecificFunctionParam) error
- func (t OrchestratorResponsesSpecificToolChoiceParam) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesSpecificToolChoiceParam) MergeOrchestratorResponsesSpecificFunctionParam(v OrchestratorResponsesSpecificFunctionParam) error
- func (t *OrchestratorResponsesSpecificToolChoiceParam) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesSummaryTextContent
- type OrchestratorResponsesSummaryTextContentType
- type OrchestratorResponsesSystemMessageItemParam
- type OrchestratorResponsesSystemMessageItemParamContent0
- type OrchestratorResponsesSystemMessageItemParamContent1
- type OrchestratorResponsesSystemMessageItemParamRole
- type OrchestratorResponsesSystemMessageItemParamType
- type OrchestratorResponsesSystemMessageItemParam_Content
- func (t OrchestratorResponsesSystemMessageItemParam_Content) AsOrchestratorResponsesSystemMessageItemParamContent0() (OrchestratorResponsesSystemMessageItemParamContent0, error)
- func (t OrchestratorResponsesSystemMessageItemParam_Content) AsOrchestratorResponsesSystemMessageItemParamContent1() (OrchestratorResponsesSystemMessageItemParamContent1, error)
- func (t *OrchestratorResponsesSystemMessageItemParam_Content) FromOrchestratorResponsesSystemMessageItemParamContent0(v OrchestratorResponsesSystemMessageItemParamContent0) error
- func (t *OrchestratorResponsesSystemMessageItemParam_Content) FromOrchestratorResponsesSystemMessageItemParamContent1(v OrchestratorResponsesSystemMessageItemParamContent1) error
- func (t OrchestratorResponsesSystemMessageItemParam_Content) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesSystemMessageItemParam_Content) MergeOrchestratorResponsesSystemMessageItemParamContent0(v OrchestratorResponsesSystemMessageItemParamContent0) error
- func (t *OrchestratorResponsesSystemMessageItemParam_Content) MergeOrchestratorResponsesSystemMessageItemParamContent1(v OrchestratorResponsesSystemMessageItemParamContent1) error
- func (t *OrchestratorResponsesSystemMessageItemParam_Content) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesSystemMessageItemParam_Content_0_Item
- func (t OrchestratorResponsesSystemMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputTextContentParam() (OrchestratorResponsesInputTextContentParam, error)
- func (t OrchestratorResponsesSystemMessageItemParam_Content_0_Item) Discriminator() (string, error)
- func (t *OrchestratorResponsesSystemMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
- func (t OrchestratorResponsesSystemMessageItemParam_Content_0_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesSystemMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
- func (t *OrchestratorResponsesSystemMessageItemParam_Content_0_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesSystemMessageItemParam_Content_0_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesTextContent
- type OrchestratorResponsesTextContentType
- type OrchestratorResponsesTextFormatParam
- func (t OrchestratorResponsesTextFormatParam) AsOrchestratorResponsesJsonSchemaResponseFormatParam() (OrchestratorResponsesJsonSchemaResponseFormatParam, error)
- func (t OrchestratorResponsesTextFormatParam) AsOrchestratorResponsesTextResponseFormat() (OrchestratorResponsesTextResponseFormat, error)
- func (t *OrchestratorResponsesTextFormatParam) FromOrchestratorResponsesJsonSchemaResponseFormatParam(v OrchestratorResponsesJsonSchemaResponseFormatParam) error
- func (t *OrchestratorResponsesTextFormatParam) FromOrchestratorResponsesTextResponseFormat(v OrchestratorResponsesTextResponseFormat) error
- func (t OrchestratorResponsesTextFormatParam) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesTextFormatParam) MergeOrchestratorResponsesJsonSchemaResponseFormatParam(v OrchestratorResponsesJsonSchemaResponseFormatParam) error
- func (t *OrchestratorResponsesTextFormatParam) MergeOrchestratorResponsesTextResponseFormat(v OrchestratorResponsesTextResponseFormat) error
- func (t *OrchestratorResponsesTextFormatParam) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesTextParam
- type OrchestratorResponsesTextResponseFormat
- type OrchestratorResponsesTextResponseFormatType
- type OrchestratorResponsesTool
- func (t OrchestratorResponsesTool) AsOrchestratorResponsesFunctionTool() (OrchestratorResponsesFunctionTool, error)
- func (t OrchestratorResponsesTool) Discriminator() (string, error)
- func (t *OrchestratorResponsesTool) FromOrchestratorResponsesFunctionTool(v OrchestratorResponsesFunctionTool) error
- func (t OrchestratorResponsesTool) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesTool) MergeOrchestratorResponsesFunctionTool(v OrchestratorResponsesFunctionTool) error
- func (t *OrchestratorResponsesTool) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesTool) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesToolChoiceParam
- func (t OrchestratorResponsesToolChoiceParam) AsOrchestratorResponsesSpecificToolChoiceParam() (OrchestratorResponsesSpecificToolChoiceParam, error)
- func (t OrchestratorResponsesToolChoiceParam) AsOrchestratorResponsesToolChoiceValueEnum() (OrchestratorResponsesToolChoiceValueEnum, error)
- func (t *OrchestratorResponsesToolChoiceParam) FromOrchestratorResponsesSpecificToolChoiceParam(v OrchestratorResponsesSpecificToolChoiceParam) error
- func (t *OrchestratorResponsesToolChoiceParam) FromOrchestratorResponsesToolChoiceValueEnum(v OrchestratorResponsesToolChoiceValueEnum) error
- func (t OrchestratorResponsesToolChoiceParam) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesToolChoiceParam) MergeOrchestratorResponsesSpecificToolChoiceParam(v OrchestratorResponsesSpecificToolChoiceParam) error
- func (t *OrchestratorResponsesToolChoiceParam) MergeOrchestratorResponsesToolChoiceValueEnum(v OrchestratorResponsesToolChoiceValueEnum) error
- func (t *OrchestratorResponsesToolChoiceParam) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesToolChoiceValueEnum
- type OrchestratorResponsesTopLogProb
- type OrchestratorResponsesTruncationEnum
- type OrchestratorResponsesUrlCitationBody
- type OrchestratorResponsesUrlCitationBodyType
- type OrchestratorResponsesUrlCitationParam
- type OrchestratorResponsesUrlCitationParamType
- type OrchestratorResponsesUsage
- type OrchestratorResponsesUserMessageItemParam
- type OrchestratorResponsesUserMessageItemParamContent0
- type OrchestratorResponsesUserMessageItemParamContent1
- type OrchestratorResponsesUserMessageItemParamRole
- type OrchestratorResponsesUserMessageItemParamType
- type OrchestratorResponsesUserMessageItemParam_Content
- func (t OrchestratorResponsesUserMessageItemParam_Content) AsOrchestratorResponsesUserMessageItemParamContent0() (OrchestratorResponsesUserMessageItemParamContent0, error)
- func (t OrchestratorResponsesUserMessageItemParam_Content) AsOrchestratorResponsesUserMessageItemParamContent1() (OrchestratorResponsesUserMessageItemParamContent1, error)
- func (t *OrchestratorResponsesUserMessageItemParam_Content) FromOrchestratorResponsesUserMessageItemParamContent0(v OrchestratorResponsesUserMessageItemParamContent0) error
- func (t *OrchestratorResponsesUserMessageItemParam_Content) FromOrchestratorResponsesUserMessageItemParamContent1(v OrchestratorResponsesUserMessageItemParamContent1) error
- func (t OrchestratorResponsesUserMessageItemParam_Content) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesUserMessageItemParam_Content) MergeOrchestratorResponsesUserMessageItemParamContent0(v OrchestratorResponsesUserMessageItemParamContent0) error
- func (t *OrchestratorResponsesUserMessageItemParam_Content) MergeOrchestratorResponsesUserMessageItemParamContent1(v OrchestratorResponsesUserMessageItemParamContent1) error
- func (t *OrchestratorResponsesUserMessageItemParam_Content) UnmarshalJSON(b []byte) error
- type OrchestratorResponsesUserMessageItemParam_Content_0_Item
- func (t OrchestratorResponsesUserMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputImageContentParamAutoParam() (OrchestratorResponsesInputImageContentParamAutoParam, error)
- func (t OrchestratorResponsesUserMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputTextContentParam() (OrchestratorResponsesInputTextContentParam, error)
- func (t OrchestratorResponsesUserMessageItemParam_Content_0_Item) Discriminator() (string, error)
- func (t *OrchestratorResponsesUserMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
- func (t *OrchestratorResponsesUserMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
- func (t OrchestratorResponsesUserMessageItemParam_Content_0_Item) MarshalJSON() ([]byte, error)
- func (t *OrchestratorResponsesUserMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
- func (t *OrchestratorResponsesUserMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
- func (t *OrchestratorResponsesUserMessageItemParam_Content_0_Item) UnmarshalJSON(b []byte) error
- func (t OrchestratorResponsesUserMessageItemParam_Content_0_Item) ValueByDiscriminator() (interface{}, error)
- type OrchestratorResponsesVerbosityEnum
- type OrchestratorRoute
- type OrchestratorRouting
- type OrchestratorRoutingReasoningEffort
- type OutputItem
- func (t OutputItem) AsFetchUrlResultsOutputItem() (FetchUrlResultsOutputItem, error)
- func (t OutputItem) AsFinanceResultsOutputItem() (FinanceResultsOutputItem, error)
- func (t OutputItem) AsFunctionCallOutputItem() (FunctionCallOutputItem, error)
- func (t OutputItem) AsImageSearchResultsOutputItem() (ImageSearchResultsOutputItem, error)
- func (t OutputItem) AsMcpApprovalRequestOutputItem() (McpApprovalRequestOutputItem, error)
- func (t OutputItem) AsMcpCallOutputItem() (McpCallOutputItem, error)
- func (t OutputItem) AsMcpListToolsOutputItem() (McpListToolsOutputItem, error)
- func (t OutputItem) AsMessageOutputItem() (MessageOutputItem, error)
- func (t OutputItem) AsPeopleSearchResultsOutputItem() (PeopleSearchResultsOutputItem, error)
- func (t OutputItem) AsSandboxReadFileOutputItem() (SandboxReadFileOutputItem, error)
- func (t OutputItem) AsSandboxResultsOutputItem() (SandboxResultsOutputItem, error)
- func (t OutputItem) AsSandboxWriteFileOutputItem() (SandboxWriteFileOutputItem, error)
- func (t OutputItem) AsSearchResultsOutputItem() (SearchResultsOutputItem, error)
- func (t OutputItem) AsShareFileOutputItem() (ShareFileOutputItem, error)
- func (t OutputItem) AsSkillLoadedOutputItem() (SkillLoadedOutputItem, error)
- func (t OutputItem) AsToolSearchOutputItem() (ToolSearchOutputItem, error)
- func (t OutputItem) Discriminator() (string, error)
- func (t *OutputItem) FromFetchUrlResultsOutputItem(v FetchUrlResultsOutputItem) error
- func (t *OutputItem) FromFinanceResultsOutputItem(v FinanceResultsOutputItem) error
- func (t *OutputItem) FromFunctionCallOutputItem(v FunctionCallOutputItem) error
- func (t *OutputItem) FromImageSearchResultsOutputItem(v ImageSearchResultsOutputItem) error
- func (t *OutputItem) FromMcpApprovalRequestOutputItem(v McpApprovalRequestOutputItem) error
- func (t *OutputItem) FromMcpCallOutputItem(v McpCallOutputItem) error
- func (t *OutputItem) FromMcpListToolsOutputItem(v McpListToolsOutputItem) error
- func (t *OutputItem) FromMessageOutputItem(v MessageOutputItem) error
- func (t *OutputItem) FromPeopleSearchResultsOutputItem(v PeopleSearchResultsOutputItem) error
- func (t *OutputItem) FromSandboxReadFileOutputItem(v SandboxReadFileOutputItem) error
- func (t *OutputItem) FromSandboxResultsOutputItem(v SandboxResultsOutputItem) error
- func (t *OutputItem) FromSandboxWriteFileOutputItem(v SandboxWriteFileOutputItem) error
- func (t *OutputItem) FromSearchResultsOutputItem(v SearchResultsOutputItem) error
- func (t *OutputItem) FromShareFileOutputItem(v ShareFileOutputItem) error
- func (t *OutputItem) FromSkillLoadedOutputItem(v SkillLoadedOutputItem) error
- func (t *OutputItem) FromToolSearchOutputItem(v ToolSearchOutputItem) error
- func (t OutputItem) MarshalJSON() ([]byte, error)
- func (t *OutputItem) MergeFetchUrlResultsOutputItem(v FetchUrlResultsOutputItem) error
- func (t *OutputItem) MergeFinanceResultsOutputItem(v FinanceResultsOutputItem) error
- func (t *OutputItem) MergeFunctionCallOutputItem(v FunctionCallOutputItem) error
- func (t *OutputItem) MergeImageSearchResultsOutputItem(v ImageSearchResultsOutputItem) error
- func (t *OutputItem) MergeMcpApprovalRequestOutputItem(v McpApprovalRequestOutputItem) error
- func (t *OutputItem) MergeMcpCallOutputItem(v McpCallOutputItem) error
- func (t *OutputItem) MergeMcpListToolsOutputItem(v McpListToolsOutputItem) error
- func (t *OutputItem) MergeMessageOutputItem(v MessageOutputItem) error
- func (t *OutputItem) MergePeopleSearchResultsOutputItem(v PeopleSearchResultsOutputItem) error
- func (t *OutputItem) MergeSandboxReadFileOutputItem(v SandboxReadFileOutputItem) error
- func (t *OutputItem) MergeSandboxResultsOutputItem(v SandboxResultsOutputItem) error
- func (t *OutputItem) MergeSandboxWriteFileOutputItem(v SandboxWriteFileOutputItem) error
- func (t *OutputItem) MergeSearchResultsOutputItem(v SearchResultsOutputItem) error
- func (t *OutputItem) MergeShareFileOutputItem(v ShareFileOutputItem) error
- func (t *OutputItem) MergeSkillLoadedOutputItem(v SkillLoadedOutputItem) error
- func (t *OutputItem) MergeToolSearchOutputItem(v ToolSearchOutputItem) error
- func (t *OutputItem) UnmarshalJSON(b []byte) error
- func (t OutputItem) ValueByDiscriminator() (interface{}, error)
- type OutputItemAddedEvent
- type OutputItemDoneEvent
- type OutputTokensDetails
- type PageToken
- type PauseMonitorResponse
- func (r PauseMonitorResponse) ContentType() string
- func (r PauseMonitorResponse) GetBody() []byte
- func (r PauseMonitorResponse) GetJSON200() *Monitor
- func (r PauseMonitorResponse) GetJSON401() *MonitorUnauthorized
- func (r PauseMonitorResponse) GetJSON403() *MonitorForbidden
- func (r PauseMonitorResponse) GetJSON404() *MonitorNotFound
- func (r PauseMonitorResponse) GetJSON409() *MonitorConcurrentUpdate
- func (r PauseMonitorResponse) GetJSON429() *MonitorTooManyRequests
- func (r PauseMonitorResponse) GetJSON502() *MonitorBadGateway
- func (r PauseMonitorResponse) GetJSON503() *MonitorUnavailable
- func (r PauseMonitorResponse) GetJSON504() *MonitorGatewayTimeout
- func (r PauseMonitorResponse) Status() string
- func (r PauseMonitorResponse) StatusCode() int
- type PauseMonitorResponse429Headers
- type PayloadTooLarge
- type PeopleSearchResultsOutputItem
- type PeopleSearchResultsOutputItemType
- type PeopleSearchTool
- type PeopleSearchToolType
- type ProfileReference
- type ProfileReferenceType
- type PromptCacheBreakpoint
- type PromptCacheBreakpointMode
- type PromptCacheOptions
- type PromptCacheOptionsMode
- type Question
- func (t Question) AsChoiceQuestion() (ChoiceQuestion, error)
- func (t Question) AsLocateQuestion() (LocateQuestion, error)
- func (t Question) AsNoulQuestion() (NoulQuestion, error)
- func (t Question) AsScoreQuestion() (ScoreQuestion, error)
- func (t Question) Discriminator() (string, error)
- func (t *Question) FromChoiceQuestion(v ChoiceQuestion) error
- func (t *Question) FromLocateQuestion(v LocateQuestion) error
- func (t *Question) FromNoulQuestion(v NoulQuestion) error
- func (t *Question) FromScoreQuestion(v ScoreQuestion) error
- func (t Question) MarshalJSON() ([]byte, error)
- func (t *Question) MergeChoiceQuestion(v ChoiceQuestion) error
- func (t *Question) MergeLocateQuestion(v LocateQuestion) error
- func (t *Question) MergeNoulQuestion(v NoulQuestion) error
- func (t *Question) MergeScoreQuestion(v ScoreQuestion) error
- func (t *Question) UnmarshalJSON(b []byte) error
- func (t Question) ValueByDiscriminator() (interface{}, error)
- type ReasoningConfig
- type ReasoningConfigEffort
- type ReasoningStartedEvent
- type ReasoningStoppedEvent
- type RequestEditorFn
- type RequireApproval
- func (t RequireApproval) AsApprovalFilters() (ApprovalFilters, error)
- func (t RequireApproval) AsRequireApproval0() (RequireApproval0, error)
- func (t *RequireApproval) FromApprovalFilters(v ApprovalFilters) error
- func (t *RequireApproval) FromRequireApproval0(v RequireApproval0) error
- func (t RequireApproval) MarshalJSON() ([]byte, error)
- func (t *RequireApproval) MergeApprovalFilters(v ApprovalFilters) error
- func (t *RequireApproval) MergeRequireApproval0(v RequireApproval0) error
- func (t *RequireApproval) UnmarshalJSON(b []byte) error
- type RequireApproval0
- type ResponseCompletedEvent
- type ResponseCreatedEvent
- type ResponseFailedEvent
- type ResponseFile
- type ResponseFileList
- type ResponseFormat
- type ResponseFormatJSONSchema
- type ResponseFormatJSONSchemaType
- type ResponseFormatText
- type ResponseFormatTextType
- type ResponseFormatType
- type ResponseInProgressEvent
- type ResponseStreamEvent
- func (t ResponseStreamEvent) AsFetchUrlQueriesEvent() (FetchUrlQueriesEvent, error)
- func (t ResponseStreamEvent) AsFetchUrlResultsEvent() (FetchUrlResultsEvent, error)
- func (t ResponseStreamEvent) AsImageSearchQueriesEvent() (ImageSearchQueriesEvent, error)
- func (t ResponseStreamEvent) AsImageSearchResultsEvent() (ImageSearchResultsEvent, error)
- func (t ResponseStreamEvent) AsOutputItemAddedEvent() (OutputItemAddedEvent, error)
- func (t ResponseStreamEvent) AsOutputItemDoneEvent() (OutputItemDoneEvent, error)
- func (t ResponseStreamEvent) AsReasoningStartedEvent() (ReasoningStartedEvent, error)
- func (t ResponseStreamEvent) AsReasoningStoppedEvent() (ReasoningStoppedEvent, error)
- func (t ResponseStreamEvent) AsResponseCompletedEvent() (ResponseCompletedEvent, error)
- func (t ResponseStreamEvent) AsResponseCreatedEvent() (ResponseCreatedEvent, error)
- func (t ResponseStreamEvent) AsResponseFailedEvent() (ResponseFailedEvent, error)
- func (t ResponseStreamEvent) AsResponseInProgressEvent() (ResponseInProgressEvent, error)
- func (t ResponseStreamEvent) AsSearchQueriesEvent() (SearchQueriesEvent, error)
- func (t ResponseStreamEvent) AsSearchResultsEvent() (SearchResultsEvent, error)
- func (t ResponseStreamEvent) AsTextDeltaEvent() (TextDeltaEvent, error)
- func (t ResponseStreamEvent) AsTextDoneEvent() (TextDoneEvent, error)
- func (t ResponseStreamEvent) Discriminator() (string, error)
- func (t *ResponseStreamEvent) FromFetchUrlQueriesEvent(v FetchUrlQueriesEvent) error
- func (t *ResponseStreamEvent) FromFetchUrlResultsEvent(v FetchUrlResultsEvent) error
- func (t *ResponseStreamEvent) FromImageSearchQueriesEvent(v ImageSearchQueriesEvent) error
- func (t *ResponseStreamEvent) FromImageSearchResultsEvent(v ImageSearchResultsEvent) error
- func (t *ResponseStreamEvent) FromOutputItemAddedEvent(v OutputItemAddedEvent) error
- func (t *ResponseStreamEvent) FromOutputItemDoneEvent(v OutputItemDoneEvent) error
- func (t *ResponseStreamEvent) FromReasoningStartedEvent(v ReasoningStartedEvent) error
- func (t *ResponseStreamEvent) FromReasoningStoppedEvent(v ReasoningStoppedEvent) error
- func (t *ResponseStreamEvent) FromResponseCompletedEvent(v ResponseCompletedEvent) error
- func (t *ResponseStreamEvent) FromResponseCreatedEvent(v ResponseCreatedEvent) error
- func (t *ResponseStreamEvent) FromResponseFailedEvent(v ResponseFailedEvent) error
- func (t *ResponseStreamEvent) FromResponseInProgressEvent(v ResponseInProgressEvent) error
- func (t *ResponseStreamEvent) FromSearchQueriesEvent(v SearchQueriesEvent) error
- func (t *ResponseStreamEvent) FromSearchResultsEvent(v SearchResultsEvent) error
- func (t *ResponseStreamEvent) FromTextDeltaEvent(v TextDeltaEvent) error
- func (t *ResponseStreamEvent) FromTextDoneEvent(v TextDoneEvent) error
- func (t ResponseStreamEvent) MarshalJSON() ([]byte, error)
- func (t *ResponseStreamEvent) MergeFetchUrlQueriesEvent(v FetchUrlQueriesEvent) error
- func (t *ResponseStreamEvent) MergeFetchUrlResultsEvent(v FetchUrlResultsEvent) error
- func (t *ResponseStreamEvent) MergeImageSearchQueriesEvent(v ImageSearchQueriesEvent) error
- func (t *ResponseStreamEvent) MergeImageSearchResultsEvent(v ImageSearchResultsEvent) error
- func (t *ResponseStreamEvent) MergeOutputItemAddedEvent(v OutputItemAddedEvent) error
- func (t *ResponseStreamEvent) MergeOutputItemDoneEvent(v OutputItemDoneEvent) error
- func (t *ResponseStreamEvent) MergeReasoningStartedEvent(v ReasoningStartedEvent) error
- func (t *ResponseStreamEvent) MergeReasoningStoppedEvent(v ReasoningStoppedEvent) error
- func (t *ResponseStreamEvent) MergeResponseCompletedEvent(v ResponseCompletedEvent) error
- func (t *ResponseStreamEvent) MergeResponseCreatedEvent(v ResponseCreatedEvent) error
- func (t *ResponseStreamEvent) MergeResponseFailedEvent(v ResponseFailedEvent) error
- func (t *ResponseStreamEvent) MergeResponseInProgressEvent(v ResponseInProgressEvent) error
- func (t *ResponseStreamEvent) MergeSearchQueriesEvent(v SearchQueriesEvent) error
- func (t *ResponseStreamEvent) MergeSearchResultsEvent(v SearchResultsEvent) error
- func (t *ResponseStreamEvent) MergeTextDeltaEvent(v TextDeltaEvent) error
- func (t *ResponseStreamEvent) MergeTextDoneEvent(v TextDoneEvent) error
- func (t *ResponseStreamEvent) UnmarshalJSON(b []byte) error
- func (t ResponseStreamEvent) ValueByDiscriminator() (interface{}, error)
- type ResponsesCost
- type ResponsesObjectType
- type ResponsesRequest
- type ResponsesResponse
- type ResponsesUsage
- type ResumeMonitorResponse
- func (r ResumeMonitorResponse) ContentType() string
- func (r ResumeMonitorResponse) GetBody() []byte
- func (r ResumeMonitorResponse) GetJSON200() *Monitor
- func (r ResumeMonitorResponse) GetJSON401() *MonitorUnauthorized
- func (r ResumeMonitorResponse) GetJSON403() *MonitorForbidden
- func (r ResumeMonitorResponse) GetJSON404() *MonitorNotFound
- func (r ResumeMonitorResponse) GetJSON409() *MonitorApiError
- func (r ResumeMonitorResponse) GetJSON429() *MonitorTooManyRequests
- func (r ResumeMonitorResponse) GetJSON502() *MonitorBadGateway
- func (r ResumeMonitorResponse) GetJSON503() *MonitorUnavailable
- func (r ResumeMonitorResponse) GetJSON504() *MonitorGatewayTimeout
- func (r ResumeMonitorResponse) Status() string
- func (r ResumeMonitorResponse) StatusCode() int
- type ResumeMonitorResponse429Headers
- type RetrieveAgentResponse
- func (r RetrieveAgentResponse) ContentType() string
- func (r RetrieveAgentResponse) GetBody() []byte
- func (r RetrieveAgentResponse) GetJSON200() *ResponsesResponse
- func (r RetrieveAgentResponse) GetJSON404() ...
- func (r RetrieveAgentResponse) Status() string
- func (r RetrieveAgentResponse) StatusCode() int
- type Revision
- type RoleType
- type RunMonitor409JSONResponseBody
- func (t RunMonitor409JSONResponseBody) AsMonitorApiError() (MonitorApiError, error)
- func (t RunMonitor409JSONResponseBody) AsMonitorRunInProgressError() (MonitorRunInProgressError, error)
- func (t *RunMonitor409JSONResponseBody) FromMonitorApiError(v MonitorApiError) error
- func (t *RunMonitor409JSONResponseBody) FromMonitorRunInProgressError(v MonitorRunInProgressError) error
- func (t RunMonitor409JSONResponseBody) MarshalJSON() ([]byte, error)
- func (t *RunMonitor409JSONResponseBody) MergeMonitorApiError(v MonitorApiError) error
- func (t *RunMonitor409JSONResponseBody) MergeMonitorRunInProgressError(v MonitorRunInProgressError) error
- func (t *RunMonitor409JSONResponseBody) UnmarshalJSON(b []byte) error
- type RunMonitorResponse
- func (r RunMonitorResponse) ContentType() string
- func (r RunMonitorResponse) GetBody() []byte
- func (r RunMonitorResponse) GetJSON202() *MonitorRun
- func (r RunMonitorResponse) GetJSON401() *MonitorUnauthorized
- func (r RunMonitorResponse) GetJSON402() *MonitorPaymentRequired
- func (r RunMonitorResponse) GetJSON403() *MonitorForbidden
- func (r RunMonitorResponse) GetJSON404() *MonitorNotFound
- func (r RunMonitorResponse) GetJSON409() *RunMonitor409JSONResponseBody
- func (r RunMonitorResponse) GetJSON429() *MonitorTooManyRequests
- func (r RunMonitorResponse) GetJSON502() *MonitorBadGateway
- func (r RunMonitorResponse) GetJSON503() *MonitorUnavailable
- func (r RunMonitorResponse) GetJSON504() *MonitorGatewayTimeout
- func (r RunMonitorResponse) Status() string
- func (r RunMonitorResponse) StatusCode() int
- type RunMonitorResponse429Headers
- type SandboxReadFileOutputItem
- type SandboxReadFileOutputItemType
- type SandboxResultsOutputItem
- type SandboxResultsOutputItemStatus
- type SandboxResultsOutputItemType
- type SandboxTool
- type SandboxToolType
- type SandboxWriteFileOutputItem
- type SandboxWriteFileOutputItemType
- type ScoreAnswer
- type ScoreAnswerLegend0
- type ScoreAnswerLegend1
- type ScoreAnswerLegend2
- type ScoreAnswerType
- type ScoreAnswer_Legend_AdditionalProperties
- func (t ScoreAnswer_Legend_AdditionalProperties) AsScoreAnswerLegend0() (ScoreAnswerLegend0, error)
- func (t ScoreAnswer_Legend_AdditionalProperties) AsScoreAnswerLegend1() (ScoreAnswerLegend1, error)
- func (t ScoreAnswer_Legend_AdditionalProperties) AsScoreAnswerLegend2() (ScoreAnswerLegend2, error)
- func (t *ScoreAnswer_Legend_AdditionalProperties) FromScoreAnswerLegend0(v ScoreAnswerLegend0) error
- func (t *ScoreAnswer_Legend_AdditionalProperties) FromScoreAnswerLegend1(v ScoreAnswerLegend1) error
- func (t *ScoreAnswer_Legend_AdditionalProperties) FromScoreAnswerLegend2(v ScoreAnswerLegend2) error
- func (t ScoreAnswer_Legend_AdditionalProperties) MarshalJSON() ([]byte, error)
- func (t *ScoreAnswer_Legend_AdditionalProperties) MergeScoreAnswerLegend0(v ScoreAnswerLegend0) error
- func (t *ScoreAnswer_Legend_AdditionalProperties) MergeScoreAnswerLegend1(v ScoreAnswerLegend1) error
- func (t *ScoreAnswer_Legend_AdditionalProperties) MergeScoreAnswerLegend2(v ScoreAnswerLegend2) error
- func (t *ScoreAnswer_Legend_AdditionalProperties) UnmarshalJSON(b []byte) error
- type ScoreQuestion
- type ScoreQuestionCriteria0
- type ScoreQuestionCriteria1
- type ScoreQuestionCriteria2
- type ScoreQuestionInstructions0
- type ScoreQuestionInstructions1
- type ScoreQuestionInstructions2
- type ScoreQuestionType
- type ScoreQuestion_Criteria_Item
- func (t ScoreQuestion_Criteria_Item) AsScoreQuestionCriteria0() (ScoreQuestionCriteria0, error)
- func (t ScoreQuestion_Criteria_Item) AsScoreQuestionCriteria1() (ScoreQuestionCriteria1, error)
- func (t ScoreQuestion_Criteria_Item) AsScoreQuestionCriteria2() (ScoreQuestionCriteria2, error)
- func (t *ScoreQuestion_Criteria_Item) FromScoreQuestionCriteria0(v ScoreQuestionCriteria0) error
- func (t *ScoreQuestion_Criteria_Item) FromScoreQuestionCriteria1(v ScoreQuestionCriteria1) error
- func (t *ScoreQuestion_Criteria_Item) FromScoreQuestionCriteria2(v ScoreQuestionCriteria2) error
- func (t ScoreQuestion_Criteria_Item) MarshalJSON() ([]byte, error)
- func (t *ScoreQuestion_Criteria_Item) MergeScoreQuestionCriteria0(v ScoreQuestionCriteria0) error
- func (t *ScoreQuestion_Criteria_Item) MergeScoreQuestionCriteria1(v ScoreQuestionCriteria1) error
- func (t *ScoreQuestion_Criteria_Item) MergeScoreQuestionCriteria2(v ScoreQuestionCriteria2) error
- func (t *ScoreQuestion_Criteria_Item) UnmarshalJSON(b []byte) error
- type ScoreQuestion_Instructions
- func (t ScoreQuestion_Instructions) AsScoreQuestionInstructions0() (ScoreQuestionInstructions0, error)
- func (t ScoreQuestion_Instructions) AsScoreQuestionInstructions1() (ScoreQuestionInstructions1, error)
- func (t ScoreQuestion_Instructions) AsScoreQuestionInstructions2() (ScoreQuestionInstructions2, error)
- func (t *ScoreQuestion_Instructions) FromScoreQuestionInstructions0(v ScoreQuestionInstructions0) error
- func (t *ScoreQuestion_Instructions) FromScoreQuestionInstructions1(v ScoreQuestionInstructions1) error
- func (t *ScoreQuestion_Instructions) FromScoreQuestionInstructions2(v ScoreQuestionInstructions2) error
- func (t ScoreQuestion_Instructions) MarshalJSON() ([]byte, error)
- func (t *ScoreQuestion_Instructions) MergeScoreQuestionInstructions0(v ScoreQuestionInstructions0) error
- func (t *ScoreQuestion_Instructions) MergeScoreQuestionInstructions1(v ScoreQuestionInstructions1) error
- func (t *ScoreQuestion_Instructions) MergeScoreQuestionInstructions2(v ScoreQuestionInstructions2) error
- func (t *ScoreQuestion_Instructions) UnmarshalJSON(b []byte) error
- type SearchDomainFilter
- type SearchQueriesEvent
- type SearchRecencyFilter
- type SearchResult
- type SearchResultsEvent
- type SearchResultsOutputItem
- type SearchResultsOutputItemType
- type SearchSearchPostJSONRequestBody
- type SearchSearchPostResponse
- func (r SearchSearchPostResponse) ContentType() string
- func (r SearchSearchPostResponse) GetBody() []byte
- func (r SearchSearchPostResponse) GetJSON200() *ApiSearchResponse
- func (r SearchSearchPostResponse) GetJSON400() *ApiSearchErrorResponse
- func (r SearchSearchPostResponse) GetJSON401() *ApiSearchErrorResponse
- func (r SearchSearchPostResponse) GetJSON429() *ApiSearchErrorResponse
- func (r SearchSearchPostResponse) Status() string
- func (r SearchSearchPostResponse) StatusCode() int
- type SearchSource
- type ShareFileOutputItem
- type ShareFileOutputItemType
- type Skill
- func (t Skill) AsBuiltinSkill() (BuiltinSkill, error)
- func (t Skill) AsCustomSkill() (CustomSkill, error)
- func (t Skill) AsInlineSkill() (InlineSkill, error)
- func (t Skill) Discriminator() (string, error)
- func (t *Skill) FromBuiltinSkill(v BuiltinSkill) error
- func (t *Skill) FromCustomSkill(v CustomSkill) error
- func (t *Skill) FromInlineSkill(v InlineSkill) error
- func (t Skill) MarshalJSON() ([]byte, error)
- func (t *Skill) MergeBuiltinSkill(v BuiltinSkill) error
- func (t *Skill) MergeCustomSkill(v CustomSkill) error
- func (t *Skill) MergeInlineSkill(v InlineSkill) error
- func (t *Skill) UnmarshalJSON(b []byte) error
- func (t Skill) ValueByDiscriminator() (interface{}, error)
- type SkillDownload
- type SkillId
- type SkillList
- type SkillLoadedOutputItem
- type SkillLoadedOutputItemType
- type SkillRevision
- type SkillRevisionList
- type SkillSummary
- type Status
- type TestMonitorWebhookResponse
- func (r TestMonitorWebhookResponse) ContentType() string
- func (r TestMonitorWebhookResponse) GetBody() []byte
- func (r TestMonitorWebhookResponse) GetJSON200() *MonitorWebhookTest
- func (r TestMonitorWebhookResponse) GetJSON401() *MonitorUnauthorized
- func (r TestMonitorWebhookResponse) GetJSON403() *MonitorForbidden
- func (r TestMonitorWebhookResponse) GetJSON404() *MonitorNotFound
- func (r TestMonitorWebhookResponse) GetJSON409() *MonitorInvalidState
- func (r TestMonitorWebhookResponse) GetJSON429() *MonitorTooManyRequests
- func (r TestMonitorWebhookResponse) GetJSON502() *MonitorBadGateway
- func (r TestMonitorWebhookResponse) GetJSON503() *MonitorUnavailable
- func (r TestMonitorWebhookResponse) GetJSON504() *MonitorGatewayTimeout
- func (r TestMonitorWebhookResponse) Status() string
- func (r TestMonitorWebhookResponse) StatusCode() int
- type TestMonitorWebhookResponse429Headers
- type TextDeltaEvent
- type TextDoneEvent
- type TooManyRequests
- type Tool
- func (t Tool) AsConnectorTool() (ConnectorTool, error)
- func (t Tool) AsFetchUrlTool() (FetchUrlTool, error)
- func (t Tool) AsFinanceSearchTool() (FinanceSearchTool, error)
- func (t Tool) AsFunctionTool() (FunctionTool, error)
- func (t Tool) AsImageSearchTool() (ImageSearchTool, error)
- func (t Tool) AsMcpTool() (McpTool, error)
- func (t Tool) AsPeopleSearchTool() (PeopleSearchTool, error)
- func (t Tool) AsSandboxTool() (SandboxTool, error)
- func (t Tool) AsWebSearchTool() (WebSearchTool, error)
- func (t Tool) Discriminator() (string, error)
- func (t *Tool) FromConnectorTool(v ConnectorTool) error
- func (t *Tool) FromFetchUrlTool(v FetchUrlTool) error
- func (t *Tool) FromFinanceSearchTool(v FinanceSearchTool) error
- func (t *Tool) FromFunctionTool(v FunctionTool) error
- func (t *Tool) FromImageSearchTool(v ImageSearchTool) error
- func (t *Tool) FromMcpTool(v McpTool) error
- func (t *Tool) FromPeopleSearchTool(v PeopleSearchTool) error
- func (t *Tool) FromSandboxTool(v SandboxTool) error
- func (t *Tool) FromWebSearchTool(v WebSearchTool) error
- func (t Tool) MarshalJSON() ([]byte, error)
- func (t *Tool) MergeConnectorTool(v ConnectorTool) error
- func (t *Tool) MergeFetchUrlTool(v FetchUrlTool) error
- func (t *Tool) MergeFinanceSearchTool(v FinanceSearchTool) error
- func (t *Tool) MergeFunctionTool(v FunctionTool) error
- func (t *Tool) MergeImageSearchTool(v ImageSearchTool) error
- func (t *Tool) MergeMcpTool(v McpTool) error
- func (t *Tool) MergePeopleSearchTool(v PeopleSearchTool) error
- func (t *Tool) MergeSandboxTool(v SandboxTool) error
- func (t *Tool) MergeWebSearchTool(v WebSearchTool) error
- func (t *Tool) UnmarshalJSON(b []byte) error
- func (t Tool) ValueByDiscriminator() (interface{}, error)
- type ToolCallDetails
- type ToolCallTokenUsage
- type ToolChoice
- func (t ToolChoice) AsToolChoice0() (ToolChoice0, error)
- func (t ToolChoice) AsToolChoice1() (ToolChoice1, error)
- func (t *ToolChoice) FromToolChoice0(v ToolChoice0) error
- func (t *ToolChoice) FromToolChoice1(v ToolChoice1) error
- func (t ToolChoice) MarshalJSON() ([]byte, error)
- func (t *ToolChoice) MergeToolChoice0(v ToolChoice0) error
- func (t *ToolChoice) MergeToolChoice1(v ToolChoice1) error
- func (t *ToolChoice) UnmarshalJSON(b []byte) error
- type ToolChoice0
- type ToolChoice1
- type ToolSearchOutputItem
- type ToolSearchOutputItemType
- type ToolUserLocation
- type URL
- type Unauthorized
- type UpdateMonitorJSONRequestBody
- type UpdateMonitorRequest
- type UpdateMonitorResponse
- func (r UpdateMonitorResponse) ContentType() string
- func (r UpdateMonitorResponse) GetBody() []byte
- func (r UpdateMonitorResponse) GetJSON200() *Monitor
- func (r UpdateMonitorResponse) GetJSON400() *MonitorBadRequest
- func (r UpdateMonitorResponse) GetJSON401() *MonitorUnauthorized
- func (r UpdateMonitorResponse) GetJSON403() *MonitorForbidden
- func (r UpdateMonitorResponse) GetJSON404() *MonitorNotFound
- func (r UpdateMonitorResponse) GetJSON409() *MonitorConcurrentUpdate
- func (r UpdateMonitorResponse) GetJSON429() *MonitorTooManyRequests
- func (r UpdateMonitorResponse) GetJSON502() *MonitorBadGateway
- func (r UpdateMonitorResponse) GetJSON503() *MonitorUnavailable
- func (r UpdateMonitorResponse) GetJSON504() *MonitorGatewayTimeout
- func (r UpdateMonitorResponse) Status() string
- func (r UpdateMonitorResponse) StatusCode() int
- type UpdateMonitorResponse429Headers
- type UpdateSkillMultipartBody
- type UpdateSkillMultipartRequestBody
- type UpdateSkillParams
- type UpdateSkillResponse
- func (r UpdateSkillResponse) ContentType() string
- func (r UpdateSkillResponse) GetBody() []byte
- func (r UpdateSkillResponse) GetJSON200() *ManagedSkill
- func (r UpdateSkillResponse) GetJSON400() *ApiError
- func (r UpdateSkillResponse) GetJSON404() *ApiError
- func (r UpdateSkillResponse) GetJSON409() *ApiError
- func (r UpdateSkillResponse) GetJSON413() *ApiError
- func (r UpdateSkillResponse) GetJSON429() *ApiError
- func (r UpdateSkillResponse) GetJSON502() *ApiError
- func (r UpdateSkillResponse) Status() string
- func (r UpdateSkillResponse) StatusCode() int
- type UrlContent
- type Usage
- type UsageInfo
- type UserLocation
- type ValidationError
- type ValidationErrorLoc0
- type ValidationErrorLoc1
- type ValidationError_Loc_Item
- func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error)
- func (t ValidationError_Loc_Item) AsValidationErrorLoc1() (ValidationErrorLoc1, error)
- func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error
- func (t *ValidationError_Loc_Item) FromValidationErrorLoc1(v ValidationErrorLoc1) error
- func (t ValidationError_Loc_Item) MarshalJSON() ([]byte, error)
- func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error
- func (t *ValidationError_Loc_Item) MergeValidationErrorLoc1(v ValidationErrorLoc1) error
- func (t *ValidationError_Loc_Item) UnmarshalJSON(b []byte) error
- type VideoURL
- type VideoURLFrameInterval0
- type VideoURLFrameInterval1
- type VideoURL_FrameInterval
- func (t VideoURL_FrameInterval) AsVideoURLFrameInterval0() (VideoURLFrameInterval0, error)
- func (t VideoURL_FrameInterval) AsVideoURLFrameInterval1() (VideoURLFrameInterval1, error)
- func (t *VideoURL_FrameInterval) FromVideoURLFrameInterval0(v VideoURLFrameInterval0) error
- func (t *VideoURL_FrameInterval) FromVideoURLFrameInterval1(v VideoURLFrameInterval1) error
- func (t VideoURL_FrameInterval) MarshalJSON() ([]byte, error)
- func (t *VideoURL_FrameInterval) MergeVideoURLFrameInterval0(v VideoURLFrameInterval0) error
- func (t *VideoURL_FrameInterval) MergeVideoURLFrameInterval1(v VideoURLFrameInterval1) error
- func (t *VideoURL_FrameInterval) UnmarshalJSON(b []byte) error
- type WebSearchFilters
- type WebSearchOptions
- type WebSearchOptionsSearchContextSize
- type WebSearchOptionsSearchType
- type WebSearchTool
- type WebSearchToolSearchType
- type WebSearchToolType
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCancelAgentResponseRequest ¶
NewCancelAgentResponseRequest constructs an http.Request for the CancelAgentResponse method
func NewCancelBatchRequest ¶ added in v0.2.0
NewCancelBatchRequest constructs an http.Request for the CancelBatch method
func NewChatCompletionsChatCompletionsPostRequest ¶
func NewChatCompletionsChatCompletionsPostRequest(server string, body ChatCompletionsChatCompletionsPostJSONRequestBody) (*http.Request, error)
NewChatCompletionsChatCompletionsPostRequest calls the generic ChatCompletionsChatCompletionsPost builder with application/json body
func NewChatCompletionsChatCompletionsPostRequestWithBody ¶
func NewChatCompletionsChatCompletionsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewChatCompletionsChatCompletionsPostRequestWithBody constructs an http.Request for the ChatCompletionsChatCompletionsPost method, with any body, and a specified content type
func NewContextRequest ¶ added in v0.6.0
func NewContextRequest(server string, body ContextJSONRequestBody) (*http.Request, error)
NewContextRequest calls the generic Context builder with application/json body
func NewContextRequestWithBody ¶ added in v0.6.0
func NewContextRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewContextRequestWithBody constructs an http.Request for the Context method, with any body, and a specified content type
func NewContextualizedEmbeddingsV1ContextualizedembeddingsPostRequest ¶
func NewContextualizedEmbeddingsV1ContextualizedembeddingsPostRequest(server string, body ContextualizedEmbeddingsV1ContextualizedembeddingsPostJSONRequestBody) (*http.Request, error)
NewContextualizedEmbeddingsV1ContextualizedembeddingsPostRequest calls the generic ContextualizedEmbeddingsV1ContextualizedembeddingsPost builder with application/json body
func NewContextualizedEmbeddingsV1ContextualizedembeddingsPostRequestWithBody ¶
func NewContextualizedEmbeddingsV1ContextualizedembeddingsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewContextualizedEmbeddingsV1ContextualizedembeddingsPostRequestWithBody constructs an http.Request for the ContextualizedEmbeddingsV1ContextualizedembeddingsPost method, with any body, and a specified content type
func NewCreateAgentRequest ¶
func NewCreateAgentRequest(server string, body CreateAgentJSONRequestBody) (*http.Request, error)
NewCreateAgentRequest calls the generic CreateAgent builder with application/json body
func NewCreateAgentRequestWithBody ¶
func NewCreateAgentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAgentRequestWithBody constructs an http.Request for the CreateAgent method, with any body, and a specified content type
func NewCreateAsyncChatCompletionsAsyncChatCompletionsPostRequest ¶
func NewCreateAsyncChatCompletionsAsyncChatCompletionsPostRequest(server string, body CreateAsyncChatCompletionsAsyncChatCompletionsPostJSONRequestBody) (*http.Request, error)
NewCreateAsyncChatCompletionsAsyncChatCompletionsPostRequest calls the generic CreateAsyncChatCompletionsAsyncChatCompletionsPost builder with application/json body
func NewCreateAsyncChatCompletionsAsyncChatCompletionsPostRequestWithBody ¶
func NewCreateAsyncChatCompletionsAsyncChatCompletionsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAsyncChatCompletionsAsyncChatCompletionsPostRequestWithBody constructs an http.Request for the CreateAsyncChatCompletionsAsyncChatCompletionsPost method, with any body, and a specified content type
func NewCreateBatchRequest ¶ added in v0.2.0
func NewCreateBatchRequest(server string, params *CreateBatchParams, body CreateBatchJSONRequestBody) (*http.Request, error)
NewCreateBatchRequest calls the generic CreateBatch builder with application/json body
func NewCreateBatchRequestWithBody ¶ added in v0.2.0
func NewCreateBatchRequestWithBody(server string, params *CreateBatchParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateBatchRequestWithBody constructs an http.Request for the CreateBatch method, with any body, and a specified content type
func NewCreateFileRequestWithBody ¶ added in v0.2.0
func NewCreateFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateFileRequestWithBody constructs an http.Request for the CreateFile method, with any body, and a specified content type
func NewCreateMonitorRequest ¶ added in v0.5.0
func NewCreateMonitorRequest(server string, params *CreateMonitorParams, body CreateMonitorJSONRequestBody) (*http.Request, error)
NewCreateMonitorRequest calls the generic CreateMonitor builder with application/json body
func NewCreateMonitorRequestWithBody ¶ added in v0.5.0
func NewCreateMonitorRequestWithBody(server string, params *CreateMonitorParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateMonitorRequestWithBody constructs an http.Request for the CreateMonitor method, with any body, and a specified content type
func NewCreateSkillRequestWithBody ¶
func NewCreateSkillRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSkillRequestWithBody constructs an http.Request for the CreateSkill method, with any body, and a specified content type
func NewDecisionsV1DecisionsPostRequest ¶
func NewDecisionsV1DecisionsPostRequest(server string, body DecisionsV1DecisionsPostJSONRequestBody) (*http.Request, error)
NewDecisionsV1DecisionsPostRequest calls the generic DecisionsV1DecisionsPost builder with application/json body
func NewDecisionsV1DecisionsPostRequestWithBody ¶
func NewDecisionsV1DecisionsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDecisionsV1DecisionsPostRequestWithBody constructs an http.Request for the DecisionsV1DecisionsPost method, with any body, and a specified content type
func NewDeleteFileRequest ¶ added in v0.2.0
func NewDeleteFileRequest(server string, fileId BatchFileId) (*http.Request, error)
NewDeleteFileRequest constructs an http.Request for the DeleteFile method
func NewDeleteMonitorRequest ¶ added in v0.5.0
NewDeleteMonitorRequest constructs an http.Request for the DeleteMonitor method
func NewDeleteSkillRequest ¶
func NewDeleteSkillRequest(server string, skillId SkillId, params *DeleteSkillParams) (*http.Request, error)
NewDeleteSkillRequest constructs an http.Request for the DeleteSkill method
func NewDownloadAgentFileRequest ¶
NewDownloadAgentFileRequest constructs an http.Request for the DownloadAgentFile method
func NewDownloadSkillRequest ¶
func NewDownloadSkillRequest(server string, skillId SkillId, params *DownloadSkillParams) (*http.Request, error)
NewDownloadSkillRequest constructs an http.Request for the DownloadSkill method
func NewEmbeddingsV1EmbeddingsPostRequest ¶
func NewEmbeddingsV1EmbeddingsPostRequest(server string, body EmbeddingsV1EmbeddingsPostJSONRequestBody) (*http.Request, error)
NewEmbeddingsV1EmbeddingsPostRequest calls the generic EmbeddingsV1EmbeddingsPost builder with application/json body
func NewEmbeddingsV1EmbeddingsPostRequestWithBody ¶
func NewEmbeddingsV1EmbeddingsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEmbeddingsV1EmbeddingsPostRequestWithBody constructs an http.Request for the EmbeddingsV1EmbeddingsPost method, with any body, and a specified content type
func NewGatewayCreateChatCompletionRequest ¶ added in v0.6.0
func NewGatewayCreateChatCompletionRequest(server string, body GatewayCreateChatCompletionJSONRequestBody) (*http.Request, error)
NewGatewayCreateChatCompletionRequest calls the generic GatewayCreateChatCompletion builder with application/json body
func NewGatewayCreateChatCompletionRequestWithBody ¶ added in v0.6.0
func NewGatewayCreateChatCompletionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGatewayCreateChatCompletionRequestWithBody constructs an http.Request for the GatewayCreateChatCompletion method, with any body, and a specified content type
func NewGatewayCreateMessageRequest ¶ added in v0.6.0
func NewGatewayCreateMessageRequest(server string, body GatewayCreateMessageJSONRequestBody) (*http.Request, error)
NewGatewayCreateMessageRequest calls the generic GatewayCreateMessage builder with application/json body
func NewGatewayCreateMessageRequestWithBody ¶ added in v0.6.0
func NewGatewayCreateMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGatewayCreateMessageRequestWithBody constructs an http.Request for the GatewayCreateMessage method, with any body, and a specified content type
func NewGatewayCreateResponseRequest ¶ added in v0.6.0
func NewGatewayCreateResponseRequest(server string, body GatewayCreateResponseJSONRequestBody) (*http.Request, error)
NewGatewayCreateResponseRequest calls the generic GatewayCreateResponse builder with application/json body
func NewGatewayCreateResponseRequestWithBody ¶ added in v0.6.0
func NewGatewayCreateResponseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGatewayCreateResponseRequestWithBody constructs an http.Request for the GatewayCreateResponse method, with any body, and a specified content type
func NewGatewayListModelsRequest ¶ added in v0.6.0
NewGatewayListModelsRequest constructs an http.Request for the GatewayListModels method
func NewGatewayRetrieveModelRequest ¶ added in v0.6.0
NewGatewayRetrieveModelRequest constructs an http.Request for the GatewayRetrieveModel method
func NewGetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetRequest ¶
func NewGetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetRequest(server string, apiRequest string) (*http.Request, error)
NewGetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetRequest constructs an http.Request for the GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet method
func NewGetBatchRequest ¶ added in v0.2.0
NewGetBatchRequest constructs an http.Request for the GetBatch method
func NewGetComputerUsageAnalyticsRequest ¶
func NewGetComputerUsageAnalyticsRequest(server string, params *GetComputerUsageAnalyticsParams) (*http.Request, error)
NewGetComputerUsageAnalyticsRequest constructs an http.Request for the GetComputerUsageAnalytics method
func NewGetComputerUsageAnalyticsV2Request ¶
func NewGetComputerUsageAnalyticsV2Request(server string, params *GetComputerUsageAnalyticsV2Params) (*http.Request, error)
NewGetComputerUsageAnalyticsV2Request constructs an http.Request for the GetComputerUsageAnalyticsV2 method
func NewGetFileContentRequest ¶ added in v0.2.0
func NewGetFileContentRequest(server string, fileId BatchFileId) (*http.Request, error)
NewGetFileContentRequest constructs an http.Request for the GetFileContent method
func NewGetFileRequest ¶ added in v0.2.0
func NewGetFileRequest(server string, fileId BatchFileId) (*http.Request, error)
NewGetFileRequest constructs an http.Request for the GetFile method
func NewGetMonitorRequest ¶ added in v0.5.0
NewGetMonitorRequest constructs an http.Request for the GetMonitor method
func NewGetMonitorRunRequest ¶ added in v0.5.0
func NewGetMonitorRunRequest(server string, monitorId MonitorId, runId MonitorRunId) (*http.Request, error)
NewGetMonitorRunRequest constructs an http.Request for the GetMonitorRun method
func NewGetSkillRequest ¶
func NewGetSkillRequest(server string, skillId SkillId, params *GetSkillParams) (*http.Request, error)
NewGetSkillRequest constructs an http.Request for the GetSkill method
func NewListAdminAuditEventsV1AdminAuditEventsGetRequest ¶ added in v0.3.0
func NewListAdminAuditEventsV1AdminAuditEventsGetRequest(server string, params *ListAdminAuditEventsV1AdminAuditEventsGetParams) (*http.Request, error)
NewListAdminAuditEventsV1AdminAuditEventsGetRequest constructs an http.Request for the ListAdminAuditEventsV1AdminAuditEventsGet method
func NewListAgentFilesRequest ¶
NewListAgentFilesRequest constructs an http.Request for the ListAgentFiles method
func NewListAsyncChatCompletionsAsyncChatCompletionsGetRequest ¶
func NewListAsyncChatCompletionsAsyncChatCompletionsGetRequest(server string) (*http.Request, error)
NewListAsyncChatCompletionsAsyncChatCompletionsGetRequest constructs an http.Request for the ListAsyncChatCompletionsAsyncChatCompletionsGet method
func NewListBatchesRequest ¶ added in v0.2.0
func NewListBatchesRequest(server string, params *ListBatchesParams) (*http.Request, error)
NewListBatchesRequest constructs an http.Request for the ListBatches method
func NewListFilesRequest ¶ added in v0.2.0
func NewListFilesRequest(server string, params *ListFilesParams) (*http.Request, error)
NewListFilesRequest constructs an http.Request for the ListFiles method
func NewListModelsRequest ¶
NewListModelsRequest constructs an http.Request for the ListModels method
func NewListMonitorRunsRequest ¶ added in v0.5.0
func NewListMonitorRunsRequest(server string, monitorId MonitorId, params *ListMonitorRunsParams) (*http.Request, error)
NewListMonitorRunsRequest constructs an http.Request for the ListMonitorRuns method
func NewListMonitorsRequest ¶ added in v0.5.0
func NewListMonitorsRequest(server string, params *ListMonitorsParams) (*http.Request, error)
NewListMonitorsRequest constructs an http.Request for the ListMonitors method
func NewListSkillRevisionsRequest ¶
func NewListSkillRevisionsRequest(server string, skillId SkillId, params *ListSkillRevisionsParams) (*http.Request, error)
NewListSkillRevisionsRequest constructs an http.Request for the ListSkillRevisions method
func NewListSkillsRequest ¶
func NewListSkillsRequest(server string, params *ListSkillsParams) (*http.Request, error)
NewListSkillsRequest constructs an http.Request for the ListSkills method
func NewPauseMonitorRequest ¶ added in v0.5.0
NewPauseMonitorRequest constructs an http.Request for the PauseMonitor method
func NewResumeMonitorRequest ¶ added in v0.5.0
NewResumeMonitorRequest constructs an http.Request for the ResumeMonitor method
func NewRetrieveAgentRequest ¶
NewRetrieveAgentRequest constructs an http.Request for the RetrieveAgent method
func NewRunMonitorRequest ¶ added in v0.5.0
NewRunMonitorRequest constructs an http.Request for the RunMonitor method
func NewSearchSearchPostRequest ¶
func NewSearchSearchPostRequest(server string, body SearchSearchPostJSONRequestBody) (*http.Request, error)
NewSearchSearchPostRequest calls the generic SearchSearchPost builder with application/json body
func NewSearchSearchPostRequestWithBody ¶
func NewSearchSearchPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSearchSearchPostRequestWithBody constructs an http.Request for the SearchSearchPost method, with any body, and a specified content type
func NewTestMonitorWebhookRequest ¶ added in v0.5.0
NewTestMonitorWebhookRequest constructs an http.Request for the TestMonitorWebhook method
func NewUpdateMonitorRequest ¶ added in v0.5.0
func NewUpdateMonitorRequest(server string, monitorId MonitorId, body UpdateMonitorJSONRequestBody) (*http.Request, error)
NewUpdateMonitorRequest calls the generic UpdateMonitor builder with application/json body
func NewUpdateMonitorRequestWithBody ¶ added in v0.5.0
func NewUpdateMonitorRequestWithBody(server string, monitorId MonitorId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateMonitorRequestWithBody constructs an http.Request for the UpdateMonitor method, with any body, and a specified content type
func NewUpdateSkillRequestWithBody ¶
func NewUpdateSkillRequestWithBody(server string, skillId SkillId, params *UpdateSkillParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSkillRequestWithBody constructs an http.Request for the UpdateSkill method, with any body, and a specified content type
Types ¶
type AdminApiErrorResponse ¶ added in v0.3.0
type AdminApiErrorResponse struct {
Error struct {
Code int `json:"code"`
Message string `json:"message"`
Type string `json:"type"`
} `json:"error"`
}
AdminApiErrorResponse defines model for AdminApiErrorResponse.
type AnalyticsErrorResponse ¶
type AnalyticsErrorResponse struct {
Error struct {
Code int `json:"code"`
Message string `json:"message"`
Type string `json:"type"`
} `json:"error"`
}
AnalyticsErrorResponse defines model for AnalyticsErrorResponse.
type Annotation ¶
type Annotation struct {
// EndIndex End character index of the annotated text
EndIndex *int32 `json:"end_index,omitempty"`
// StartIndex Start character index of the annotated text
StartIndex *int32 `json:"start_index,omitempty"`
// Title Title of the cited source
Title *string `json:"title,omitempty"`
// Type Annotation type (url_citation)
Type *string `json:"type,omitempty"`
// Url URL of the cited source
Url *string `json:"url,omitempty"`
}
Annotation Text annotation (URL citation)
type Answer ¶
type Answer struct {
// contains filtered or unexported fields
}
Answer One answer. Its `type` matches the question's `type`.
func (Answer) AsChoiceAnswer ¶
func (t Answer) AsChoiceAnswer() (ChoiceAnswer, error)
AsChoiceAnswer returns the union data inside the Answer as a ChoiceAnswer
func (Answer) AsLocateAnswer ¶ added in v0.3.6
func (t Answer) AsLocateAnswer() (LocateAnswer, error)
AsLocateAnswer returns the union data inside the Answer as a LocateAnswer
func (Answer) AsNoulAnswer ¶
func (t Answer) AsNoulAnswer() (NoulAnswer, error)
AsNoulAnswer returns the union data inside the Answer as a NoulAnswer
func (Answer) AsScoreAnswer ¶
func (t Answer) AsScoreAnswer() (ScoreAnswer, error)
AsScoreAnswer returns the union data inside the Answer as a ScoreAnswer
func (Answer) Discriminator ¶
func (*Answer) FromChoiceAnswer ¶
func (t *Answer) FromChoiceAnswer(v ChoiceAnswer) error
FromChoiceAnswer overwrites any union data inside the Answer as the provided ChoiceAnswer
func (*Answer) FromLocateAnswer ¶ added in v0.3.6
func (t *Answer) FromLocateAnswer(v LocateAnswer) error
FromLocateAnswer overwrites any union data inside the Answer as the provided LocateAnswer
func (*Answer) FromNoulAnswer ¶
func (t *Answer) FromNoulAnswer(v NoulAnswer) error
FromNoulAnswer overwrites any union data inside the Answer as the provided NoulAnswer
func (*Answer) FromScoreAnswer ¶
func (t *Answer) FromScoreAnswer(v ScoreAnswer) error
FromScoreAnswer overwrites any union data inside the Answer as the provided ScoreAnswer
func (Answer) MarshalJSON ¶
func (*Answer) MergeChoiceAnswer ¶
func (t *Answer) MergeChoiceAnswer(v ChoiceAnswer) error
MergeChoiceAnswer performs a merge with any union data inside the Answer, using the provided ChoiceAnswer
func (*Answer) MergeLocateAnswer ¶ added in v0.3.6
func (t *Answer) MergeLocateAnswer(v LocateAnswer) error
MergeLocateAnswer performs a merge with any union data inside the Answer, using the provided LocateAnswer
func (*Answer) MergeNoulAnswer ¶
func (t *Answer) MergeNoulAnswer(v NoulAnswer) error
MergeNoulAnswer performs a merge with any union data inside the Answer, using the provided NoulAnswer
func (*Answer) MergeScoreAnswer ¶
func (t *Answer) MergeScoreAnswer(v ScoreAnswer) error
MergeScoreAnswer performs a merge with any union data inside the Answer, using the provided ScoreAnswer
func (*Answer) UnmarshalJSON ¶
func (Answer) ValueByDiscriminator ¶
type ApiChatCompletionsRequest ¶
type ApiChatCompletionsRequest struct {
// DisableSearch When true, disables all web search capabilities. The model responds based solely on its training data
DisableSearch *bool `json:"disable_search,omitempty"`
// EnableSearchClassifier When true, uses a classifier to determine if web search is needed for the query
EnableSearchClassifier *bool `json:"enable_search_classifier,omitempty"`
// ImageDomainFilter Limit image results to specific domains
ImageDomainFilter *[]string `json:"image_domain_filter,omitempty"`
// ImageFormatFilter Filter image results by format (e.g. png, jpg)
ImageFormatFilter *[]string `json:"image_format_filter,omitempty"`
// LanguagePreference ISO 639-1 language code for preferred response language
LanguagePreference *string `json:"language_preference,omitempty"`
// LastUpdatedAfterFilter Return results last updated after this date (MM/DD/YYYY)
LastUpdatedAfterFilter *string `json:"last_updated_after_filter,omitempty"`
// LastUpdatedBeforeFilter Return results last updated before this date (MM/DD/YYYY)
LastUpdatedBeforeFilter *string `json:"last_updated_before_filter,omitempty"`
// MaxTokens Maximum number of completion tokens to generate
MaxTokens *int `json:"max_tokens,omitempty"`
// Messages Array of messages forming the conversation history
Messages []ChatMessageInput `json:"messages"`
// Model Model to use, for example, sonar-pro
Model ApiChatCompletionsRequestModel `json:"model"`
// ReasoningEffort Controls how much effort the model spends on reasoning
ReasoningEffort *ApiChatCompletionsRequestReasoningEffort `json:"reasoning_effort,omitempty"`
// ResponseFormat Optional. Controls the output format. Omit for default text output. Set `type` to `json_schema` for structured output.
ResponseFormat *ApiChatCompletionsRequest_ResponseFormat `json:"response_format,omitempty"`
// ReturnImages When true, include image results in the response
ReturnImages *bool `json:"return_images,omitempty"`
// ReturnRelatedQuestions When true, generates suggested follow-up queries based on the search results
ReturnRelatedQuestions *bool `json:"return_related_questions,omitempty"`
// SearchAfterDateFilter Return results published after this date (MM/DD/YYYY)
SearchAfterDateFilter *string `json:"search_after_date_filter,omitempty"`
// SearchBeforeDateFilter Return results published before this date (MM/DD/YYYY)
SearchBeforeDateFilter *string `json:"search_before_date_filter,omitempty"`
// SearchDomainFilter Limit search results to specific domains (e.g. github.com, wikipedia.org)
SearchDomainFilter *[]string `json:"search_domain_filter,omitempty"`
// SearchLanguageFilter Filter results by language using ISO 639-1 codes (e.g. en, fr, de)
SearchLanguageFilter *[]string `json:"search_language_filter,omitempty"`
// SearchMode Source of search results (web, academic, or sec)
SearchMode *ApiChatCompletionsRequestSearchMode `json:"search_mode,omitempty"`
// SearchRecencyFilter Filter by publication recency (hour, day, week, month, or year)
SearchRecencyFilter *ApiChatCompletionsRequestSearchRecencyFilter `json:"search_recency_filter,omitempty"`
// Stop Stop sequences. Generation stops when one of these strings is produced
Stop *ApiChatCompletionsRequest_Stop `json:"stop,omitempty"`
// Stream If true, returns streaming SSE response
Stream *bool `json:"stream,omitempty"`
// StreamMode Controls the format of streaming events. 'full' suppresses reasoning events and includes metadata inline; 'concise' emits reasoning events separately
StreamMode *ApiChatCompletionsRequestStreamMode `json:"stream_mode,omitempty"`
// Temperature Controls randomness in the response. Higher values make output more random. Range: 0-2
Temperature *float64 `json:"temperature,omitempty"`
// TopP Nucleus sampling parameter. Controls diversity via nucleus sampling
TopP *float64 `json:"top_p,omitempty"`
// WebSearchOptions Configuration options for web search behavior
WebSearchOptions *WebSearchOptions `json:"web_search_options,omitempty"`
}
ApiChatCompletionsRequest defines model for ApiChatCompletionsRequest.
type ApiChatCompletionsRequestModel ¶
type ApiChatCompletionsRequestModel string
ApiChatCompletionsRequestModel Model to use, for example, sonar-pro
const ( ApiChatCompletionsRequestModelSonar ApiChatCompletionsRequestModel = "sonar" ApiChatCompletionsRequestModelSonarDeepResearch ApiChatCompletionsRequestModel = "sonar-deep-research" ApiChatCompletionsRequestModelSonarPro ApiChatCompletionsRequestModel = "sonar-pro" ApiChatCompletionsRequestModelSonarReasoningPro ApiChatCompletionsRequestModel = "sonar-reasoning-pro" )
Defines values for ApiChatCompletionsRequestModel.
func (ApiChatCompletionsRequestModel) Valid ¶
func (e ApiChatCompletionsRequestModel) Valid() bool
Valid indicates whether the value is a known member of the ApiChatCompletionsRequestModel enum.
type ApiChatCompletionsRequestReasoningEffort ¶
type ApiChatCompletionsRequestReasoningEffort string
ApiChatCompletionsRequestReasoningEffort defines model for ApiChatCompletionsRequest.ReasoningEffort.
const ( ApiChatCompletionsRequestReasoningEffortHigh ApiChatCompletionsRequestReasoningEffort = "high" ApiChatCompletionsRequestReasoningEffortLow ApiChatCompletionsRequestReasoningEffort = "low" ApiChatCompletionsRequestReasoningEffortMedium ApiChatCompletionsRequestReasoningEffort = "medium" ApiChatCompletionsRequestReasoningEffortMinimal ApiChatCompletionsRequestReasoningEffort = "minimal" )
Defines values for ApiChatCompletionsRequestReasoningEffort.
func (ApiChatCompletionsRequestReasoningEffort) Valid ¶
func (e ApiChatCompletionsRequestReasoningEffort) Valid() bool
Valid indicates whether the value is a known member of the ApiChatCompletionsRequestReasoningEffort enum.
type ApiChatCompletionsRequestSearchMode ¶
type ApiChatCompletionsRequestSearchMode string
ApiChatCompletionsRequestSearchMode defines model for ApiChatCompletionsRequest.SearchMode.
const ( ApiChatCompletionsRequestSearchModeAcademic ApiChatCompletionsRequestSearchMode = "academic" ApiChatCompletionsRequestSearchModeSec ApiChatCompletionsRequestSearchMode = "sec" ApiChatCompletionsRequestSearchModeWeb ApiChatCompletionsRequestSearchMode = "web" )
Defines values for ApiChatCompletionsRequestSearchMode.
func (ApiChatCompletionsRequestSearchMode) Valid ¶
func (e ApiChatCompletionsRequestSearchMode) Valid() bool
Valid indicates whether the value is a known member of the ApiChatCompletionsRequestSearchMode enum.
type ApiChatCompletionsRequestSearchRecencyFilter ¶
type ApiChatCompletionsRequestSearchRecencyFilter string
ApiChatCompletionsRequestSearchRecencyFilter defines model for ApiChatCompletionsRequest.SearchRecencyFilter.
const ( ApiChatCompletionsRequestSearchRecencyFilterDay ApiChatCompletionsRequestSearchRecencyFilter = "day" ApiChatCompletionsRequestSearchRecencyFilterHour ApiChatCompletionsRequestSearchRecencyFilter = "hour" ApiChatCompletionsRequestSearchRecencyFilterMonth ApiChatCompletionsRequestSearchRecencyFilter = "month" ApiChatCompletionsRequestSearchRecencyFilterWeek ApiChatCompletionsRequestSearchRecencyFilter = "week" ApiChatCompletionsRequestSearchRecencyFilterYear ApiChatCompletionsRequestSearchRecencyFilter = "year" )
Defines values for ApiChatCompletionsRequestSearchRecencyFilter.
func (ApiChatCompletionsRequestSearchRecencyFilter) Valid ¶
func (e ApiChatCompletionsRequestSearchRecencyFilter) Valid() bool
Valid indicates whether the value is a known member of the ApiChatCompletionsRequestSearchRecencyFilter enum.
type ApiChatCompletionsRequestStop0 ¶
type ApiChatCompletionsRequestStop0 = string
ApiChatCompletionsRequestStop0 defines model for ApiChatCompletionsRequest.Stop.0.
type ApiChatCompletionsRequestStop1 ¶
type ApiChatCompletionsRequestStop1 = []string
ApiChatCompletionsRequestStop1 defines model for ApiChatCompletionsRequest.Stop.1.
type ApiChatCompletionsRequestStreamMode ¶
type ApiChatCompletionsRequestStreamMode string
ApiChatCompletionsRequestStreamMode Controls the format of streaming events. 'full' suppresses reasoning events and includes metadata inline; 'concise' emits reasoning events separately
const ( ApiChatCompletionsRequestStreamModeConcise ApiChatCompletionsRequestStreamMode = "concise" ApiChatCompletionsRequestStreamModeFull ApiChatCompletionsRequestStreamMode = "full" )
Defines values for ApiChatCompletionsRequestStreamMode.
func (ApiChatCompletionsRequestStreamMode) Valid ¶
func (e ApiChatCompletionsRequestStreamMode) Valid() bool
Valid indicates whether the value is a known member of the ApiChatCompletionsRequestStreamMode enum.
type ApiChatCompletionsRequest_ResponseFormat ¶
type ApiChatCompletionsRequest_ResponseFormat struct {
// contains filtered or unexported fields
}
ApiChatCompletionsRequest_ResponseFormat Optional. Controls the output format. Omit for default text output. Set `type` to `json_schema` for structured output.
func (ApiChatCompletionsRequest_ResponseFormat) AsResponseFormatJSONSchema ¶
func (t ApiChatCompletionsRequest_ResponseFormat) AsResponseFormatJSONSchema() (ResponseFormatJSONSchema, error)
AsResponseFormatJSONSchema returns the union data inside the ApiChatCompletionsRequest_ResponseFormat as a ResponseFormatJSONSchema
func (ApiChatCompletionsRequest_ResponseFormat) AsResponseFormatText ¶
func (t ApiChatCompletionsRequest_ResponseFormat) AsResponseFormatText() (ResponseFormatText, error)
AsResponseFormatText returns the union data inside the ApiChatCompletionsRequest_ResponseFormat as a ResponseFormatText
func (ApiChatCompletionsRequest_ResponseFormat) Discriminator ¶
func (t ApiChatCompletionsRequest_ResponseFormat) Discriminator() (string, error)
func (*ApiChatCompletionsRequest_ResponseFormat) FromResponseFormatJSONSchema ¶
func (t *ApiChatCompletionsRequest_ResponseFormat) FromResponseFormatJSONSchema(v ResponseFormatJSONSchema) error
FromResponseFormatJSONSchema overwrites any union data inside the ApiChatCompletionsRequest_ResponseFormat as the provided ResponseFormatJSONSchema
func (*ApiChatCompletionsRequest_ResponseFormat) FromResponseFormatText ¶
func (t *ApiChatCompletionsRequest_ResponseFormat) FromResponseFormatText(v ResponseFormatText) error
FromResponseFormatText overwrites any union data inside the ApiChatCompletionsRequest_ResponseFormat as the provided ResponseFormatText
func (ApiChatCompletionsRequest_ResponseFormat) MarshalJSON ¶
func (t ApiChatCompletionsRequest_ResponseFormat) MarshalJSON() ([]byte, error)
func (*ApiChatCompletionsRequest_ResponseFormat) MergeResponseFormatJSONSchema ¶
func (t *ApiChatCompletionsRequest_ResponseFormat) MergeResponseFormatJSONSchema(v ResponseFormatJSONSchema) error
MergeResponseFormatJSONSchema performs a merge with any union data inside the ApiChatCompletionsRequest_ResponseFormat, using the provided ResponseFormatJSONSchema
func (*ApiChatCompletionsRequest_ResponseFormat) MergeResponseFormatText ¶
func (t *ApiChatCompletionsRequest_ResponseFormat) MergeResponseFormatText(v ResponseFormatText) error
MergeResponseFormatText performs a merge with any union data inside the ApiChatCompletionsRequest_ResponseFormat, using the provided ResponseFormatText
func (*ApiChatCompletionsRequest_ResponseFormat) UnmarshalJSON ¶
func (t *ApiChatCompletionsRequest_ResponseFormat) UnmarshalJSON(b []byte) error
func (ApiChatCompletionsRequest_ResponseFormat) ValueByDiscriminator ¶
func (t ApiChatCompletionsRequest_ResponseFormat) ValueByDiscriminator() (interface{}, error)
type ApiChatCompletionsRequest_Stop ¶
type ApiChatCompletionsRequest_Stop struct {
// contains filtered or unexported fields
}
ApiChatCompletionsRequest_Stop Stop sequences. Generation stops when one of these strings is produced
func (ApiChatCompletionsRequest_Stop) AsApiChatCompletionsRequestStop0 ¶
func (t ApiChatCompletionsRequest_Stop) AsApiChatCompletionsRequestStop0() (ApiChatCompletionsRequestStop0, error)
AsApiChatCompletionsRequestStop0 returns the union data inside the ApiChatCompletionsRequest_Stop as a ApiChatCompletionsRequestStop0
func (ApiChatCompletionsRequest_Stop) AsApiChatCompletionsRequestStop1 ¶
func (t ApiChatCompletionsRequest_Stop) AsApiChatCompletionsRequestStop1() (ApiChatCompletionsRequestStop1, error)
AsApiChatCompletionsRequestStop1 returns the union data inside the ApiChatCompletionsRequest_Stop as a ApiChatCompletionsRequestStop1
func (*ApiChatCompletionsRequest_Stop) FromApiChatCompletionsRequestStop0 ¶
func (t *ApiChatCompletionsRequest_Stop) FromApiChatCompletionsRequestStop0(v ApiChatCompletionsRequestStop0) error
FromApiChatCompletionsRequestStop0 overwrites any union data inside the ApiChatCompletionsRequest_Stop as the provided ApiChatCompletionsRequestStop0
func (*ApiChatCompletionsRequest_Stop) FromApiChatCompletionsRequestStop1 ¶
func (t *ApiChatCompletionsRequest_Stop) FromApiChatCompletionsRequestStop1(v ApiChatCompletionsRequestStop1) error
FromApiChatCompletionsRequestStop1 overwrites any union data inside the ApiChatCompletionsRequest_Stop as the provided ApiChatCompletionsRequestStop1
func (ApiChatCompletionsRequest_Stop) MarshalJSON ¶
func (t ApiChatCompletionsRequest_Stop) MarshalJSON() ([]byte, error)
func (*ApiChatCompletionsRequest_Stop) MergeApiChatCompletionsRequestStop0 ¶
func (t *ApiChatCompletionsRequest_Stop) MergeApiChatCompletionsRequestStop0(v ApiChatCompletionsRequestStop0) error
MergeApiChatCompletionsRequestStop0 performs a merge with any union data inside the ApiChatCompletionsRequest_Stop, using the provided ApiChatCompletionsRequestStop0
func (*ApiChatCompletionsRequest_Stop) MergeApiChatCompletionsRequestStop1 ¶
func (t *ApiChatCompletionsRequest_Stop) MergeApiChatCompletionsRequestStop1(v ApiChatCompletionsRequestStop1) error
MergeApiChatCompletionsRequestStop1 performs a merge with any union data inside the ApiChatCompletionsRequest_Stop, using the provided ApiChatCompletionsRequestStop1
func (*ApiChatCompletionsRequest_Stop) UnmarshalJSON ¶
func (t *ApiChatCompletionsRequest_Stop) UnmarshalJSON(b []byte) error
type ApiError ¶
type ApiError struct {
Error *struct {
// Code HTTP status code
Code int `json:"code"`
// Message Human-readable error message
Message string `json:"message"`
// Param Parameter that caused the error
Param *string `json:"param,omitempty"`
// Type Error type identifier
Type string `json:"type"`
} `json:"error,omitempty"`
}
ApiError defines model for ApiError.
type ApiPublicSearchResult ¶
type ApiPublicSearchResult struct {
// Date Publication date of the result
Date *string `json:"date,omitempty"`
// LastUpdated Date the result was last updated
LastUpdated *string `json:"last_updated,omitempty"`
// Snippet Text snippet from the search result
Snippet *string `json:"snippet,omitempty"`
// Source Source type of the result (web or attachment)
Source *ApiPublicSearchResultSource `json:"source,omitempty"`
// Title Title of the search result page
Title string `json:"title"`
// Url URL of the search result page
Url string `json:"url"`
}
ApiPublicSearchResult A single search result from the web
type ApiPublicSearchResultSource ¶
type ApiPublicSearchResultSource string
ApiPublicSearchResultSource Source type of the result (web or attachment)
const ( ApiPublicSearchResultSourceAttachment ApiPublicSearchResultSource = "attachment" ApiPublicSearchResultSourceWeb ApiPublicSearchResultSource = "web" )
Defines values for ApiPublicSearchResultSource.
func (ApiPublicSearchResultSource) Valid ¶
func (e ApiPublicSearchResultSource) Valid() bool
Valid indicates whether the value is a known member of the ApiPublicSearchResultSource enum.
type ApiSearchErrorResponse ¶ added in v0.6.0
type ApiSearchErrorResponse struct {
Error struct {
// Code HTTP status code.
Code int `json:"code"`
// Message Human-readable error message.
Message string `json:"message"`
// Type Error category, such as `invalid_request`, `invalid_language_code`, `invalid_country_code`, or `invalid_api_key`.
Type string `json:"type"`
} `json:"error"`
}
ApiSearchErrorResponse Error body returned by `POST /search`.
type ApiSearchPage ¶
type ApiSearchPage struct {
// Date Publication date of the page (YYYY-MM-DD). Omitted when the publication date is unknown.
Date *string `json:"date,omitempty"`
// LastUpdated Date the page was last updated (YYYY-MM-DD). Omitted on `snapshot_as_of` searches.
LastUpdated *string `json:"last_updated,omitempty"`
// Snippet Text extracted from the page that is relevant to the query. Not the full page.
Snippet string `json:"snippet"`
// Title Title of the page
Title string `json:"title"`
// Url URL of the page
Url string `json:"url"`
}
ApiSearchPage A single page from search results
type ApiSearchRequest ¶
type ApiSearchRequest struct {
// Country ISO 3166-1 alpha-2 country code, such as `US`. Returns results more relevant to that country.
Country *string `json:"country,omitempty"`
// DisplayServerTime When `true`, the response includes `server_time`.
DisplayServerTime *bool `json:"display_server_time,omitempty"`
// LastUpdatedAfterFilter Return results updated after this date (MM/DD/YYYY)
LastUpdatedAfterFilter *Date `json:"last_updated_after_filter,omitempty"`
// LastUpdatedBeforeFilter Return results updated before this date (MM/DD/YYYY)
LastUpdatedBeforeFilter *Date `json:"last_updated_before_filter,omitempty"`
// MaxResults Maximum number of results in the response, across all queries in the request. 1 to 20 for `web` and `fast`, 1 to 50 for `people`.
MaxResults *int `json:"max_results,omitempty"`
// Query One search query, or an array of 1 to 5 queries. Each query is 1 to 8192 bytes of UTF-8; the limit counts bytes, not characters. `max_results` applies to the combined results of all queries.
Query ApiSearchRequest_Query `json:"query"`
// SearchAfterDateFilter Return results published after this date (MM/DD/YYYY)
SearchAfterDateFilter *Date `json:"search_after_date_filter,omitempty"`
// SearchBeforeDateFilter Return results published before this date (MM/DD/YYYY)
SearchBeforeDateFilter *Date `json:"search_before_date_filter,omitempty"`
// SearchDomainFilter Include or exclude up to 200 domains or URLs, each up to 253 characters. Prefix an entry with `-` to exclude it.
SearchDomainFilter *[]string `json:"search_domain_filter,omitempty"`
// SearchLanguageFilter ISO 639-1 language codes, such as `en` or `fr`. Returns results in those languages. Up to 20 codes.
SearchLanguageFilter *[]string `json:"search_language_filter,omitempty"`
// SearchRecencyFilter Filter by publication recency (hour/day/week/month/year)
SearchRecencyFilter *SearchRecencyFilter `json:"search_recency_filter,omitempty"`
// SearchType Search type: `web` for general web search, `fast` for lower-latency web search, or `people` for people search. `max_results` above 20 is only supported for `people`.
SearchType *ApiSearchRequestSearchType `json:"search_type,omitempty"`
// SnapshotAsOf Search the web as of this RFC 3339 time with a time zone, such as `2026-11-01T00:00:00Z`. Each result comes from the copy of the page saved at or before this time. It must not be in the future or more than 365 days ago. Cannot be combined with `search_recency_filter`, the publication date filters, the last-updated filters, or `search_type` `people`. A page that can't be shown as of this time is omitted, so the response can have fewer than `max_results` results, or none.
SnapshotAsOf *string `json:"snapshot_as_of,omitempty"`
}
ApiSearchRequest defines model for ApiSearchRequest.
type ApiSearchRequestQuery0 ¶
type ApiSearchRequestQuery0 = string
ApiSearchRequestQuery0 defines model for ApiSearchRequest.Query.0.
type ApiSearchRequestQuery1 ¶
type ApiSearchRequestQuery1 = []string
ApiSearchRequestQuery1 defines model for ApiSearchRequest.Query.1.
type ApiSearchRequestSearchType ¶
type ApiSearchRequestSearchType string
ApiSearchRequestSearchType Search type: `web` for general web search, `fast` for lower-latency web search, or `people` for people search. `max_results` above 20 is only supported for `people`.
const ( ApiSearchRequestSearchTypeFast ApiSearchRequestSearchType = "fast" ApiSearchRequestSearchTypePeople ApiSearchRequestSearchType = "people" ApiSearchRequestSearchTypeWeb ApiSearchRequestSearchType = "web" )
Defines values for ApiSearchRequestSearchType.
func (ApiSearchRequestSearchType) Valid ¶
func (e ApiSearchRequestSearchType) Valid() bool
Valid indicates whether the value is a known member of the ApiSearchRequestSearchType enum.
type ApiSearchRequest_Query ¶
type ApiSearchRequest_Query struct {
// contains filtered or unexported fields
}
ApiSearchRequest_Query One search query, or an array of 1 to 5 queries. Each query is 1 to 8192 bytes of UTF-8; the limit counts bytes, not characters. `max_results` applies to the combined results of all queries.
func (ApiSearchRequest_Query) AsApiSearchRequestQuery0 ¶
func (t ApiSearchRequest_Query) AsApiSearchRequestQuery0() (ApiSearchRequestQuery0, error)
AsApiSearchRequestQuery0 returns the union data inside the ApiSearchRequest_Query as a ApiSearchRequestQuery0
func (ApiSearchRequest_Query) AsApiSearchRequestQuery1 ¶
func (t ApiSearchRequest_Query) AsApiSearchRequestQuery1() (ApiSearchRequestQuery1, error)
AsApiSearchRequestQuery1 returns the union data inside the ApiSearchRequest_Query as a ApiSearchRequestQuery1
func (*ApiSearchRequest_Query) FromApiSearchRequestQuery0 ¶
func (t *ApiSearchRequest_Query) FromApiSearchRequestQuery0(v ApiSearchRequestQuery0) error
FromApiSearchRequestQuery0 overwrites any union data inside the ApiSearchRequest_Query as the provided ApiSearchRequestQuery0
func (*ApiSearchRequest_Query) FromApiSearchRequestQuery1 ¶
func (t *ApiSearchRequest_Query) FromApiSearchRequestQuery1(v ApiSearchRequestQuery1) error
FromApiSearchRequestQuery1 overwrites any union data inside the ApiSearchRequest_Query as the provided ApiSearchRequestQuery1
func (ApiSearchRequest_Query) MarshalJSON ¶
func (t ApiSearchRequest_Query) MarshalJSON() ([]byte, error)
func (*ApiSearchRequest_Query) MergeApiSearchRequestQuery0 ¶
func (t *ApiSearchRequest_Query) MergeApiSearchRequestQuery0(v ApiSearchRequestQuery0) error
MergeApiSearchRequestQuery0 performs a merge with any union data inside the ApiSearchRequest_Query, using the provided ApiSearchRequestQuery0
func (*ApiSearchRequest_Query) MergeApiSearchRequestQuery1 ¶
func (t *ApiSearchRequest_Query) MergeApiSearchRequestQuery1(v ApiSearchRequestQuery1) error
MergeApiSearchRequestQuery1 performs a merge with any union data inside the ApiSearchRequest_Query, using the provided ApiSearchRequestQuery1
func (*ApiSearchRequest_Query) UnmarshalJSON ¶
func (t *ApiSearchRequest_Query) UnmarshalJSON(b []byte) error
type ApiSearchResponse ¶
type ApiSearchResponse struct {
// Id Request ID.
Id string `json:"id"`
// Results Ranked results. With several queries, results from all queries share one list.
Results []ApiSearchPage `json:"results"`
// ServerTime Server processing time, such as `0.163s`. Not included in responses by default.
ServerTime *string `json:"server_time,omitempty"`
}
ApiSearchResponse defines model for ApiSearchResponse.
type ApprovalFilter ¶
type ApprovalFilter struct {
// ReadOnly Matches the untrusted catalog classification reported as `mcp_list_tools.tools[].annotations.read_only`. Omitted or null imposes no classification constraint.
ReadOnly *bool `json:"read_only,omitempty"`
// ToolNames Exact, case-sensitive tool names. Omitted, null, or empty imposes no name constraint.
ToolNames *[]string `json:"tool_names,omitempty"`
}
ApprovalFilter Matches a tool when every present field matches. An empty filter matches every tool.
type ApprovalFilters ¶
type ApprovalFilters struct {
// Always Calls matching this filter require approval.
Always *ApprovalFilter `json:"always,omitempty"`
// Never Calls matching this filter run automatically unless `always` also matches.
Never *ApprovalFilter `json:"never,omitempty"`
}
ApprovalFilters Per-tool approval filters. An absent or null member matches no tool. Matching `always` takes precedence over matching `never`, and an unmatched call requires approval.
type AsyncApiChatCompletionsRequest ¶
type AsyncApiChatCompletionsRequest struct {
// IdempotencyKey Unique key to prevent duplicate requests
IdempotencyKey *string `json:"idempotency_key,omitempty"`
// Request The chat completion request to execute asynchronously
Request ApiChatCompletionsRequest `json:"request"`
}
AsyncApiChatCompletionsRequest Request body for creating an asynchronous chat completion
type AsyncApiChatCompletionsResponse ¶
type AsyncApiChatCompletionsResponse struct {
// CompletedAt Unix timestamp when processing completed
CompletedAt *int `json:"completed_at,omitempty"`
// CreatedAt Unix timestamp when the request was created
CreatedAt int `json:"created_at"`
// ErrorMessage Error message if the request failed
ErrorMessage *string `json:"error_message,omitempty"`
// FailedAt Unix timestamp when the request failed (if applicable)
FailedAt *int `json:"failed_at,omitempty"`
// Id Unique identifier for the async request
Id string `json:"id"`
// Model Model used for the request
Model string `json:"model"`
Response *CompletionResponse `json:"response,omitempty"`
// StartedAt Unix timestamp when processing started
StartedAt *int `json:"started_at,omitempty"`
// Status Current processing status of the request
Status AsyncProcessingStatus `json:"status"`
}
AsyncApiChatCompletionsResponse defines model for AsyncApiChatCompletionsResponse.
type AsyncApiChatCompletionsResponseSummary ¶
type AsyncApiChatCompletionsResponseSummary struct {
CompletedAt *int `json:"completed_at,omitempty"`
CreatedAt int `json:"created_at"`
FailedAt *int `json:"failed_at,omitempty"`
Id string `json:"id"`
Model string `json:"model"`
StartedAt *int `json:"started_at,omitempty"`
// Status Status enum for async processing.
Status AsyncProcessingStatus `json:"status"`
}
AsyncApiChatCompletionsResponseSummary defines model for AsyncApiChatCompletionsResponseSummary.
type AsyncProcessingStatus ¶
type AsyncProcessingStatus string
AsyncProcessingStatus Status enum for async processing.
const ( AsyncProcessingStatusCOMPLETED AsyncProcessingStatus = "COMPLETED" AsyncProcessingStatusCREATED AsyncProcessingStatus = "CREATED" AsyncProcessingStatusFAILED AsyncProcessingStatus = "FAILED" AsyncProcessingStatusINPROGRESS AsyncProcessingStatus = "IN_PROGRESS" )
Defines values for AsyncProcessingStatus.
func (AsyncProcessingStatus) Valid ¶
func (e AsyncProcessingStatus) Valid() bool
Valid indicates whether the value is a known member of the AsyncProcessingStatus enum.
type AuditEvent ¶ added in v0.3.0
type AuditEvent struct {
// ActorEmail Email of the member who performed the action. Empty for system-generated events such as `audit_events_accessed`.
ActorEmail string `json:"actor_email"`
// ActorExternalUserId The actor's external identifier from your identity provider (SCIM `externalId`) when set; otherwise an empty string.
ActorExternalUserId string `json:"actor_external_user_id"`
// CreatedAt When the event occurred, in UTC.
CreatedAt time.Time `json:"created_at"`
// Id Stable, unique event identifier.
Id string `json:"id"`
// IpAddress Client address recorded for the action, or an empty string when unavailable. Some server-originated events carry a non-IP marker, so validate the value before parsing it as an IP address.
IpAddress string `json:"ip_address"`
// Metadata Event-specific details. Keys vary by `type` and generally match the `metadata` object in the audit log webhook payload for that event. The exceptions (credential redaction, `comet_agent_action` fields, and answer text length) are listed in the [Audit API guide](/docs/admin/audit-api#webhooks-or-api). Treat the object as additive; new keys may appear without a version change.
Metadata map[string]interface{} `json:"metadata"`
// SessionId Identifier that links related events, such as a query and its answer. It is not a sign-in session. `null` when none was recorded.
SessionId *string `json:"session_id"`
// Type Event type, for example `query`, `member_invited`, or `connector_connected`.
Type string `json:"type"`
// UserAgent Client user agent recorded for the action, or an empty string when unavailable.
UserAgent string `json:"user_agent"`
}
AuditEvent A single audit event. Top-level field names differ from the audit log webhook payload; see the [Audit API guide](/docs/admin/audit-api#webhooks-or-api) for the differences.
type AuditEventsResponse ¶ added in v0.3.0
type AuditEventsResponse struct {
// Data Events in this page, newest first.
Data []AuditEvent `json:"data"`
// FirstId Opaque cursor for the newest event in the page, or `null` when `data` is empty. Save it and pass it as `before_id` on a later poll.
FirstId *string `json:"first_id"`
// HasMore Whether more events exist beyond this page in the direction you are paging. Stop when `false`; do not wait for an empty page.
HasMore bool `json:"has_more"`
// LastId Opaque cursor for the oldest event in the page, or `null` when `data` is empty. Pass it as `after_id` to fetch the next older page.
LastId *string `json:"last_id"`
}
AuditEventsResponse defines model for AuditEventsResponse.
type Batch ¶ added in v0.2.0
type Batch struct {
CancelledAt *int64 `json:"cancelled_at,omitempty"`
CancellingAt *int64 `json:"cancelling_at,omitempty"`
CompletedAt *int64 `json:"completed_at,omitempty"`
CompletionWindow string `json:"completion_window"`
// CreatedAt Unix seconds
CreatedAt int64 `json:"created_at"`
Endpoint string `json:"endpoint"`
ErrorFileId *string `json:"error_file_id,omitempty"`
Errors *BatchErrors `json:"errors,omitempty"`
ExpiredAt *int64 `json:"expired_at,omitempty"`
ExpiresAt *int64 `json:"expires_at,omitempty"`
FailedAt *int64 `json:"failed_at,omitempty"`
FinalizingAt *int64 `json:"finalizing_at,omitempty"`
Id string `json:"id"`
InProgressAt *int64 `json:"in_progress_at,omitempty"`
InputFileId string `json:"input_file_id"`
Metadata *map[string]string `json:"metadata,omitempty"`
Object BatchObject `json:"object"`
OutputFileId *string `json:"output_file_id,omitempty"`
RequestCounts BatchRequestCounts `json:"request_counts"`
Status BatchStatus `json:"status"`
Usage BatchUsage `json:"usage"`
}
Batch defines model for Batch.
type BatchError ¶ added in v0.2.0
type BatchError struct {
Code string `json:"code"`
// Line 1-based input line the error refers to
Line *int64 `json:"line,omitempty"`
Message string `json:"message"`
}
BatchError defines model for BatchError.
type BatchErrors ¶ added in v0.2.0
type BatchErrors struct {
Data []BatchError `json:"data"`
Object BatchErrorsObject `json:"object"`
}
BatchErrors defines model for BatchErrors.
type BatchErrorsObject ¶ added in v0.2.0
type BatchErrorsObject string
BatchErrorsObject defines model for BatchErrors.Object.
const (
BatchErrorsObjectList BatchErrorsObject = "list"
)
Defines values for BatchErrorsObject.
func (BatchErrorsObject) Valid ¶ added in v0.2.0
func (e BatchErrorsObject) Valid() bool
Valid indicates whether the value is a known member of the BatchErrorsObject enum.
type BatchFile ¶ added in v0.2.0
type BatchFile struct {
Bytes int64 `json:"bytes"`
// CreatedAt Unix seconds
CreatedAt int64 `json:"created_at"`
// ExpiresAt Unix seconds
ExpiresAt *int64 `json:"expires_at,omitempty"`
Filename string `json:"filename"`
Id string `json:"id"`
Object BatchFileObject `json:"object"`
// Purpose `batch` for uploads, `batch_output` for output and error files
Purpose BatchFilePurpose `json:"purpose"`
}
BatchFile defines model for BatchFile.
type BatchFileDeleted ¶ added in v0.2.0
type BatchFileDeleted struct {
Deleted bool `json:"deleted"`
Id string `json:"id"`
Object BatchFileDeletedObject `json:"object"`
}
BatchFileDeleted defines model for BatchFileDeleted.
type BatchFileDeletedObject ¶ added in v0.2.0
type BatchFileDeletedObject string
BatchFileDeletedObject defines model for BatchFileDeleted.Object.
const (
BatchFileDeletedObjectFile BatchFileDeletedObject = "file"
)
Defines values for BatchFileDeletedObject.
func (BatchFileDeletedObject) Valid ¶ added in v0.2.0
func (e BatchFileDeletedObject) Valid() bool
Valid indicates whether the value is a known member of the BatchFileDeletedObject enum.
type BatchFileId ¶ added in v0.2.0
type BatchFileId = string
BatchFileId defines model for BatchFileId.
type BatchFileList ¶ added in v0.2.0
type BatchFileList struct {
Data []BatchFile `json:"data"`
FirstId *string `json:"first_id,omitempty"`
HasMore bool `json:"has_more"`
LastId *string `json:"last_id,omitempty"`
Object BatchFileListObject `json:"object"`
}
BatchFileList defines model for BatchFileList.
type BatchFileListObject ¶ added in v0.2.0
type BatchFileListObject string
BatchFileListObject defines model for BatchFileList.Object.
const (
BatchFileListObjectList BatchFileListObject = "list"
)
Defines values for BatchFileListObject.
func (BatchFileListObject) Valid ¶ added in v0.2.0
func (e BatchFileListObject) Valid() bool
Valid indicates whether the value is a known member of the BatchFileListObject enum.
type BatchFileObject ¶ added in v0.2.0
type BatchFileObject string
BatchFileObject defines model for BatchFile.Object.
const (
BatchFileObjectFile BatchFileObject = "file"
)
Defines values for BatchFileObject.
func (BatchFileObject) Valid ¶ added in v0.2.0
func (e BatchFileObject) Valid() bool
Valid indicates whether the value is a known member of the BatchFileObject enum.
type BatchFilePurpose ¶ added in v0.2.0
type BatchFilePurpose string
BatchFilePurpose `batch` for uploads, `batch_output` for output and error files
const ( BatchFilePurposeBatch BatchFilePurpose = "batch" BatchFilePurposeBatchOutput BatchFilePurpose = "batch_output" )
Defines values for BatchFilePurpose.
func (BatchFilePurpose) Valid ¶ added in v0.2.0
func (e BatchFilePurpose) Valid() bool
Valid indicates whether the value is a known member of the BatchFilePurpose enum.
type BatchIdempotencyKey ¶ added in v0.2.0
type BatchIdempotencyKey = string
BatchIdempotencyKey defines model for BatchIdempotencyKey.
type BatchList ¶ added in v0.2.0
type BatchList struct {
Data []Batch `json:"data"`
FirstId *string `json:"first_id,omitempty"`
HasMore bool `json:"has_more"`
LastId *string `json:"last_id,omitempty"`
Object BatchListObject `json:"object"`
}
BatchList defines model for BatchList.
type BatchListObject ¶ added in v0.2.0
type BatchListObject string
BatchListObject defines model for BatchList.Object.
const (
BatchListObjectList BatchListObject = "list"
)
Defines values for BatchListObject.
func (BatchListObject) Valid ¶ added in v0.2.0
func (e BatchListObject) Valid() bool
Valid indicates whether the value is a known member of the BatchListObject enum.
type BatchObject ¶ added in v0.2.0
type BatchObject string
BatchObject defines model for Batch.Object.
const (
BatchObjectBatch BatchObject = "batch"
)
Defines values for BatchObject.
func (BatchObject) Valid ¶ added in v0.2.0
func (e BatchObject) Valid() bool
Valid indicates whether the value is a known member of the BatchObject enum.
type BatchRequestCounts ¶ added in v0.2.0
type BatchRequestCounts struct {
Completed int64 `json:"completed"`
Failed int64 `json:"failed"`
Total int64 `json:"total"`
}
BatchRequestCounts defines model for BatchRequestCounts.
type BatchStatus ¶ added in v0.2.0
type BatchStatus string
BatchStatus defines model for BatchStatus.
const ( BatchStatusCancelled BatchStatus = "cancelled" BatchStatusCancelling BatchStatus = "cancelling" BatchStatusCompleted BatchStatus = "completed" BatchStatusExpired BatchStatus = "expired" BatchStatusFailed BatchStatus = "failed" BatchStatusFinalizing BatchStatus = "finalizing" BatchStatusInProgress BatchStatus = "in_progress" BatchStatusValidating BatchStatus = "validating" )
Defines values for BatchStatus.
func (BatchStatus) Valid ¶ added in v0.2.0
func (e BatchStatus) Valid() bool
Valid indicates whether the value is a known member of the BatchStatus enum.
type BatchUsage ¶ added in v0.2.0
type BatchUsage struct {
InputTokens int64 `json:"input_tokens"`
InputTokensDetails struct {
CachedTokens int64 `json:"cached_tokens"`
} `json:"input_tokens_details"`
OutputTokens int64 `json:"output_tokens"`
OutputTokensDetails struct {
ReasoningTokens int64 `json:"reasoning_tokens"`
} `json:"output_tokens_details"`
TotalTokens int64 `json:"total_tokens"`
}
BatchUsage defines model for BatchUsage.
type BuiltinSkill ¶
type BuiltinSkill struct {
// Name Built-in skill to make available to the model. office is the full Office bundle (enables all four leaves). office/docx, office/pdf, office/pptx, office/xlsx each create polished documents of that type from scratch, with structural validation and visual QA.
Name BuiltinSkillName `json:"name"`
Type BuiltinSkillType `json:"type"`
}
BuiltinSkill defines model for BuiltinSkill.
type BuiltinSkillName ¶
type BuiltinSkillName string
BuiltinSkillName Built-in skill to make available to the model. office is the full Office bundle (enables all four leaves). office/docx, office/pdf, office/pptx, office/xlsx each create polished documents of that type from scratch, with structural validation and visual QA.
const ( BuiltinSkillNameOffice BuiltinSkillName = "office" BuiltinSkillNameOfficedocx BuiltinSkillName = "office/docx" BuiltinSkillNameOfficepdf BuiltinSkillName = "office/pdf" BuiltinSkillNameOfficepptx BuiltinSkillName = "office/pptx" BuiltinSkillNameOfficexlsx BuiltinSkillName = "office/xlsx" )
Defines values for BuiltinSkillName.
func (BuiltinSkillName) Valid ¶
func (e BuiltinSkillName) Valid() bool
Valid indicates whether the value is a known member of the BuiltinSkillName enum.
type BuiltinSkillType ¶
type BuiltinSkillType string
BuiltinSkillType defines model for BuiltinSkill.Type.
const (
BuiltinSkillTypeBuiltin BuiltinSkillType = "builtin"
)
Defines values for BuiltinSkillType.
func (BuiltinSkillType) Valid ¶
func (e BuiltinSkillType) Valid() bool
Valid indicates whether the value is a known member of the BuiltinSkillType enum.
type CancelAgentResponse200JSONResponseBodyStatus ¶
type CancelAgentResponse200JSONResponseBodyStatus string
CancelAgentResponse200JSONResponseBodyStatus defines parameters for CancelAgentResponse.
const (
CancelAgentResponse200JSONResponseBodyStatusCancelling CancelAgentResponse200JSONResponseBodyStatus = "cancelling"
)
Defines values for CancelAgentResponse200JSONResponseBodyStatus.
func (CancelAgentResponse200JSONResponseBodyStatus) Valid ¶
func (e CancelAgentResponse200JSONResponseBodyStatus) Valid() bool
Valid indicates whether the value is a known member of the CancelAgentResponse200JSONResponseBodyStatus enum.
type CancelAgentResponseResponse ¶
type CancelAgentResponseResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
// ResponseId The response id (`resp_<...>`).
ResponseId string `json:"response_id"`
// Status Always `cancelling` - the cancel was accepted and the run stops asynchronously. An already-terminal run returns `400` instead, so no terminal status appears here.
Status CancelAgentResponse200JSONResponseBodyStatus `json:"status"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
// Error Error information returned when a request fails
Error *ErrorInfo `json:"error,omitempty"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
// Error Error information returned when a request fails
Error *ErrorInfo `json:"error,omitempty"`
}
}
func ParseCancelAgentResponseResponse ¶
func ParseCancelAgentResponseResponse(rsp *http.Response) (*CancelAgentResponseResponse, error)
ParseCancelAgentResponseResponse parses an HTTP response from a CancelAgentResponseWithResponse call
func (CancelAgentResponseResponse) ContentType ¶
func (r CancelAgentResponseResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CancelAgentResponseResponse) GetBody ¶
func (r CancelAgentResponseResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CancelAgentResponseResponse) GetJSON200 ¶
func (r CancelAgentResponseResponse) GetJSON200() *struct { // ResponseId The response id (`resp_<...>`). ResponseId string `json:"response_id"` // Status Always `cancelling` - the cancel was accepted and the run stops asynchronously. An already-terminal run returns `400` instead, so no terminal status appears here. Status CancelAgentResponse200JSONResponseBodyStatus `json:"status"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CancelAgentResponseResponse) GetJSON400 ¶
func (r CancelAgentResponseResponse) GetJSON400() *struct { // Error Error information returned when a request fails Error *ErrorInfo `json:"error,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CancelAgentResponseResponse) GetJSON404 ¶
func (r CancelAgentResponseResponse) GetJSON404() *struct { // Error Error information returned when a request fails Error *ErrorInfo `json:"error,omitempty"` }
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CancelAgentResponseResponse) Status ¶
func (r CancelAgentResponseResponse) Status() string
Status returns HTTPResponse.Status
func (CancelAgentResponseResponse) StatusCode ¶
func (r CancelAgentResponseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelBatchResponse ¶ added in v0.2.0
type CancelBatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Batch
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ApiError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
}
func ParseCancelBatchResponse ¶ added in v0.2.0
func ParseCancelBatchResponse(rsp *http.Response) (*CancelBatchResponse, error)
ParseCancelBatchResponse parses an HTTP response from a CancelBatchWithResponse call
func (CancelBatchResponse) ContentType ¶ added in v0.2.0
func (r CancelBatchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CancelBatchResponse) GetBody ¶ added in v0.2.0
func (r CancelBatchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CancelBatchResponse) GetJSON200 ¶ added in v0.2.0
func (r CancelBatchResponse) GetJSON200() *Batch
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CancelBatchResponse) GetJSON404 ¶ added in v0.2.0
func (r CancelBatchResponse) GetJSON404() *ApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CancelBatchResponse) GetJSON409 ¶ added in v0.2.0
func (r CancelBatchResponse) GetJSON409() *ApiError
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CancelBatchResponse) GetJSON429 ¶ added in v0.2.0
func (r CancelBatchResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (CancelBatchResponse) Status ¶ added in v0.2.0
func (r CancelBatchResponse) Status() string
Status returns HTTPResponse.Status
func (CancelBatchResponse) StatusCode ¶ added in v0.2.0
func (r CancelBatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ChatCompletionsChatCompletionsPostJSONRequestBody ¶
type ChatCompletionsChatCompletionsPostJSONRequestBody = ApiChatCompletionsRequest
ChatCompletionsChatCompletionsPostJSONRequestBody defines body for ChatCompletionsChatCompletionsPost for application/json ContentType.
type ChatCompletionsChatCompletionsPostResponse ¶
type ChatCompletionsChatCompletionsPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CompletionResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseChatCompletionsChatCompletionsPostResponse ¶
func ParseChatCompletionsChatCompletionsPostResponse(rsp *http.Response) (*ChatCompletionsChatCompletionsPostResponse, error)
ParseChatCompletionsChatCompletionsPostResponse parses an HTTP response from a ChatCompletionsChatCompletionsPostWithResponse call
func (ChatCompletionsChatCompletionsPostResponse) ContentType ¶
func (r ChatCompletionsChatCompletionsPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ChatCompletionsChatCompletionsPostResponse) GetBody ¶
func (r ChatCompletionsChatCompletionsPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ChatCompletionsChatCompletionsPostResponse) GetJSON200 ¶
func (r ChatCompletionsChatCompletionsPostResponse) GetJSON200() *CompletionResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ChatCompletionsChatCompletionsPostResponse) GetJSON422 ¶
func (r ChatCompletionsChatCompletionsPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ChatCompletionsChatCompletionsPostResponse) Status ¶
func (r ChatCompletionsChatCompletionsPostResponse) Status() string
Status returns HTTPResponse.Status
func (ChatCompletionsChatCompletionsPostResponse) StatusCode ¶
func (r ChatCompletionsChatCompletionsPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ChatMessageContentFileChunk ¶
type ChatMessageContentFileChunk struct {
FileName *string `json:"file_name,omitempty"`
FileUrl ChatMessageContentFileChunk_FileUrl `json:"file_url"`
Type ChatMessageContentFileChunkType `json:"type"`
}
ChatMessageContentFileChunk defines model for ChatMessageContentFileChunk.
type ChatMessageContentFileChunkFileUrl1 ¶
type ChatMessageContentFileChunkFileUrl1 = string
ChatMessageContentFileChunkFileUrl1 defines model for ChatMessageContentFileChunk.FileUrl.1.
type ChatMessageContentFileChunkType ¶
type ChatMessageContentFileChunkType string
ChatMessageContentFileChunkType defines model for ChatMessageContentFileChunk.Type.
const (
ChatMessageContentFileChunkTypeFileUrl ChatMessageContentFileChunkType = "file_url"
)
Defines values for ChatMessageContentFileChunkType.
func (ChatMessageContentFileChunkType) Valid ¶
func (e ChatMessageContentFileChunkType) Valid() bool
Valid indicates whether the value is a known member of the ChatMessageContentFileChunkType enum.
type ChatMessageContentFileChunk_FileUrl ¶
type ChatMessageContentFileChunk_FileUrl struct {
// contains filtered or unexported fields
}
ChatMessageContentFileChunk_FileUrl defines model for ChatMessageContentFileChunk.FileUrl.
func (ChatMessageContentFileChunk_FileUrl) AsChatMessageContentFileChunkFileUrl1 ¶
func (t ChatMessageContentFileChunk_FileUrl) AsChatMessageContentFileChunkFileUrl1() (ChatMessageContentFileChunkFileUrl1, error)
AsChatMessageContentFileChunkFileUrl1 returns the union data inside the ChatMessageContentFileChunk_FileUrl as a ChatMessageContentFileChunkFileUrl1
func (ChatMessageContentFileChunk_FileUrl) AsURL ¶
func (t ChatMessageContentFileChunk_FileUrl) AsURL() (URL, error)
AsURL returns the union data inside the ChatMessageContentFileChunk_FileUrl as a URL
func (*ChatMessageContentFileChunk_FileUrl) FromChatMessageContentFileChunkFileUrl1 ¶
func (t *ChatMessageContentFileChunk_FileUrl) FromChatMessageContentFileChunkFileUrl1(v ChatMessageContentFileChunkFileUrl1) error
FromChatMessageContentFileChunkFileUrl1 overwrites any union data inside the ChatMessageContentFileChunk_FileUrl as the provided ChatMessageContentFileChunkFileUrl1
func (*ChatMessageContentFileChunk_FileUrl) FromURL ¶
func (t *ChatMessageContentFileChunk_FileUrl) FromURL(v URL) error
FromURL overwrites any union data inside the ChatMessageContentFileChunk_FileUrl as the provided URL
func (ChatMessageContentFileChunk_FileUrl) MarshalJSON ¶
func (t ChatMessageContentFileChunk_FileUrl) MarshalJSON() ([]byte, error)
func (*ChatMessageContentFileChunk_FileUrl) MergeChatMessageContentFileChunkFileUrl1 ¶
func (t *ChatMessageContentFileChunk_FileUrl) MergeChatMessageContentFileChunkFileUrl1(v ChatMessageContentFileChunkFileUrl1) error
MergeChatMessageContentFileChunkFileUrl1 performs a merge with any union data inside the ChatMessageContentFileChunk_FileUrl, using the provided ChatMessageContentFileChunkFileUrl1
func (*ChatMessageContentFileChunk_FileUrl) MergeURL ¶
func (t *ChatMessageContentFileChunk_FileUrl) MergeURL(v URL) error
MergeURL performs a merge with any union data inside the ChatMessageContentFileChunk_FileUrl, using the provided URL
func (*ChatMessageContentFileChunk_FileUrl) UnmarshalJSON ¶
func (t *ChatMessageContentFileChunk_FileUrl) UnmarshalJSON(b []byte) error
type ChatMessageContentImageChunk ¶
type ChatMessageContentImageChunk struct {
ImageUrl ChatMessageContentImageChunk_ImageUrl `json:"image_url"`
Type ChatMessageContentImageChunkType `json:"type"`
}
ChatMessageContentImageChunk defines model for ChatMessageContentImageChunk.
type ChatMessageContentImageChunkImageUrl1 ¶
type ChatMessageContentImageChunkImageUrl1 = string
ChatMessageContentImageChunkImageUrl1 defines model for ChatMessageContentImageChunk.ImageUrl.1.
type ChatMessageContentImageChunkType ¶
type ChatMessageContentImageChunkType string
ChatMessageContentImageChunkType defines model for ChatMessageContentImageChunk.Type.
const (
ChatMessageContentImageChunkTypeImageUrl ChatMessageContentImageChunkType = "image_url"
)
Defines values for ChatMessageContentImageChunkType.
func (ChatMessageContentImageChunkType) Valid ¶
func (e ChatMessageContentImageChunkType) Valid() bool
Valid indicates whether the value is a known member of the ChatMessageContentImageChunkType enum.
type ChatMessageContentImageChunk_ImageUrl ¶
type ChatMessageContentImageChunk_ImageUrl struct {
// contains filtered or unexported fields
}
ChatMessageContentImageChunk_ImageUrl defines model for ChatMessageContentImageChunk.ImageUrl.
func (ChatMessageContentImageChunk_ImageUrl) AsChatMessageContentImageChunkImageUrl1 ¶
func (t ChatMessageContentImageChunk_ImageUrl) AsChatMessageContentImageChunkImageUrl1() (ChatMessageContentImageChunkImageUrl1, error)
AsChatMessageContentImageChunkImageUrl1 returns the union data inside the ChatMessageContentImageChunk_ImageUrl as a ChatMessageContentImageChunkImageUrl1
func (ChatMessageContentImageChunk_ImageUrl) AsURL ¶
func (t ChatMessageContentImageChunk_ImageUrl) AsURL() (URL, error)
AsURL returns the union data inside the ChatMessageContentImageChunk_ImageUrl as a URL
func (*ChatMessageContentImageChunk_ImageUrl) FromChatMessageContentImageChunkImageUrl1 ¶
func (t *ChatMessageContentImageChunk_ImageUrl) FromChatMessageContentImageChunkImageUrl1(v ChatMessageContentImageChunkImageUrl1) error
FromChatMessageContentImageChunkImageUrl1 overwrites any union data inside the ChatMessageContentImageChunk_ImageUrl as the provided ChatMessageContentImageChunkImageUrl1
func (*ChatMessageContentImageChunk_ImageUrl) FromURL ¶
func (t *ChatMessageContentImageChunk_ImageUrl) FromURL(v URL) error
FromURL overwrites any union data inside the ChatMessageContentImageChunk_ImageUrl as the provided URL
func (ChatMessageContentImageChunk_ImageUrl) MarshalJSON ¶
func (t ChatMessageContentImageChunk_ImageUrl) MarshalJSON() ([]byte, error)
func (*ChatMessageContentImageChunk_ImageUrl) MergeChatMessageContentImageChunkImageUrl1 ¶
func (t *ChatMessageContentImageChunk_ImageUrl) MergeChatMessageContentImageChunkImageUrl1(v ChatMessageContentImageChunkImageUrl1) error
MergeChatMessageContentImageChunkImageUrl1 performs a merge with any union data inside the ChatMessageContentImageChunk_ImageUrl, using the provided ChatMessageContentImageChunkImageUrl1
func (*ChatMessageContentImageChunk_ImageUrl) MergeURL ¶
func (t *ChatMessageContentImageChunk_ImageUrl) MergeURL(v URL) error
MergeURL performs a merge with any union data inside the ChatMessageContentImageChunk_ImageUrl, using the provided URL
func (*ChatMessageContentImageChunk_ImageUrl) UnmarshalJSON ¶
func (t *ChatMessageContentImageChunk_ImageUrl) UnmarshalJSON(b []byte) error
type ChatMessageContentPDFChunk ¶
type ChatMessageContentPDFChunk struct {
PdfUrl ChatMessageContentPDFChunk_PdfUrl `json:"pdf_url"`
Type ChatMessageContentPDFChunkType `json:"type"`
}
ChatMessageContentPDFChunk defines model for ChatMessageContentPDFChunk.
type ChatMessageContentPDFChunkPdfUrl1 ¶
type ChatMessageContentPDFChunkPdfUrl1 = string
ChatMessageContentPDFChunkPdfUrl1 defines model for ChatMessageContentPDFChunk.PdfUrl.1.
type ChatMessageContentPDFChunkType ¶
type ChatMessageContentPDFChunkType string
ChatMessageContentPDFChunkType defines model for ChatMessageContentPDFChunk.Type.
const (
ChatMessageContentPDFChunkTypePdfUrl ChatMessageContentPDFChunkType = "pdf_url"
)
Defines values for ChatMessageContentPDFChunkType.
func (ChatMessageContentPDFChunkType) Valid ¶
func (e ChatMessageContentPDFChunkType) Valid() bool
Valid indicates whether the value is a known member of the ChatMessageContentPDFChunkType enum.
type ChatMessageContentPDFChunk_PdfUrl ¶
type ChatMessageContentPDFChunk_PdfUrl struct {
// contains filtered or unexported fields
}
ChatMessageContentPDFChunk_PdfUrl defines model for ChatMessageContentPDFChunk.PdfUrl.
func (ChatMessageContentPDFChunk_PdfUrl) AsChatMessageContentPDFChunkPdfUrl1 ¶
func (t ChatMessageContentPDFChunk_PdfUrl) AsChatMessageContentPDFChunkPdfUrl1() (ChatMessageContentPDFChunkPdfUrl1, error)
AsChatMessageContentPDFChunkPdfUrl1 returns the union data inside the ChatMessageContentPDFChunk_PdfUrl as a ChatMessageContentPDFChunkPdfUrl1
func (ChatMessageContentPDFChunk_PdfUrl) AsURL ¶
func (t ChatMessageContentPDFChunk_PdfUrl) AsURL() (URL, error)
AsURL returns the union data inside the ChatMessageContentPDFChunk_PdfUrl as a URL
func (*ChatMessageContentPDFChunk_PdfUrl) FromChatMessageContentPDFChunkPdfUrl1 ¶
func (t *ChatMessageContentPDFChunk_PdfUrl) FromChatMessageContentPDFChunkPdfUrl1(v ChatMessageContentPDFChunkPdfUrl1) error
FromChatMessageContentPDFChunkPdfUrl1 overwrites any union data inside the ChatMessageContentPDFChunk_PdfUrl as the provided ChatMessageContentPDFChunkPdfUrl1
func (*ChatMessageContentPDFChunk_PdfUrl) FromURL ¶
func (t *ChatMessageContentPDFChunk_PdfUrl) FromURL(v URL) error
FromURL overwrites any union data inside the ChatMessageContentPDFChunk_PdfUrl as the provided URL
func (ChatMessageContentPDFChunk_PdfUrl) MarshalJSON ¶
func (t ChatMessageContentPDFChunk_PdfUrl) MarshalJSON() ([]byte, error)
func (*ChatMessageContentPDFChunk_PdfUrl) MergeChatMessageContentPDFChunkPdfUrl1 ¶
func (t *ChatMessageContentPDFChunk_PdfUrl) MergeChatMessageContentPDFChunkPdfUrl1(v ChatMessageContentPDFChunkPdfUrl1) error
MergeChatMessageContentPDFChunkPdfUrl1 performs a merge with any union data inside the ChatMessageContentPDFChunk_PdfUrl, using the provided ChatMessageContentPDFChunkPdfUrl1
func (*ChatMessageContentPDFChunk_PdfUrl) MergeURL ¶
func (t *ChatMessageContentPDFChunk_PdfUrl) MergeURL(v URL) error
MergeURL performs a merge with any union data inside the ChatMessageContentPDFChunk_PdfUrl, using the provided URL
func (*ChatMessageContentPDFChunk_PdfUrl) UnmarshalJSON ¶
func (t *ChatMessageContentPDFChunk_PdfUrl) UnmarshalJSON(b []byte) error
type ChatMessageContentTextChunk ¶
type ChatMessageContentTextChunk struct {
Text string `json:"text"`
Type ChatMessageContentTextChunkType `json:"type"`
}
ChatMessageContentTextChunk defines model for ChatMessageContentTextChunk.
type ChatMessageContentTextChunkType ¶
type ChatMessageContentTextChunkType string
ChatMessageContentTextChunkType defines model for ChatMessageContentTextChunk.Type.
const (
ChatMessageContentTextChunkTypeText ChatMessageContentTextChunkType = "text"
)
Defines values for ChatMessageContentTextChunkType.
func (ChatMessageContentTextChunkType) Valid ¶
func (e ChatMessageContentTextChunkType) Valid() bool
Valid indicates whether the value is a known member of the ChatMessageContentTextChunkType enum.
type ChatMessageContentVideoChunk ¶
type ChatMessageContentVideoChunk struct {
Type ChatMessageContentVideoChunkType `json:"type"`
VideoUrl ChatMessageContentVideoChunk_VideoUrl `json:"video_url"`
}
ChatMessageContentVideoChunk defines model for ChatMessageContentVideoChunk.
type ChatMessageContentVideoChunkType ¶
type ChatMessageContentVideoChunkType string
ChatMessageContentVideoChunkType defines model for ChatMessageContentVideoChunk.Type.
const (
ChatMessageContentVideoChunkTypeVideoUrl ChatMessageContentVideoChunkType = "video_url"
)
Defines values for ChatMessageContentVideoChunkType.
func (ChatMessageContentVideoChunkType) Valid ¶
func (e ChatMessageContentVideoChunkType) Valid() bool
Valid indicates whether the value is a known member of the ChatMessageContentVideoChunkType enum.
type ChatMessageContentVideoChunkVideoUrl1 ¶
type ChatMessageContentVideoChunkVideoUrl1 = string
ChatMessageContentVideoChunkVideoUrl1 defines model for ChatMessageContentVideoChunk.VideoUrl.1.
type ChatMessageContentVideoChunk_VideoUrl ¶
type ChatMessageContentVideoChunk_VideoUrl struct {
// contains filtered or unexported fields
}
ChatMessageContentVideoChunk_VideoUrl defines model for ChatMessageContentVideoChunk.VideoUrl.
func (ChatMessageContentVideoChunk_VideoUrl) AsChatMessageContentVideoChunkVideoUrl1 ¶
func (t ChatMessageContentVideoChunk_VideoUrl) AsChatMessageContentVideoChunkVideoUrl1() (ChatMessageContentVideoChunkVideoUrl1, error)
AsChatMessageContentVideoChunkVideoUrl1 returns the union data inside the ChatMessageContentVideoChunk_VideoUrl as a ChatMessageContentVideoChunkVideoUrl1
func (ChatMessageContentVideoChunk_VideoUrl) AsVideoURL ¶
func (t ChatMessageContentVideoChunk_VideoUrl) AsVideoURL() (VideoURL, error)
AsVideoURL returns the union data inside the ChatMessageContentVideoChunk_VideoUrl as a VideoURL
func (*ChatMessageContentVideoChunk_VideoUrl) FromChatMessageContentVideoChunkVideoUrl1 ¶
func (t *ChatMessageContentVideoChunk_VideoUrl) FromChatMessageContentVideoChunkVideoUrl1(v ChatMessageContentVideoChunkVideoUrl1) error
FromChatMessageContentVideoChunkVideoUrl1 overwrites any union data inside the ChatMessageContentVideoChunk_VideoUrl as the provided ChatMessageContentVideoChunkVideoUrl1
func (*ChatMessageContentVideoChunk_VideoUrl) FromVideoURL ¶
func (t *ChatMessageContentVideoChunk_VideoUrl) FromVideoURL(v VideoURL) error
FromVideoURL overwrites any union data inside the ChatMessageContentVideoChunk_VideoUrl as the provided VideoURL
func (ChatMessageContentVideoChunk_VideoUrl) MarshalJSON ¶
func (t ChatMessageContentVideoChunk_VideoUrl) MarshalJSON() ([]byte, error)
func (*ChatMessageContentVideoChunk_VideoUrl) MergeChatMessageContentVideoChunkVideoUrl1 ¶
func (t *ChatMessageContentVideoChunk_VideoUrl) MergeChatMessageContentVideoChunkVideoUrl1(v ChatMessageContentVideoChunkVideoUrl1) error
MergeChatMessageContentVideoChunkVideoUrl1 performs a merge with any union data inside the ChatMessageContentVideoChunk_VideoUrl, using the provided ChatMessageContentVideoChunkVideoUrl1
func (*ChatMessageContentVideoChunk_VideoUrl) MergeVideoURL ¶
func (t *ChatMessageContentVideoChunk_VideoUrl) MergeVideoURL(v VideoURL) error
MergeVideoURL performs a merge with any union data inside the ChatMessageContentVideoChunk_VideoUrl, using the provided VideoURL
func (*ChatMessageContentVideoChunk_VideoUrl) UnmarshalJSON ¶
func (t *ChatMessageContentVideoChunk_VideoUrl) UnmarshalJSON(b []byte) error
type ChatMessageInput ¶
type ChatMessageInput struct {
Content *ChatMessageInput_Content `json:"content"`
// Role Chat roles enum
Role ChatMessageRole `json:"role"`
}
ChatMessageInput defines model for ChatMessage-Input.
type ChatMessageInputContent0 ¶
type ChatMessageInputContent0 = string
ChatMessageInputContent0 defines model for ChatMessageInput.Content.0.
type ChatMessageInputContent1 ¶
type ChatMessageInputContent1 = []ChatMessageInput_Content_1_Item
ChatMessageInputContent1 defines model for ChatMessageInput.Content.1.
type ChatMessageInput_Content ¶
type ChatMessageInput_Content struct {
// contains filtered or unexported fields
}
ChatMessageInput_Content defines model for ChatMessageInput.Content.
func (ChatMessageInput_Content) AsChatMessageInputContent0 ¶
func (t ChatMessageInput_Content) AsChatMessageInputContent0() (ChatMessageInputContent0, error)
AsChatMessageInputContent0 returns the union data inside the ChatMessageInput_Content as a ChatMessageInputContent0
func (ChatMessageInput_Content) AsChatMessageInputContent1 ¶
func (t ChatMessageInput_Content) AsChatMessageInputContent1() (ChatMessageInputContent1, error)
AsChatMessageInputContent1 returns the union data inside the ChatMessageInput_Content as a ChatMessageInputContent1
func (*ChatMessageInput_Content) FromChatMessageInputContent0 ¶
func (t *ChatMessageInput_Content) FromChatMessageInputContent0(v ChatMessageInputContent0) error
FromChatMessageInputContent0 overwrites any union data inside the ChatMessageInput_Content as the provided ChatMessageInputContent0
func (*ChatMessageInput_Content) FromChatMessageInputContent1 ¶
func (t *ChatMessageInput_Content) FromChatMessageInputContent1(v ChatMessageInputContent1) error
FromChatMessageInputContent1 overwrites any union data inside the ChatMessageInput_Content as the provided ChatMessageInputContent1
func (ChatMessageInput_Content) MarshalJSON ¶
func (t ChatMessageInput_Content) MarshalJSON() ([]byte, error)
func (*ChatMessageInput_Content) MergeChatMessageInputContent0 ¶
func (t *ChatMessageInput_Content) MergeChatMessageInputContent0(v ChatMessageInputContent0) error
MergeChatMessageInputContent0 performs a merge with any union data inside the ChatMessageInput_Content, using the provided ChatMessageInputContent0
func (*ChatMessageInput_Content) MergeChatMessageInputContent1 ¶
func (t *ChatMessageInput_Content) MergeChatMessageInputContent1(v ChatMessageInputContent1) error
MergeChatMessageInputContent1 performs a merge with any union data inside the ChatMessageInput_Content, using the provided ChatMessageInputContent1
func (*ChatMessageInput_Content) UnmarshalJSON ¶
func (t *ChatMessageInput_Content) UnmarshalJSON(b []byte) error
type ChatMessageInput_Content_1_Item ¶
type ChatMessageInput_Content_1_Item struct {
// contains filtered or unexported fields
}
ChatMessageInput_Content_1_Item defines model for ChatMessageInput.Content.1.Item.
func (ChatMessageInput_Content_1_Item) AsChatMessageContentFileChunk ¶
func (t ChatMessageInput_Content_1_Item) AsChatMessageContentFileChunk() (ChatMessageContentFileChunk, error)
AsChatMessageContentFileChunk returns the union data inside the ChatMessageInput_Content_1_Item as a ChatMessageContentFileChunk
func (ChatMessageInput_Content_1_Item) AsChatMessageContentImageChunk ¶
func (t ChatMessageInput_Content_1_Item) AsChatMessageContentImageChunk() (ChatMessageContentImageChunk, error)
AsChatMessageContentImageChunk returns the union data inside the ChatMessageInput_Content_1_Item as a ChatMessageContentImageChunk
func (ChatMessageInput_Content_1_Item) AsChatMessageContentPDFChunk ¶
func (t ChatMessageInput_Content_1_Item) AsChatMessageContentPDFChunk() (ChatMessageContentPDFChunk, error)
AsChatMessageContentPDFChunk returns the union data inside the ChatMessageInput_Content_1_Item as a ChatMessageContentPDFChunk
func (ChatMessageInput_Content_1_Item) AsChatMessageContentTextChunk ¶
func (t ChatMessageInput_Content_1_Item) AsChatMessageContentTextChunk() (ChatMessageContentTextChunk, error)
AsChatMessageContentTextChunk returns the union data inside the ChatMessageInput_Content_1_Item as a ChatMessageContentTextChunk
func (ChatMessageInput_Content_1_Item) AsChatMessageContentVideoChunk ¶
func (t ChatMessageInput_Content_1_Item) AsChatMessageContentVideoChunk() (ChatMessageContentVideoChunk, error)
AsChatMessageContentVideoChunk returns the union data inside the ChatMessageInput_Content_1_Item as a ChatMessageContentVideoChunk
func (*ChatMessageInput_Content_1_Item) FromChatMessageContentFileChunk ¶
func (t *ChatMessageInput_Content_1_Item) FromChatMessageContentFileChunk(v ChatMessageContentFileChunk) error
FromChatMessageContentFileChunk overwrites any union data inside the ChatMessageInput_Content_1_Item as the provided ChatMessageContentFileChunk
func (*ChatMessageInput_Content_1_Item) FromChatMessageContentImageChunk ¶
func (t *ChatMessageInput_Content_1_Item) FromChatMessageContentImageChunk(v ChatMessageContentImageChunk) error
FromChatMessageContentImageChunk overwrites any union data inside the ChatMessageInput_Content_1_Item as the provided ChatMessageContentImageChunk
func (*ChatMessageInput_Content_1_Item) FromChatMessageContentPDFChunk ¶
func (t *ChatMessageInput_Content_1_Item) FromChatMessageContentPDFChunk(v ChatMessageContentPDFChunk) error
FromChatMessageContentPDFChunk overwrites any union data inside the ChatMessageInput_Content_1_Item as the provided ChatMessageContentPDFChunk
func (*ChatMessageInput_Content_1_Item) FromChatMessageContentTextChunk ¶
func (t *ChatMessageInput_Content_1_Item) FromChatMessageContentTextChunk(v ChatMessageContentTextChunk) error
FromChatMessageContentTextChunk overwrites any union data inside the ChatMessageInput_Content_1_Item as the provided ChatMessageContentTextChunk
func (*ChatMessageInput_Content_1_Item) FromChatMessageContentVideoChunk ¶
func (t *ChatMessageInput_Content_1_Item) FromChatMessageContentVideoChunk(v ChatMessageContentVideoChunk) error
FromChatMessageContentVideoChunk overwrites any union data inside the ChatMessageInput_Content_1_Item as the provided ChatMessageContentVideoChunk
func (ChatMessageInput_Content_1_Item) MarshalJSON ¶
func (t ChatMessageInput_Content_1_Item) MarshalJSON() ([]byte, error)
func (*ChatMessageInput_Content_1_Item) MergeChatMessageContentFileChunk ¶
func (t *ChatMessageInput_Content_1_Item) MergeChatMessageContentFileChunk(v ChatMessageContentFileChunk) error
MergeChatMessageContentFileChunk performs a merge with any union data inside the ChatMessageInput_Content_1_Item, using the provided ChatMessageContentFileChunk
func (*ChatMessageInput_Content_1_Item) MergeChatMessageContentImageChunk ¶
func (t *ChatMessageInput_Content_1_Item) MergeChatMessageContentImageChunk(v ChatMessageContentImageChunk) error
MergeChatMessageContentImageChunk performs a merge with any union data inside the ChatMessageInput_Content_1_Item, using the provided ChatMessageContentImageChunk
func (*ChatMessageInput_Content_1_Item) MergeChatMessageContentPDFChunk ¶
func (t *ChatMessageInput_Content_1_Item) MergeChatMessageContentPDFChunk(v ChatMessageContentPDFChunk) error
MergeChatMessageContentPDFChunk performs a merge with any union data inside the ChatMessageInput_Content_1_Item, using the provided ChatMessageContentPDFChunk
func (*ChatMessageInput_Content_1_Item) MergeChatMessageContentTextChunk ¶
func (t *ChatMessageInput_Content_1_Item) MergeChatMessageContentTextChunk(v ChatMessageContentTextChunk) error
MergeChatMessageContentTextChunk performs a merge with any union data inside the ChatMessageInput_Content_1_Item, using the provided ChatMessageContentTextChunk
func (*ChatMessageInput_Content_1_Item) MergeChatMessageContentVideoChunk ¶
func (t *ChatMessageInput_Content_1_Item) MergeChatMessageContentVideoChunk(v ChatMessageContentVideoChunk) error
MergeChatMessageContentVideoChunk performs a merge with any union data inside the ChatMessageInput_Content_1_Item, using the provided ChatMessageContentVideoChunk
func (*ChatMessageInput_Content_1_Item) UnmarshalJSON ¶
func (t *ChatMessageInput_Content_1_Item) UnmarshalJSON(b []byte) error
type ChatMessageOutput ¶
type ChatMessageOutput struct {
Content *ChatMessageOutput_Content `json:"content"`
// Role Chat roles enum
Role ChatMessageRole `json:"role"`
}
ChatMessageOutput defines model for ChatMessage-Output.
type ChatMessageOutputContent0 ¶
type ChatMessageOutputContent0 = string
ChatMessageOutputContent0 defines model for ChatMessageOutput.Content.0.
type ChatMessageOutputContent1 ¶
type ChatMessageOutputContent1 = []ChatMessageOutput_Content_1_Item
ChatMessageOutputContent1 defines model for ChatMessageOutput.Content.1.
type ChatMessageOutput_Content ¶
type ChatMessageOutput_Content struct {
// contains filtered or unexported fields
}
ChatMessageOutput_Content defines model for ChatMessageOutput.Content.
func (ChatMessageOutput_Content) AsChatMessageOutputContent0 ¶
func (t ChatMessageOutput_Content) AsChatMessageOutputContent0() (ChatMessageOutputContent0, error)
AsChatMessageOutputContent0 returns the union data inside the ChatMessageOutput_Content as a ChatMessageOutputContent0
func (ChatMessageOutput_Content) AsChatMessageOutputContent1 ¶
func (t ChatMessageOutput_Content) AsChatMessageOutputContent1() (ChatMessageOutputContent1, error)
AsChatMessageOutputContent1 returns the union data inside the ChatMessageOutput_Content as a ChatMessageOutputContent1
func (*ChatMessageOutput_Content) FromChatMessageOutputContent0 ¶
func (t *ChatMessageOutput_Content) FromChatMessageOutputContent0(v ChatMessageOutputContent0) error
FromChatMessageOutputContent0 overwrites any union data inside the ChatMessageOutput_Content as the provided ChatMessageOutputContent0
func (*ChatMessageOutput_Content) FromChatMessageOutputContent1 ¶
func (t *ChatMessageOutput_Content) FromChatMessageOutputContent1(v ChatMessageOutputContent1) error
FromChatMessageOutputContent1 overwrites any union data inside the ChatMessageOutput_Content as the provided ChatMessageOutputContent1
func (ChatMessageOutput_Content) MarshalJSON ¶
func (t ChatMessageOutput_Content) MarshalJSON() ([]byte, error)
func (*ChatMessageOutput_Content) MergeChatMessageOutputContent0 ¶
func (t *ChatMessageOutput_Content) MergeChatMessageOutputContent0(v ChatMessageOutputContent0) error
MergeChatMessageOutputContent0 performs a merge with any union data inside the ChatMessageOutput_Content, using the provided ChatMessageOutputContent0
func (*ChatMessageOutput_Content) MergeChatMessageOutputContent1 ¶
func (t *ChatMessageOutput_Content) MergeChatMessageOutputContent1(v ChatMessageOutputContent1) error
MergeChatMessageOutputContent1 performs a merge with any union data inside the ChatMessageOutput_Content, using the provided ChatMessageOutputContent1
func (*ChatMessageOutput_Content) UnmarshalJSON ¶
func (t *ChatMessageOutput_Content) UnmarshalJSON(b []byte) error
type ChatMessageOutput_Content_1_Item ¶
type ChatMessageOutput_Content_1_Item struct {
// contains filtered or unexported fields
}
ChatMessageOutput_Content_1_Item defines model for ChatMessageOutput.Content.1.Item.
func (ChatMessageOutput_Content_1_Item) AsChatMessageContentFileChunk ¶
func (t ChatMessageOutput_Content_1_Item) AsChatMessageContentFileChunk() (ChatMessageContentFileChunk, error)
AsChatMessageContentFileChunk returns the union data inside the ChatMessageOutput_Content_1_Item as a ChatMessageContentFileChunk
func (ChatMessageOutput_Content_1_Item) AsChatMessageContentImageChunk ¶
func (t ChatMessageOutput_Content_1_Item) AsChatMessageContentImageChunk() (ChatMessageContentImageChunk, error)
AsChatMessageContentImageChunk returns the union data inside the ChatMessageOutput_Content_1_Item as a ChatMessageContentImageChunk
func (ChatMessageOutput_Content_1_Item) AsChatMessageContentPDFChunk ¶
func (t ChatMessageOutput_Content_1_Item) AsChatMessageContentPDFChunk() (ChatMessageContentPDFChunk, error)
AsChatMessageContentPDFChunk returns the union data inside the ChatMessageOutput_Content_1_Item as a ChatMessageContentPDFChunk
func (ChatMessageOutput_Content_1_Item) AsChatMessageContentTextChunk ¶
func (t ChatMessageOutput_Content_1_Item) AsChatMessageContentTextChunk() (ChatMessageContentTextChunk, error)
AsChatMessageContentTextChunk returns the union data inside the ChatMessageOutput_Content_1_Item as a ChatMessageContentTextChunk
func (ChatMessageOutput_Content_1_Item) AsChatMessageContentVideoChunk ¶
func (t ChatMessageOutput_Content_1_Item) AsChatMessageContentVideoChunk() (ChatMessageContentVideoChunk, error)
AsChatMessageContentVideoChunk returns the union data inside the ChatMessageOutput_Content_1_Item as a ChatMessageContentVideoChunk
func (*ChatMessageOutput_Content_1_Item) FromChatMessageContentFileChunk ¶
func (t *ChatMessageOutput_Content_1_Item) FromChatMessageContentFileChunk(v ChatMessageContentFileChunk) error
FromChatMessageContentFileChunk overwrites any union data inside the ChatMessageOutput_Content_1_Item as the provided ChatMessageContentFileChunk
func (*ChatMessageOutput_Content_1_Item) FromChatMessageContentImageChunk ¶
func (t *ChatMessageOutput_Content_1_Item) FromChatMessageContentImageChunk(v ChatMessageContentImageChunk) error
FromChatMessageContentImageChunk overwrites any union data inside the ChatMessageOutput_Content_1_Item as the provided ChatMessageContentImageChunk
func (*ChatMessageOutput_Content_1_Item) FromChatMessageContentPDFChunk ¶
func (t *ChatMessageOutput_Content_1_Item) FromChatMessageContentPDFChunk(v ChatMessageContentPDFChunk) error
FromChatMessageContentPDFChunk overwrites any union data inside the ChatMessageOutput_Content_1_Item as the provided ChatMessageContentPDFChunk
func (*ChatMessageOutput_Content_1_Item) FromChatMessageContentTextChunk ¶
func (t *ChatMessageOutput_Content_1_Item) FromChatMessageContentTextChunk(v ChatMessageContentTextChunk) error
FromChatMessageContentTextChunk overwrites any union data inside the ChatMessageOutput_Content_1_Item as the provided ChatMessageContentTextChunk
func (*ChatMessageOutput_Content_1_Item) FromChatMessageContentVideoChunk ¶
func (t *ChatMessageOutput_Content_1_Item) FromChatMessageContentVideoChunk(v ChatMessageContentVideoChunk) error
FromChatMessageContentVideoChunk overwrites any union data inside the ChatMessageOutput_Content_1_Item as the provided ChatMessageContentVideoChunk
func (ChatMessageOutput_Content_1_Item) MarshalJSON ¶
func (t ChatMessageOutput_Content_1_Item) MarshalJSON() ([]byte, error)
func (*ChatMessageOutput_Content_1_Item) MergeChatMessageContentFileChunk ¶
func (t *ChatMessageOutput_Content_1_Item) MergeChatMessageContentFileChunk(v ChatMessageContentFileChunk) error
MergeChatMessageContentFileChunk performs a merge with any union data inside the ChatMessageOutput_Content_1_Item, using the provided ChatMessageContentFileChunk
func (*ChatMessageOutput_Content_1_Item) MergeChatMessageContentImageChunk ¶
func (t *ChatMessageOutput_Content_1_Item) MergeChatMessageContentImageChunk(v ChatMessageContentImageChunk) error
MergeChatMessageContentImageChunk performs a merge with any union data inside the ChatMessageOutput_Content_1_Item, using the provided ChatMessageContentImageChunk
func (*ChatMessageOutput_Content_1_Item) MergeChatMessageContentPDFChunk ¶
func (t *ChatMessageOutput_Content_1_Item) MergeChatMessageContentPDFChunk(v ChatMessageContentPDFChunk) error
MergeChatMessageContentPDFChunk performs a merge with any union data inside the ChatMessageOutput_Content_1_Item, using the provided ChatMessageContentPDFChunk
func (*ChatMessageOutput_Content_1_Item) MergeChatMessageContentTextChunk ¶
func (t *ChatMessageOutput_Content_1_Item) MergeChatMessageContentTextChunk(v ChatMessageContentTextChunk) error
MergeChatMessageContentTextChunk performs a merge with any union data inside the ChatMessageOutput_Content_1_Item, using the provided ChatMessageContentTextChunk
func (*ChatMessageOutput_Content_1_Item) MergeChatMessageContentVideoChunk ¶
func (t *ChatMessageOutput_Content_1_Item) MergeChatMessageContentVideoChunk(v ChatMessageContentVideoChunk) error
MergeChatMessageContentVideoChunk performs a merge with any union data inside the ChatMessageOutput_Content_1_Item, using the provided ChatMessageContentVideoChunk
func (*ChatMessageOutput_Content_1_Item) UnmarshalJSON ¶
func (t *ChatMessageOutput_Content_1_Item) UnmarshalJSON(b []byte) error
type ChatMessageRole ¶
type ChatMessageRole string
ChatMessageRole Chat roles enum
const ( ChatMessageRoleAssistant ChatMessageRole = "assistant" ChatMessageRoleSystem ChatMessageRole = "system" ChatMessageRoleTool ChatMessageRole = "tool" ChatMessageRoleUser ChatMessageRole = "user" )
Defines values for ChatMessageRole.
func (ChatMessageRole) Valid ¶
func (e ChatMessageRole) Valid() bool
Valid indicates whether the value is a known member of the ChatMessageRole enum.
type Choice ¶
type Choice struct {
// Delta Incremental message delta (streaming)
Delta ChatMessageOutput `json:"delta"`
// FinishReason Reason generation stopped (stop or length)
FinishReason *ChoiceFinishReason `json:"finish_reason,omitempty"`
// Index Index of the choice in the array
Index int `json:"index"`
// Message Complete message (non-streaming)
Message ChatMessageOutput `json:"message"`
}
Choice A single completion choice
type ChoiceAnswer ¶
type ChoiceAnswer struct {
// Choice The option with the highest probability.
Choice string `json:"choice"`
// Confidence Computed from `probabilities` as `(p_top - 1/n) / (1 - 1/n)`, where `p_top` is the highest probability and `n` is the number of options. 0 when every option is equally likely; 1 when one option has all the probability or there is only one option.
Confidence float64 `json:"confidence"`
// Probabilities Probability of each option, keyed by option name. Values are between 0 and 1 and sum to approximately 1.
Probabilities map[string]float64 `json:"probabilities"`
// Type Always `choice`.
Type ChoiceAnswerType `json:"type"`
}
ChoiceAnswer Answer to a `choice` question: the selected option, a confidence value, and the probability of each option.
type ChoiceAnswerType ¶
type ChoiceAnswerType string
ChoiceAnswerType Always `choice`.
const (
ChoiceAnswerTypeChoice ChoiceAnswerType = "choice"
)
Defines values for ChoiceAnswerType.
func (ChoiceAnswerType) Valid ¶
func (e ChoiceAnswerType) Valid() bool
Valid indicates whether the value is a known member of the ChoiceAnswerType enum.
type ChoiceFinishReason ¶
type ChoiceFinishReason string
ChoiceFinishReason defines model for Choice.FinishReason.
const ( ChoiceFinishReasonLength ChoiceFinishReason = "length" ChoiceFinishReasonStop ChoiceFinishReason = "stop" )
Defines values for ChoiceFinishReason.
func (ChoiceFinishReason) Valid ¶
func (e ChoiceFinishReason) Valid() bool
Valid indicates whether the value is a known member of the ChoiceFinishReason enum.
type ChoiceQuestion ¶
type ChoiceQuestion struct {
// Criteria Option names mapped to a description of when each applies. Use `null` to let the name speak for itself. 1 to 255 options.
Criteria map[string]*ChoiceQuestion_Criteria_AdditionalProperties `json:"criteria"`
// Instructions What to decide when choosing between the options.
Instructions *ChoiceQuestion_Instructions `json:"instructions,omitempty"`
// Type Always `choice`.
Type ChoiceQuestionType `json:"type"`
}
ChoiceQuestion A question that picks one of the options you define.
type ChoiceQuestionCriteria0 ¶
type ChoiceQuestionCriteria0 = string
ChoiceQuestionCriteria0 defines model for ChoiceQuestion.Criteria.0.
type ChoiceQuestionCriteria1 ¶
type ChoiceQuestionCriteria1 map[string]interface{}
ChoiceQuestionCriteria1 defines model for ChoiceQuestion.Criteria.1.
type ChoiceQuestionCriteria2 ¶
type ChoiceQuestionCriteria2 = []interface{}
ChoiceQuestionCriteria2 defines model for ChoiceQuestion.Criteria.2.
type ChoiceQuestionInstructions0 ¶
type ChoiceQuestionInstructions0 = string
ChoiceQuestionInstructions0 defines model for ChoiceQuestion.Instructions.0.
type ChoiceQuestionInstructions1 ¶
type ChoiceQuestionInstructions1 map[string]interface{}
ChoiceQuestionInstructions1 defines model for ChoiceQuestion.Instructions.1.
type ChoiceQuestionInstructions2 ¶
type ChoiceQuestionInstructions2 = []interface{}
ChoiceQuestionInstructions2 defines model for ChoiceQuestion.Instructions.2.
type ChoiceQuestionType ¶
type ChoiceQuestionType string
ChoiceQuestionType Always `choice`.
const (
ChoiceQuestionTypeChoice ChoiceQuestionType = "choice"
)
Defines values for ChoiceQuestionType.
func (ChoiceQuestionType) Valid ¶
func (e ChoiceQuestionType) Valid() bool
Valid indicates whether the value is a known member of the ChoiceQuestionType enum.
type ChoiceQuestion_Criteria_AdditionalProperties ¶
type ChoiceQuestion_Criteria_AdditionalProperties struct {
// contains filtered or unexported fields
}
ChoiceQuestion_Criteria_AdditionalProperties defines model for ChoiceQuestion.criteria.AdditionalProperties.
func (ChoiceQuestion_Criteria_AdditionalProperties) AsChoiceQuestionCriteria0 ¶
func (t ChoiceQuestion_Criteria_AdditionalProperties) AsChoiceQuestionCriteria0() (ChoiceQuestionCriteria0, error)
AsChoiceQuestionCriteria0 returns the union data inside the ChoiceQuestion_Criteria_AdditionalProperties as a ChoiceQuestionCriteria0
func (ChoiceQuestion_Criteria_AdditionalProperties) AsChoiceQuestionCriteria1 ¶
func (t ChoiceQuestion_Criteria_AdditionalProperties) AsChoiceQuestionCriteria1() (ChoiceQuestionCriteria1, error)
AsChoiceQuestionCriteria1 returns the union data inside the ChoiceQuestion_Criteria_AdditionalProperties as a ChoiceQuestionCriteria1
func (ChoiceQuestion_Criteria_AdditionalProperties) AsChoiceQuestionCriteria2 ¶
func (t ChoiceQuestion_Criteria_AdditionalProperties) AsChoiceQuestionCriteria2() (ChoiceQuestionCriteria2, error)
AsChoiceQuestionCriteria2 returns the union data inside the ChoiceQuestion_Criteria_AdditionalProperties as a ChoiceQuestionCriteria2
func (*ChoiceQuestion_Criteria_AdditionalProperties) FromChoiceQuestionCriteria0 ¶
func (t *ChoiceQuestion_Criteria_AdditionalProperties) FromChoiceQuestionCriteria0(v ChoiceQuestionCriteria0) error
FromChoiceQuestionCriteria0 overwrites any union data inside the ChoiceQuestion_Criteria_AdditionalProperties as the provided ChoiceQuestionCriteria0
func (*ChoiceQuestion_Criteria_AdditionalProperties) FromChoiceQuestionCriteria1 ¶
func (t *ChoiceQuestion_Criteria_AdditionalProperties) FromChoiceQuestionCriteria1(v ChoiceQuestionCriteria1) error
FromChoiceQuestionCriteria1 overwrites any union data inside the ChoiceQuestion_Criteria_AdditionalProperties as the provided ChoiceQuestionCriteria1
func (*ChoiceQuestion_Criteria_AdditionalProperties) FromChoiceQuestionCriteria2 ¶
func (t *ChoiceQuestion_Criteria_AdditionalProperties) FromChoiceQuestionCriteria2(v ChoiceQuestionCriteria2) error
FromChoiceQuestionCriteria2 overwrites any union data inside the ChoiceQuestion_Criteria_AdditionalProperties as the provided ChoiceQuestionCriteria2
func (ChoiceQuestion_Criteria_AdditionalProperties) MarshalJSON ¶
func (t ChoiceQuestion_Criteria_AdditionalProperties) MarshalJSON() ([]byte, error)
func (*ChoiceQuestion_Criteria_AdditionalProperties) MergeChoiceQuestionCriteria0 ¶
func (t *ChoiceQuestion_Criteria_AdditionalProperties) MergeChoiceQuestionCriteria0(v ChoiceQuestionCriteria0) error
MergeChoiceQuestionCriteria0 performs a merge with any union data inside the ChoiceQuestion_Criteria_AdditionalProperties, using the provided ChoiceQuestionCriteria0
func (*ChoiceQuestion_Criteria_AdditionalProperties) MergeChoiceQuestionCriteria1 ¶
func (t *ChoiceQuestion_Criteria_AdditionalProperties) MergeChoiceQuestionCriteria1(v ChoiceQuestionCriteria1) error
MergeChoiceQuestionCriteria1 performs a merge with any union data inside the ChoiceQuestion_Criteria_AdditionalProperties, using the provided ChoiceQuestionCriteria1
func (*ChoiceQuestion_Criteria_AdditionalProperties) MergeChoiceQuestionCriteria2 ¶
func (t *ChoiceQuestion_Criteria_AdditionalProperties) MergeChoiceQuestionCriteria2(v ChoiceQuestionCriteria2) error
MergeChoiceQuestionCriteria2 performs a merge with any union data inside the ChoiceQuestion_Criteria_AdditionalProperties, using the provided ChoiceQuestionCriteria2
func (*ChoiceQuestion_Criteria_AdditionalProperties) UnmarshalJSON ¶
func (t *ChoiceQuestion_Criteria_AdditionalProperties) UnmarshalJSON(b []byte) error
type ChoiceQuestion_Instructions ¶
type ChoiceQuestion_Instructions struct {
// contains filtered or unexported fields
}
ChoiceQuestion_Instructions What to decide when choosing between the options.
func (ChoiceQuestion_Instructions) AsChoiceQuestionInstructions0 ¶
func (t ChoiceQuestion_Instructions) AsChoiceQuestionInstructions0() (ChoiceQuestionInstructions0, error)
AsChoiceQuestionInstructions0 returns the union data inside the ChoiceQuestion_Instructions as a ChoiceQuestionInstructions0
func (ChoiceQuestion_Instructions) AsChoiceQuestionInstructions1 ¶
func (t ChoiceQuestion_Instructions) AsChoiceQuestionInstructions1() (ChoiceQuestionInstructions1, error)
AsChoiceQuestionInstructions1 returns the union data inside the ChoiceQuestion_Instructions as a ChoiceQuestionInstructions1
func (ChoiceQuestion_Instructions) AsChoiceQuestionInstructions2 ¶
func (t ChoiceQuestion_Instructions) AsChoiceQuestionInstructions2() (ChoiceQuestionInstructions2, error)
AsChoiceQuestionInstructions2 returns the union data inside the ChoiceQuestion_Instructions as a ChoiceQuestionInstructions2
func (*ChoiceQuestion_Instructions) FromChoiceQuestionInstructions0 ¶
func (t *ChoiceQuestion_Instructions) FromChoiceQuestionInstructions0(v ChoiceQuestionInstructions0) error
FromChoiceQuestionInstructions0 overwrites any union data inside the ChoiceQuestion_Instructions as the provided ChoiceQuestionInstructions0
func (*ChoiceQuestion_Instructions) FromChoiceQuestionInstructions1 ¶
func (t *ChoiceQuestion_Instructions) FromChoiceQuestionInstructions1(v ChoiceQuestionInstructions1) error
FromChoiceQuestionInstructions1 overwrites any union data inside the ChoiceQuestion_Instructions as the provided ChoiceQuestionInstructions1
func (*ChoiceQuestion_Instructions) FromChoiceQuestionInstructions2 ¶
func (t *ChoiceQuestion_Instructions) FromChoiceQuestionInstructions2(v ChoiceQuestionInstructions2) error
FromChoiceQuestionInstructions2 overwrites any union data inside the ChoiceQuestion_Instructions as the provided ChoiceQuestionInstructions2
func (ChoiceQuestion_Instructions) MarshalJSON ¶
func (t ChoiceQuestion_Instructions) MarshalJSON() ([]byte, error)
func (*ChoiceQuestion_Instructions) MergeChoiceQuestionInstructions0 ¶
func (t *ChoiceQuestion_Instructions) MergeChoiceQuestionInstructions0(v ChoiceQuestionInstructions0) error
MergeChoiceQuestionInstructions0 performs a merge with any union data inside the ChoiceQuestion_Instructions, using the provided ChoiceQuestionInstructions0
func (*ChoiceQuestion_Instructions) MergeChoiceQuestionInstructions1 ¶
func (t *ChoiceQuestion_Instructions) MergeChoiceQuestionInstructions1(v ChoiceQuestionInstructions1) error
MergeChoiceQuestionInstructions1 performs a merge with any union data inside the ChoiceQuestion_Instructions, using the provided ChoiceQuestionInstructions1
func (*ChoiceQuestion_Instructions) MergeChoiceQuestionInstructions2 ¶
func (t *ChoiceQuestion_Instructions) MergeChoiceQuestionInstructions2(v ChoiceQuestionInstructions2) error
MergeChoiceQuestionInstructions2 performs a merge with any union data inside the ChoiceQuestion_Instructions, using the provided ChoiceQuestionInstructions2
func (*ChoiceQuestion_Instructions) UnmarshalJSON ¶
func (t *ChoiceQuestion_Instructions) UnmarshalJSON(b []byte) error
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CancelAgentResponse ¶
func (c *Client) CancelAgentResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelAgentResponse Cancel Agent Response
Requests cancellation of response `{id}`. Acts on durable state, so it works for background runs that outlive the client connection. Cancellation is asynchronous: a `200` acknowledges the request (`status: cancelling`) and the run stops shortly after - poll `GET /v1/agent/{id}` for its terminal status. Cancelling a run that is already terminal returns `400`. Ownership is enforced server side; a cross-tenant or unknown id surfaces as `404`.
Corresponds with POST /v1/agent/{id}/cancel (the `CancelAgentResponse` operationId).
func (*Client) CancelBatch ¶ added in v0.2.0
func (c *Client) CancelBatch(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelBatch Cancel a batch
Moves the batch to `cancelling`; it becomes `cancelled` once running items stop. Completed items stay in the output file and are billed. Cancelling a cancelled or cancelling batch returns it unchanged.
Corresponds with POST /v1/batches/{batch_id}/cancel (the `CancelBatch` operationId).
func (*Client) ChatCompletionsChatCompletionsPost ¶
func (c *Client) ChatCompletionsChatCompletionsPost(ctx context.Context, body ChatCompletionsChatCompletionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ChatCompletionsChatCompletionsPost Create Chat Completion
Generate a chat completion response for the given conversation.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/sonar (the `ChatCompletionsChatCompletionsPost` operationId).
func (*Client) ChatCompletionsChatCompletionsPostWithBody ¶
func (c *Client) ChatCompletionsChatCompletionsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ChatCompletionsChatCompletionsPostWithBody Create Chat Completion
Generate a chat completion response for the given conversation.
Takes any type of body and a specified content type.
Corresponds with POST /v1/sonar (the `ChatCompletionsChatCompletionsPost` operationId).
func (*Client) Context ¶ added in v0.6.0
func (c *Client) Context(ctx context.Context, body ContextJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
Context Fetch URL context
Fetch Markdown, HTML, links, highlights, and page metadata for 1 to 50 URLs, and optionally score each page with criteria. The response has one result per input URL, in input order. Check each result's status.type for per-URL failures. See the [Context API quickstart](/docs/context/quickstart), [Formats & Freshness](/docs/context/formats-and-freshness), and [Score Pages with Criteria](/docs/context/criteria).
Takes a body of the `application/json` content type.
Corresponds with POST /v1/context (the `Context` operationId).
func (*Client) ContextWithBody ¶ added in v0.6.0
func (c *Client) ContextWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ContextWithBody Fetch URL context
Fetch Markdown, HTML, links, highlights, and page metadata for 1 to 50 URLs, and optionally score each page with criteria. The response has one result per input URL, in input order. Check each result's status.type for per-URL failures. See the [Context API quickstart](/docs/context/quickstart), [Formats & Freshness](/docs/context/formats-and-freshness), and [Score Pages with Criteria](/docs/context/criteria).
Takes any type of body and a specified content type.
Corresponds with POST /v1/context (the `Context` operationId).
func (*Client) ContextualizedEmbeddingsV1ContextualizedembeddingsPost ¶
func (c *Client) ContextualizedEmbeddingsV1ContextualizedembeddingsPost(ctx context.Context, body ContextualizedEmbeddingsV1ContextualizedembeddingsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ContextualizedEmbeddingsV1ContextualizedembeddingsPost Create Contextualized Embeddings (v1)
Generate contextualized embeddings for document chunks. Chunks from the same document share context awareness, improving retrieval quality for document-based applications.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/contextualizedembeddings (the `ContextualizedEmbeddingsV1ContextualizedembeddingsPost` operationId).
func (*Client) ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBody ¶
func (c *Client) ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBody Create Contextualized Embeddings (v1)
Generate contextualized embeddings for document chunks. Chunks from the same document share context awareness, improving retrieval quality for document-based applications.
Takes any type of body and a specified content type.
Corresponds with POST /v1/contextualizedembeddings (the `ContextualizedEmbeddingsV1ContextualizedembeddingsPost` operationId).
func (*Client) CreateAgent ¶
func (c *Client) CreateAgent(ctx context.Context, body CreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAgent Create Agent Response
Generate a response for the provided input with optional web search and reasoning.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/agent (the `CreateAgent` operationId).
func (*Client) CreateAgentWithBody ¶
func (c *Client) CreateAgentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAgentWithBody Create Agent Response
Generate a response for the provided input with optional web search and reasoning.
Takes any type of body and a specified content type.
Corresponds with POST /v1/agent (the `CreateAgent` operationId).
func (*Client) CreateAsyncChatCompletionsAsyncChatCompletionsPost ¶
func (c *Client) CreateAsyncChatCompletionsAsyncChatCompletionsPost(ctx context.Context, body CreateAsyncChatCompletionsAsyncChatCompletionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAsyncChatCompletionsAsyncChatCompletionsPost Create Async Chat Completion
Submit an asynchronous chat completion request.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/async/sonar (the `CreateAsyncChatCompletionsAsyncChatCompletionsPost` operationId).
func (*Client) CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBody ¶
func (c *Client) CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBody Create Async Chat Completion
Submit an asynchronous chat completion request.
Takes any type of body and a specified content type.
Corresponds with POST /v1/async/sonar (the `CreateAsyncChatCompletionsAsyncChatCompletionsPost` operationId).
func (*Client) CreateBatch ¶ added in v0.2.0
func (c *Client) CreateBatch(ctx context.Context, params *CreateBatchParams, body CreateBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateBatch Create a batch
Creates a batch from an uploaded input file. The batch starts in `validating`. Send an `Idempotency-Key` header to make retries safe: a repeat with the same key returns the original batch. `output_expires_after` is not supported and is rejected with a 400; output and error files are kept 30 days.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/batches (the `CreateBatch` operationId).
func (*Client) CreateBatchWithBody ¶ added in v0.2.0
func (c *Client) CreateBatchWithBody(ctx context.Context, params *CreateBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateBatchWithBody Create a batch
Creates a batch from an uploaded input file. The batch starts in `validating`. Send an `Idempotency-Key` header to make retries safe: a repeat with the same key returns the original batch. `output_expires_after` is not supported and is rejected with a 400; output and error files are kept 30 days.
Takes any type of body and a specified content type.
Corresponds with POST /v1/batches (the `CreateBatch` operationId).
func (*Client) CreateFileWithBody ¶ added in v0.2.0
func (c *Client) CreateFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFileWithBody Upload a file
Uploads a JSONL batch input file, up to 50,000 lines and 200 MB. Every line is validated before the file is stored. Files expire after 30 days; `expires_after` is not supported and is rejected with a 400.
Takes any type of body and a specified content type.
Corresponds with POST /v1/files (the `CreateFile` operationId).
func (*Client) CreateMonitor ¶ added in v0.5.0
func (c *Client) CreateMonitor(ctx context.Context, params *CreateMonitorParams, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateMonitor Create a monitor
Creates an `active` monitor. Its first run is due immediately and starts asynchronously; retrieve results with Get a run or List a monitor's runs.
Omit `webhook` or set it to null to retrieve results without notifications. If you configure a webhook without a `secret`, this response returns the generated secret in `webhook.secret`. Store it to verify deliveries. A secret you supply is never returned.
Use `Idempotency-Key` for retries. The same key and body return the original monitor in its current state, without its secret. Reusing the key with a different body returns `400`. If the first response was lost, set a new secret with Update a monitor.
Active-monitor limits apply per API organization: 100 for tiers 0 and 1, 200 for tier 2, 300 for tier 3, 400 for tier 4, and 500 for tier 5. Paused monitors do not count. Creating or resuming at the limit returns HTTP `409` with `quota_exceeded`. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/monitors (the `CreateMonitor` operationId).
func (*Client) CreateMonitorWithBody ¶ added in v0.5.0
func (c *Client) CreateMonitorWithBody(ctx context.Context, params *CreateMonitorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateMonitorWithBody Create a monitor
Creates an `active` monitor. Its first run is due immediately and starts asynchronously; retrieve results with Get a run or List a monitor's runs.
Omit `webhook` or set it to null to retrieve results without notifications. If you configure a webhook without a `secret`, this response returns the generated secret in `webhook.secret`. Store it to verify deliveries. A secret you supply is never returned.
Use `Idempotency-Key` for retries. The same key and body return the original monitor in its current state, without its secret. Reusing the key with a different body returns `400`. If the first response was lost, set a new secret with Update a monitor.
Active-monitor limits apply per API organization: 100 for tiers 0 and 1, 200 for tier 2, 300 for tier 3, 400 for tier 4, and 500 for tier 5. Paused monitors do not count. Creating or resuming at the limit returns HTTP `409` with `quota_exceeded`. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
Takes any type of body and a specified content type.
Corresponds with POST /v1/monitors (the `CreateMonitor` operationId).
func (*Client) CreateSkillWithBody ¶
func (c *Client) CreateSkillWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSkillWithBody Create a skill
Creates a skill from a zip bundle. The bundle must contain a `SKILL.md` that provides the skill name and description; those fields are read from the bundle, not from the request.
Takes any type of body and a specified content type.
Corresponds with POST /v1/skills (the `CreateSkill` operationId).
func (*Client) DecisionsV1DecisionsPost ¶
func (c *Client) DecisionsV1DecisionsPost(ctx context.Context, body DecisionsV1DecisionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
DecisionsV1DecisionsPost Answer questions
Evaluate one or more named questions against the content in `state`. Mix `noul`, `choice`, `score`, and `locate` questions in one request; the response returns one answer per question under the same name, plus the model name and token usage. Set `model` to `pplx-decider-v1.3`, `pplx-decider-flash-v1.3`, `pplx-decider-v1.2` or `pplx-decider-flash-v1.2`, or to the alias `pplx-decider-latest` or `pplx-decider-flash-latest`; a missing or unknown model returns `400`. Set `mode` to `web_grounding` to fetch a URL-only state and search the web before the model answers. Each search or successful URL fetch is billed. Send the key as `Authorization: Bearer <key>`; an `x-api-key` header is not read and returns `401`.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/decisions (the `DecisionsV1DecisionsPost` operationId).
func (*Client) DecisionsV1DecisionsPostWithBody ¶
func (c *Client) DecisionsV1DecisionsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DecisionsV1DecisionsPostWithBody Answer questions
Evaluate one or more named questions against the content in `state`. Mix `noul`, `choice`, `score`, and `locate` questions in one request; the response returns one answer per question under the same name, plus the model name and token usage. Set `model` to `pplx-decider-v1.3`, `pplx-decider-flash-v1.3`, `pplx-decider-v1.2` or `pplx-decider-flash-v1.2`, or to the alias `pplx-decider-latest` or `pplx-decider-flash-latest`; a missing or unknown model returns `400`. Set `mode` to `web_grounding` to fetch a URL-only state and search the web before the model answers. Each search or successful URL fetch is billed. Send the key as `Authorization: Bearer <key>`; an `x-api-key` header is not read and returns `401`.
Takes any type of body and a specified content type.
Corresponds with POST /v1/decisions (the `DecisionsV1DecisionsPost` operationId).
func (*Client) DeleteFile ¶ added in v0.2.0
func (c *Client) DeleteFile(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteFile Delete a file
Deletes a file. Batches already created from it are not affected.
Corresponds with DELETE /v1/files/{file_id} (the `DeleteFile` operationId).
func (*Client) DeleteMonitor ¶ added in v0.5.0
func (c *Client) DeleteMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteMonitor Delete a monitor
Deletes the monitor, its run history, and its state, and stops scheduling new runs.
Corresponds with DELETE /v1/monitors/{monitor_id} (the `DeleteMonitor` operationId).
func (*Client) DeleteSkill ¶
func (c *Client) DeleteSkill(ctx context.Context, skillId SkillId, params *DeleteSkillParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteSkill Delete a skill
Deletes a skill. Pass the current revision as `expected_revision`; the delete fails with `409` if the skill has a newer revision, so a delete never races a concurrent update.
Corresponds with DELETE /v1/skills/{skill_id} (the `DeleteSkill` operationId).
func (*Client) DownloadAgentFile ¶
func (c *Client) DownloadAgentFile(ctx context.Context, id string, fileId string, reqEditors ...RequestEditorFn) (*http.Response, error)
DownloadAgentFile Download Agent Response File
Download the raw bytes of a file the response delivered with the `share_file` tool. The `file_id` comes from the file list endpoint and is distinct from the response `id`. The response streams raw bytes, not JSON, with a `Content-Type` matching the file and a `Content-Disposition: attachment` header carrying the original filename.
Corresponds with GET /v1/agent/{id}/files/{file_id}/content (the `DownloadAgentFile` operationId).
func (*Client) DownloadSkill ¶
func (c *Client) DownloadSkill(ctx context.Context, skillId SkillId, params *DownloadSkillParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DownloadSkill Get a skill download URL
Returns a short-lived URL to download the skill bundle as a zip. Without `revision`, returns the active revision.
Corresponds with GET /v1/skills/{skill_id}/download (the `DownloadSkill` operationId).
func (*Client) EmbeddingsV1EmbeddingsPost ¶
func (c *Client) EmbeddingsV1EmbeddingsPost(ctx context.Context, body EmbeddingsV1EmbeddingsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
EmbeddingsV1EmbeddingsPost Create Embeddings
Generate embeddings for texts, pre-chunked documents (pplx-embed-v2), or images (pplx-embed-v2). Use these embeddings for semantic search, clustering, and other machine learning applications.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/embeddings (the `EmbeddingsV1EmbeddingsPost` operationId).
func (*Client) EmbeddingsV1EmbeddingsPostWithBody ¶
func (c *Client) EmbeddingsV1EmbeddingsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EmbeddingsV1EmbeddingsPostWithBody Create Embeddings
Generate embeddings for texts, pre-chunked documents (pplx-embed-v2), or images (pplx-embed-v2). Use these embeddings for semantic search, clustering, and other machine learning applications.
Takes any type of body and a specified content type.
Corresponds with POST /v1/embeddings (the `EmbeddingsV1EmbeddingsPost` operationId).
func (*Client) GatewayCreateChatCompletion ¶ added in v0.6.0
func (c *Client) GatewayCreateChatCompletion(ctx context.Context, body GatewayCreateChatCompletionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GatewayCreateChatCompletion Create Chat Completion
Send a conversation to any Orchestrator API model using the OpenAI Chat Completions schema. Set `stream: true` to receive server-sent events; add `stream_options: {"include_usage": true}` to get token usage in the final chunk.
Takes a body of the `application/json` content type.
Corresponds with POST /orchestrator/v1/chat/completions (the `GatewayCreateChatCompletion` operationId).
func (*Client) GatewayCreateChatCompletionWithBody ¶ added in v0.6.0
func (c *Client) GatewayCreateChatCompletionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GatewayCreateChatCompletionWithBody Create Chat Completion
Send a conversation to any Orchestrator API model using the OpenAI Chat Completions schema. Set `stream: true` to receive server-sent events; add `stream_options: {"include_usage": true}` to get token usage in the final chunk.
Takes any type of body and a specified content type.
Corresponds with POST /orchestrator/v1/chat/completions (the `GatewayCreateChatCompletion` operationId).
func (*Client) GatewayCreateMessage ¶ added in v0.6.0
func (c *Client) GatewayCreateMessage(ctx context.Context, body GatewayCreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GatewayCreateMessage Create Message
Send a conversation to any Orchestrator API model using the Anthropic Messages schema. Set `stream: true` to receive server-sent events. Authenticate with your Perplexity API key in `Authorization: Bearer` or in the Anthropic SDK's default `x-api-key` header.
Takes a body of the `application/json` content type.
Corresponds with POST /orchestrator/v1/messages (the `GatewayCreateMessage` operationId).
func (*Client) GatewayCreateMessageWithBody ¶ added in v0.6.0
func (c *Client) GatewayCreateMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GatewayCreateMessageWithBody Create Message
Send a conversation to any Orchestrator API model using the Anthropic Messages schema. Set `stream: true` to receive server-sent events. Authenticate with your Perplexity API key in `Authorization: Bearer` or in the Anthropic SDK's default `x-api-key` header.
Takes any type of body and a specified content type.
Corresponds with POST /orchestrator/v1/messages (the `GatewayCreateMessage` operationId).
func (*Client) GatewayCreateResponse ¶ added in v0.6.0
func (c *Client) GatewayCreateResponse(ctx context.Context, body GatewayCreateResponseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GatewayCreateResponse Create Response
Generate a model response using the OpenAI Responses schema. Set `stream: true` to receive typed server-sent events followed by `data: [DONE]`.
Takes a body of the `application/json` content type.
Corresponds with POST /orchestrator/v1/responses (the `GatewayCreateResponse` operationId).
func (*Client) GatewayCreateResponseWithBody ¶ added in v0.6.0
func (c *Client) GatewayCreateResponseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GatewayCreateResponseWithBody Create Response
Generate a model response using the OpenAI Responses schema. Set `stream: true` to receive typed server-sent events followed by `data: [DONE]`.
Takes any type of body and a specified content type.
Corresponds with POST /orchestrator/v1/responses (the `GatewayCreateResponse` operationId).
func (*Client) GatewayListModels ¶ added in v0.6.0
func (c *Client) GatewayListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GatewayListModels List Models
List the models available through the Orchestrator API, sorted by id. Each model includes its base token prices in `pricing` (USD per 1M tokens).
Corresponds with GET /orchestrator/v1/models (the `GatewayListModels` operationId).
func (*Client) GatewayRetrieveModel ¶ added in v0.6.0
func (c *Client) GatewayRetrieveModel(ctx context.Context, model string, reqEditors ...RequestEditorFn) (*http.Response, error)
GatewayRetrieveModel Retrieve Model
Retrieve one model by id, including its base token prices. Model ids contain a `/` (for example `perplexity/kimi-k3`); pass the full id in the path.
Corresponds with GET /orchestrator/v1/models/{model} (the `GatewayRetrieveModel` operationId).
func (*Client) GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet ¶
func (c *Client) GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet(ctx context.Context, apiRequest string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet Get Async Chat Completion
Retrieve the response for a given asynchronous chat completion request.
Corresponds with GET /v1/async/sonar/{api_request} (the `GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet` operationId).
func (*Client) GetBatch ¶ added in v0.2.0
func (c *Client) GetBatch(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetBatch Retrieve a batch
Corresponds with GET /v1/batches/{batch_id} (the `GetBatch` operationId).
func (*Client) GetComputerUsageAnalytics ¶
func (c *Client) GetComputerUsageAnalytics(ctx context.Context, params *GetComputerUsageAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetComputerUsageAnalytics Usage Analytics
Returns your organization's Perplexity usage analytics as a bucketed time series for a single dataset. Requires an organization analytics API key, generated by an org admin from Settings → Organization → Computer in the Perplexity web app. Only complete UTC grid buckets are returned: start_time snaps down to its bucket, and the in-progress bucket is never included. Datasets differ in what they count: credits for credit_usage, queries for query_volume, distinct active members for daily_active_users, and thread counts for the rest. Buckets of daily_active_users are not additive — a member active on several days is counted once per day, so summing them is not the window's active-member count.
Corresponds with GET /v1/analytics/computer/usage (the `GetComputerUsageAnalytics` operationId).
func (*Client) GetComputerUsageAnalyticsV2 ¶
func (c *Client) GetComputerUsageAnalyticsV2(ctx context.Context, params *GetComputerUsageAnalyticsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
GetComputerUsageAnalyticsV2 Usage Analytics per Member
Returns your organization's Perplexity usage broken down per member, as daily buckets. Each day lists one row per member with usage that day, keyed by email. credit_usage returns each member's total credits and a Model breakdown; query_volume carries Feature, Project and Comet. Read the available axes from categories to determine which breakdowns are available. Uses the same organization analytics API key as v1. Only complete UTC days are returned; the in-progress day is never included.
Corresponds with GET /v2/analytics/computer/usage (the `GetComputerUsageAnalyticsV2` operationId).
func (*Client) GetFile ¶ added in v0.2.0
func (c *Client) GetFile(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFile Retrieve a file
Corresponds with GET /v1/files/{file_id} (the `GetFile` operationId).
func (*Client) GetFileContent ¶ added in v0.2.0
func (c *Client) GetFileContent(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFileContent Download file content
Streams the raw bytes of an input, output, or error file.
Corresponds with GET /v1/files/{file_id}/content (the `GetFileContent` operationId).
func (*Client) GetMonitor ¶ added in v0.5.0
func (c *Client) GetMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMonitor Retrieve a monitor
Returns the monitor with its status, `next_run_at`, and last run.
Corresponds with GET /v1/monitors/{monitor_id} (the `GetMonitor` operationId).
func (*Client) GetMonitorRun ¶ added in v0.5.0
func (c *Client) GetMonitorRun(ctx context.Context, monitorId MonitorId, runId MonitorRunId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMonitorRun Get a run
Returns one run with its changes and target errors. A run is visible as soon as run-now returns it.
Corresponds with GET /v1/monitors/{monitor_id}/runs/{run_id} (the `GetMonitorRun` operationId).
func (*Client) GetSkill ¶
func (c *Client) GetSkill(ctx context.Context, skillId SkillId, params *GetSkillParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSkill Get a skill
Returns a skill. Without `revision`, returns the active revision.
Corresponds with GET /v1/skills/{skill_id} (the `GetSkill` operationId).
func (*Client) ListAdminAuditEventsV1AdminAuditEventsGet ¶ added in v0.3.0
func (c *Client) ListAdminAuditEventsV1AdminAuditEventsGet(ctx context.Context, params *ListAdminAuditEventsV1AdminAuditEventsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAdminAuditEventsV1AdminAuditEventsGet List audit events
Returns the organization's audit events, newest first. Requires an **audit log API key** (scope `audit_logs:read`) created by an org admin under **Enterprise APIs → Audit API**; Sonar API keys are rejected with `403`. Without time parameters the endpoint covers the most recent 30 days; a single request can span at most 30 days. See the [Audit API guide](/docs/admin/audit-api) for key setup, pagination patterns, and event fields.
Corresponds with GET /v1/admin/audit-events (the `ListAdminAuditEventsV1AdminAuditEventsGet` operationId).
func (*Client) ListAgentFiles ¶
func (c *Client) ListAgentFiles(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAgentFiles List Agent Response Files
List the files a response produced in the sandbox and delivered with the `share_file` tool. Scoped to the authenticated account, which only ever sees its own files. File content is not returned inline; download it with the file content endpoint.
Corresponds with GET /v1/agent/{id}/files (the `ListAgentFiles` operationId).
func (*Client) ListAsyncChatCompletionsAsyncChatCompletionsGet ¶
func (c *Client) ListAsyncChatCompletionsAsyncChatCompletionsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAsyncChatCompletionsAsyncChatCompletionsGet List Async Chat Completions
Retrieve a list of all asynchronous chat completion requests for a given user.
Corresponds with GET /v1/async/sonar (the `ListAsyncChatCompletionsAsyncChatCompletionsGet` operationId).
func (*Client) ListBatches ¶ added in v0.2.0
func (c *Client) ListBatches(ctx context.Context, params *ListBatchesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListBatches List batches
Lists your organization's batches, newest first.
Corresponds with GET /v1/batches (the `ListBatches` operationId).
func (*Client) ListFiles ¶ added in v0.2.0
func (c *Client) ListFiles(ctx context.Context, params *ListFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListFiles List files
Lists your organization's files, both uploads and the output and error files batches write. Deleted and expired files are not listed.
Corresponds with GET /v1/files (the `ListFiles` operationId).
func (*Client) ListModels ¶
func (c *Client) ListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListModels List Models
List the models available for the Agent API. Returns model identifiers that can be used with the `POST /v1/agent` endpoint. The response follows the OpenAI List Models format for compatibility with third-party tools.
Corresponds with GET /v1/models (the `ListModels` operationId).
func (*Client) ListMonitorRuns ¶ added in v0.5.0
func (c *Client) ListMonitorRuns(ctx context.Context, monitorId MonitorId, params *ListMonitorRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListMonitorRuns List a monitor's runs
Lists the monitor's runs with their changes, newest first. Runs are kept 90 days.
Corresponds with GET /v1/monitors/{monitor_id}/runs (the `ListMonitorRuns` operationId).
func (*Client) ListMonitors ¶ added in v0.5.0
func (c *Client) ListMonitors(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListMonitors List monitors
Lists your API Group's monitors, newest first.
Corresponds with GET /v1/monitors (the `ListMonitors` operationId).
func (*Client) ListSkillRevisions ¶
func (c *Client) ListSkillRevisions(ctx context.Context, skillId SkillId, params *ListSkillRevisionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSkillRevisions List skill revisions
Lists the revisions of a skill, newest first.
Corresponds with GET /v1/skills/{skill_id}/revisions (the `ListSkillRevisions` operationId).
func (*Client) ListSkills ¶
func (c *Client) ListSkills(ctx context.Context, params *ListSkillsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSkills List skills
Lists the skills in your Project, newest first.
Corresponds with GET /v1/skills (the `ListSkills` operationId).
func (*Client) PauseMonitor ¶ added in v0.5.0
func (c *Client) PauseMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
PauseMonitor Pause a monitor
Stops scheduled runs and keeps the monitor's state. A queued run is cancelled (it ends `skipped`); a run already running finishes. Pausing a paused monitor returns it unchanged.
Corresponds with POST /v1/monitors/{monitor_id}/pause (the `PauseMonitor` operationId).
func (*Client) ResumeMonitor ¶ added in v0.5.0
func (c *Client) ResumeMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
ResumeMonitor Resume a monitor
Resumes scheduled runs and sets `next_run_at` from now. Missed runs are not replayed individually. Resuming a monitor that is not paused returns HTTP `409` with `invalid_state`. State has a 90-day retention period, so a long-paused monitor may establish a new baseline.
The same active-monitor limit applies to creation and resuming. At the limit, HTTP `409` with `quota_exceeded` leaves the monitor unchanged. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
Corresponds with POST /v1/monitors/{monitor_id}/resume (the `ResumeMonitor` operationId).
func (*Client) RetrieveAgent ¶
func (c *Client) RetrieveAgent(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
RetrieveAgent Retrieve Agent Response
Retrieve a response created earlier. Returns a JSON snapshot of the response. Only responses created with `store` omitted or `true` can be retrieved; `store: false` responses return a 404.
Corresponds with GET /v1/agent/{id} (the `RetrieveAgent` operationId).
func (*Client) RunMonitor ¶ added in v0.5.0
func (c *Client) RunMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
RunMonitor Run a monitor now
Queues a manual run and returns it at once with status `queued`. The run's `id` is the `run_id` of its `monitor.run.completed` event, and you can follow it with get run. A monitor has at most one run at a time: while one is queued or running, this returns 409 `run_in_progress` with that run's ID. A paused monitor returns 409 `invalid_state`.
Corresponds with POST /v1/monitors/{monitor_id}/run (the `RunMonitor` operationId).
func (*Client) SearchSearchPost ¶
func (c *Client) SearchSearchPost(ctx context.Context, body SearchSearchPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SearchSearchPost Search the Web
Returns ranked web results for one query, or for up to five queries in one request. The response is a list of results, not a generated answer.
Takes a body of the `application/json` content type.
Corresponds with POST /search (the `SearchSearchPost` operationId).
func (*Client) SearchSearchPostWithBody ¶
func (c *Client) SearchSearchPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SearchSearchPostWithBody Search the Web
Returns ranked web results for one query, or for up to five queries in one request. The response is a list of results, not a generated answer.
Takes any type of body and a specified content type.
Corresponds with POST /search (the `SearchSearchPost` operationId).
func (*Client) TestMonitorWebhook ¶ added in v0.5.0
func (c *Client) TestMonitorWebhook(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
TestMonitorWebhook Test a monitor's webhook
Sends one signed `monitor.webhook.test` event to the configured webhook URL. Takes no request body and returns the delivery outcome after a response or a 10-second timeout. The test is not retried and does not count toward the `webhook_failing` pause threshold. A monitor without a webhook returns HTTP `409` with `invalid_state`.
Corresponds with POST /v1/monitors/{monitor_id}/webhook/test (the `TestMonitorWebhook` operationId).
func (*Client) UpdateMonitor ¶ added in v0.5.0
func (c *Client) UpdateMonitor(ctx context.Context, monitorId MonitorId, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateMonitor Update a monitor
Replaces each top-level field the body names: any subset of `name`, `goal`, `targets`, `schedule`, `webhook` and `metadata`. An absent key leaves the field unchanged. `null` clears an optional field: `goal` becomes `""`, `metadata` becomes `{}`, `webhook` is removed; `null` for `name`, `targets` or `schedule` returns 400. An empty object returns the monitor unchanged.
A new `schedule` recomputes `next_run_at`. Updating targets preserves existing run windows, seen-URL history, and stored Page baselines, subject to retention. A Page URL without a stored baseline establishes one on its first successful fetch. A `webhook` replaces the whole webhook. Without a `secret` it keeps the current one, or, on a monitor without a webhook, generates one that this response returns in `webhook.secret`. A new `secret` rotates: for 24 hours deliveries are signed with both the new and the old secret.
Takes a body of the `application/json` content type.
Corresponds with PATCH /v1/monitors/{monitor_id} (the `UpdateMonitor` operationId).
func (*Client) UpdateMonitorWithBody ¶ added in v0.5.0
func (c *Client) UpdateMonitorWithBody(ctx context.Context, monitorId MonitorId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateMonitorWithBody Update a monitor
Replaces each top-level field the body names: any subset of `name`, `goal`, `targets`, `schedule`, `webhook` and `metadata`. An absent key leaves the field unchanged. `null` clears an optional field: `goal` becomes `""`, `metadata` becomes `{}`, `webhook` is removed; `null` for `name`, `targets` or `schedule` returns 400. An empty object returns the monitor unchanged.
A new `schedule` recomputes `next_run_at`. Updating targets preserves existing run windows, seen-URL history, and stored Page baselines, subject to retention. A Page URL without a stored baseline establishes one on its first successful fetch. A `webhook` replaces the whole webhook. Without a `secret` it keeps the current one, or, on a monitor without a webhook, generates one that this response returns in `webhook.secret`. A new `secret` rotates: for 24 hours deliveries are signed with both the new and the old secret.
Takes any type of body and a specified content type.
Corresponds with PATCH /v1/monitors/{monitor_id} (the `UpdateMonitor` operationId).
func (*Client) UpdateSkillWithBody ¶
func (c *Client) UpdateSkillWithBody(ctx context.Context, skillId SkillId, params *UpdateSkillParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSkillWithBody Add a skill revision
Uploads a new zip bundle as a new revision of an existing skill. Pass the revision you expect to replace as the required `expected_revision`; the request fails with `409` if the skill has already moved past it, so the update cannot race a concurrent write. Name and description are re-read from the new bundle.
Takes any type of body and a specified content type.
Corresponds with PUT /v1/skills/{skill_id} (the `UpdateSkill` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GatewayCreateChatCompletionWithBody Create Chat Completion
//
// Send a conversation to any Orchestrator API model using the OpenAI Chat Completions schema. Set `stream: true` to receive server-sent events; add `stream_options: {"include_usage": true}` to get token usage in the final chunk.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /orchestrator/v1/chat/completions (the `GatewayCreateChatCompletion` operationId).
GatewayCreateChatCompletionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GatewayCreateChatCompletion Create Chat Completion
//
// Send a conversation to any Orchestrator API model using the OpenAI Chat Completions schema. Set `stream: true` to receive server-sent events; add `stream_options: {"include_usage": true}` to get token usage in the final chunk.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /orchestrator/v1/chat/completions (the `GatewayCreateChatCompletion` operationId).
GatewayCreateChatCompletion(ctx context.Context, body GatewayCreateChatCompletionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GatewayCreateMessageWithBody Create Message
//
// Send a conversation to any Orchestrator API model using the Anthropic Messages schema. Set `stream: true` to receive server-sent events. Authenticate with your Perplexity API key in `Authorization: Bearer` or in the Anthropic SDK's default `x-api-key` header.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /orchestrator/v1/messages (the `GatewayCreateMessage` operationId).
GatewayCreateMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GatewayCreateMessage Create Message
//
// Send a conversation to any Orchestrator API model using the Anthropic Messages schema. Set `stream: true` to receive server-sent events. Authenticate with your Perplexity API key in `Authorization: Bearer` or in the Anthropic SDK's default `x-api-key` header.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /orchestrator/v1/messages (the `GatewayCreateMessage` operationId).
GatewayCreateMessage(ctx context.Context, body GatewayCreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GatewayListModels List Models
//
// List the models available through the Orchestrator API, sorted by id. Each model includes its base token prices in `pricing` (USD per 1M tokens).
//
// Corresponds with GET /orchestrator/v1/models (the `GatewayListModels` operationId).
GatewayListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GatewayRetrieveModel Retrieve Model
//
// Retrieve one model by id, including its base token prices. Model ids contain a `/` (for example `perplexity/kimi-k3`); pass the full id in the path.
//
// Corresponds with GET /orchestrator/v1/models/{model} (the `GatewayRetrieveModel` operationId).
GatewayRetrieveModel(ctx context.Context, model string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GatewayCreateResponseWithBody Create Response
//
// Generate a model response using the OpenAI Responses schema. Set `stream: true` to receive typed server-sent events followed by `data: [DONE]`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /orchestrator/v1/responses (the `GatewayCreateResponse` operationId).
GatewayCreateResponseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GatewayCreateResponse Create Response
//
// Generate a model response using the OpenAI Responses schema. Set `stream: true` to receive typed server-sent events followed by `data: [DONE]`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /orchestrator/v1/responses (the `GatewayCreateResponse` operationId).
GatewayCreateResponse(ctx context.Context, body GatewayCreateResponseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SearchSearchPostWithBody Search the Web
//
// Returns ranked web results for one query, or for up to five queries in one request. The response is a list of results, not a generated answer.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /search (the `SearchSearchPost` operationId).
SearchSearchPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SearchSearchPost Search the Web
//
// Returns ranked web results for one query, or for up to five queries in one request. The response is a list of results, not a generated answer.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /search (the `SearchSearchPost` operationId).
SearchSearchPost(ctx context.Context, body SearchSearchPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAdminAuditEventsV1AdminAuditEventsGet List audit events
//
// Returns the organization's audit events, newest first. Requires an **audit log API key** (scope `audit_logs:read`) created by an org admin under **Enterprise APIs → Audit API**; Sonar API keys are rejected with `403`. Without time parameters the endpoint covers the most recent 30 days; a single request can span at most 30 days. See the [Audit API guide](/docs/admin/audit-api) for key setup, pagination patterns, and event fields.
//
// Corresponds with GET /v1/admin/audit-events (the `ListAdminAuditEventsV1AdminAuditEventsGet` operationId).
ListAdminAuditEventsV1AdminAuditEventsGet(ctx context.Context, params *ListAdminAuditEventsV1AdminAuditEventsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAgentWithBody Create Agent Response
//
// Generate a response for the provided input with optional web search and reasoning.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/agent (the `CreateAgent` operationId).
CreateAgentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAgent Create Agent Response
//
// Generate a response for the provided input with optional web search and reasoning.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/agent (the `CreateAgent` operationId).
CreateAgent(ctx context.Context, body CreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RetrieveAgent Retrieve Agent Response
//
// Retrieve a response created earlier. Returns a JSON snapshot of the response. Only responses created with `store` omitted or `true` can be retrieved; `store: false` responses return a 404.
//
// Corresponds with GET /v1/agent/{id} (the `RetrieveAgent` operationId).
RetrieveAgent(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelAgentResponse Cancel Agent Response
//
// Requests cancellation of response `{id}`. Acts on durable state, so it works for background runs that outlive the client connection. Cancellation is asynchronous: a `200` acknowledges the request (`status: cancelling`) and the run stops shortly after - poll `GET /v1/agent/{id}` for its terminal status. Cancelling a run that is already terminal returns `400`. Ownership is enforced server side; a cross-tenant or unknown id surfaces as `404`.
//
// Corresponds with POST /v1/agent/{id}/cancel (the `CancelAgentResponse` operationId).
CancelAgentResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAgentFiles List Agent Response Files
//
// List the files a response produced in the sandbox and delivered with the `share_file` tool. Scoped to the authenticated account, which only ever sees its own files. File content is not returned inline; download it with the file content endpoint.
//
// Corresponds with GET /v1/agent/{id}/files (the `ListAgentFiles` operationId).
ListAgentFiles(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DownloadAgentFile Download Agent Response File
//
// Download the raw bytes of a file the response delivered with the `share_file` tool. The `file_id` comes from the file list endpoint and is distinct from the response `id`. The response streams raw bytes, not JSON, with a `Content-Type` matching the file and a `Content-Disposition: attachment` header carrying the original filename.
//
// Corresponds with GET /v1/agent/{id}/files/{file_id}/content (the `DownloadAgentFile` operationId).
DownloadAgentFile(ctx context.Context, id string, fileId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetComputerUsageAnalytics Usage Analytics
//
// Returns your organization's Perplexity usage analytics as a bucketed time series for a single dataset. Requires an organization analytics API key, generated by an org admin from Settings → Organization → Computer in the Perplexity web app. Only complete UTC grid buckets are returned: start_time snaps down to its bucket, and the in-progress bucket is never included. Datasets differ in what they count: credits for credit_usage, queries for query_volume, distinct active members for daily_active_users, and thread counts for the rest. Buckets of daily_active_users are not additive — a member active on several days is counted once per day, so summing them is not the window's active-member count.
//
// Corresponds with GET /v1/analytics/computer/usage (the `GetComputerUsageAnalytics` operationId).
GetComputerUsageAnalytics(ctx context.Context, params *GetComputerUsageAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAsyncChatCompletionsAsyncChatCompletionsGet List Async Chat Completions
//
// Retrieve a list of all asynchronous chat completion requests for a given user.
//
// Corresponds with GET /v1/async/sonar (the `ListAsyncChatCompletionsAsyncChatCompletionsGet` operationId).
ListAsyncChatCompletionsAsyncChatCompletionsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBody Create Async Chat Completion
//
// Submit an asynchronous chat completion request.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/async/sonar (the `CreateAsyncChatCompletionsAsyncChatCompletionsPost` operationId).
CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAsyncChatCompletionsAsyncChatCompletionsPost Create Async Chat Completion
//
// Submit an asynchronous chat completion request.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/async/sonar (the `CreateAsyncChatCompletionsAsyncChatCompletionsPost` operationId).
CreateAsyncChatCompletionsAsyncChatCompletionsPost(ctx context.Context, body CreateAsyncChatCompletionsAsyncChatCompletionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet Get Async Chat Completion
//
// Retrieve the response for a given asynchronous chat completion request.
//
// Corresponds with GET /v1/async/sonar/{api_request} (the `GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet` operationId).
GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet(ctx context.Context, apiRequest string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListBatches List batches
//
// Lists your organization's batches, newest first.
//
// Corresponds with GET /v1/batches (the `ListBatches` operationId).
ListBatches(ctx context.Context, params *ListBatchesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateBatchWithBody Create a batch
//
// Creates a batch from an uploaded input file. The batch starts in
// `validating`. Send an `Idempotency-Key` header to make retries safe: a
// repeat with the same key returns the original batch.
// `output_expires_after` is not supported and is rejected with a 400;
// output and error files are kept 30 days.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/batches (the `CreateBatch` operationId).
CreateBatchWithBody(ctx context.Context, params *CreateBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateBatch Create a batch
//
// Creates a batch from an uploaded input file. The batch starts in
// `validating`. Send an `Idempotency-Key` header to make retries safe: a
// repeat with the same key returns the original batch.
// `output_expires_after` is not supported and is rejected with a 400;
// output and error files are kept 30 days.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/batches (the `CreateBatch` operationId).
CreateBatch(ctx context.Context, params *CreateBatchParams, body CreateBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBatch Retrieve a batch
//
// Corresponds with GET /v1/batches/{batch_id} (the `GetBatch` operationId).
GetBatch(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelBatch Cancel a batch
//
// Moves the batch to `cancelling`; it becomes `cancelled` once running
// items stop. Completed items stay in the output file and are billed.
// Cancelling a cancelled or cancelling batch returns it unchanged.
//
// Corresponds with POST /v1/batches/{batch_id}/cancel (the `CancelBatch` operationId).
CancelBatch(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ContextWithBody Fetch URL context
//
// Fetch Markdown, HTML, links, highlights, and page metadata for 1 to 50 URLs, and optionally score each page with criteria. The response has one result per input URL, in input order. Check each result's status.type for per-URL failures. See the [Context API quickstart](/docs/context/quickstart), [Formats & Freshness](/docs/context/formats-and-freshness), and [Score Pages with Criteria](/docs/context/criteria).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/context (the `Context` operationId).
ContextWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// Context Fetch URL context
//
// Fetch Markdown, HTML, links, highlights, and page metadata for 1 to 50 URLs, and optionally score each page with criteria. The response has one result per input URL, in input order. Check each result's status.type for per-URL failures. See the [Context API quickstart](/docs/context/quickstart), [Formats & Freshness](/docs/context/formats-and-freshness), and [Score Pages with Criteria](/docs/context/criteria).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/context (the `Context` operationId).
Context(ctx context.Context, body ContextJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBody Create Contextualized Embeddings (v1)
//
// Generate contextualized embeddings for document chunks. Chunks from the same document share context awareness, improving retrieval quality for document-based applications.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/contextualizedembeddings (the `ContextualizedEmbeddingsV1ContextualizedembeddingsPost` operationId).
ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ContextualizedEmbeddingsV1ContextualizedembeddingsPost Create Contextualized Embeddings (v1)
//
// Generate contextualized embeddings for document chunks. Chunks from the same document share context awareness, improving retrieval quality for document-based applications.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/contextualizedembeddings (the `ContextualizedEmbeddingsV1ContextualizedembeddingsPost` operationId).
ContextualizedEmbeddingsV1ContextualizedembeddingsPost(ctx context.Context, body ContextualizedEmbeddingsV1ContextualizedembeddingsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DecisionsV1DecisionsPostWithBody Answer questions
//
// Evaluate one or more named questions against the content in `state`. Mix `noul`, `choice`, `score`, and `locate` questions in one request; the response returns one answer per question under the same name, plus the model name and token usage. Set `model` to `pplx-decider-v1.3`, `pplx-decider-flash-v1.3`, `pplx-decider-v1.2` or `pplx-decider-flash-v1.2`, or to the alias `pplx-decider-latest` or `pplx-decider-flash-latest`; a missing or unknown model returns `400`. Set `mode` to `web_grounding` to fetch a URL-only state and search the web before the model answers. Each search or successful URL fetch is billed. Send the key as `Authorization: Bearer <key>`; an `x-api-key` header is not read and returns `401`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/decisions (the `DecisionsV1DecisionsPost` operationId).
DecisionsV1DecisionsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DecisionsV1DecisionsPost Answer questions
//
// Evaluate one or more named questions against the content in `state`. Mix `noul`, `choice`, `score`, and `locate` questions in one request; the response returns one answer per question under the same name, plus the model name and token usage. Set `model` to `pplx-decider-v1.3`, `pplx-decider-flash-v1.3`, `pplx-decider-v1.2` or `pplx-decider-flash-v1.2`, or to the alias `pplx-decider-latest` or `pplx-decider-flash-latest`; a missing or unknown model returns `400`. Set `mode` to `web_grounding` to fetch a URL-only state and search the web before the model answers. Each search or successful URL fetch is billed. Send the key as `Authorization: Bearer <key>`; an `x-api-key` header is not read and returns `401`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/decisions (the `DecisionsV1DecisionsPost` operationId).
DecisionsV1DecisionsPost(ctx context.Context, body DecisionsV1DecisionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EmbeddingsV1EmbeddingsPostWithBody Create Embeddings
//
// Generate embeddings for texts, pre-chunked documents (pplx-embed-v2), or images (pplx-embed-v2). Use these embeddings for semantic search, clustering, and other machine learning applications.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/embeddings (the `EmbeddingsV1EmbeddingsPost` operationId).
EmbeddingsV1EmbeddingsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// EmbeddingsV1EmbeddingsPost Create Embeddings
//
// Generate embeddings for texts, pre-chunked documents (pplx-embed-v2), or images (pplx-embed-v2). Use these embeddings for semantic search, clustering, and other machine learning applications.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/embeddings (the `EmbeddingsV1EmbeddingsPost` operationId).
EmbeddingsV1EmbeddingsPost(ctx context.Context, body EmbeddingsV1EmbeddingsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListFiles List files
//
// Lists your organization's files, both uploads and the output and error
// files batches write. Deleted and expired files are not listed.
//
// Corresponds with GET /v1/files (the `ListFiles` operationId).
ListFiles(ctx context.Context, params *ListFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFileWithBody Upload a file
//
// Uploads a JSONL batch input file, up to 50,000 lines and 200 MB. Every
// line is validated before the file is stored. Files expire after 30 days;
// `expires_after` is not supported and is rejected with a 400.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/files (the `CreateFile` operationId).
CreateFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteFile Delete a file
//
// Deletes a file. Batches already created from it are not affected.
//
// Corresponds with DELETE /v1/files/{file_id} (the `DeleteFile` operationId).
DeleteFile(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFile Retrieve a file
//
// Corresponds with GET /v1/files/{file_id} (the `GetFile` operationId).
GetFile(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFileContent Download file content
//
// Streams the raw bytes of an input, output, or error file.
//
// Corresponds with GET /v1/files/{file_id}/content (the `GetFileContent` operationId).
GetFileContent(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListModels List Models
//
// List the models available for the Agent API. Returns model identifiers that can be used with the `POST /v1/agent` endpoint. The response follows the OpenAI List Models format for compatibility with third-party tools.
//
// Corresponds with GET /v1/models (the `ListModels` operationId).
ListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMonitors List monitors
//
// Lists your API Group's monitors, newest first.
//
// Corresponds with GET /v1/monitors (the `ListMonitors` operationId).
ListMonitors(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateMonitorWithBody Create a monitor
//
// Creates an `active` monitor. Its first run is due immediately and starts asynchronously; retrieve results with Get a run or List a monitor's runs.
//
// Omit `webhook` or set it to null to retrieve results without notifications. If you configure a webhook without a `secret`, this response returns the generated secret in `webhook.secret`. Store it to verify deliveries. A secret you supply is never returned.
//
// Use `Idempotency-Key` for retries. The same key and body return the original monitor in its current state, without its secret. Reusing the key with a different body returns `400`. If the first response was lost, set a new secret with Update a monitor.
//
// Active-monitor limits apply per API organization: 100 for tiers 0 and 1, 200 for tier 2, 300 for tier 3, 400 for tier 4, and 500 for tier 5. Paused monitors do not count. Creating or resuming at the limit returns HTTP `409` with `quota_exceeded`. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/monitors (the `CreateMonitor` operationId).
CreateMonitorWithBody(ctx context.Context, params *CreateMonitorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateMonitor Create a monitor
//
// Creates an `active` monitor. Its first run is due immediately and starts asynchronously; retrieve results with Get a run or List a monitor's runs.
//
// Omit `webhook` or set it to null to retrieve results without notifications. If you configure a webhook without a `secret`, this response returns the generated secret in `webhook.secret`. Store it to verify deliveries. A secret you supply is never returned.
//
// Use `Idempotency-Key` for retries. The same key and body return the original monitor in its current state, without its secret. Reusing the key with a different body returns `400`. If the first response was lost, set a new secret with Update a monitor.
//
// Active-monitor limits apply per API organization: 100 for tiers 0 and 1, 200 for tier 2, 300 for tier 3, 400 for tier 4, and 500 for tier 5. Paused monitors do not count. Creating or resuming at the limit returns HTTP `409` with `quota_exceeded`. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/monitors (the `CreateMonitor` operationId).
CreateMonitor(ctx context.Context, params *CreateMonitorParams, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMonitor Delete a monitor
//
// Deletes the monitor, its run history, and its state, and stops scheduling new runs.
//
// Corresponds with DELETE /v1/monitors/{monitor_id} (the `DeleteMonitor` operationId).
DeleteMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMonitor Retrieve a monitor
//
// Returns the monitor with its status, `next_run_at`, and last run.
//
// Corresponds with GET /v1/monitors/{monitor_id} (the `GetMonitor` operationId).
GetMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateMonitorWithBody Update a monitor
//
// Replaces each top-level field the body names: any subset of `name`,
// `goal`, `targets`, `schedule`, `webhook` and `metadata`. An absent
// key leaves the field unchanged. `null` clears an optional field:
// `goal` becomes `""`, `metadata` becomes `{}`, `webhook` is removed;
// `null` for `name`, `targets` or `schedule` returns 400. An empty
// object returns the monitor unchanged.
//
// A new `schedule` recomputes `next_run_at`. Updating targets preserves existing run windows, seen-URL history, and stored Page baselines, subject to retention. A Page URL without a stored baseline establishes one on its first successful fetch. A
// `webhook` replaces the whole webhook. Without a `secret` it keeps the
// current one, or, on a monitor without a webhook, generates one that
// this response returns in `webhook.secret`. A new `secret` rotates:
// for 24 hours deliveries are signed with both the new and the old
// secret.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v1/monitors/{monitor_id} (the `UpdateMonitor` operationId).
UpdateMonitorWithBody(ctx context.Context, monitorId MonitorId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateMonitor Update a monitor
//
// Replaces each top-level field the body names: any subset of `name`,
// `goal`, `targets`, `schedule`, `webhook` and `metadata`. An absent
// key leaves the field unchanged. `null` clears an optional field:
// `goal` becomes `""`, `metadata` becomes `{}`, `webhook` is removed;
// `null` for `name`, `targets` or `schedule` returns 400. An empty
// object returns the monitor unchanged.
//
// A new `schedule` recomputes `next_run_at`. Updating targets preserves existing run windows, seen-URL history, and stored Page baselines, subject to retention. A Page URL without a stored baseline establishes one on its first successful fetch. A
// `webhook` replaces the whole webhook. Without a `secret` it keeps the
// current one, or, on a monitor without a webhook, generates one that
// this response returns in `webhook.secret`. A new `secret` rotates:
// for 24 hours deliveries are signed with both the new and the old
// secret.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v1/monitors/{monitor_id} (the `UpdateMonitor` operationId).
UpdateMonitor(ctx context.Context, monitorId MonitorId, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PauseMonitor Pause a monitor
//
// Stops scheduled runs and keeps the monitor's state. A queued run is
// cancelled (it ends `skipped`); a run already running finishes. Pausing
// a paused monitor returns it unchanged.
//
// Corresponds with POST /v1/monitors/{monitor_id}/pause (the `PauseMonitor` operationId).
PauseMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResumeMonitor Resume a monitor
//
// Resumes scheduled runs and sets `next_run_at` from now. Missed runs are not replayed individually. Resuming a monitor that is not paused returns HTTP `409` with `invalid_state`. State has a 90-day retention period, so a long-paused monitor may establish a new baseline.
//
// The same active-monitor limit applies to creation and resuming. At the limit, HTTP `409` with `quota_exceeded` leaves the monitor unchanged. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
//
// Corresponds with POST /v1/monitors/{monitor_id}/resume (the `ResumeMonitor` operationId).
ResumeMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
// RunMonitor Run a monitor now
//
// Queues a manual run and returns it at once with status `queued`. The
// run's `id` is the `run_id` of its `monitor.run.completed` event, and
// you can follow it with get run. A monitor has at most one run at a
// time: while one is queued or running, this returns 409
// `run_in_progress` with that run's ID. A paused monitor returns 409
// `invalid_state`.
//
// Corresponds with POST /v1/monitors/{monitor_id}/run (the `RunMonitor` operationId).
RunMonitor(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMonitorRuns List a monitor's runs
//
// Lists the monitor's runs with their changes, newest first. Runs are kept 90 days.
//
// Corresponds with GET /v1/monitors/{monitor_id}/runs (the `ListMonitorRuns` operationId).
ListMonitorRuns(ctx context.Context, monitorId MonitorId, params *ListMonitorRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMonitorRun Get a run
//
// Returns one run with its changes and target errors. A run is visible as soon as run-now returns it.
//
// Corresponds with GET /v1/monitors/{monitor_id}/runs/{run_id} (the `GetMonitorRun` operationId).
GetMonitorRun(ctx context.Context, monitorId MonitorId, runId MonitorRunId, reqEditors ...RequestEditorFn) (*http.Response, error)
// TestMonitorWebhook Test a monitor's webhook
//
// Sends one signed `monitor.webhook.test` event to the configured webhook URL. Takes no request body and returns the delivery outcome after a response or a 10-second timeout. The test is not retried and does not count toward the `webhook_failing` pause threshold. A monitor without a webhook returns HTTP `409` with `invalid_state`.
//
// Corresponds with POST /v1/monitors/{monitor_id}/webhook/test (the `TestMonitorWebhook` operationId).
TestMonitorWebhook(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSkills List skills
//
// Lists the skills in your Project, newest first.
//
// Corresponds with GET /v1/skills (the `ListSkills` operationId).
ListSkills(ctx context.Context, params *ListSkillsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSkillWithBody Create a skill
//
// Creates a skill from a zip bundle. The bundle must contain a `SKILL.md`
// that provides the skill name and description; those fields are read from
// the bundle, not from the request.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/skills (the `CreateSkill` operationId).
CreateSkillWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSkill Delete a skill
//
// Deletes a skill. Pass the current revision as `expected_revision`; the
// delete fails with `409` if the skill has a newer revision, so a delete
// never races a concurrent update.
//
// Corresponds with DELETE /v1/skills/{skill_id} (the `DeleteSkill` operationId).
DeleteSkill(ctx context.Context, skillId SkillId, params *DeleteSkillParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSkill Get a skill
//
// Returns a skill. Without `revision`, returns the active revision.
//
// Corresponds with GET /v1/skills/{skill_id} (the `GetSkill` operationId).
GetSkill(ctx context.Context, skillId SkillId, params *GetSkillParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSkillWithBody Add a skill revision
//
// Uploads a new zip bundle as a new revision of an existing skill. Pass the
// revision you expect to replace as the required `expected_revision`; the
// request fails with `409` if the skill has already moved past it, so the
// update cannot race a concurrent write. Name and description are re-read
// from the new bundle.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /v1/skills/{skill_id} (the `UpdateSkill` operationId).
UpdateSkillWithBody(ctx context.Context, skillId SkillId, params *UpdateSkillParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DownloadSkill Get a skill download URL
//
// Returns a short-lived URL to download the skill bundle as a zip. Without
// `revision`, returns the active revision.
//
// Corresponds with GET /v1/skills/{skill_id}/download (the `DownloadSkill` operationId).
DownloadSkill(ctx context.Context, skillId SkillId, params *DownloadSkillParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSkillRevisions List skill revisions
//
// Lists the revisions of a skill, newest first.
//
// Corresponds with GET /v1/skills/{skill_id}/revisions (the `ListSkillRevisions` operationId).
ListSkillRevisions(ctx context.Context, skillId SkillId, params *ListSkillRevisionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ChatCompletionsChatCompletionsPostWithBody Create Chat Completion
//
// Generate a chat completion response for the given conversation.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/sonar (the `ChatCompletionsChatCompletionsPost` operationId).
ChatCompletionsChatCompletionsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ChatCompletionsChatCompletionsPost Create Chat Completion
//
// Generate a chat completion response for the given conversation.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/sonar (the `ChatCompletionsChatCompletionsPost` operationId).
ChatCompletionsChatCompletionsPost(ctx context.Context, body ChatCompletionsChatCompletionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetComputerUsageAnalyticsV2 Usage Analytics per Member
//
// Returns your organization's Perplexity usage broken down per member, as daily buckets. Each day lists one row per member with usage that day, keyed by email. credit_usage returns each member's total credits and a Model breakdown; query_volume carries Feature, Project and Comet. Read the available axes from categories to determine which breakdowns are available. Uses the same organization analytics API key as v1. Only complete UTC days are returned; the in-progress day is never included.
//
// Corresponds with GET /v2/analytics/computer/usage (the `GetComputerUsageAnalyticsV2` operationId).
GetComputerUsageAnalyticsV2(ctx context.Context, params *GetComputerUsageAnalyticsV2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CancelAgentResponseWithResponse ¶
func (c *ClientWithResponses) CancelAgentResponseWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CancelAgentResponseResponse, error)
CancelAgentResponseWithResponse Cancel Agent Response
Requests cancellation of response `{id}`. Acts on durable state, so it works for background runs that outlive the client connection. Cancellation is asynchronous: a `200` acknowledges the request (`status: cancelling`) and the run stops shortly after - poll `GET /v1/agent/{id}` for its terminal status. Cancelling a run that is already terminal returns `400`. Ownership is enforced server side; a cross-tenant or unknown id surfaces as `404`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/agent/{id}/cancel (the `CancelAgentResponse` operationId).
func (*ClientWithResponses) CancelBatchWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CancelBatchWithResponse(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*CancelBatchResponse, error)
CancelBatchWithResponse Cancel a batch
Moves the batch to `cancelling`; it becomes `cancelled` once running items stop. Completed items stay in the output file and are billed. Cancelling a cancelled or cancelling batch returns it unchanged.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/batches/{batch_id}/cancel (the `CancelBatch` operationId).
func (*ClientWithResponses) ChatCompletionsChatCompletionsPostWithBodyWithResponse ¶
func (c *ClientWithResponses) ChatCompletionsChatCompletionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatCompletionsChatCompletionsPostResponse, error)
ChatCompletionsChatCompletionsPostWithBodyWithResponse Create Chat Completion
Generate a chat completion response for the given conversation.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/sonar (the `ChatCompletionsChatCompletionsPost` operationId).
func (*ClientWithResponses) ChatCompletionsChatCompletionsPostWithResponse ¶
func (c *ClientWithResponses) ChatCompletionsChatCompletionsPostWithResponse(ctx context.Context, body ChatCompletionsChatCompletionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatCompletionsChatCompletionsPostResponse, error)
ChatCompletionsChatCompletionsPostWithResponse Create Chat Completion
Generate a chat completion response for the given conversation.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/sonar (the `ChatCompletionsChatCompletionsPost` operationId).
func (*ClientWithResponses) ContextWithBodyWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) ContextWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ContextResponse2, error)
ContextWithBodyWithResponse Fetch URL context
Fetch Markdown, HTML, links, highlights, and page metadata for 1 to 50 URLs, and optionally score each page with criteria. The response has one result per input URL, in input order. Check each result's status.type for per-URL failures. See the [Context API quickstart](/docs/context/quickstart), [Formats & Freshness](/docs/context/formats-and-freshness), and [Score Pages with Criteria](/docs/context/criteria).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/context (the `Context` operationId).
func (*ClientWithResponses) ContextWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) ContextWithResponse(ctx context.Context, body ContextJSONRequestBody, reqEditors ...RequestEditorFn) (*ContextResponse2, error)
ContextWithResponse Fetch URL context
Fetch Markdown, HTML, links, highlights, and page metadata for 1 to 50 URLs, and optionally score each page with criteria. The response has one result per input URL, in input order. Check each result's status.type for per-URL failures. See the [Context API quickstart](/docs/context/quickstart), [Formats & Freshness](/docs/context/formats-and-freshness), and [Score Pages with Criteria](/docs/context/criteria).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/context (the `Context` operationId).
func (*ClientWithResponses) ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBodyWithResponse ¶
func (c *ClientWithResponses) ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse, error)
ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBodyWithResponse Create Contextualized Embeddings (v1)
Generate contextualized embeddings for document chunks. Chunks from the same document share context awareness, improving retrieval quality for document-based applications.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/contextualizedembeddings (the `ContextualizedEmbeddingsV1ContextualizedembeddingsPost` operationId).
func (*ClientWithResponses) ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithResponse ¶
func (c *ClientWithResponses) ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithResponse(ctx context.Context, body ContextualizedEmbeddingsV1ContextualizedembeddingsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse, error)
ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithResponse Create Contextualized Embeddings (v1)
Generate contextualized embeddings for document chunks. Chunks from the same document share context awareness, improving retrieval quality for document-based applications.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/contextualizedembeddings (the `ContextualizedEmbeddingsV1ContextualizedembeddingsPost` operationId).
func (*ClientWithResponses) CreateAgentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAgentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAgentResponse, error)
CreateAgentWithBodyWithResponse Create Agent Response
Generate a response for the provided input with optional web search and reasoning.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/agent (the `CreateAgent` operationId).
func (*ClientWithResponses) CreateAgentWithResponse ¶
func (c *ClientWithResponses) CreateAgentWithResponse(ctx context.Context, body CreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAgentResponse, error)
CreateAgentWithResponse Create Agent Response
Generate a response for the provided input with optional web search and reasoning.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/agent (the `CreateAgent` operationId).
func (*ClientWithResponses) CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse, error)
CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBodyWithResponse Create Async Chat Completion
Submit an asynchronous chat completion request.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/async/sonar (the `CreateAsyncChatCompletionsAsyncChatCompletionsPost` operationId).
func (*ClientWithResponses) CreateAsyncChatCompletionsAsyncChatCompletionsPostWithResponse ¶
func (c *ClientWithResponses) CreateAsyncChatCompletionsAsyncChatCompletionsPostWithResponse(ctx context.Context, body CreateAsyncChatCompletionsAsyncChatCompletionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse, error)
CreateAsyncChatCompletionsAsyncChatCompletionsPostWithResponse Create Async Chat Completion
Submit an asynchronous chat completion request.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/async/sonar (the `CreateAsyncChatCompletionsAsyncChatCompletionsPost` operationId).
func (*ClientWithResponses) CreateBatchWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CreateBatchWithBodyWithResponse(ctx context.Context, params *CreateBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBatchResponse, error)
CreateBatchWithBodyWithResponse Create a batch
Creates a batch from an uploaded input file. The batch starts in `validating`. Send an `Idempotency-Key` header to make retries safe: a repeat with the same key returns the original batch. `output_expires_after` is not supported and is rejected with a 400; output and error files are kept 30 days.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/batches (the `CreateBatch` operationId).
func (*ClientWithResponses) CreateBatchWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CreateBatchWithResponse(ctx context.Context, params *CreateBatchParams, body CreateBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBatchResponse, error)
CreateBatchWithResponse Create a batch
Creates a batch from an uploaded input file. The batch starts in `validating`. Send an `Idempotency-Key` header to make retries safe: a repeat with the same key returns the original batch. `output_expires_after` is not supported and is rejected with a 400; output and error files are kept 30 days.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/batches (the `CreateBatch` operationId).
func (*ClientWithResponses) CreateFileWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CreateFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFileResponse, error)
CreateFileWithBodyWithResponse Upload a file
Uploads a JSONL batch input file, up to 50,000 lines and 200 MB. Every line is validated before the file is stored. Files expire after 30 days; `expires_after` is not supported and is rejected with a 400.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/files (the `CreateFile` operationId).
func (*ClientWithResponses) CreateMonitorWithBodyWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) CreateMonitorWithBodyWithResponse(ctx context.Context, params *CreateMonitorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)
CreateMonitorWithBodyWithResponse Create a monitor
Creates an `active` monitor. Its first run is due immediately and starts asynchronously; retrieve results with Get a run or List a monitor's runs.
Omit `webhook` or set it to null to retrieve results without notifications. If you configure a webhook without a `secret`, this response returns the generated secret in `webhook.secret`. Store it to verify deliveries. A secret you supply is never returned.
Use `Idempotency-Key` for retries. The same key and body return the original monitor in its current state, without its secret. Reusing the key with a different body returns `400`. If the first response was lost, set a new secret with Update a monitor.
Active-monitor limits apply per API organization: 100 for tiers 0 and 1, 200 for tier 2, 300 for tier 3, 400 for tier 4, and 500 for tier 5. Paused monitors do not count. Creating or resuming at the limit returns HTTP `409` with `quota_exceeded`. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/monitors (the `CreateMonitor` operationId).
func (*ClientWithResponses) CreateMonitorWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) CreateMonitorWithResponse(ctx context.Context, params *CreateMonitorParams, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)
CreateMonitorWithResponse Create a monitor
Creates an `active` monitor. Its first run is due immediately and starts asynchronously; retrieve results with Get a run or List a monitor's runs.
Omit `webhook` or set it to null to retrieve results without notifications. If you configure a webhook without a `secret`, this response returns the generated secret in `webhook.secret`. Store it to verify deliveries. A secret you supply is never returned.
Use `Idempotency-Key` for retries. The same key and body return the original monitor in its current state, without its secret. Reusing the key with a different body returns `400`. If the first response was lost, set a new secret with Update a monitor.
Active-monitor limits apply per API organization: 100 for tiers 0 and 1, 200 for tier 2, 300 for tier 3, 400 for tier 4, and 500 for tier 5. Paused monitors do not count. Creating or resuming at the limit returns HTTP `409` with `quota_exceeded`. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/monitors (the `CreateMonitor` operationId).
func (*ClientWithResponses) CreateSkillWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSkillWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSkillResponse, error)
CreateSkillWithBodyWithResponse Create a skill
Creates a skill from a zip bundle. The bundle must contain a `SKILL.md` that provides the skill name and description; those fields are read from the bundle, not from the request.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/skills (the `CreateSkill` operationId).
func (*ClientWithResponses) DecisionsV1DecisionsPostWithBodyWithResponse ¶
func (c *ClientWithResponses) DecisionsV1DecisionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DecisionsV1DecisionsPostResponse, error)
DecisionsV1DecisionsPostWithBodyWithResponse Answer questions
Evaluate one or more named questions against the content in `state`. Mix `noul`, `choice`, `score`, and `locate` questions in one request; the response returns one answer per question under the same name, plus the model name and token usage. Set `model` to `pplx-decider-v1.3`, `pplx-decider-flash-v1.3`, `pplx-decider-v1.2` or `pplx-decider-flash-v1.2`, or to the alias `pplx-decider-latest` or `pplx-decider-flash-latest`; a missing or unknown model returns `400`. Set `mode` to `web_grounding` to fetch a URL-only state and search the web before the model answers. Each search or successful URL fetch is billed. Send the key as `Authorization: Bearer <key>`; an `x-api-key` header is not read and returns `401`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/decisions (the `DecisionsV1DecisionsPost` operationId).
func (*ClientWithResponses) DecisionsV1DecisionsPostWithResponse ¶
func (c *ClientWithResponses) DecisionsV1DecisionsPostWithResponse(ctx context.Context, body DecisionsV1DecisionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DecisionsV1DecisionsPostResponse, error)
DecisionsV1DecisionsPostWithResponse Answer questions
Evaluate one or more named questions against the content in `state`. Mix `noul`, `choice`, `score`, and `locate` questions in one request; the response returns one answer per question under the same name, plus the model name and token usage. Set `model` to `pplx-decider-v1.3`, `pplx-decider-flash-v1.3`, `pplx-decider-v1.2` or `pplx-decider-flash-v1.2`, or to the alias `pplx-decider-latest` or `pplx-decider-flash-latest`; a missing or unknown model returns `400`. Set `mode` to `web_grounding` to fetch a URL-only state and search the web before the model answers. Each search or successful URL fetch is billed. Send the key as `Authorization: Bearer <key>`; an `x-api-key` header is not read and returns `401`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/decisions (the `DecisionsV1DecisionsPost` operationId).
func (*ClientWithResponses) DeleteFileWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) DeleteFileWithResponse(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*DeleteFileResponse, error)
DeleteFileWithResponse Delete a file
Deletes a file. Batches already created from it are not affected.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/files/{file_id} (the `DeleteFile` operationId).
func (*ClientWithResponses) DeleteMonitorWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) DeleteMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*DeleteMonitorResponse2, error)
DeleteMonitorWithResponse Delete a monitor
Deletes the monitor, its run history, and its state, and stops scheduling new runs.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/monitors/{monitor_id} (the `DeleteMonitor` operationId).
func (*ClientWithResponses) DeleteSkillWithResponse ¶
func (c *ClientWithResponses) DeleteSkillWithResponse(ctx context.Context, skillId SkillId, params *DeleteSkillParams, reqEditors ...RequestEditorFn) (*DeleteSkillResponse, error)
DeleteSkillWithResponse Delete a skill
Deletes a skill. Pass the current revision as `expected_revision`; the delete fails with `409` if the skill has a newer revision, so a delete never races a concurrent update.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/skills/{skill_id} (the `DeleteSkill` operationId).
func (*ClientWithResponses) DownloadAgentFileWithResponse ¶
func (c *ClientWithResponses) DownloadAgentFileWithResponse(ctx context.Context, id string, fileId string, reqEditors ...RequestEditorFn) (*DownloadAgentFileResponse, error)
DownloadAgentFileWithResponse Download Agent Response File
Download the raw bytes of a file the response delivered with the `share_file` tool. The `file_id` comes from the file list endpoint and is distinct from the response `id`. The response streams raw bytes, not JSON, with a `Content-Type` matching the file and a `Content-Disposition: attachment` header carrying the original filename.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/agent/{id}/files/{file_id}/content (the `DownloadAgentFile` operationId).
func (*ClientWithResponses) DownloadSkillWithResponse ¶
func (c *ClientWithResponses) DownloadSkillWithResponse(ctx context.Context, skillId SkillId, params *DownloadSkillParams, reqEditors ...RequestEditorFn) (*DownloadSkillResponse, error)
DownloadSkillWithResponse Get a skill download URL
Returns a short-lived URL to download the skill bundle as a zip. Without `revision`, returns the active revision.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/skills/{skill_id}/download (the `DownloadSkill` operationId).
func (*ClientWithResponses) EmbeddingsV1EmbeddingsPostWithBodyWithResponse ¶
func (c *ClientWithResponses) EmbeddingsV1EmbeddingsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EmbeddingsV1EmbeddingsPostResponse, error)
EmbeddingsV1EmbeddingsPostWithBodyWithResponse Create Embeddings
Generate embeddings for texts, pre-chunked documents (pplx-embed-v2), or images (pplx-embed-v2). Use these embeddings for semantic search, clustering, and other machine learning applications.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/embeddings (the `EmbeddingsV1EmbeddingsPost` operationId).
func (*ClientWithResponses) EmbeddingsV1EmbeddingsPostWithResponse ¶
func (c *ClientWithResponses) EmbeddingsV1EmbeddingsPostWithResponse(ctx context.Context, body EmbeddingsV1EmbeddingsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*EmbeddingsV1EmbeddingsPostResponse, error)
EmbeddingsV1EmbeddingsPostWithResponse Create Embeddings
Generate embeddings for texts, pre-chunked documents (pplx-embed-v2), or images (pplx-embed-v2). Use these embeddings for semantic search, clustering, and other machine learning applications.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/embeddings (the `EmbeddingsV1EmbeddingsPost` operationId).
func (*ClientWithResponses) GatewayCreateChatCompletionWithBodyWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) GatewayCreateChatCompletionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GatewayCreateChatCompletionResponse, error)
GatewayCreateChatCompletionWithBodyWithResponse Create Chat Completion
Send a conversation to any Orchestrator API model using the OpenAI Chat Completions schema. Set `stream: true` to receive server-sent events; add `stream_options: {"include_usage": true}` to get token usage in the final chunk.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /orchestrator/v1/chat/completions (the `GatewayCreateChatCompletion` operationId).
func (*ClientWithResponses) GatewayCreateChatCompletionWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) GatewayCreateChatCompletionWithResponse(ctx context.Context, body GatewayCreateChatCompletionJSONRequestBody, reqEditors ...RequestEditorFn) (*GatewayCreateChatCompletionResponse, error)
GatewayCreateChatCompletionWithResponse Create Chat Completion
Send a conversation to any Orchestrator API model using the OpenAI Chat Completions schema. Set `stream: true` to receive server-sent events; add `stream_options: {"include_usage": true}` to get token usage in the final chunk.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /orchestrator/v1/chat/completions (the `GatewayCreateChatCompletion` operationId).
func (*ClientWithResponses) GatewayCreateMessageWithBodyWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) GatewayCreateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GatewayCreateMessageResponse, error)
GatewayCreateMessageWithBodyWithResponse Create Message
Send a conversation to any Orchestrator API model using the Anthropic Messages schema. Set `stream: true` to receive server-sent events. Authenticate with your Perplexity API key in `Authorization: Bearer` or in the Anthropic SDK's default `x-api-key` header.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /orchestrator/v1/messages (the `GatewayCreateMessage` operationId).
func (*ClientWithResponses) GatewayCreateMessageWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) GatewayCreateMessageWithResponse(ctx context.Context, body GatewayCreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*GatewayCreateMessageResponse, error)
GatewayCreateMessageWithResponse Create Message
Send a conversation to any Orchestrator API model using the Anthropic Messages schema. Set `stream: true` to receive server-sent events. Authenticate with your Perplexity API key in `Authorization: Bearer` or in the Anthropic SDK's default `x-api-key` header.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /orchestrator/v1/messages (the `GatewayCreateMessage` operationId).
func (*ClientWithResponses) GatewayCreateResponseWithBodyWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) GatewayCreateResponseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GatewayCreateResponseResponse, error)
GatewayCreateResponseWithBodyWithResponse Create Response
Generate a model response using the OpenAI Responses schema. Set `stream: true` to receive typed server-sent events followed by `data: [DONE]`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /orchestrator/v1/responses (the `GatewayCreateResponse` operationId).
func (*ClientWithResponses) GatewayCreateResponseWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) GatewayCreateResponseWithResponse(ctx context.Context, body GatewayCreateResponseJSONRequestBody, reqEditors ...RequestEditorFn) (*GatewayCreateResponseResponse, error)
GatewayCreateResponseWithResponse Create Response
Generate a model response using the OpenAI Responses schema. Set `stream: true` to receive typed server-sent events followed by `data: [DONE]`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /orchestrator/v1/responses (the `GatewayCreateResponse` operationId).
func (*ClientWithResponses) GatewayListModelsWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) GatewayListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GatewayListModelsResponse, error)
GatewayListModelsWithResponse List Models
List the models available through the Orchestrator API, sorted by id. Each model includes its base token prices in `pricing` (USD per 1M tokens).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /orchestrator/v1/models (the `GatewayListModels` operationId).
func (*ClientWithResponses) GatewayRetrieveModelWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) GatewayRetrieveModelWithResponse(ctx context.Context, model string, reqEditors ...RequestEditorFn) (*GatewayRetrieveModelResponse, error)
GatewayRetrieveModelWithResponse Retrieve Model
Retrieve one model by id, including its base token prices. Model ids contain a `/` (for example `perplexity/kimi-k3`); pass the full id in the path.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /orchestrator/v1/models/{model} (the `GatewayRetrieveModel` operationId).
func (*ClientWithResponses) GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetWithResponse ¶
func (c *ClientWithResponses) GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetWithResponse(ctx context.Context, apiRequest string, reqEditors ...RequestEditorFn) (*GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse, error)
GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetWithResponse Get Async Chat Completion
Retrieve the response for a given asynchronous chat completion request.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/async/sonar/{api_request} (the `GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet` operationId).
func (*ClientWithResponses) GetBatchWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetBatchWithResponse(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*GetBatchResponse, error)
GetBatchWithResponse Retrieve a batch
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/batches/{batch_id} (the `GetBatch` operationId).
func (*ClientWithResponses) GetComputerUsageAnalyticsV2WithResponse ¶
func (c *ClientWithResponses) GetComputerUsageAnalyticsV2WithResponse(ctx context.Context, params *GetComputerUsageAnalyticsV2Params, reqEditors ...RequestEditorFn) (*GetComputerUsageAnalyticsV2Response, error)
GetComputerUsageAnalyticsV2WithResponse Usage Analytics per Member
Returns your organization's Perplexity usage broken down per member, as daily buckets. Each day lists one row per member with usage that day, keyed by email. credit_usage returns each member's total credits and a Model breakdown; query_volume carries Feature, Project and Comet. Read the available axes from categories to determine which breakdowns are available. Uses the same organization analytics API key as v1. Only complete UTC days are returned; the in-progress day is never included.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/analytics/computer/usage (the `GetComputerUsageAnalyticsV2` operationId).
func (*ClientWithResponses) GetComputerUsageAnalyticsWithResponse ¶
func (c *ClientWithResponses) GetComputerUsageAnalyticsWithResponse(ctx context.Context, params *GetComputerUsageAnalyticsParams, reqEditors ...RequestEditorFn) (*GetComputerUsageAnalyticsResponse, error)
GetComputerUsageAnalyticsWithResponse Usage Analytics
Returns your organization's Perplexity usage analytics as a bucketed time series for a single dataset. Requires an organization analytics API key, generated by an org admin from Settings → Organization → Computer in the Perplexity web app. Only complete UTC grid buckets are returned: start_time snaps down to its bucket, and the in-progress bucket is never included. Datasets differ in what they count: credits for credit_usage, queries for query_volume, distinct active members for daily_active_users, and thread counts for the rest. Buckets of daily_active_users are not additive — a member active on several days is counted once per day, so summing them is not the window's active-member count.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/analytics/computer/usage (the `GetComputerUsageAnalytics` operationId).
func (*ClientWithResponses) GetFileContentWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetFileContentWithResponse(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*GetFileContentResponse, error)
GetFileContentWithResponse Download file content
Streams the raw bytes of an input, output, or error file.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/files/{file_id}/content (the `GetFileContent` operationId).
func (*ClientWithResponses) GetFileWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetFileWithResponse(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*GetFileResponse, error)
GetFileWithResponse Retrieve a file
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/files/{file_id} (the `GetFile` operationId).
func (*ClientWithResponses) GetMonitorRunWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) GetMonitorRunWithResponse(ctx context.Context, monitorId MonitorId, runId MonitorRunId, reqEditors ...RequestEditorFn) (*GetMonitorRunResponse, error)
GetMonitorRunWithResponse Get a run
Returns one run with its changes and target errors. A run is visible as soon as run-now returns it.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/monitors/{monitor_id}/runs/{run_id} (the `GetMonitorRun` operationId).
func (*ClientWithResponses) GetMonitorWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) GetMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*GetMonitorResponse, error)
GetMonitorWithResponse Retrieve a monitor
Returns the monitor with its status, `next_run_at`, and last run.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/monitors/{monitor_id} (the `GetMonitor` operationId).
func (*ClientWithResponses) GetSkillWithResponse ¶
func (c *ClientWithResponses) GetSkillWithResponse(ctx context.Context, skillId SkillId, params *GetSkillParams, reqEditors ...RequestEditorFn) (*GetSkillResponse, error)
GetSkillWithResponse Get a skill
Returns a skill. Without `revision`, returns the active revision.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/skills/{skill_id} (the `GetSkill` operationId).
func (*ClientWithResponses) ListAdminAuditEventsV1AdminAuditEventsGetWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) ListAdminAuditEventsV1AdminAuditEventsGetWithResponse(ctx context.Context, params *ListAdminAuditEventsV1AdminAuditEventsGetParams, reqEditors ...RequestEditorFn) (*ListAdminAuditEventsV1AdminAuditEventsGetResponse, error)
ListAdminAuditEventsV1AdminAuditEventsGetWithResponse List audit events
Returns the organization's audit events, newest first. Requires an **audit log API key** (scope `audit_logs:read`) created by an org admin under **Enterprise APIs → Audit API**; Sonar API keys are rejected with `403`. Without time parameters the endpoint covers the most recent 30 days; a single request can span at most 30 days. See the [Audit API guide](/docs/admin/audit-api) for key setup, pagination patterns, and event fields.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/admin/audit-events (the `ListAdminAuditEventsV1AdminAuditEventsGet` operationId).
func (*ClientWithResponses) ListAgentFilesWithResponse ¶
func (c *ClientWithResponses) ListAgentFilesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListAgentFilesResponse, error)
ListAgentFilesWithResponse List Agent Response Files
List the files a response produced in the sandbox and delivered with the `share_file` tool. Scoped to the authenticated account, which only ever sees its own files. File content is not returned inline; download it with the file content endpoint.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/agent/{id}/files (the `ListAgentFiles` operationId).
func (*ClientWithResponses) ListAsyncChatCompletionsAsyncChatCompletionsGetWithResponse ¶
func (c *ClientWithResponses) ListAsyncChatCompletionsAsyncChatCompletionsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAsyncChatCompletionsAsyncChatCompletionsGetResponse, error)
ListAsyncChatCompletionsAsyncChatCompletionsGetWithResponse List Async Chat Completions
Retrieve a list of all asynchronous chat completion requests for a given user.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/async/sonar (the `ListAsyncChatCompletionsAsyncChatCompletionsGet` operationId).
func (*ClientWithResponses) ListBatchesWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ListBatchesWithResponse(ctx context.Context, params *ListBatchesParams, reqEditors ...RequestEditorFn) (*ListBatchesResponse, error)
ListBatchesWithResponse List batches
Lists your organization's batches, newest first.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/batches (the `ListBatches` operationId).
func (*ClientWithResponses) ListFilesWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ListFilesWithResponse(ctx context.Context, params *ListFilesParams, reqEditors ...RequestEditorFn) (*ListFilesResponse, error)
ListFilesWithResponse List files
Lists your organization's files, both uploads and the output and error files batches write. Deleted and expired files are not listed.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/files (the `ListFiles` operationId).
func (*ClientWithResponses) ListModelsWithResponse ¶
func (c *ClientWithResponses) ListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListModelsResponse2, error)
ListModelsWithResponse List Models
List the models available for the Agent API. Returns model identifiers that can be used with the `POST /v1/agent` endpoint. The response follows the OpenAI List Models format for compatibility with third-party tools.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/models (the `ListModels` operationId).
func (*ClientWithResponses) ListMonitorRunsWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) ListMonitorRunsWithResponse(ctx context.Context, monitorId MonitorId, params *ListMonitorRunsParams, reqEditors ...RequestEditorFn) (*ListMonitorRunsResponse, error)
ListMonitorRunsWithResponse List a monitor's runs
Lists the monitor's runs with their changes, newest first. Runs are kept 90 days.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/monitors/{monitor_id}/runs (the `ListMonitorRuns` operationId).
func (*ClientWithResponses) ListMonitorsWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) ListMonitorsWithResponse(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*ListMonitorsResponse, error)
ListMonitorsWithResponse List monitors
Lists your API Group's monitors, newest first.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/monitors (the `ListMonitors` operationId).
func (*ClientWithResponses) ListSkillRevisionsWithResponse ¶
func (c *ClientWithResponses) ListSkillRevisionsWithResponse(ctx context.Context, skillId SkillId, params *ListSkillRevisionsParams, reqEditors ...RequestEditorFn) (*ListSkillRevisionsResponse, error)
ListSkillRevisionsWithResponse List skill revisions
Lists the revisions of a skill, newest first.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/skills/{skill_id}/revisions (the `ListSkillRevisions` operationId).
func (*ClientWithResponses) ListSkillsWithResponse ¶
func (c *ClientWithResponses) ListSkillsWithResponse(ctx context.Context, params *ListSkillsParams, reqEditors ...RequestEditorFn) (*ListSkillsResponse, error)
ListSkillsWithResponse List skills
Lists the skills in your Project, newest first.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/skills (the `ListSkills` operationId).
func (*ClientWithResponses) PauseMonitorWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) PauseMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*PauseMonitorResponse, error)
PauseMonitorWithResponse Pause a monitor
Stops scheduled runs and keeps the monitor's state. A queued run is cancelled (it ends `skipped`); a run already running finishes. Pausing a paused monitor returns it unchanged.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/monitors/{monitor_id}/pause (the `PauseMonitor` operationId).
func (*ClientWithResponses) ResumeMonitorWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) ResumeMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*ResumeMonitorResponse, error)
ResumeMonitorWithResponse Resume a monitor
Resumes scheduled runs and sets `next_run_at` from now. Missed runs are not replayed individually. Resuming a monitor that is not paused returns HTTP `409` with `invalid_state`. State has a 90-day retention period, so a long-paused monitor may establish a new baseline.
The same active-monitor limit applies to creation and resuming. At the limit, HTTP `409` with `quota_exceeded` leaves the monitor unchanged. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/monitors/{monitor_id}/resume (the `ResumeMonitor` operationId).
func (*ClientWithResponses) RetrieveAgentWithResponse ¶
func (c *ClientWithResponses) RetrieveAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveAgentResponse, error)
RetrieveAgentWithResponse Retrieve Agent Response
Retrieve a response created earlier. Returns a JSON snapshot of the response. Only responses created with `store` omitted or `true` can be retrieved; `store: false` responses return a 404.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/agent/{id} (the `RetrieveAgent` operationId).
func (*ClientWithResponses) RunMonitorWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) RunMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*RunMonitorResponse, error)
RunMonitorWithResponse Run a monitor now
Queues a manual run and returns it at once with status `queued`. The run's `id` is the `run_id` of its `monitor.run.completed` event, and you can follow it with get run. A monitor has at most one run at a time: while one is queued or running, this returns 409 `run_in_progress` with that run's ID. A paused monitor returns 409 `invalid_state`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/monitors/{monitor_id}/run (the `RunMonitor` operationId).
func (*ClientWithResponses) SearchSearchPostWithBodyWithResponse ¶
func (c *ClientWithResponses) SearchSearchPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchSearchPostResponse, error)
SearchSearchPostWithBodyWithResponse Search the Web
Returns ranked web results for one query, or for up to five queries in one request. The response is a list of results, not a generated answer.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /search (the `SearchSearchPost` operationId).
func (*ClientWithResponses) SearchSearchPostWithResponse ¶
func (c *ClientWithResponses) SearchSearchPostWithResponse(ctx context.Context, body SearchSearchPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchSearchPostResponse, error)
SearchSearchPostWithResponse Search the Web
Returns ranked web results for one query, or for up to five queries in one request. The response is a list of results, not a generated answer.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /search (the `SearchSearchPost` operationId).
func (*ClientWithResponses) TestMonitorWebhookWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) TestMonitorWebhookWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*TestMonitorWebhookResponse, error)
TestMonitorWebhookWithResponse Test a monitor's webhook
Sends one signed `monitor.webhook.test` event to the configured webhook URL. Takes no request body and returns the delivery outcome after a response or a 10-second timeout. The test is not retried and does not count toward the `webhook_failing` pause threshold. A monitor without a webhook returns HTTP `409` with `invalid_state`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/monitors/{monitor_id}/webhook/test (the `TestMonitorWebhook` operationId).
func (*ClientWithResponses) UpdateMonitorWithBodyWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) UpdateMonitorWithBodyWithResponse(ctx context.Context, monitorId MonitorId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)
UpdateMonitorWithBodyWithResponse Update a monitor
Replaces each top-level field the body names: any subset of `name`, `goal`, `targets`, `schedule`, `webhook` and `metadata`. An absent key leaves the field unchanged. `null` clears an optional field: `goal` becomes `""`, `metadata` becomes `{}`, `webhook` is removed; `null` for `name`, `targets` or `schedule` returns 400. An empty object returns the monitor unchanged.
A new `schedule` recomputes `next_run_at`. Updating targets preserves existing run windows, seen-URL history, and stored Page baselines, subject to retention. A Page URL without a stored baseline establishes one on its first successful fetch. A `webhook` replaces the whole webhook. Without a `secret` it keeps the current one, or, on a monitor without a webhook, generates one that this response returns in `webhook.secret`. A new `secret` rotates: for 24 hours deliveries are signed with both the new and the old secret.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v1/monitors/{monitor_id} (the `UpdateMonitor` operationId).
func (*ClientWithResponses) UpdateMonitorWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) UpdateMonitorWithResponse(ctx context.Context, monitorId MonitorId, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)
UpdateMonitorWithResponse Update a monitor
Replaces each top-level field the body names: any subset of `name`, `goal`, `targets`, `schedule`, `webhook` and `metadata`. An absent key leaves the field unchanged. `null` clears an optional field: `goal` becomes `""`, `metadata` becomes `{}`, `webhook` is removed; `null` for `name`, `targets` or `schedule` returns 400. An empty object returns the monitor unchanged.
A new `schedule` recomputes `next_run_at`. Updating targets preserves existing run windows, seen-URL history, and stored Page baselines, subject to retention. A Page URL without a stored baseline establishes one on its first successful fetch. A `webhook` replaces the whole webhook. Without a `secret` it keeps the current one, or, on a monitor without a webhook, generates one that this response returns in `webhook.secret`. A new `secret` rotates: for 24 hours deliveries are signed with both the new and the old secret.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v1/monitors/{monitor_id} (the `UpdateMonitor` operationId).
func (*ClientWithResponses) UpdateSkillWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSkillWithBodyWithResponse(ctx context.Context, skillId SkillId, params *UpdateSkillParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSkillResponse, error)
UpdateSkillWithBodyWithResponse Add a skill revision
Uploads a new zip bundle as a new revision of an existing skill. Pass the revision you expect to replace as the required `expected_revision`; the request fails with `409` if the skill has already moved past it, so the update cannot race a concurrent write. Name and description are re-read from the new bundle.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/skills/{skill_id} (the `UpdateSkill` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GatewayCreateChatCompletionWithBodyWithResponse Create Chat Completion
//
// Send a conversation to any Orchestrator API model using the OpenAI Chat Completions schema. Set `stream: true` to receive server-sent events; add `stream_options: {"include_usage": true}` to get token usage in the final chunk.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /orchestrator/v1/chat/completions (the `GatewayCreateChatCompletion` operationId).
GatewayCreateChatCompletionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GatewayCreateChatCompletionResponse, error)
// GatewayCreateChatCompletionWithResponse Create Chat Completion
//
// Send a conversation to any Orchestrator API model using the OpenAI Chat Completions schema. Set `stream: true` to receive server-sent events; add `stream_options: {"include_usage": true}` to get token usage in the final chunk.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /orchestrator/v1/chat/completions (the `GatewayCreateChatCompletion` operationId).
GatewayCreateChatCompletionWithResponse(ctx context.Context, body GatewayCreateChatCompletionJSONRequestBody, reqEditors ...RequestEditorFn) (*GatewayCreateChatCompletionResponse, error)
// GatewayCreateMessageWithBodyWithResponse Create Message
//
// Send a conversation to any Orchestrator API model using the Anthropic Messages schema. Set `stream: true` to receive server-sent events. Authenticate with your Perplexity API key in `Authorization: Bearer` or in the Anthropic SDK's default `x-api-key` header.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /orchestrator/v1/messages (the `GatewayCreateMessage` operationId).
GatewayCreateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GatewayCreateMessageResponse, error)
// GatewayCreateMessageWithResponse Create Message
//
// Send a conversation to any Orchestrator API model using the Anthropic Messages schema. Set `stream: true` to receive server-sent events. Authenticate with your Perplexity API key in `Authorization: Bearer` or in the Anthropic SDK's default `x-api-key` header.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /orchestrator/v1/messages (the `GatewayCreateMessage` operationId).
GatewayCreateMessageWithResponse(ctx context.Context, body GatewayCreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*GatewayCreateMessageResponse, error)
// GatewayListModelsWithResponse List Models
//
// List the models available through the Orchestrator API, sorted by id. Each model includes its base token prices in `pricing` (USD per 1M tokens).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /orchestrator/v1/models (the `GatewayListModels` operationId).
GatewayListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GatewayListModelsResponse, error)
// GatewayRetrieveModelWithResponse Retrieve Model
//
// Retrieve one model by id, including its base token prices. Model ids contain a `/` (for example `perplexity/kimi-k3`); pass the full id in the path.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /orchestrator/v1/models/{model} (the `GatewayRetrieveModel` operationId).
GatewayRetrieveModelWithResponse(ctx context.Context, model string, reqEditors ...RequestEditorFn) (*GatewayRetrieveModelResponse, error)
// GatewayCreateResponseWithBodyWithResponse Create Response
//
// Generate a model response using the OpenAI Responses schema. Set `stream: true` to receive typed server-sent events followed by `data: [DONE]`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /orchestrator/v1/responses (the `GatewayCreateResponse` operationId).
GatewayCreateResponseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GatewayCreateResponseResponse, error)
// GatewayCreateResponseWithResponse Create Response
//
// Generate a model response using the OpenAI Responses schema. Set `stream: true` to receive typed server-sent events followed by `data: [DONE]`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /orchestrator/v1/responses (the `GatewayCreateResponse` operationId).
GatewayCreateResponseWithResponse(ctx context.Context, body GatewayCreateResponseJSONRequestBody, reqEditors ...RequestEditorFn) (*GatewayCreateResponseResponse, error)
// SearchSearchPostWithBodyWithResponse Search the Web
//
// Returns ranked web results for one query, or for up to five queries in one request. The response is a list of results, not a generated answer.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /search (the `SearchSearchPost` operationId).
SearchSearchPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchSearchPostResponse, error)
// SearchSearchPostWithResponse Search the Web
//
// Returns ranked web results for one query, or for up to five queries in one request. The response is a list of results, not a generated answer.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /search (the `SearchSearchPost` operationId).
SearchSearchPostWithResponse(ctx context.Context, body SearchSearchPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchSearchPostResponse, error)
// ListAdminAuditEventsV1AdminAuditEventsGetWithResponse List audit events
//
// Returns the organization's audit events, newest first. Requires an **audit log API key** (scope `audit_logs:read`) created by an org admin under **Enterprise APIs → Audit API**; Sonar API keys are rejected with `403`. Without time parameters the endpoint covers the most recent 30 days; a single request can span at most 30 days. See the [Audit API guide](/docs/admin/audit-api) for key setup, pagination patterns, and event fields.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/admin/audit-events (the `ListAdminAuditEventsV1AdminAuditEventsGet` operationId).
ListAdminAuditEventsV1AdminAuditEventsGetWithResponse(ctx context.Context, params *ListAdminAuditEventsV1AdminAuditEventsGetParams, reqEditors ...RequestEditorFn) (*ListAdminAuditEventsV1AdminAuditEventsGetResponse, error)
// CreateAgentWithBodyWithResponse Create Agent Response
//
// Generate a response for the provided input with optional web search and reasoning.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/agent (the `CreateAgent` operationId).
CreateAgentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAgentResponse, error)
// CreateAgentWithResponse Create Agent Response
//
// Generate a response for the provided input with optional web search and reasoning.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/agent (the `CreateAgent` operationId).
CreateAgentWithResponse(ctx context.Context, body CreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAgentResponse, error)
// RetrieveAgentWithResponse Retrieve Agent Response
//
// Retrieve a response created earlier. Returns a JSON snapshot of the response. Only responses created with `store` omitted or `true` can be retrieved; `store: false` responses return a 404.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/agent/{id} (the `RetrieveAgent` operationId).
RetrieveAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveAgentResponse, error)
// CancelAgentResponseWithResponse Cancel Agent Response
//
// Requests cancellation of response `{id}`. Acts on durable state, so it works for background runs that outlive the client connection. Cancellation is asynchronous: a `200` acknowledges the request (`status: cancelling`) and the run stops shortly after - poll `GET /v1/agent/{id}` for its terminal status. Cancelling a run that is already terminal returns `400`. Ownership is enforced server side; a cross-tenant or unknown id surfaces as `404`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/agent/{id}/cancel (the `CancelAgentResponse` operationId).
CancelAgentResponseWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CancelAgentResponseResponse, error)
// ListAgentFilesWithResponse List Agent Response Files
//
// List the files a response produced in the sandbox and delivered with the `share_file` tool. Scoped to the authenticated account, which only ever sees its own files. File content is not returned inline; download it with the file content endpoint.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/agent/{id}/files (the `ListAgentFiles` operationId).
ListAgentFilesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListAgentFilesResponse, error)
// DownloadAgentFileWithResponse Download Agent Response File
//
// Download the raw bytes of a file the response delivered with the `share_file` tool. The `file_id` comes from the file list endpoint and is distinct from the response `id`. The response streams raw bytes, not JSON, with a `Content-Type` matching the file and a `Content-Disposition: attachment` header carrying the original filename.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/agent/{id}/files/{file_id}/content (the `DownloadAgentFile` operationId).
DownloadAgentFileWithResponse(ctx context.Context, id string, fileId string, reqEditors ...RequestEditorFn) (*DownloadAgentFileResponse, error)
// GetComputerUsageAnalyticsWithResponse Usage Analytics
//
// Returns your organization's Perplexity usage analytics as a bucketed time series for a single dataset. Requires an organization analytics API key, generated by an org admin from Settings → Organization → Computer in the Perplexity web app. Only complete UTC grid buckets are returned: start_time snaps down to its bucket, and the in-progress bucket is never included. Datasets differ in what they count: credits for credit_usage, queries for query_volume, distinct active members for daily_active_users, and thread counts for the rest. Buckets of daily_active_users are not additive — a member active on several days is counted once per day, so summing them is not the window's active-member count.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/analytics/computer/usage (the `GetComputerUsageAnalytics` operationId).
GetComputerUsageAnalyticsWithResponse(ctx context.Context, params *GetComputerUsageAnalyticsParams, reqEditors ...RequestEditorFn) (*GetComputerUsageAnalyticsResponse, error)
// ListAsyncChatCompletionsAsyncChatCompletionsGetWithResponse List Async Chat Completions
//
// Retrieve a list of all asynchronous chat completion requests for a given user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/async/sonar (the `ListAsyncChatCompletionsAsyncChatCompletionsGet` operationId).
ListAsyncChatCompletionsAsyncChatCompletionsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAsyncChatCompletionsAsyncChatCompletionsGetResponse, error)
// CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBodyWithResponse Create Async Chat Completion
//
// Submit an asynchronous chat completion request.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/async/sonar (the `CreateAsyncChatCompletionsAsyncChatCompletionsPost` operationId).
CreateAsyncChatCompletionsAsyncChatCompletionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse, error)
// CreateAsyncChatCompletionsAsyncChatCompletionsPostWithResponse Create Async Chat Completion
//
// Submit an asynchronous chat completion request.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/async/sonar (the `CreateAsyncChatCompletionsAsyncChatCompletionsPost` operationId).
CreateAsyncChatCompletionsAsyncChatCompletionsPostWithResponse(ctx context.Context, body CreateAsyncChatCompletionsAsyncChatCompletionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse, error)
// GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetWithResponse Get Async Chat Completion
//
// Retrieve the response for a given asynchronous chat completion request.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/async/sonar/{api_request} (the `GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGet` operationId).
GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetWithResponse(ctx context.Context, apiRequest string, reqEditors ...RequestEditorFn) (*GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse, error)
// ListBatchesWithResponse List batches
//
// Lists your organization's batches, newest first.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/batches (the `ListBatches` operationId).
ListBatchesWithResponse(ctx context.Context, params *ListBatchesParams, reqEditors ...RequestEditorFn) (*ListBatchesResponse, error)
// CreateBatchWithBodyWithResponse Create a batch
//
// Creates a batch from an uploaded input file. The batch starts in
// `validating`. Send an `Idempotency-Key` header to make retries safe: a
// repeat with the same key returns the original batch.
// `output_expires_after` is not supported and is rejected with a 400;
// output and error files are kept 30 days.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/batches (the `CreateBatch` operationId).
CreateBatchWithBodyWithResponse(ctx context.Context, params *CreateBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBatchResponse, error)
// CreateBatchWithResponse Create a batch
//
// Creates a batch from an uploaded input file. The batch starts in
// `validating`. Send an `Idempotency-Key` header to make retries safe: a
// repeat with the same key returns the original batch.
// `output_expires_after` is not supported and is rejected with a 400;
// output and error files are kept 30 days.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/batches (the `CreateBatch` operationId).
CreateBatchWithResponse(ctx context.Context, params *CreateBatchParams, body CreateBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBatchResponse, error)
// GetBatchWithResponse Retrieve a batch
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/batches/{batch_id} (the `GetBatch` operationId).
GetBatchWithResponse(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*GetBatchResponse, error)
// CancelBatchWithResponse Cancel a batch
//
// Moves the batch to `cancelling`; it becomes `cancelled` once running
// items stop. Completed items stay in the output file and are billed.
// Cancelling a cancelled or cancelling batch returns it unchanged.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/batches/{batch_id}/cancel (the `CancelBatch` operationId).
CancelBatchWithResponse(ctx context.Context, batchId BatchId, reqEditors ...RequestEditorFn) (*CancelBatchResponse, error)
// ContextWithBodyWithResponse Fetch URL context
//
// Fetch Markdown, HTML, links, highlights, and page metadata for 1 to 50 URLs, and optionally score each page with criteria. The response has one result per input URL, in input order. Check each result's status.type for per-URL failures. See the [Context API quickstart](/docs/context/quickstart), [Formats & Freshness](/docs/context/formats-and-freshness), and [Score Pages with Criteria](/docs/context/criteria).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/context (the `Context` operationId).
ContextWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ContextResponse2, error)
// ContextWithResponse Fetch URL context
//
// Fetch Markdown, HTML, links, highlights, and page metadata for 1 to 50 URLs, and optionally score each page with criteria. The response has one result per input URL, in input order. Check each result's status.type for per-URL failures. See the [Context API quickstart](/docs/context/quickstart), [Formats & Freshness](/docs/context/formats-and-freshness), and [Score Pages with Criteria](/docs/context/criteria).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/context (the `Context` operationId).
ContextWithResponse(ctx context.Context, body ContextJSONRequestBody, reqEditors ...RequestEditorFn) (*ContextResponse2, error)
// ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBodyWithResponse Create Contextualized Embeddings (v1)
//
// Generate contextualized embeddings for document chunks. Chunks from the same document share context awareness, improving retrieval quality for document-based applications.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/contextualizedembeddings (the `ContextualizedEmbeddingsV1ContextualizedembeddingsPost` operationId).
ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse, error)
// ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithResponse Create Contextualized Embeddings (v1)
//
// Generate contextualized embeddings for document chunks. Chunks from the same document share context awareness, improving retrieval quality for document-based applications.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/contextualizedembeddings (the `ContextualizedEmbeddingsV1ContextualizedembeddingsPost` operationId).
ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithResponse(ctx context.Context, body ContextualizedEmbeddingsV1ContextualizedembeddingsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse, error)
// DecisionsV1DecisionsPostWithBodyWithResponse Answer questions
//
// Evaluate one or more named questions against the content in `state`. Mix `noul`, `choice`, `score`, and `locate` questions in one request; the response returns one answer per question under the same name, plus the model name and token usage. Set `model` to `pplx-decider-v1.3`, `pplx-decider-flash-v1.3`, `pplx-decider-v1.2` or `pplx-decider-flash-v1.2`, or to the alias `pplx-decider-latest` or `pplx-decider-flash-latest`; a missing or unknown model returns `400`. Set `mode` to `web_grounding` to fetch a URL-only state and search the web before the model answers. Each search or successful URL fetch is billed. Send the key as `Authorization: Bearer <key>`; an `x-api-key` header is not read and returns `401`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/decisions (the `DecisionsV1DecisionsPost` operationId).
DecisionsV1DecisionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DecisionsV1DecisionsPostResponse, error)
// DecisionsV1DecisionsPostWithResponse Answer questions
//
// Evaluate one or more named questions against the content in `state`. Mix `noul`, `choice`, `score`, and `locate` questions in one request; the response returns one answer per question under the same name, plus the model name and token usage. Set `model` to `pplx-decider-v1.3`, `pplx-decider-flash-v1.3`, `pplx-decider-v1.2` or `pplx-decider-flash-v1.2`, or to the alias `pplx-decider-latest` or `pplx-decider-flash-latest`; a missing or unknown model returns `400`. Set `mode` to `web_grounding` to fetch a URL-only state and search the web before the model answers. Each search or successful URL fetch is billed. Send the key as `Authorization: Bearer <key>`; an `x-api-key` header is not read and returns `401`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/decisions (the `DecisionsV1DecisionsPost` operationId).
DecisionsV1DecisionsPostWithResponse(ctx context.Context, body DecisionsV1DecisionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DecisionsV1DecisionsPostResponse, error)
// EmbeddingsV1EmbeddingsPostWithBodyWithResponse Create Embeddings
//
// Generate embeddings for texts, pre-chunked documents (pplx-embed-v2), or images (pplx-embed-v2). Use these embeddings for semantic search, clustering, and other machine learning applications.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/embeddings (the `EmbeddingsV1EmbeddingsPost` operationId).
EmbeddingsV1EmbeddingsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EmbeddingsV1EmbeddingsPostResponse, error)
// EmbeddingsV1EmbeddingsPostWithResponse Create Embeddings
//
// Generate embeddings for texts, pre-chunked documents (pplx-embed-v2), or images (pplx-embed-v2). Use these embeddings for semantic search, clustering, and other machine learning applications.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/embeddings (the `EmbeddingsV1EmbeddingsPost` operationId).
EmbeddingsV1EmbeddingsPostWithResponse(ctx context.Context, body EmbeddingsV1EmbeddingsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*EmbeddingsV1EmbeddingsPostResponse, error)
// ListFilesWithResponse List files
//
// Lists your organization's files, both uploads and the output and error
// files batches write. Deleted and expired files are not listed.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/files (the `ListFiles` operationId).
ListFilesWithResponse(ctx context.Context, params *ListFilesParams, reqEditors ...RequestEditorFn) (*ListFilesResponse, error)
// CreateFileWithBodyWithResponse Upload a file
//
// Uploads a JSONL batch input file, up to 50,000 lines and 200 MB. Every
// line is validated before the file is stored. Files expire after 30 days;
// `expires_after` is not supported and is rejected with a 400.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/files (the `CreateFile` operationId).
CreateFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFileResponse, error)
// DeleteFileWithResponse Delete a file
//
// Deletes a file. Batches already created from it are not affected.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/files/{file_id} (the `DeleteFile` operationId).
DeleteFileWithResponse(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*DeleteFileResponse, error)
// GetFileWithResponse Retrieve a file
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/files/{file_id} (the `GetFile` operationId).
GetFileWithResponse(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*GetFileResponse, error)
// GetFileContentWithResponse Download file content
//
// Streams the raw bytes of an input, output, or error file.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/files/{file_id}/content (the `GetFileContent` operationId).
GetFileContentWithResponse(ctx context.Context, fileId BatchFileId, reqEditors ...RequestEditorFn) (*GetFileContentResponse, error)
// ListModelsWithResponse List Models
//
// List the models available for the Agent API. Returns model identifiers that can be used with the `POST /v1/agent` endpoint. The response follows the OpenAI List Models format for compatibility with third-party tools.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/models (the `ListModels` operationId).
ListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListModelsResponse2, error)
// ListMonitorsWithResponse List monitors
//
// Lists your API Group's monitors, newest first.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/monitors (the `ListMonitors` operationId).
ListMonitorsWithResponse(ctx context.Context, params *ListMonitorsParams, reqEditors ...RequestEditorFn) (*ListMonitorsResponse, error)
// CreateMonitorWithBodyWithResponse Create a monitor
//
// Creates an `active` monitor. Its first run is due immediately and starts asynchronously; retrieve results with Get a run or List a monitor's runs.
//
// Omit `webhook` or set it to null to retrieve results without notifications. If you configure a webhook without a `secret`, this response returns the generated secret in `webhook.secret`. Store it to verify deliveries. A secret you supply is never returned.
//
// Use `Idempotency-Key` for retries. The same key and body return the original monitor in its current state, without its secret. Reusing the key with a different body returns `400`. If the first response was lost, set a new secret with Update a monitor.
//
// Active-monitor limits apply per API organization: 100 for tiers 0 and 1, 200 for tier 2, 300 for tier 3, 400 for tier 4, and 500 for tier 5. Paused monitors do not count. Creating or resuming at the limit returns HTTP `409` with `quota_exceeded`. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/monitors (the `CreateMonitor` operationId).
CreateMonitorWithBodyWithResponse(ctx context.Context, params *CreateMonitorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)
// CreateMonitorWithResponse Create a monitor
//
// Creates an `active` monitor. Its first run is due immediately and starts asynchronously; retrieve results with Get a run or List a monitor's runs.
//
// Omit `webhook` or set it to null to retrieve results without notifications. If you configure a webhook without a `secret`, this response returns the generated secret in `webhook.secret`. Store it to verify deliveries. A secret you supply is never returned.
//
// Use `Idempotency-Key` for retries. The same key and body return the original monitor in its current state, without its secret. Reusing the key with a different body returns `400`. If the first response was lost, set a new secret with Update a monitor.
//
// Active-monitor limits apply per API organization: 100 for tiers 0 and 1, 200 for tier 2, 300 for tier 3, 400 for tier 4, and 500 for tier 5. Paused monitors do not count. Creating or resuming at the limit returns HTTP `409` with `quota_exceeded`. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/monitors (the `CreateMonitor` operationId).
CreateMonitorWithResponse(ctx context.Context, params *CreateMonitorParams, body CreateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMonitorResponse, error)
// DeleteMonitorWithResponse Delete a monitor
//
// Deletes the monitor, its run history, and its state, and stops scheduling new runs.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/monitors/{monitor_id} (the `DeleteMonitor` operationId).
DeleteMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*DeleteMonitorResponse2, error)
// GetMonitorWithResponse Retrieve a monitor
//
// Returns the monitor with its status, `next_run_at`, and last run.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/monitors/{monitor_id} (the `GetMonitor` operationId).
GetMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*GetMonitorResponse, error)
// UpdateMonitorWithBodyWithResponse Update a monitor
//
// Replaces each top-level field the body names: any subset of `name`,
// `goal`, `targets`, `schedule`, `webhook` and `metadata`. An absent
// key leaves the field unchanged. `null` clears an optional field:
// `goal` becomes `""`, `metadata` becomes `{}`, `webhook` is removed;
// `null` for `name`, `targets` or `schedule` returns 400. An empty
// object returns the monitor unchanged.
//
// A new `schedule` recomputes `next_run_at`. Updating targets preserves existing run windows, seen-URL history, and stored Page baselines, subject to retention. A Page URL without a stored baseline establishes one on its first successful fetch. A
// `webhook` replaces the whole webhook. Without a `secret` it keeps the
// current one, or, on a monitor without a webhook, generates one that
// this response returns in `webhook.secret`. A new `secret` rotates:
// for 24 hours deliveries are signed with both the new and the old
// secret.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v1/monitors/{monitor_id} (the `UpdateMonitor` operationId).
UpdateMonitorWithBodyWithResponse(ctx context.Context, monitorId MonitorId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)
// UpdateMonitorWithResponse Update a monitor
//
// Replaces each top-level field the body names: any subset of `name`,
// `goal`, `targets`, `schedule`, `webhook` and `metadata`. An absent
// key leaves the field unchanged. `null` clears an optional field:
// `goal` becomes `""`, `metadata` becomes `{}`, `webhook` is removed;
// `null` for `name`, `targets` or `schedule` returns 400. An empty
// object returns the monitor unchanged.
//
// A new `schedule` recomputes `next_run_at`. Updating targets preserves existing run windows, seen-URL history, and stored Page baselines, subject to retention. A Page URL without a stored baseline establishes one on its first successful fetch. A
// `webhook` replaces the whole webhook. Without a `secret` it keeps the
// current one, or, on a monitor without a webhook, generates one that
// this response returns in `webhook.secret`. A new `secret` rotates:
// for 24 hours deliveries are signed with both the new and the old
// secret.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v1/monitors/{monitor_id} (the `UpdateMonitor` operationId).
UpdateMonitorWithResponse(ctx context.Context, monitorId MonitorId, body UpdateMonitorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMonitorResponse, error)
// PauseMonitorWithResponse Pause a monitor
//
// Stops scheduled runs and keeps the monitor's state. A queued run is
// cancelled (it ends `skipped`); a run already running finishes. Pausing
// a paused monitor returns it unchanged.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/monitors/{monitor_id}/pause (the `PauseMonitor` operationId).
PauseMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*PauseMonitorResponse, error)
// ResumeMonitorWithResponse Resume a monitor
//
// Resumes scheduled runs and sets `next_run_at` from now. Missed runs are not replayed individually. Resuming a monitor that is not paused returns HTTP `409` with `invalid_state`. State has a 90-day retention period, so a long-paused monitor may establish a new baseline.
//
// The same active-monitor limit applies to creation and resuming. At the limit, HTTP `409` with `quota_exceeded` leaves the monitor unchanged. Pause or delete an active monitor, or upgrade the organization's tier, before retrying.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/monitors/{monitor_id}/resume (the `ResumeMonitor` operationId).
ResumeMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*ResumeMonitorResponse, error)
// RunMonitorWithResponse Run a monitor now
//
// Queues a manual run and returns it at once with status `queued`. The
// run's `id` is the `run_id` of its `monitor.run.completed` event, and
// you can follow it with get run. A monitor has at most one run at a
// time: while one is queued or running, this returns 409
// `run_in_progress` with that run's ID. A paused monitor returns 409
// `invalid_state`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/monitors/{monitor_id}/run (the `RunMonitor` operationId).
RunMonitorWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*RunMonitorResponse, error)
// ListMonitorRunsWithResponse List a monitor's runs
//
// Lists the monitor's runs with their changes, newest first. Runs are kept 90 days.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/monitors/{monitor_id}/runs (the `ListMonitorRuns` operationId).
ListMonitorRunsWithResponse(ctx context.Context, monitorId MonitorId, params *ListMonitorRunsParams, reqEditors ...RequestEditorFn) (*ListMonitorRunsResponse, error)
// GetMonitorRunWithResponse Get a run
//
// Returns one run with its changes and target errors. A run is visible as soon as run-now returns it.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/monitors/{monitor_id}/runs/{run_id} (the `GetMonitorRun` operationId).
GetMonitorRunWithResponse(ctx context.Context, monitorId MonitorId, runId MonitorRunId, reqEditors ...RequestEditorFn) (*GetMonitorRunResponse, error)
// TestMonitorWebhookWithResponse Test a monitor's webhook
//
// Sends one signed `monitor.webhook.test` event to the configured webhook URL. Takes no request body and returns the delivery outcome after a response or a 10-second timeout. The test is not retried and does not count toward the `webhook_failing` pause threshold. A monitor without a webhook returns HTTP `409` with `invalid_state`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/monitors/{monitor_id}/webhook/test (the `TestMonitorWebhook` operationId).
TestMonitorWebhookWithResponse(ctx context.Context, monitorId MonitorId, reqEditors ...RequestEditorFn) (*TestMonitorWebhookResponse, error)
// ListSkillsWithResponse List skills
//
// Lists the skills in your Project, newest first.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/skills (the `ListSkills` operationId).
ListSkillsWithResponse(ctx context.Context, params *ListSkillsParams, reqEditors ...RequestEditorFn) (*ListSkillsResponse, error)
// CreateSkillWithBodyWithResponse Create a skill
//
// Creates a skill from a zip bundle. The bundle must contain a `SKILL.md`
// that provides the skill name and description; those fields are read from
// the bundle, not from the request.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/skills (the `CreateSkill` operationId).
CreateSkillWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSkillResponse, error)
// DeleteSkillWithResponse Delete a skill
//
// Deletes a skill. Pass the current revision as `expected_revision`; the
// delete fails with `409` if the skill has a newer revision, so a delete
// never races a concurrent update.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/skills/{skill_id} (the `DeleteSkill` operationId).
DeleteSkillWithResponse(ctx context.Context, skillId SkillId, params *DeleteSkillParams, reqEditors ...RequestEditorFn) (*DeleteSkillResponse, error)
// GetSkillWithResponse Get a skill
//
// Returns a skill. Without `revision`, returns the active revision.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/skills/{skill_id} (the `GetSkill` operationId).
GetSkillWithResponse(ctx context.Context, skillId SkillId, params *GetSkillParams, reqEditors ...RequestEditorFn) (*GetSkillResponse, error)
// UpdateSkillWithBodyWithResponse Add a skill revision
//
// Uploads a new zip bundle as a new revision of an existing skill. Pass the
// revision you expect to replace as the required `expected_revision`; the
// request fails with `409` if the skill has already moved past it, so the
// update cannot race a concurrent write. Name and description are re-read
// from the new bundle.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/skills/{skill_id} (the `UpdateSkill` operationId).
UpdateSkillWithBodyWithResponse(ctx context.Context, skillId SkillId, params *UpdateSkillParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSkillResponse, error)
// DownloadSkillWithResponse Get a skill download URL
//
// Returns a short-lived URL to download the skill bundle as a zip. Without
// `revision`, returns the active revision.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/skills/{skill_id}/download (the `DownloadSkill` operationId).
DownloadSkillWithResponse(ctx context.Context, skillId SkillId, params *DownloadSkillParams, reqEditors ...RequestEditorFn) (*DownloadSkillResponse, error)
// ListSkillRevisionsWithResponse List skill revisions
//
// Lists the revisions of a skill, newest first.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/skills/{skill_id}/revisions (the `ListSkillRevisions` operationId).
ListSkillRevisionsWithResponse(ctx context.Context, skillId SkillId, params *ListSkillRevisionsParams, reqEditors ...RequestEditorFn) (*ListSkillRevisionsResponse, error)
// ChatCompletionsChatCompletionsPostWithBodyWithResponse Create Chat Completion
//
// Generate a chat completion response for the given conversation.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/sonar (the `ChatCompletionsChatCompletionsPost` operationId).
ChatCompletionsChatCompletionsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatCompletionsChatCompletionsPostResponse, error)
// ChatCompletionsChatCompletionsPostWithResponse Create Chat Completion
//
// Generate a chat completion response for the given conversation.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/sonar (the `ChatCompletionsChatCompletionsPost` operationId).
ChatCompletionsChatCompletionsPostWithResponse(ctx context.Context, body ChatCompletionsChatCompletionsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatCompletionsChatCompletionsPostResponse, error)
// GetComputerUsageAnalyticsV2WithResponse Usage Analytics per Member
//
// Returns your organization's Perplexity usage broken down per member, as daily buckets. Each day lists one row per member with usage that day, keyed by email. credit_usage returns each member's total credits and a Model breakdown; query_volume carries Feature, Project and Comet. Read the available axes from categories to determine which breakdowns are available. Uses the same organization analytics API key as v1. Only complete UTC days are returned; the in-progress day is never included.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/analytics/computer/usage (the `GetComputerUsageAnalyticsV2` operationId).
GetComputerUsageAnalyticsV2WithResponse(ctx context.Context, params *GetComputerUsageAnalyticsV2Params, reqEditors ...RequestEditorFn) (*GetComputerUsageAnalyticsV2Response, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CompletionResponse ¶
type CompletionResponse struct {
// Choices Array of completion choices
Choices []Choice `json:"choices"`
// Citations URLs of sources used to generate the response
Citations *[]string `json:"citations,omitempty"`
// Created Unix timestamp when the completion was created
Created int `json:"created"`
// Id Unique identifier for the completion
Id string `json:"id"`
// Images Array of images returned when return_images is true
Images *[]ImageResult `json:"images,omitempty"`
// Model Model used for generation
Model string `json:"model"`
// Object Object type identifier
Object *string `json:"object,omitempty"`
// RelatedQuestions Array of related questions returned when return_related_questions is true
RelatedQuestions *[]string `json:"related_questions,omitempty"`
// SearchResults Search results used for context in the response
SearchResults *[]ApiPublicSearchResult `json:"search_results,omitempty"`
Usage *UsageInfo `json:"usage,omitempty"`
}
CompletionResponse defines model for CompletionResponse.
type ComputerUsageBucket ¶
type ComputerUsageBucket struct {
// ByCategories Category breakdowns for this bucket, keyed by the labels declared in the response's top-level `categories` list. An empty list means the bucket has no data for that breakdown.
ByCategories map[string][]ComputerUsageCategoryCount `json:"by_categories"`
// Count Bucket total. For credit_usage this may exceed the sum of any single breakdown — usage without a category attribution counts toward the total but not the breakdown.
Count int `json:"count"`
// EndTime Bucket end in unix seconds (UTC), exclusive.
EndTime int `json:"end_time"`
// StartTime Bucket start in unix seconds (UTC), inclusive.
StartTime int `json:"start_time"`
}
ComputerUsageBucket defines model for ComputerUsageBucket.
type ComputerUsageCategoryCount ¶
type ComputerUsageCategoryCount struct {
Category string `json:"category"`
Count int `json:"count"`
}
ComputerUsageCategoryCount A bucket's count for one value of a category breakdown, such as a connector name for connectors, a duration band for task_durations, or a model name for credit_usage's Model axis.
type ComputerUsageResponse ¶
type ComputerUsageResponse struct {
// Categories Available category breakdown labels, in canonical render order. Each label is a key in every bucket's `by_categories`. Use this list to determine which breakdowns are available. The credit_usage example uses the Model axis.
Categories []string `json:"categories"`
// Data Every bucket in the page's window, in chronological order. Buckets without data carry count 0 and an empty breakdown.
Data []ComputerUsageBucket `json:"data"`
// HasMore Whether additional complete buckets remain in the requested time window. This does not indicate whether the data has synced.
HasMore bool `json:"has_more"`
// NextPage Opaque cursor for the next page. Pass it as page and keep the other query parameters unchanged to continue the same report.
NextPage *string `json:"next_page,omitempty"`
}
ComputerUsageResponse defines model for ComputerUsageResponse.
type ComputerUsageV2Bucket ¶
type ComputerUsageV2Bucket struct {
// EndTime Day end in unix seconds (UTC), exclusive.
EndTime int `json:"end_time"`
// Results One row per member with recorded usage for the selected dataset on this day.
Results []ComputerUsageV2Result `json:"results"`
// StartTime Day start in unix seconds (UTC), inclusive.
StartTime int `json:"start_time"`
}
ComputerUsageV2Bucket defines model for ComputerUsageV2Bucket.
type ComputerUsageV2Response ¶
type ComputerUsageV2Response struct {
// Categories Available category breakdown labels for member rows, in canonical render order. Each label is a key in every row's `by_categories`. Use this list to determine which breakdowns are available. The credit_usage example uses the Model axis.
Categories []string `json:"categories"`
// Data Daily buckets in chronological order, each with one row per member with recorded usage for the selected dataset that day. Days with no attributable usage are omitted.
Data []ComputerUsageV2Bucket `json:"data"`
// HasMore Whether more member rows exist beyond this page.
HasMore bool `json:"has_more"`
// NextPage Opaque cursor for the next page. Pass it as page and keep the other query parameters unchanged to continue the same report.
NextPage *string `json:"next_page,omitempty"`
}
ComputerUsageV2Response defines model for ComputerUsageV2Response.
type ComputerUsageV2Result ¶
type ComputerUsageV2Result struct {
// ByCategories The member's day broken down by each label in the response's top-level `categories` list.
ByCategories map[string][]ComputerUsageCategoryCount `json:"by_categories"`
// Count The member's total for the selected dataset that day: credits for credit_usage, queries for query_volume. For credit_usage, the total may exceed the sum of a breakdown because usage without category attribution still counts toward the total.
Count int `json:"count"`
// UserEmail The member's email. Rows whose member can no longer be resolved to an email are omitted.
UserEmail string `json:"user_email"`
}
ComputerUsageV2Result One member's usage for the selected dataset for a single day.
type ConnectorTool ¶
type ConnectorTool struct {
// AllowedTools Optional exact-name allowlist. Omitted or empty admits every live tool.
AllowedTools *[]string `json:"allowed_tools,omitempty"`
// Id Opaque connector identifier.
Id string `json:"id"`
// RequireApproval Approval policy for this connector's MCP tool calls. Omitted, null, or `"never"` runs every call automatically; `"always"` gates every call; the object form filters by exact tool name and reported read-only classification.
RequireApproval *RequireApproval `json:"require_approval,omitempty"`
// ServerDescription Optional model-facing namespace description.
ServerDescription *string `json:"server_description,omitempty"`
// ServerLabel Unique per request, ^[a-zA-Z0-9_-]{1,64}$. Namespaces the connector's tools.
ServerLabel string `json:"server_label"`
Type ConnectorToolType `json:"type"`
}
ConnectorTool A saved managed or custom connector scoped to the authenticated Project.
type ConnectorToolType ¶
type ConnectorToolType string
ConnectorToolType defines model for ConnectorTool.Type.
const (
ConnectorToolTypeConnector ConnectorToolType = "connector"
)
Defines values for ConnectorToolType.
func (ConnectorToolType) Valid ¶
func (e ConnectorToolType) Valid() bool
Valid indicates whether the value is a known member of the ConnectorToolType enum.
type ContentPart ¶
type ContentPart struct {
Annotations *[]Annotation `json:"annotations,omitempty"`
Text string `json:"text"`
// Type Type of a content part
Type ContentPartType `json:"type"`
}
ContentPart defines model for ContentPart.
type ContentPartType ¶
type ContentPartType string
ContentPartType Type of a content part
const (
ContentPartTypeOutputText ContentPartType = "output_text"
)
Defines values for ContentPartType.
func (ContentPartType) Valid ¶
func (e ContentPartType) Valid() bool
Valid indicates whether the value is a known member of the ContentPartType enum.
type ContextCost ¶ added in v0.6.0
type ContextCost struct {
// Currency The currency of total_cost. Always USD.
Currency ContextCurrency `json:"currency"`
// TotalCost fetched_urls at the list per-URL rate, plus the list price of criteria.input_tokens when the request has criteria, rounded to 5 decimals.
TotalCost float64 `json:"total_cost"`
}
ContextCost The cost of the request at list price: the per-URL rate for each billed URL, plus the Decisions API input token price of criteria.input_tokens when the request has criteria. It does not reflect account-specific discounts, credits, or adjustments. See [Context API pricing](/docs/getting-started/pricing#context-api-pricing).
type ContextCriteriaOutcomes ¶ added in v0.6.0
type ContextCriteriaOutcomes struct {
// False What makes the answer false, 1 to 500 characters. It must contain a non-whitespace character.
False *string `json:"false,omitempty"`
// True What makes the answer true, 1 to 500 characters. It must contain a non-whitespace character.
True *string `json:"true,omitempty"`
}
ContextCriteriaOutcomes What counts as true and what counts as false.
type ContextCriteriaQuestion ¶ added in v0.6.0
type ContextCriteriaQuestion struct {
// Criteria Optional descriptions of what makes the answer true and what makes it false.
Criteria *ContextCriteriaOutcomes `json:"criteria,omitempty"`
// Instructions The question to answer or the statement to check, 1 to 1000 characters. It must contain a non-whitespace character.
Instructions string `json:"instructions"`
// Type The question type. Always noul.
Type ContextCriteriaQuestionType `json:"type"`
}
ContextCriteriaQuestion A yes or no question, or a statement to check, about each page.
type ContextCriteriaQuestionType ¶ added in v0.6.0
type ContextCriteriaQuestionType string
ContextCriteriaQuestionType The question type. Always noul.
const (
ContextCriteriaQuestionTypeNoul ContextCriteriaQuestionType = "noul"
)
Defines values for ContextCriteriaQuestionType.
func (ContextCriteriaQuestionType) Valid ¶ added in v0.6.0
func (e ContextCriteriaQuestionType) Valid() bool
Valid indicates whether the value is a known member of the ContextCriteriaQuestionType enum.
type ContextCriteriaUsage ¶ added in v0.6.0
type ContextCriteriaUsage struct {
// InputTokens The tokens the decision model read to score the pages (page text plus the questions), billed as Decisions API input tokens.
InputTokens int64 `json:"input_tokens"`
}
ContextCriteriaUsage Token usage for criteria scoring. Present only when the request has criteria and scoring usage was reported.
type ContextCurrency ¶ added in v0.6.0
type ContextCurrency string
ContextCurrency The currency of total_cost. Always USD.
const (
ContextCurrencyUSD ContextCurrency = "USD"
)
Defines values for ContextCurrency.
func (ContextCurrency) Valid ¶ added in v0.6.0
func (e ContextCurrency) Valid() bool
Valid indicates whether the value is a known member of the ContextCurrency enum.
type ContextDecisionNoulAnswer ¶ added in v0.6.0
type ContextDecisionNoulAnswer struct {
// Noul The probability of yes or true, from 0 to 1. Values near 0.5 mean the model is unsure.
Noul float64 `json:"noul"`
// Type Always noul.
Type ContextDecisionNoulAnswerType `json:"type"`
}
ContextDecisionNoulAnswer The answer to a noul question: the probability that the answer is yes or the statement is true.
type ContextDecisionNoulAnswerType ¶ added in v0.6.0
type ContextDecisionNoulAnswerType string
ContextDecisionNoulAnswerType Always noul.
const (
ContextDecisionNoulAnswerTypeNoul ContextDecisionNoulAnswerType = "noul"
)
Defines values for ContextDecisionNoulAnswerType.
func (ContextDecisionNoulAnswerType) Valid ¶ added in v0.6.0
func (e ContextDecisionNoulAnswerType) Valid() bool
Valid indicates whether the value is a known member of the ContextDecisionNoulAnswerType enum.
type ContextDocument ¶ added in v0.6.0
type ContextDocument struct {
// Criteria The answer to each criteria question, keyed by question ID. Only when the request has criteria and status.type is ok; omitted when the page was not scored, and then criteria_error says why if scoring failed.
Criteria *map[string]ContextDecisionNoulAnswer `json:"criteria,omitempty"`
// CriteriaError Why scoring failed. Only when the request has criteria, status.type is ok, and criteria is omitted; absent when the page had no text to score. timeout: scoring ran out of time. overloaded: the scoring service was at capacity. error: scoring failed for another reason.
CriteriaError *ContextDocumentCriteriaError `json:"criteria_error,omitempty"`
// Highlights The passages of the page most relevant to highlights.query, as one string of extracted page text. Omitted when no passage was returned within max_tokens_per_url.
Highlights *string `json:"highlights,omitempty"`
// Html The page's HTML. Omitted for a page that is not HTML, such as a PDF.
Html *string `json:"html,omitempty"`
// Links The page's links resolved to absolute URLs, without duplicates, in page order. [] for a page without links.
Links *[]string `json:"links,omitempty"`
// Markdown The page content as Markdown.
Markdown *string `json:"markdown,omitempty"`
// Metadata Returned when status.type is ok or not_modified, whatever formats asks for. A field without a value is omitted. Other meta tags in the page's head (name, property, or itemprop) with a non-empty name and value are returned under their lowercased name, such as og:title: a string, or an array of the distinct values in page order when the page repeats the tag.
Metadata *ContextMetadata `json:"metadata,omitempty"`
// Status What happened to this URL.
Status ContextStatus `json:"status"`
// Url The URL exactly as you sent it.
Url string `json:"url"`
}
ContextDocument No field is ever null: a field without a value is omitted. markdown, html, links, and highlights appear only when requested and status.type is ok. metadata appears when status.type is ok or not_modified. A failed result has only url and status.
type ContextDocumentCriteriaError ¶ added in v0.6.0
type ContextDocumentCriteriaError string
ContextDocumentCriteriaError Why scoring failed. Only when the request has criteria, status.type is ok, and criteria is omitted; absent when the page had no text to score. timeout: scoring ran out of time. overloaded: the scoring service was at capacity. error: scoring failed for another reason.
const ( ContextDocumentCriteriaErrorError ContextDocumentCriteriaError = "error" ContextDocumentCriteriaErrorOverloaded ContextDocumentCriteriaError = "overloaded" ContextDocumentCriteriaErrorTimeout ContextDocumentCriteriaError = "timeout" )
Defines values for ContextDocumentCriteriaError.
func (ContextDocumentCriteriaError) Valid ¶ added in v0.6.0
func (e ContextDocumentCriteriaError) Valid() bool
Valid indicates whether the value is a known member of the ContextDocumentCriteriaError enum.
type ContextErrorResponse ¶ added in v0.6.0
type ContextErrorResponse struct {
Error struct {
// Code HTTP status code
Code int `json:"code"`
Message string `json:"message"`
// Param The request field the error is about, when one applies.
Param *string `json:"param,omitempty"`
// RequestId The request ID. Present on errors the Context API returns itself.
RequestId *string `json:"request_id,omitempty"`
// Type The error type. See each status code for its types.
Type ContextErrorResponseErrorType `json:"type"`
} `json:"error"`
}
ContextErrorResponse defines model for ContextErrorResponse.
type ContextErrorResponseErrorType ¶ added in v0.6.0
type ContextErrorResponseErrorType string
ContextErrorResponseErrorType The error type. See each status code for its types.
const ( ContextErrorResponseErrorTypeApiProductNotAllowed ContextErrorResponseErrorType = "api_product_not_allowed" ContextErrorResponseErrorTypeBadGateway ContextErrorResponseErrorType = "bad_gateway" ContextErrorResponseErrorTypeForbidden ContextErrorResponseErrorType = "forbidden" ContextErrorResponseErrorTypeGatewayTimeout ContextErrorResponseErrorType = "gateway_timeout" ContextErrorResponseErrorTypeInsufficientQuota ContextErrorResponseErrorType = "insufficient_quota" ContextErrorResponseErrorTypeInternalError ContextErrorResponseErrorType = "internal_error" ContextErrorResponseErrorTypeInvalidApiKey ContextErrorResponseErrorType = "invalid_api_key" ContextErrorResponseErrorTypeInvalidRequest ContextErrorResponseErrorType = "invalid_request" ContextErrorResponseErrorTypeRateLimitExceeded ContextErrorResponseErrorType = "rate_limit_exceeded" ContextErrorResponseErrorTypeRequestRateLimitExceeded ContextErrorResponseErrorType = "request_rate_limit_exceeded" ContextErrorResponseErrorTypeSafetyIdentifierBlocked ContextErrorResponseErrorType = "safety_identifier_blocked" ContextErrorResponseErrorTypeServerError ContextErrorResponseErrorType = "server_error" ContextErrorResponseErrorTypeTimeoutError ContextErrorResponseErrorType = "timeout_error" ContextErrorResponseErrorTypeTokenExpired ContextErrorResponseErrorType = "token_expired" ContextErrorResponseErrorTypeUnsupportedFormat ContextErrorResponseErrorType = "unsupported_format" ContextErrorResponseErrorTypeUnsupportedParam ContextErrorResponseErrorType = "unsupported_param" )
Defines values for ContextErrorResponseErrorType.
func (ContextErrorResponseErrorType) Valid ¶ added in v0.6.0
func (e ContextErrorResponseErrorType) Valid() bool
Valid indicates whether the value is a known member of the ContextErrorResponseErrorType enum.
type ContextHighlights ¶ added in v0.6.0
type ContextHighlights struct {
// MaxTokensPerUrl Maximum length of each page's highlights, in tokens.
MaxTokensPerUrl *int `json:"max_tokens_per_url,omitempty"`
// Query What to look for in each page, 1 to 1024 characters. It must contain a non-whitespace character.
Query string `json:"query"`
}
ContextHighlights Highlights settings. Required when formats includes highlights, and allowed only then.
type ContextJSONRequestBody ¶ added in v0.6.0
type ContextJSONRequestBody = ContextRequest
ContextJSONRequestBody defines body for Context for application/json ContentType.
type ContextMetadata ¶ added in v0.6.0
type ContextMetadata struct {
// Author Page author.
Author *string `json:"author,omitempty"`
// ContentType Content-Type reported for the page.
ContentType *string `json:"content_type,omitempty"`
// Description Page description.
Description *string `json:"description,omitempty"`
// FetchedAt When the returned content was fetched. Omitted when snapshot_as_of is set.
FetchedAt *time.Time `json:"fetched_at,omitempty"`
// Language Page language, such as en.
Language *string `json:"language,omitempty"`
// LastModified The site's Last-Modified header, when it sent one. Send it as if_modified_since to check whether the page changed. It is not a publication date or fetch time.
LastModified *string `json:"last_modified,omitempty"`
// Origin cached: a stored copy, chosen by max_age_seconds, cache_only, or snapshot_as_of. live: fetched for this request.
Origin *ContextMetadataOrigin `json:"origin,omitempty"`
// PublishedDate Publication date (YYYY-MM-DD).
PublishedDate *openapi_types.Date `json:"published_date,omitempty"`
// SourceUrl The URL the content came from, after normalization and redirects. It can differ from url.
SourceUrl string `json:"source_url"`
// Title Page title.
Title *string `json:"title,omitempty"`
AdditionalProperties map[string]ContextMetadata_AdditionalProperties `json:"-"`
}
ContextMetadata Returned when status.type is ok or not_modified, whatever formats asks for. A field without a value is omitted. Other meta tags in the page's head (name, property, or itemprop) with a non-empty name and value are returned under their lowercased name, such as og:title: a string, or an array of the distinct values in page order when the page repeats the tag.
func (ContextMetadata) Get ¶ added in v0.6.0
func (a ContextMetadata) Get(fieldName string) (value ContextMetadata_AdditionalProperties, found bool)
Getter for additional properties for ContextMetadata. Returns the specified element and whether it was found
func (ContextMetadata) MarshalJSON ¶ added in v0.6.0
func (a ContextMetadata) MarshalJSON() ([]byte, error)
Override default JSON handling for ContextMetadata to handle AdditionalProperties
func (*ContextMetadata) Set ¶ added in v0.6.0
func (a *ContextMetadata) Set(fieldName string, value ContextMetadata_AdditionalProperties)
Setter for additional properties for ContextMetadata
func (*ContextMetadata) UnmarshalJSON ¶ added in v0.6.0
func (a *ContextMetadata) UnmarshalJSON(b []byte) error
Override default JSON handling for ContextMetadata to handle AdditionalProperties
type ContextMetadata0 ¶ added in v0.6.0
type ContextMetadata0 = string
ContextMetadata0 defines model for ContextMetadata.0.
type ContextMetadata1 ¶ added in v0.6.0
type ContextMetadata1 = []string
ContextMetadata1 defines model for ContextMetadata.1.
type ContextMetadataOrigin ¶ added in v0.6.0
type ContextMetadataOrigin string
ContextMetadataOrigin cached: a stored copy, chosen by max_age_seconds, cache_only, or snapshot_as_of. live: fetched for this request.
const ( ContextMetadataOriginCached ContextMetadataOrigin = "cached" ContextMetadataOriginLive ContextMetadataOrigin = "live" )
Defines values for ContextMetadataOrigin.
func (ContextMetadataOrigin) Valid ¶ added in v0.6.0
func (e ContextMetadataOrigin) Valid() bool
Valid indicates whether the value is a known member of the ContextMetadataOrigin enum.
type ContextMetadata_AdditionalProperties ¶ added in v0.6.0
type ContextMetadata_AdditionalProperties struct {
// contains filtered or unexported fields
}
ContextMetadata_AdditionalProperties defines model for ContextMetadata.AdditionalProperties.
func (ContextMetadata_AdditionalProperties) AsContextMetadata0 ¶ added in v0.6.0
func (t ContextMetadata_AdditionalProperties) AsContextMetadata0() (ContextMetadata0, error)
AsContextMetadata0 returns the union data inside the ContextMetadata_AdditionalProperties as a ContextMetadata0
func (ContextMetadata_AdditionalProperties) AsContextMetadata1 ¶ added in v0.6.0
func (t ContextMetadata_AdditionalProperties) AsContextMetadata1() (ContextMetadata1, error)
AsContextMetadata1 returns the union data inside the ContextMetadata_AdditionalProperties as a ContextMetadata1
func (*ContextMetadata_AdditionalProperties) FromContextMetadata0 ¶ added in v0.6.0
func (t *ContextMetadata_AdditionalProperties) FromContextMetadata0(v ContextMetadata0) error
FromContextMetadata0 overwrites any union data inside the ContextMetadata_AdditionalProperties as the provided ContextMetadata0
func (*ContextMetadata_AdditionalProperties) FromContextMetadata1 ¶ added in v0.6.0
func (t *ContextMetadata_AdditionalProperties) FromContextMetadata1(v ContextMetadata1) error
FromContextMetadata1 overwrites any union data inside the ContextMetadata_AdditionalProperties as the provided ContextMetadata1
func (ContextMetadata_AdditionalProperties) MarshalJSON ¶ added in v0.6.0
func (t ContextMetadata_AdditionalProperties) MarshalJSON() ([]byte, error)
func (*ContextMetadata_AdditionalProperties) MergeContextMetadata0 ¶ added in v0.6.0
func (t *ContextMetadata_AdditionalProperties) MergeContextMetadata0(v ContextMetadata0) error
MergeContextMetadata0 performs a merge with any union data inside the ContextMetadata_AdditionalProperties, using the provided ContextMetadata0
func (*ContextMetadata_AdditionalProperties) MergeContextMetadata1 ¶ added in v0.6.0
func (t *ContextMetadata_AdditionalProperties) MergeContextMetadata1(v ContextMetadata1) error
MergeContextMetadata1 performs a merge with any union data inside the ContextMetadata_AdditionalProperties, using the provided ContextMetadata1
func (*ContextMetadata_AdditionalProperties) UnmarshalJSON ¶ added in v0.6.0
func (t *ContextMetadata_AdditionalProperties) UnmarshalJSON(b []byte) error
type ContextRequest ¶ added in v0.6.0
type ContextRequest struct {
// CacheOnly When true, answer only from stored copies at most max_age_seconds old and never fetch live. A URL without one has status.type no_content. Requires max_age_seconds above 0. Cannot be combined with snapshot_as_of.
CacheOnly *bool `json:"cache_only,omitempty"`
// Criteria Decision questions to score each page with, keyed by question ID. 1 to 5 questions. IDs must match [A-Za-z0-9_-]{1,64}, and query is reserved. Scoring never filters, reorders, or drops results.
Criteria *map[string]ContextCriteriaQuestion `json:"criteria,omitempty"`
// Formats What to return besides metadata, which is always returned for a page with content. highlights requires the highlights object. [] returns metadata only.
Formats *[]ContextRequestFormats `json:"formats,omitempty"`
// Highlights Highlights settings. Required when formats includes highlights, and allowed only then.
Highlights *ContextHighlights `json:"highlights,omitempty"`
// IfModifiedSince A metadata.last_modified value from an earlier response, in IMF-fixdate form such as Thu, 03 Dec 1992 08:37:20 GMT. Requires exactly one URL and max_age_seconds 0. If the page has not changed since then, its result has status.type not_modified and no content, so keep the content you already have.
IfModifiedSince *string `json:"if_modified_since,omitempty"`
// MaxAgeSeconds Maximum age of a stored copy to accept, up to 63072000 (two years). 0 always fetches the page live. Cannot be combined with snapshot_as_of.
MaxAgeSeconds *int `json:"max_age_seconds,omitempty"`
// SnapshotAsOf Return each URL as stored at or before this RFC 3339 time with a time zone, such as 2026-11-01T00:00:00Z. It must not be in the future or more than 365 days ago. Never fetches live: a URL with no stored copy from before that time has status.type no_content. Cannot be combined with max_age_seconds, cache_only, if_modified_since, or the html and links formats.
SnapshotAsOf *string `json:"snapshot_as_of,omitempty"`
// TimeoutMs Time budget for fetching the pages. URLs are fetched in parallel, and a URL that does not finish in time has status.type crawl_timeout while the rest keep their content. The response can take slightly longer than this budget. With criteria, scoring may add up to 15 seconds.
TimeoutMs *int `json:"timeout_ms,omitempty"`
// Urls 1 to 50 http or https URLs. Your usage tier can lower the maximum. A string that is not an absolute http or https URL does not fail the request: its result has status.type invalid_url.
Urls []string `json:"urls"`
}
ContextRequest defines model for ContextRequest.
type ContextRequestFormats ¶ added in v0.6.0
type ContextRequestFormats string
ContextRequestFormats defines model for ContextRequest.Formats.
const ( ContextRequestFormatsHighlights ContextRequestFormats = "highlights" ContextRequestFormatsHtml ContextRequestFormats = "html" ContextRequestFormatsLinks ContextRequestFormats = "links" ContextRequestFormatsMarkdown ContextRequestFormats = "markdown" )
Defines values for ContextRequestFormats.
func (ContextRequestFormats) Valid ¶ added in v0.6.0
func (e ContextRequestFormats) Valid() bool
Valid indicates whether the value is a known member of the ContextRequestFormats enum.
type ContextResponse ¶ added in v0.6.0
type ContextResponse struct {
// RequestId The request ID, the same value as the X-Request-Id response header. Include it when you contact support.
RequestId string `json:"request_id"`
// Results One result per input URL, in request order.
Results []ContextDocument `json:"results"`
// Usage The number of billed URLs in this request, the criteria scoring tokens when the request has criteria, and the cost at list price.
Usage ContextUsage `json:"usage"`
}
ContextResponse defines model for ContextResponse.
type ContextResponse2 ¶ added in v0.6.0
type ContextResponse2 struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ContextResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ContextErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ContextErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ContextErrorResponse
// JSON405 the response for an HTTP 405 `application/json` response
JSON405 *ContextErrorResponse
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ContextErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ContextErrorResponse
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *ContextErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ContextErrorResponse
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *ContextErrorResponse
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ContextResponse2429Headers
}
func ParseContextResponse2 ¶ added in v0.6.0
func ParseContextResponse2(rsp *http.Response) (*ContextResponse2, error)
ParseContextResponse2 parses an HTTP response from a ContextWithResponse call
func (ContextResponse2) ContentType ¶ added in v0.6.0
func (r ContextResponse2) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ContextResponse2) GetBody ¶ added in v0.6.0
func (r ContextResponse2) GetBody() []byte
GetBody returns the raw response body bytes
func (ContextResponse2) GetJSON200 ¶ added in v0.6.0
func (r ContextResponse2) GetJSON200() *ContextResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ContextResponse2) GetJSON400 ¶ added in v0.6.0
func (r ContextResponse2) GetJSON400() *ContextErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ContextResponse2) GetJSON401 ¶ added in v0.6.0
func (r ContextResponse2) GetJSON401() *ContextErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ContextResponse2) GetJSON403 ¶ added in v0.6.0
func (r ContextResponse2) GetJSON403() *ContextErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ContextResponse2) GetJSON405 ¶ added in v0.6.0
func (r ContextResponse2) GetJSON405() *ContextErrorResponse
GetJSON405 returns the response for an HTTP 405 `application/json` response
func (ContextResponse2) GetJSON429 ¶ added in v0.6.0
func (r ContextResponse2) GetJSON429() *ContextErrorResponse
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ContextResponse2) GetJSON500 ¶ added in v0.6.0
func (r ContextResponse2) GetJSON500() *ContextErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ContextResponse2) GetJSON502 ¶ added in v0.6.0
func (r ContextResponse2) GetJSON502() *ContextErrorResponse
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (ContextResponse2) GetJSON503 ¶ added in v0.6.0
func (r ContextResponse2) GetJSON503() *ContextErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ContextResponse2) GetJSON504 ¶ added in v0.6.0
func (r ContextResponse2) GetJSON504() *ContextErrorResponse
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (ContextResponse2) Status ¶ added in v0.6.0
func (r ContextResponse2) Status() string
Status returns HTTPResponse.Status
func (ContextResponse2) StatusCode ¶ added in v0.6.0
func (r ContextResponse2) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ContextResponse2429Headers ¶ added in v0.6.0
type ContextResponse2429Headers struct {
RetryAfter *int
}
ContextResponse2429Headers the declared response headers of an HTTP 429 response for Context
type ContextStatus ¶ added in v0.6.0
type ContextStatus struct {
// Message A fixed sentence describing the failure. Only on failures.
Message *string `json:"message,omitempty"`
// StatusCode The site's own HTTP status, on ok, not_modified, bot_challenge, and crawl_failed, when the site answered.
StatusCode *int `json:"status_code,omitempty"`
// Type ok: the fetch succeeded; the result has metadata and the requested formats that are available. not_modified: unchanged since if_modified_since. invalid_url: not an absolute http or https URL. blocked: the URL is blocked and was not fetched. bot_challenge: the site answered with a bot challenge. crawl_failed: the fetch failed. crawl_timeout: fetching the page timed out. no_text: the page has no text, and formats has markdown. no_content: no content was found for the URL. internal_error: the URL could not be read; retry later.
Type ContextStatusType `json:"type"`
}
ContextStatus What happened to this URL.
type ContextStatusType ¶ added in v0.6.0
type ContextStatusType string
ContextStatusType ok: the fetch succeeded; the result has metadata and the requested formats that are available. not_modified: unchanged since if_modified_since. invalid_url: not an absolute http or https URL. blocked: the URL is blocked and was not fetched. bot_challenge: the site answered with a bot challenge. crawl_failed: the fetch failed. crawl_timeout: fetching the page timed out. no_text: the page has no text, and formats has markdown. no_content: no content was found for the URL. internal_error: the URL could not be read; retry later.
const ( ContextStatusTypeBlocked ContextStatusType = "blocked" ContextStatusTypeBotChallenge ContextStatusType = "bot_challenge" ContextStatusTypeCrawlFailed ContextStatusType = "crawl_failed" ContextStatusTypeCrawlTimeout ContextStatusType = "crawl_timeout" ContextStatusTypeInternalError ContextStatusType = "internal_error" ContextStatusTypeInvalidUrl ContextStatusType = "invalid_url" ContextStatusTypeNoContent ContextStatusType = "no_content" ContextStatusTypeNoText ContextStatusType = "no_text" ContextStatusTypeNotModified ContextStatusType = "not_modified" ContextStatusTypeOk ContextStatusType = "ok" )
Defines values for ContextStatusType.
func (ContextStatusType) Valid ¶ added in v0.6.0
func (e ContextStatusType) Valid() bool
Valid indicates whether the value is a known member of the ContextStatusType enum.
type ContextUsage ¶ added in v0.6.0
type ContextUsage struct {
// Cost The cost of the request at list price: the per-URL rate for each billed URL, plus the Decisions API input token price of criteria.input_tokens when the request has criteria. It does not reflect account-specific discounts, credits, or adjustments. See [Context API pricing](/docs/getting-started/pricing#context-api-pricing).
Cost ContextCost `json:"cost"`
// Criteria Token usage for criteria scoring. Present only when the request has criteria and scoring usage was reported.
Criteria *ContextCriteriaUsage `json:"criteria,omitempty"`
// FetchedUrls The number of billed URLs: the results whose status.type is ok or not_modified. Failed URLs are free, so this is 0 when every URL fails.
FetchedUrls int `json:"fetched_urls"`
}
ContextUsage The number of billed URLs in this request, the criteria scoring tokens when the request has criteria, and the cost at list price.
type ContextualizedEmbeddingObject ¶
type ContextualizedEmbeddingObject struct {
// Data List of embedding objects for chunks in this document
Data *[]EmbeddingObject `json:"data,omitempty"`
// Index The index of the document this chunk belongs to
Index *int `json:"index,omitempty"`
// Object The object type
Object *string `json:"object,omitempty"`
}
ContextualizedEmbeddingObject A single contextualized embedding result
type ContextualizedEmbeddingsRequest ¶
type ContextualizedEmbeddingsRequest struct {
// Dimensions Number of dimensions for output embeddings (Matryoshka). Range: 128-1024 for pplx-embed-context-v1-0.6b, 128-2560 for pplx-embed-context-v1-4b. Defaults to full dimensions (1024 or 2560).
Dimensions *int `json:"dimensions,omitempty"`
// EncodingFormat Output encoding format for embeddings. base64_int8 returns base64-encoded signed int8 values. base64_binary returns base64-encoded packed binary (1 bit per dimension).
EncodingFormat *ContextualizedEmbeddingsRequestEncodingFormat `json:"encoding_format,omitempty"`
// Input Nested array structure where each inner array contains chunks from a single document. Chunks within the same document are encoded with document-level context awareness. Maximum 512 documents. Total chunks across all documents must not exceed 16,000. Total tokens per document must not exceed 32K. All chunks in a single request must not exceed 120,000 tokens combined. Empty strings are not allowed.
Input [][]string `json:"input"`
// Model The contextualized embedding model to use
Model ContextualizedEmbeddingsRequestModel `json:"model"`
}
ContextualizedEmbeddingsRequest Request body for creating contextualized embeddings
type ContextualizedEmbeddingsRequestEncodingFormat ¶
type ContextualizedEmbeddingsRequestEncodingFormat string
ContextualizedEmbeddingsRequestEncodingFormat Output encoding format for embeddings. base64_int8 returns base64-encoded signed int8 values. base64_binary returns base64-encoded packed binary (1 bit per dimension).
const ( ContextualizedEmbeddingsRequestEncodingFormatBase64Binary ContextualizedEmbeddingsRequestEncodingFormat = "base64_binary" ContextualizedEmbeddingsRequestEncodingFormatBase64Int8 ContextualizedEmbeddingsRequestEncodingFormat = "base64_int8" )
Defines values for ContextualizedEmbeddingsRequestEncodingFormat.
func (ContextualizedEmbeddingsRequestEncodingFormat) Valid ¶
func (e ContextualizedEmbeddingsRequestEncodingFormat) Valid() bool
Valid indicates whether the value is a known member of the ContextualizedEmbeddingsRequestEncodingFormat enum.
type ContextualizedEmbeddingsRequestModel ¶
type ContextualizedEmbeddingsRequestModel string
ContextualizedEmbeddingsRequestModel The contextualized embedding model to use
const ( ContextualizedEmbeddingsRequestModelPplxEmbedContextV106b ContextualizedEmbeddingsRequestModel = "pplx-embed-context-v1-0.6b" ContextualizedEmbeddingsRequestModelPplxEmbedContextV14b ContextualizedEmbeddingsRequestModel = "pplx-embed-context-v1-4b" )
Defines values for ContextualizedEmbeddingsRequestModel.
func (ContextualizedEmbeddingsRequestModel) Valid ¶
func (e ContextualizedEmbeddingsRequestModel) Valid() bool
Valid indicates whether the value is a known member of the ContextualizedEmbeddingsRequestModel enum.
type ContextualizedEmbeddingsResponse ¶
type ContextualizedEmbeddingsResponse struct {
// Data List of contextualized embedding objects
Data *[]ContextualizedEmbeddingObject `json:"data,omitempty"`
// Model The model used to generate embeddings
Model *string `json:"model,omitempty"`
// Object The object type
Object *string `json:"object,omitempty"`
// Usage Token usage for the embeddings request
Usage *EmbeddingsUsage `json:"usage,omitempty"`
}
ContextualizedEmbeddingsResponse Response body for contextualized embeddings request
type ContextualizedEmbeddingsV1ContextualizedembeddingsPostJSONRequestBody ¶
type ContextualizedEmbeddingsV1ContextualizedembeddingsPostJSONRequestBody = ContextualizedEmbeddingsRequest
ContextualizedEmbeddingsV1ContextualizedembeddingsPostJSONRequestBody defines body for ContextualizedEmbeddingsV1ContextualizedembeddingsPost for application/json ContentType.
type ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse ¶
type ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ContextualizedEmbeddingsResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse ¶
func ParseContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse(rsp *http.Response) (*ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse, error)
ParseContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse parses an HTTP response from a ContextualizedEmbeddingsV1ContextualizedembeddingsPostWithResponse call
func (ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) ContentType ¶
func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) GetBody ¶
func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) GetJSON200 ¶
func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) GetJSON200() *ContextualizedEmbeddingsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) GetJSON422 ¶
func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) Status ¶
func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) Status() string
Status returns HTTPResponse.Status
func (ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) StatusCode ¶
func (r ContextualizedEmbeddingsV1ContextualizedembeddingsPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Cost ¶
type Cost struct {
// CitationTokensCost Cost for citation tokens in USD
CitationTokensCost *float64 `json:"citation_tokens_cost,omitempty"`
// InputTokensCost Cost for input tokens in USD
InputTokensCost float64 `json:"input_tokens_cost"`
// OutputTokensCost Cost for output tokens in USD
OutputTokensCost float64 `json:"output_tokens_cost"`
// ReasoningTokensCost Cost for reasoning tokens in USD
ReasoningTokensCost *float64 `json:"reasoning_tokens_cost,omitempty"`
// RequestCost Cost for web search requests in USD (includes pro search cost if applicable)
RequestCost *float64 `json:"request_cost,omitempty"`
// SearchQueriesCost Cost for search queries in USD
SearchQueriesCost *float64 `json:"search_queries_cost,omitempty"`
// TotalCost Total cost for the request in USD
TotalCost float64 `json:"total_cost"`
}
Cost Cost breakdown for a chat completion request
type CreateAgentJSONRequestBody ¶
type CreateAgentJSONRequestBody = ResponsesRequest
CreateAgentJSONRequestBody defines body for CreateAgent for application/json ContentType.
type CreateAgentResponse ¶
type CreateAgentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ResponsesResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
// Error Error information returned when a request fails
Error *ErrorInfo `json:"error,omitempty"`
}
}
func ParseCreateAgentResponse ¶
func ParseCreateAgentResponse(rsp *http.Response) (*CreateAgentResponse, error)
ParseCreateAgentResponse parses an HTTP response from a CreateAgentWithResponse call
func (CreateAgentResponse) ContentType ¶
func (r CreateAgentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAgentResponse) GetBody ¶
func (r CreateAgentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateAgentResponse) GetJSON200 ¶
func (r CreateAgentResponse) GetJSON200() *ResponsesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateAgentResponse) GetJSON400 ¶
func (r CreateAgentResponse) GetJSON400() *struct { // Error Error information returned when a request fails Error *ErrorInfo `json:"error,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateAgentResponse) Status ¶
func (r CreateAgentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAgentResponse) StatusCode ¶
func (r CreateAgentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateAsyncChatCompletionsAsyncChatCompletionsPostJSONRequestBody ¶
type CreateAsyncChatCompletionsAsyncChatCompletionsPostJSONRequestBody = AsyncApiChatCompletionsRequest
CreateAsyncChatCompletionsAsyncChatCompletionsPostJSONRequestBody defines body for CreateAsyncChatCompletionsAsyncChatCompletionsPost for application/json ContentType.
type CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse ¶
type CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AsyncApiChatCompletionsResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseCreateAsyncChatCompletionsAsyncChatCompletionsPostResponse ¶
func ParseCreateAsyncChatCompletionsAsyncChatCompletionsPostResponse(rsp *http.Response) (*CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse, error)
ParseCreateAsyncChatCompletionsAsyncChatCompletionsPostResponse parses an HTTP response from a CreateAsyncChatCompletionsAsyncChatCompletionsPostWithResponse call
func (CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) ContentType ¶
func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) GetBody ¶
func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) GetJSON200 ¶
func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) GetJSON200() *AsyncApiChatCompletionsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) GetJSON422 ¶
func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) Status ¶
func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) StatusCode ¶
func (r CreateAsyncChatCompletionsAsyncChatCompletionsPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateBatchJSONRequestBody ¶ added in v0.2.0
type CreateBatchJSONRequestBody = CreateBatchRequest
CreateBatchJSONRequestBody defines body for CreateBatch for application/json ContentType.
type CreateBatchParams ¶ added in v0.2.0
type CreateBatchParams struct {
// IdempotencyKey Unique key for this create; a repeat returns the original batch
IdempotencyKey *BatchIdempotencyKey `json:"Idempotency-Key,omitempty"`
}
CreateBatchParams defines parameters for CreateBatch.
type CreateBatchRequest ¶ added in v0.2.0
type CreateBatchRequest struct {
// CompletionWindow Target completion time; `24h` is the only value and the default
CompletionWindow *CreateBatchRequestCompletionWindow `json:"completion_window,omitempty"`
// Endpoint Endpoint every line in the input file targets
Endpoint CreateBatchRequestEndpoint `json:"endpoint"`
// InputFileId Id of a file uploaded with `purpose=batch`
InputFileId string `json:"input_file_id"`
// Metadata Up to 16 key value pairs; keys up to 64 characters, values up to 512
Metadata *map[string]string `json:"metadata,omitempty"`
}
CreateBatchRequest defines model for CreateBatchRequest.
type CreateBatchRequestCompletionWindow ¶ added in v0.2.0
type CreateBatchRequestCompletionWindow string
CreateBatchRequestCompletionWindow Target completion time; `24h` is the only value and the default
const (
CreateBatchRequestCompletionWindowN24h CreateBatchRequestCompletionWindow = "24h"
)
Defines values for CreateBatchRequestCompletionWindow.
func (CreateBatchRequestCompletionWindow) Valid ¶ added in v0.2.0
func (e CreateBatchRequestCompletionWindow) Valid() bool
Valid indicates whether the value is a known member of the CreateBatchRequestCompletionWindow enum.
type CreateBatchRequestEndpoint ¶ added in v0.2.0
type CreateBatchRequestEndpoint string
CreateBatchRequestEndpoint Endpoint every line in the input file targets
const (
CreateBatchRequestEndpointV1responses CreateBatchRequestEndpoint = "/v1/responses"
)
Defines values for CreateBatchRequestEndpoint.
func (CreateBatchRequestEndpoint) Valid ¶ added in v0.2.0
func (e CreateBatchRequestEndpoint) Valid() bool
Valid indicates whether the value is a known member of the CreateBatchRequestEndpoint enum.
type CreateBatchResponse ¶ added in v0.2.0
type CreateBatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Batch
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON402 the response for an HTTP 402 `application/json` response
JSON402 *ApiError
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ApiError
}
func ParseCreateBatchResponse ¶ added in v0.2.0
func ParseCreateBatchResponse(rsp *http.Response) (*CreateBatchResponse, error)
ParseCreateBatchResponse parses an HTTP response from a CreateBatchWithResponse call
func (CreateBatchResponse) ContentType ¶ added in v0.2.0
func (r CreateBatchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateBatchResponse) GetBody ¶ added in v0.2.0
func (r CreateBatchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateBatchResponse) GetJSON200 ¶ added in v0.2.0
func (r CreateBatchResponse) GetJSON200() *Batch
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateBatchResponse) GetJSON400 ¶ added in v0.2.0
func (r CreateBatchResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateBatchResponse) GetJSON402 ¶ added in v0.2.0
func (r CreateBatchResponse) GetJSON402() *ApiError
GetJSON402 returns the response for an HTTP 402 `application/json` response
func (CreateBatchResponse) GetJSON403 ¶ added in v0.2.0
func (r CreateBatchResponse) GetJSON403() *ApiError
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateBatchResponse) GetJSON429 ¶ added in v0.2.0
func (r CreateBatchResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (CreateBatchResponse) GetJSON503 ¶ added in v0.2.0
func (r CreateBatchResponse) GetJSON503() *ApiError
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (CreateBatchResponse) Status ¶ added in v0.2.0
func (r CreateBatchResponse) Status() string
Status returns HTTPResponse.Status
func (CreateBatchResponse) StatusCode ¶ added in v0.2.0
func (r CreateBatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateFileMultipartBody ¶ added in v0.2.0
type CreateFileMultipartBody struct {
// File The JSONL file
File openapi_types.File `json:"file"`
// Purpose Only `batch` is accepted
Purpose CreateFileMultipartBodyPurpose `json:"purpose"`
}
CreateFileMultipartBody defines parameters for CreateFile.
type CreateFileMultipartBodyPurpose ¶ added in v0.2.0
type CreateFileMultipartBodyPurpose string
CreateFileMultipartBodyPurpose defines parameters for CreateFile.
const (
CreateFileMultipartBodyPurposeBatch CreateFileMultipartBodyPurpose = "batch"
)
Defines values for CreateFileMultipartBodyPurpose.
func (CreateFileMultipartBodyPurpose) Valid ¶ added in v0.2.0
func (e CreateFileMultipartBodyPurpose) Valid() bool
Valid indicates whether the value is a known member of the CreateFileMultipartBodyPurpose enum.
type CreateFileMultipartRequestBody ¶ added in v0.2.0
type CreateFileMultipartRequestBody CreateFileMultipartBody
CreateFileMultipartRequestBody defines body for CreateFile for multipart/form-data ContentType.
type CreateFileResponse ¶ added in v0.2.0
type CreateFileResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BatchFile
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ApiError
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
}
func ParseCreateFileResponse ¶ added in v0.2.0
func ParseCreateFileResponse(rsp *http.Response) (*CreateFileResponse, error)
ParseCreateFileResponse parses an HTTP response from a CreateFileWithResponse call
func (CreateFileResponse) ContentType ¶ added in v0.2.0
func (r CreateFileResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateFileResponse) GetBody ¶ added in v0.2.0
func (r CreateFileResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateFileResponse) GetJSON200 ¶ added in v0.2.0
func (r CreateFileResponse) GetJSON200() *BatchFile
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateFileResponse) GetJSON400 ¶ added in v0.2.0
func (r CreateFileResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateFileResponse) GetJSON403 ¶ added in v0.2.0
func (r CreateFileResponse) GetJSON403() *ApiError
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateFileResponse) GetJSON413 ¶ added in v0.2.0
func (r CreateFileResponse) GetJSON413() *ApiError
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (CreateFileResponse) GetJSON429 ¶ added in v0.2.0
func (r CreateFileResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (CreateFileResponse) Status ¶ added in v0.2.0
func (r CreateFileResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFileResponse) StatusCode ¶ added in v0.2.0
func (r CreateFileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateMonitorJSONRequestBody ¶ added in v0.5.0
type CreateMonitorJSONRequestBody = CreateMonitorRequest
CreateMonitorJSONRequestBody defines body for CreateMonitor for application/json ContentType.
type CreateMonitorParams ¶ added in v0.5.0
type CreateMonitorParams struct {
// IdempotencyKey Unique key for this create. A repeat with the same key and the same body returns the monitor that the first request created, in its current state and without the secret; the same key with a different body is a 400.
IdempotencyKey *MonitorIdempotencyKey `json:"Idempotency-Key,omitempty"`
}
CreateMonitorParams defines parameters for CreateMonitor.
type CreateMonitorRequest ¶ added in v0.5.0
type CreateMonitorRequest struct {
// Goal Describe the changes you want the monitor to report. The goal is separate from the Search query or Agent task.
Goal *string `json:"goal,omitempty"`
// Metadata Up to 16 key value pairs; keys 1 to 64 characters, values up to 512 characters (Unicode code points, valid UTF-8). Echoed on every webhook.
Metadata *MonitorMetadata `json:"metadata,omitempty"`
Name string `json:"name"`
Schedule MonitorScheduleRequest `json:"schedule"`
// Targets Use one of these target configurations:
//
// - One Search target.
// - One Agent target.
// - One to 10 Page targets with distinct URLs.
//
// Do not mix target types.
Targets MonitorTargets `json:"targets"`
Webhook *MonitorWebhookRequest `json:"webhook,omitempty"`
}
CreateMonitorRequest Use a single target type for the monitor. An Agent monitor takes exactly one Agent target.
type CreateMonitorResponse ¶ added in v0.5.0
type CreateMonitorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Monitor
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *MonitorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON402 the response for an HTTP 402 `application/json` response
JSON402 *MonitorPaymentRequired
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *MonitorApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateMonitorResponse429Headers
}
func ParseCreateMonitorResponse ¶ added in v0.5.0
func ParseCreateMonitorResponse(rsp *http.Response) (*CreateMonitorResponse, error)
ParseCreateMonitorResponse parses an HTTP response from a CreateMonitorWithResponse call
func (CreateMonitorResponse) ContentType ¶ added in v0.5.0
func (r CreateMonitorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateMonitorResponse) GetBody ¶ added in v0.5.0
func (r CreateMonitorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateMonitorResponse) GetJSON200 ¶ added in v0.5.0
func (r CreateMonitorResponse) GetJSON200() *Monitor
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateMonitorResponse) GetJSON400 ¶ added in v0.5.0
func (r CreateMonitorResponse) GetJSON400() *MonitorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateMonitorResponse) GetJSON401 ¶ added in v0.5.0
func (r CreateMonitorResponse) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateMonitorResponse) GetJSON402 ¶ added in v0.5.0
func (r CreateMonitorResponse) GetJSON402() *MonitorPaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
func (CreateMonitorResponse) GetJSON403 ¶ added in v0.5.0
func (r CreateMonitorResponse) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateMonitorResponse) GetJSON409 ¶ added in v0.5.0
func (r CreateMonitorResponse) GetJSON409() *MonitorApiError
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateMonitorResponse) GetJSON429 ¶ added in v0.5.0
func (r CreateMonitorResponse) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (CreateMonitorResponse) GetJSON502 ¶ added in v0.5.0
func (r CreateMonitorResponse) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (CreateMonitorResponse) GetJSON503 ¶ added in v0.5.0
func (r CreateMonitorResponse) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (CreateMonitorResponse) GetJSON504 ¶ added in v0.5.0
func (r CreateMonitorResponse) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (CreateMonitorResponse) Status ¶ added in v0.5.0
func (r CreateMonitorResponse) Status() string
Status returns HTTPResponse.Status
func (CreateMonitorResponse) StatusCode ¶ added in v0.5.0
func (r CreateMonitorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateMonitorResponse429Headers ¶ added in v0.5.0
type CreateMonitorResponse429Headers struct {
RetryAfter *int
}
CreateMonitorResponse429Headers the declared response headers of an HTTP 429 response for CreateMonitor
type CreateSkillMultipartBody ¶
type CreateSkillMultipartBody struct {
// File The skill bundle, a zip archive containing `SKILL.md`
File openapi_types.File `json:"file"`
}
CreateSkillMultipartBody defines parameters for CreateSkill.
type CreateSkillMultipartRequestBody ¶
type CreateSkillMultipartRequestBody CreateSkillMultipartBody
CreateSkillMultipartRequestBody defines body for CreateSkill for multipart/form-data ContentType.
type CreateSkillResponse ¶
type CreateSkillResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *ManagedSkill
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ApiError
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *ApiError
}
func ParseCreateSkillResponse ¶
func ParseCreateSkillResponse(rsp *http.Response) (*CreateSkillResponse, error)
ParseCreateSkillResponse parses an HTTP response from a CreateSkillWithResponse call
func (CreateSkillResponse) ContentType ¶
func (r CreateSkillResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateSkillResponse) GetBody ¶
func (r CreateSkillResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateSkillResponse) GetJSON201 ¶
func (r CreateSkillResponse) GetJSON201() *ManagedSkill
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateSkillResponse) GetJSON400 ¶
func (r CreateSkillResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateSkillResponse) GetJSON409 ¶
func (r CreateSkillResponse) GetJSON409() *ApiError
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateSkillResponse) GetJSON413 ¶
func (r CreateSkillResponse) GetJSON413() *ApiError
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (CreateSkillResponse) GetJSON429 ¶
func (r CreateSkillResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (CreateSkillResponse) GetJSON502 ¶
func (r CreateSkillResponse) GetJSON502() *ApiError
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (CreateSkillResponse) Status ¶
func (r CreateSkillResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSkillResponse) StatusCode ¶
func (r CreateSkillResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Currency ¶
type Currency string
Currency Currency code for cost values
const (
CurrencyUSD Currency = "USD"
)
Defines values for Currency.
type CustomSkill ¶
type CustomSkill struct {
// Id Identifier of an organization-owned skill stored in Perplexity, in the form skill_<id>.
Id string `json:"id"`
Type CustomSkillType `json:"type"`
// Version Revision to load, or "latest". Omitted means "latest".
Version *string `json:"version,omitempty"`
}
CustomSkill defines model for CustomSkill.
type CustomSkillType ¶
type CustomSkillType string
CustomSkillType defines model for CustomSkill.Type.
const (
CustomSkillTypeCustom CustomSkillType = "custom"
)
Defines values for CustomSkillType.
func (CustomSkillType) Valid ¶
func (e CustomSkillType) Valid() bool
Valid indicates whether the value is a known member of the CustomSkillType enum.
type DateFilters ¶
type DateFilters struct {
// LastUpdatedAfterFilter Return results updated after this date (MM/DD/YYYY)
LastUpdatedAfterFilter *Date `json:"last_updated_after_filter,omitempty"`
// LastUpdatedBeforeFilter Return results updated before this date (MM/DD/YYYY)
LastUpdatedBeforeFilter *Date `json:"last_updated_before_filter,omitempty"`
// SearchAfterDateFilter Return results published after this date (MM/DD/YYYY)
SearchAfterDateFilter *Date `json:"search_after_date_filter,omitempty"`
// SearchBeforeDateFilter Return results published before this date (MM/DD/YYYY)
SearchBeforeDateFilter *Date `json:"search_before_date_filter,omitempty"`
// SearchRecencyFilter Filter by publication recency (hour/day/week/month/year)
SearchRecencyFilter *SearchRecencyFilter `json:"search_recency_filter,omitempty"`
}
DateFilters defines model for DateFilters.
type DecisionFetchedResult ¶ added in v0.3.4
type DecisionFetchedResult struct {
// Snippet The page text that replaced the URL in state, up to 40,000 characters.
Snippet string `json:"snippet"`
// Title The fetched page title, up to 300 characters.
Title string `json:"title"`
// Url The fetched page URL, normalized.
Url string `json:"url"`
}
DecisionFetchedResult One fetched page used to replace URL-only state text before web search.
type DecisionSearchResult ¶ added in v0.3.4
type DecisionSearchResult struct {
// Date Publication date, `YYYY-MM-DD`. Absent when unknown.
Date *string `json:"date,omitempty"`
// LastUpdated Last update date, `YYYY-MM-DD`. Absent when unknown.
LastUpdated *string `json:"last_updated,omitempty"`
// Snippet Page text, up to 2,000 characters per snippet. When several searches return the same URL, their snippets are joined by a `---` line.
Snippet string `json:"snippet"`
// Title The page title, up to 300 characters.
Title string `json:"title"`
// Url The page URL, normalized. Each URL appears once in `search_results`.
Url string `json:"url"`
}
DecisionSearchResult One web result added to `state` as evidence. Same fields as a Search API (`/search`) result.
type DecisionToolCallDetails ¶ added in v0.6.1
type DecisionToolCallDetails struct {
// Invocation Billable operations for this tool, after deduplication.
Invocation int64 `json:"invocation"`
}
DecisionToolCallDetails Billable operations for one grounding tool.
type DecisionsRequest ¶
type DecisionsRequest struct {
// MaxStaleness Accepted but currently ignored: it does not check the age of a fetched page or trigger a crawl. A non-negative integer is accepted, so existing requests that send it keep working.
MaxStaleness *int64 `json:"max_staleness,omitempty"`
// Mode Set to `web_grounding` to search the web before the model answers. For a URL-only state, the API first fetches the page and replaces the URL with its text. It then runs one Fast Search per question, up to 100 questions, and adds the top results to `state`. The response lists search evidence in `search_results` and fetched page text in `fetched_results`. If no search returns a result, the model answers from `state`, including any fetched text. Each search costs $0.001 and each successful URL fetch costs $0.0005; fetched text and search evidence count as input tokens. Any other mode value, including an empty string or `null`, returns `400`. See [Web grounding](/docs/decisions/decisions#web-grounding).
Mode *DecisionsRequestMode `json:"mode,omitempty"`
// Model The decision model: `pplx-decider-v1.3` (27B, $0.02 per million input tokens), `pplx-decider-flash-v1.3` (4B, $0.01 per million input tokens), `pplx-decider-v1.2` (27B, $0.02 per million input tokens) or `pplx-decider-flash-v1.2` (4B, $0.01 per million input tokens). The aliases `pplx-decider-latest` and `perplexity/pplx-decider-latest` select `pplx-decider-v1.3`, and `pplx-decider-flash-latest` and `perplexity/pplx-decider-flash-latest` select `pplx-decider-flash-v1.3`; an alias can move to a newer model over time. `pplx-decider-v1-27b` (27B, $0.02 per million input tokens) remains accepted, and `pplx-decider-v1.1-27b` is an alias of it. Only the v1.3 models, by name or through the `-latest` aliases, serve `locate` questions. A missing or unknown model returns `400`.
Model string `json:"model"`
// Questions Questions keyed by a non-empty name you choose. The response uses the same names. At least one question. With `mode` `web_grounding`, at most 100; more returns `400` with `param` `questions`.
Questions map[string]Question `json:"questions"`
// State The content every question in the request refers to: a string, an object, or an array. Images can appear anywhere in `state` as OpenAI-style `image_url` parts with base64 PNG, JPEG, or WebP data URLs and are read in place. Up to 8 images per question. With `mode: "web_grounding"`, a single page URL is fetched and replaced with its text before web search.
State DecisionsRequest_State `json:"state"`
}
DecisionsRequest The content to evaluate and the named questions to ask about it. `mode` is optional; `max_staleness` is accepted and ignored. An unknown top-level field returns `400`. The `state` plus any one question must stay under 256K input tokens; questions that do not fit together are answered in groups, and each group counts the `state` again. The body must stay under 32 MiB.
type DecisionsRequestMode ¶ added in v0.3.4
type DecisionsRequestMode string
DecisionsRequestMode Set to `web_grounding` to search the web before the model answers. For a URL-only state, the API first fetches the page and replaces the URL with its text. It then runs one Fast Search per question, up to 100 questions, and adds the top results to `state`. The response lists search evidence in `search_results` and fetched page text in `fetched_results`. If no search returns a result, the model answers from `state`, including any fetched text. Each search costs $0.001 and each successful URL fetch costs $0.0005; fetched text and search evidence count as input tokens. Any other mode value, including an empty string or `null`, returns `400`. See [Web grounding](/docs/decisions/decisions#web-grounding).
const (
DecisionsRequestModeWebGrounding DecisionsRequestMode = "web_grounding"
)
Defines values for DecisionsRequestMode.
func (DecisionsRequestMode) Valid ¶ added in v0.3.4
func (e DecisionsRequestMode) Valid() bool
Valid indicates whether the value is a known member of the DecisionsRequestMode enum.
type DecisionsRequestState0 ¶
type DecisionsRequestState0 = string
DecisionsRequestState0 defines model for DecisionsRequest.State.0.
type DecisionsRequestState1 ¶
type DecisionsRequestState1 map[string]interface{}
DecisionsRequestState1 defines model for DecisionsRequest.State.1.
type DecisionsRequestState2 ¶
type DecisionsRequestState2 = []interface{}
DecisionsRequestState2 defines model for DecisionsRequest.State.2.
type DecisionsRequest_State ¶
type DecisionsRequest_State struct {
// contains filtered or unexported fields
}
DecisionsRequest_State The content every question in the request refers to: a string, an object, or an array. Images can appear anywhere in `state` as OpenAI-style `image_url` parts with base64 PNG, JPEG, or WebP data URLs and are read in place. Up to 8 images per question. With `mode: "web_grounding"`, a single page URL is fetched and replaced with its text before web search.
func (DecisionsRequest_State) AsDecisionsRequestState0 ¶
func (t DecisionsRequest_State) AsDecisionsRequestState0() (DecisionsRequestState0, error)
AsDecisionsRequestState0 returns the union data inside the DecisionsRequest_State as a DecisionsRequestState0
func (DecisionsRequest_State) AsDecisionsRequestState1 ¶
func (t DecisionsRequest_State) AsDecisionsRequestState1() (DecisionsRequestState1, error)
AsDecisionsRequestState1 returns the union data inside the DecisionsRequest_State as a DecisionsRequestState1
func (DecisionsRequest_State) AsDecisionsRequestState2 ¶
func (t DecisionsRequest_State) AsDecisionsRequestState2() (DecisionsRequestState2, error)
AsDecisionsRequestState2 returns the union data inside the DecisionsRequest_State as a DecisionsRequestState2
func (*DecisionsRequest_State) FromDecisionsRequestState0 ¶
func (t *DecisionsRequest_State) FromDecisionsRequestState0(v DecisionsRequestState0) error
FromDecisionsRequestState0 overwrites any union data inside the DecisionsRequest_State as the provided DecisionsRequestState0
func (*DecisionsRequest_State) FromDecisionsRequestState1 ¶
func (t *DecisionsRequest_State) FromDecisionsRequestState1(v DecisionsRequestState1) error
FromDecisionsRequestState1 overwrites any union data inside the DecisionsRequest_State as the provided DecisionsRequestState1
func (*DecisionsRequest_State) FromDecisionsRequestState2 ¶
func (t *DecisionsRequest_State) FromDecisionsRequestState2(v DecisionsRequestState2) error
FromDecisionsRequestState2 overwrites any union data inside the DecisionsRequest_State as the provided DecisionsRequestState2
func (DecisionsRequest_State) MarshalJSON ¶
func (t DecisionsRequest_State) MarshalJSON() ([]byte, error)
func (*DecisionsRequest_State) MergeDecisionsRequestState0 ¶
func (t *DecisionsRequest_State) MergeDecisionsRequestState0(v DecisionsRequestState0) error
MergeDecisionsRequestState0 performs a merge with any union data inside the DecisionsRequest_State, using the provided DecisionsRequestState0
func (*DecisionsRequest_State) MergeDecisionsRequestState1 ¶
func (t *DecisionsRequest_State) MergeDecisionsRequestState1(v DecisionsRequestState1) error
MergeDecisionsRequestState1 performs a merge with any union data inside the DecisionsRequest_State, using the provided DecisionsRequestState1
func (*DecisionsRequest_State) MergeDecisionsRequestState2 ¶
func (t *DecisionsRequest_State) MergeDecisionsRequestState2(v DecisionsRequestState2) error
MergeDecisionsRequestState2 performs a merge with any union data inside the DecisionsRequest_State, using the provided DecisionsRequestState2
func (*DecisionsRequest_State) UnmarshalJSON ¶
func (t *DecisionsRequest_State) UnmarshalJSON(b []byte) error
type DecisionsResponse ¶
type DecisionsResponse struct {
// Answers One answer per question, under the question's name.
Answers map[string]Answer `json:"answers"`
// FetchedResults The page text that replaced a URL-only state before web search, returned with `mode: "web_grounding"`. Absent when no usable page text was fetched. `usage.input_tokens` includes the fetched text.
FetchedResults *[]DecisionFetchedResult `json:"fetched_results,omitempty"`
// Model The model name you sent, echoed back.
Model string `json:"model"`
// SearchResults Only with `mode` `web_grounding`: the web results added to `state` as evidence, one per URL, ordered by rank: the top result of each query, then the second of each, and so on. `[]` when no search evidence was added. Absent without `mode`. `usage.input_tokens` includes them.
SearchResults *[]DecisionSearchResult `json:"search_results,omitempty"`
// Usage Token counts for this request.
Usage Usage `json:"usage"`
}
DecisionsResponse Answers keyed by question name, plus the model that answered and token usage.
type DecisionsV1DecisionsPostJSONRequestBody ¶
type DecisionsV1DecisionsPostJSONRequestBody = DecisionsRequest
DecisionsV1DecisionsPostJSONRequestBody defines body for DecisionsV1DecisionsPost for application/json ContentType.
type DecisionsV1DecisionsPostResponse ¶
type DecisionsV1DecisionsPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DecisionsResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *PayloadTooLarge
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *TooManyRequests
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *DecisionsV1DecisionsPostResponse200Headers
// Headers400 the parsed response headers for an HTTP 400 response
Headers400 *DecisionsV1DecisionsPostResponse400Headers
// Headers405 the parsed response headers for an HTTP 405 response
Headers405 *DecisionsV1DecisionsPostResponse405Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *DecisionsV1DecisionsPostResponse413Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DecisionsV1DecisionsPostResponse429Headers
}
func ParseDecisionsV1DecisionsPostResponse ¶
func ParseDecisionsV1DecisionsPostResponse(rsp *http.Response) (*DecisionsV1DecisionsPostResponse, error)
ParseDecisionsV1DecisionsPostResponse parses an HTTP response from a DecisionsV1DecisionsPostWithResponse call
func (DecisionsV1DecisionsPostResponse) ContentType ¶
func (r DecisionsV1DecisionsPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DecisionsV1DecisionsPostResponse) GetBody ¶
func (r DecisionsV1DecisionsPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DecisionsV1DecisionsPostResponse) GetJSON200 ¶
func (r DecisionsV1DecisionsPostResponse) GetJSON200() *DecisionsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DecisionsV1DecisionsPostResponse) GetJSON400 ¶
func (r DecisionsV1DecisionsPostResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DecisionsV1DecisionsPostResponse) GetJSON401 ¶
func (r DecisionsV1DecisionsPostResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DecisionsV1DecisionsPostResponse) GetJSON413 ¶
func (r DecisionsV1DecisionsPostResponse) GetJSON413() *PayloadTooLarge
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (DecisionsV1DecisionsPostResponse) GetJSON429 ¶
func (r DecisionsV1DecisionsPostResponse) GetJSON429() *TooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (DecisionsV1DecisionsPostResponse) Status ¶
func (r DecisionsV1DecisionsPostResponse) Status() string
Status returns HTTPResponse.Status
func (DecisionsV1DecisionsPostResponse) StatusCode ¶
func (r DecisionsV1DecisionsPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DecisionsV1DecisionsPostResponse200Headers ¶
type DecisionsV1DecisionsPostResponse200Headers struct {
XRatelimitLimit *int
XRatelimitRemaining *int
XRatelimitReset *int
XRatelimitUsed *int
XRequestId *openapi_types.UUID
}
DecisionsV1DecisionsPostResponse200Headers the declared response headers of an HTTP 200 response for DecisionsV1DecisionsPost
type DecisionsV1DecisionsPostResponse400Headers ¶
type DecisionsV1DecisionsPostResponse400Headers struct {
XRequestId *openapi_types.UUID
}
DecisionsV1DecisionsPostResponse400Headers the declared response headers of an HTTP 400 response for DecisionsV1DecisionsPost
type DecisionsV1DecisionsPostResponse405Headers ¶
type DecisionsV1DecisionsPostResponse405Headers struct {
Allow *string
XRequestId *openapi_types.UUID
}
DecisionsV1DecisionsPostResponse405Headers the declared response headers of an HTTP 405 response for DecisionsV1DecisionsPost
type DecisionsV1DecisionsPostResponse413Headers ¶
type DecisionsV1DecisionsPostResponse413Headers struct {
XRequestId *openapi_types.UUID
}
DecisionsV1DecisionsPostResponse413Headers the declared response headers of an HTTP 413 response for DecisionsV1DecisionsPost
type DecisionsV1DecisionsPostResponse429Headers ¶
type DecisionsV1DecisionsPostResponse429Headers struct {
RetryAfter *int
XRequestId *openapi_types.UUID
}
DecisionsV1DecisionsPostResponse429Headers the declared response headers of an HTTP 429 response for DecisionsV1DecisionsPost
type DeleteFileResponse ¶ added in v0.2.0
type DeleteFileResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BatchFileDeleted
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ApiError
}
func ParseDeleteFileResponse ¶ added in v0.2.0
func ParseDeleteFileResponse(rsp *http.Response) (*DeleteFileResponse, error)
ParseDeleteFileResponse parses an HTTP response from a DeleteFileWithResponse call
func (DeleteFileResponse) ContentType ¶ added in v0.2.0
func (r DeleteFileResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteFileResponse) GetBody ¶ added in v0.2.0
func (r DeleteFileResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteFileResponse) GetJSON200 ¶ added in v0.2.0
func (r DeleteFileResponse) GetJSON200() *BatchFileDeleted
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteFileResponse) GetJSON404 ¶ added in v0.2.0
func (r DeleteFileResponse) GetJSON404() *ApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteFileResponse) Status ¶ added in v0.2.0
func (r DeleteFileResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteFileResponse) StatusCode ¶ added in v0.2.0
func (r DeleteFileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMonitorResponse ¶ added in v0.5.0
type DeleteMonitorResponse struct {
Deleted bool `json:"deleted"`
Id string `json:"id"`
Object DeleteMonitorResponseObject `json:"object"`
}
DeleteMonitorResponse defines model for DeleteMonitorResponse.
type DeleteMonitorResponse2 ¶ added in v0.5.0
type DeleteMonitorResponse2 struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeleteMonitorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *MonitorNotFound
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteMonitorResponse2429Headers
}
func ParseDeleteMonitorResponse2 ¶ added in v0.5.0
func ParseDeleteMonitorResponse2(rsp *http.Response) (*DeleteMonitorResponse2, error)
ParseDeleteMonitorResponse2 parses an HTTP response from a DeleteMonitorWithResponse call
func (DeleteMonitorResponse2) ContentType ¶ added in v0.5.0
func (r DeleteMonitorResponse2) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteMonitorResponse2) GetBody ¶ added in v0.5.0
func (r DeleteMonitorResponse2) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteMonitorResponse2) GetJSON200 ¶ added in v0.5.0
func (r DeleteMonitorResponse2) GetJSON200() *DeleteMonitorResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteMonitorResponse2) GetJSON401 ¶ added in v0.5.0
func (r DeleteMonitorResponse2) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteMonitorResponse2) GetJSON403 ¶ added in v0.5.0
func (r DeleteMonitorResponse2) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteMonitorResponse2) GetJSON404 ¶ added in v0.5.0
func (r DeleteMonitorResponse2) GetJSON404() *MonitorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteMonitorResponse2) GetJSON429 ¶ added in v0.5.0
func (r DeleteMonitorResponse2) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (DeleteMonitorResponse2) GetJSON502 ¶ added in v0.5.0
func (r DeleteMonitorResponse2) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (DeleteMonitorResponse2) GetJSON503 ¶ added in v0.5.0
func (r DeleteMonitorResponse2) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (DeleteMonitorResponse2) GetJSON504 ¶ added in v0.5.0
func (r DeleteMonitorResponse2) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (DeleteMonitorResponse2) Status ¶ added in v0.5.0
func (r DeleteMonitorResponse2) Status() string
Status returns HTTPResponse.Status
func (DeleteMonitorResponse2) StatusCode ¶ added in v0.5.0
func (r DeleteMonitorResponse2) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMonitorResponse2429Headers ¶ added in v0.5.0
type DeleteMonitorResponse2429Headers struct {
RetryAfter *int
}
DeleteMonitorResponse2429Headers the declared response headers of an HTTP 429 response for DeleteMonitor
type DeleteMonitorResponseObject ¶ added in v0.5.0
type DeleteMonitorResponseObject string
DeleteMonitorResponseObject defines model for DeleteMonitorResponse.Object.
const (
DeleteMonitorResponseObjectMonitor DeleteMonitorResponseObject = "monitor"
)
Defines values for DeleteMonitorResponseObject.
func (DeleteMonitorResponseObject) Valid ¶ added in v0.5.0
func (e DeleteMonitorResponseObject) Valid() bool
Valid indicates whether the value is a known member of the DeleteMonitorResponseObject enum.
type DeleteSkillParams ¶
type DeleteSkillParams struct {
// ExpectedRevision Opaque revision token the skill must currently be at. The write applies
// only if it matches, so it cannot race a concurrent update.
ExpectedRevision ExpectedRevisionRequired `form:"expected_revision" json:"expected_revision"`
}
DeleteSkillParams defines parameters for DeleteSkill.
type DeleteSkillResponse ¶
type DeleteSkillResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ApiError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *ApiError
}
func ParseDeleteSkillResponse ¶
func ParseDeleteSkillResponse(rsp *http.Response) (*DeleteSkillResponse, error)
ParseDeleteSkillResponse parses an HTTP response from a DeleteSkillWithResponse call
func (DeleteSkillResponse) ContentType ¶
func (r DeleteSkillResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteSkillResponse) GetBody ¶
func (r DeleteSkillResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteSkillResponse) GetJSON400 ¶
func (r DeleteSkillResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteSkillResponse) GetJSON404 ¶
func (r DeleteSkillResponse) GetJSON404() *ApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteSkillResponse) GetJSON409 ¶
func (r DeleteSkillResponse) GetJSON409() *ApiError
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (DeleteSkillResponse) GetJSON429 ¶
func (r DeleteSkillResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (DeleteSkillResponse) GetJSON502 ¶
func (r DeleteSkillResponse) GetJSON502() *ApiError
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (DeleteSkillResponse) Status ¶
func (r DeleteSkillResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSkillResponse) StatusCode ¶
func (r DeleteSkillResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DownloadAgentFileResponse ¶
type DownloadAgentFileResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
// Error Error information returned when a request fails
Error *ErrorInfo `json:"error,omitempty"`
}
}
func ParseDownloadAgentFileResponse ¶
func ParseDownloadAgentFileResponse(rsp *http.Response) (*DownloadAgentFileResponse, error)
ParseDownloadAgentFileResponse parses an HTTP response from a DownloadAgentFileWithResponse call
func (DownloadAgentFileResponse) ContentType ¶
func (r DownloadAgentFileResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DownloadAgentFileResponse) GetBody ¶
func (r DownloadAgentFileResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DownloadAgentFileResponse) GetJSON404 ¶
func (r DownloadAgentFileResponse) GetJSON404() *struct { // Error Error information returned when a request fails Error *ErrorInfo `json:"error,omitempty"` }
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DownloadAgentFileResponse) Status ¶
func (r DownloadAgentFileResponse) Status() string
Status returns HTTPResponse.Status
func (DownloadAgentFileResponse) StatusCode ¶
func (r DownloadAgentFileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DownloadSkillParams ¶
type DownloadSkillParams struct {
// Revision Opaque revision token; when omitted, the active revision is used
Revision *Revision `form:"revision,omitempty" json:"revision,omitempty"`
}
DownloadSkillParams defines parameters for DownloadSkill.
type DownloadSkillResponse ¶
type DownloadSkillResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SkillDownload
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *ApiError
}
func ParseDownloadSkillResponse ¶
func ParseDownloadSkillResponse(rsp *http.Response) (*DownloadSkillResponse, error)
ParseDownloadSkillResponse parses an HTTP response from a DownloadSkillWithResponse call
func (DownloadSkillResponse) ContentType ¶
func (r DownloadSkillResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DownloadSkillResponse) GetBody ¶
func (r DownloadSkillResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DownloadSkillResponse) GetJSON200 ¶
func (r DownloadSkillResponse) GetJSON200() *SkillDownload
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DownloadSkillResponse) GetJSON400 ¶
func (r DownloadSkillResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DownloadSkillResponse) GetJSON404 ¶
func (r DownloadSkillResponse) GetJSON404() *ApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DownloadSkillResponse) GetJSON429 ¶
func (r DownloadSkillResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (DownloadSkillResponse) GetJSON502 ¶
func (r DownloadSkillResponse) GetJSON502() *ApiError
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (DownloadSkillResponse) Status ¶
func (r DownloadSkillResponse) Status() string
Status returns HTTPResponse.Status
func (DownloadSkillResponse) StatusCode ¶
func (r DownloadSkillResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EmbeddingObject ¶
type EmbeddingObject struct {
// Embedding Base64-encoded embedding vector. For base64_int8: decode to signed int8 array (length = dimensions). For base64_binary: decode to packed bits (length = dimensions / 8 bytes).
Embedding *string `json:"embedding,omitempty"`
// Index The index of the input text this embedding corresponds to
Index *int `json:"index,omitempty"`
// Object The object type
Object *string `json:"object,omitempty"`
}
EmbeddingObject A single embedding result
type EmbeddingsRequest ¶
type EmbeddingsRequest struct {
// Dimensions Output dimensions. v2: 1024 for pplx-embed-v2-context-0.6b (not MRL-trained); 1024 or 2048 for pplx-embed-v2-context-9b (MRL). v1: multiples of 8 from 128 to 1024 for pplx-embed-v1-0.6b or 2560 for pplx-embed-v1-4b. Defaults to the model's full dimensions.
Dimensions *int `json:"dimensions,omitempty"`
// EncodingFormat Output encoding format for embeddings. base64_int8 returns base64-encoded signed int8 values. base64_binary returns base64-encoded packed binary (1 bit per dimension).
EncodingFormat *EmbeddingsRequestEncodingFormat `json:"encoding_format,omitempty"`
// Input Input to embed. pplx-embed-v2 models accept a string, an array of strings, pre-chunked documents (an array of string arrays), or image objects. pplx-embed-v1 models accept only a string or array of strings; a request contains only text or only images. Maximum 512 texts or documents per request. Each text or document must not exceed 32K tokens. All text in a single request must not exceed 120,000 tokens combined. Empty strings are not allowed.
Input EmbeddingsRequest_Input `json:"input"`
// InputType Required for pplx-embed-v2 models. Use query for search queries and document for content you index. Pre-chunked documents and images require document.
InputType *EmbeddingsRequestInputType `json:"input_type,omitempty"`
// Model The embedding model to use. Start with pplx-embed-v2-context-0.6b. v1 models will be phased out during 2027.
Model EmbeddingsRequestModel `json:"model"`
// NumChunks pplx-embed-v2 image inputs only. Splits each image into this many horizontal regions and returns one embedding per region. Small images can return fewer regions.
NumChunks *EmbeddingsRequestNumChunks `json:"num_chunks,omitempty"`
}
EmbeddingsRequest Request body for creating embeddings
type EmbeddingsRequestEncodingFormat ¶
type EmbeddingsRequestEncodingFormat string
EmbeddingsRequestEncodingFormat Output encoding format for embeddings. base64_int8 returns base64-encoded signed int8 values. base64_binary returns base64-encoded packed binary (1 bit per dimension).
const ( EmbeddingsRequestEncodingFormatBase64Binary EmbeddingsRequestEncodingFormat = "base64_binary" EmbeddingsRequestEncodingFormatBase64Int8 EmbeddingsRequestEncodingFormat = "base64_int8" )
Defines values for EmbeddingsRequestEncodingFormat.
func (EmbeddingsRequestEncodingFormat) Valid ¶
func (e EmbeddingsRequestEncodingFormat) Valid() bool
Valid indicates whether the value is a known member of the EmbeddingsRequestEncodingFormat enum.
type EmbeddingsRequestInput0 ¶
type EmbeddingsRequestInput0 = string
EmbeddingsRequestInput0 defines model for EmbeddingsRequest.Input.0.
type EmbeddingsRequestInput1 ¶
type EmbeddingsRequestInput1 = []string
EmbeddingsRequestInput1 defines model for EmbeddingsRequest.Input.1.
type EmbeddingsRequestInput2 ¶ added in v0.6.0
type EmbeddingsRequestInput2 = [][]string
EmbeddingsRequestInput2 Pre-chunked documents for pplx-embed-v2 models with input_type document. Each inner array holds one document's chunks in order. Maximum 16,000 chunks per request.
type EmbeddingsRequestInput3 ¶ added in v0.6.0
type EmbeddingsRequestInput3 = []struct {
// Image Base64 data URI, for example data:image/png;base64,<BASE64_IMAGE>. JPEG, PNG, and WebP are supported; animated images are not.
Image string `json:"image"`
Type EmbeddingsRequestInput3Type `json:"type"`
}
EmbeddingsRequestInput3 Images for pplx-embed-v2 models with input_type document. Maximum 96 images and 20 MB of base64 image data per request.
type EmbeddingsRequestInput3Type ¶ added in v0.6.0
type EmbeddingsRequestInput3Type string
EmbeddingsRequestInput3Type defines model for EmbeddingsRequest.Input.3.Type.
const (
EmbeddingsRequestInput3TypeImage EmbeddingsRequestInput3Type = "image"
)
Defines values for EmbeddingsRequestInput3Type.
func (EmbeddingsRequestInput3Type) Valid ¶ added in v0.6.0
func (e EmbeddingsRequestInput3Type) Valid() bool
Valid indicates whether the value is a known member of the EmbeddingsRequestInput3Type enum.
type EmbeddingsRequestInputType ¶ added in v0.6.0
type EmbeddingsRequestInputType string
EmbeddingsRequestInputType Required for pplx-embed-v2 models. Use query for search queries and document for content you index. Pre-chunked documents and images require document.
const ( EmbeddingsRequestInputTypeDocument EmbeddingsRequestInputType = "document" EmbeddingsRequestInputTypeQuery EmbeddingsRequestInputType = "query" )
Defines values for EmbeddingsRequestInputType.
func (EmbeddingsRequestInputType) Valid ¶ added in v0.6.0
func (e EmbeddingsRequestInputType) Valid() bool
Valid indicates whether the value is a known member of the EmbeddingsRequestInputType enum.
type EmbeddingsRequestModel ¶
type EmbeddingsRequestModel string
EmbeddingsRequestModel The embedding model to use. Start with pplx-embed-v2-context-0.6b. v1 models will be phased out during 2027.
const ( EmbeddingsRequestModelPplxEmbedV106b EmbeddingsRequestModel = "pplx-embed-v1-0.6b" EmbeddingsRequestModelPplxEmbedV14b EmbeddingsRequestModel = "pplx-embed-v1-4b" EmbeddingsRequestModelPplxEmbedV2Context06b EmbeddingsRequestModel = "pplx-embed-v2-context-0.6b" EmbeddingsRequestModelPplxEmbedV2Context9b EmbeddingsRequestModel = "pplx-embed-v2-context-9b" )
Defines values for EmbeddingsRequestModel.
func (EmbeddingsRequestModel) Valid ¶
func (e EmbeddingsRequestModel) Valid() bool
Valid indicates whether the value is a known member of the EmbeddingsRequestModel enum.
type EmbeddingsRequestNumChunks ¶ added in v0.6.0
type EmbeddingsRequestNumChunks int
EmbeddingsRequestNumChunks pplx-embed-v2 image inputs only. Splits each image into this many horizontal regions and returns one embedding per region. Small images can return fewer regions.
const ( EmbeddingsRequestNumChunksN1 EmbeddingsRequestNumChunks = 1 EmbeddingsRequestNumChunksN16 EmbeddingsRequestNumChunks = 16 EmbeddingsRequestNumChunksN2 EmbeddingsRequestNumChunks = 2 EmbeddingsRequestNumChunksN32 EmbeddingsRequestNumChunks = 32 EmbeddingsRequestNumChunksN4 EmbeddingsRequestNumChunks = 4 EmbeddingsRequestNumChunksN8 EmbeddingsRequestNumChunks = 8 )
Defines values for EmbeddingsRequestNumChunks.
func (EmbeddingsRequestNumChunks) Valid ¶ added in v0.6.0
func (e EmbeddingsRequestNumChunks) Valid() bool
Valid indicates whether the value is a known member of the EmbeddingsRequestNumChunks enum.
type EmbeddingsRequest_Input ¶
type EmbeddingsRequest_Input struct {
// contains filtered or unexported fields
}
EmbeddingsRequest_Input Input to embed. pplx-embed-v2 models accept a string, an array of strings, pre-chunked documents (an array of string arrays), or image objects. pplx-embed-v1 models accept only a string or array of strings; a request contains only text or only images. Maximum 512 texts or documents per request. Each text or document must not exceed 32K tokens. All text in a single request must not exceed 120,000 tokens combined. Empty strings are not allowed.
func (EmbeddingsRequest_Input) AsEmbeddingsRequestInput0 ¶
func (t EmbeddingsRequest_Input) AsEmbeddingsRequestInput0() (EmbeddingsRequestInput0, error)
AsEmbeddingsRequestInput0 returns the union data inside the EmbeddingsRequest_Input as a EmbeddingsRequestInput0
func (EmbeddingsRequest_Input) AsEmbeddingsRequestInput1 ¶
func (t EmbeddingsRequest_Input) AsEmbeddingsRequestInput1() (EmbeddingsRequestInput1, error)
AsEmbeddingsRequestInput1 returns the union data inside the EmbeddingsRequest_Input as a EmbeddingsRequestInput1
func (EmbeddingsRequest_Input) AsEmbeddingsRequestInput2 ¶ added in v0.6.0
func (t EmbeddingsRequest_Input) AsEmbeddingsRequestInput2() (EmbeddingsRequestInput2, error)
AsEmbeddingsRequestInput2 returns the union data inside the EmbeddingsRequest_Input as a EmbeddingsRequestInput2
func (EmbeddingsRequest_Input) AsEmbeddingsRequestInput3 ¶ added in v0.6.0
func (t EmbeddingsRequest_Input) AsEmbeddingsRequestInput3() (EmbeddingsRequestInput3, error)
AsEmbeddingsRequestInput3 returns the union data inside the EmbeddingsRequest_Input as a EmbeddingsRequestInput3
func (*EmbeddingsRequest_Input) FromEmbeddingsRequestInput0 ¶
func (t *EmbeddingsRequest_Input) FromEmbeddingsRequestInput0(v EmbeddingsRequestInput0) error
FromEmbeddingsRequestInput0 overwrites any union data inside the EmbeddingsRequest_Input as the provided EmbeddingsRequestInput0
func (*EmbeddingsRequest_Input) FromEmbeddingsRequestInput1 ¶
func (t *EmbeddingsRequest_Input) FromEmbeddingsRequestInput1(v EmbeddingsRequestInput1) error
FromEmbeddingsRequestInput1 overwrites any union data inside the EmbeddingsRequest_Input as the provided EmbeddingsRequestInput1
func (*EmbeddingsRequest_Input) FromEmbeddingsRequestInput2 ¶ added in v0.6.0
func (t *EmbeddingsRequest_Input) FromEmbeddingsRequestInput2(v EmbeddingsRequestInput2) error
FromEmbeddingsRequestInput2 overwrites any union data inside the EmbeddingsRequest_Input as the provided EmbeddingsRequestInput2
func (*EmbeddingsRequest_Input) FromEmbeddingsRequestInput3 ¶ added in v0.6.0
func (t *EmbeddingsRequest_Input) FromEmbeddingsRequestInput3(v EmbeddingsRequestInput3) error
FromEmbeddingsRequestInput3 overwrites any union data inside the EmbeddingsRequest_Input as the provided EmbeddingsRequestInput3
func (EmbeddingsRequest_Input) MarshalJSON ¶
func (t EmbeddingsRequest_Input) MarshalJSON() ([]byte, error)
func (*EmbeddingsRequest_Input) MergeEmbeddingsRequestInput0 ¶
func (t *EmbeddingsRequest_Input) MergeEmbeddingsRequestInput0(v EmbeddingsRequestInput0) error
MergeEmbeddingsRequestInput0 performs a merge with any union data inside the EmbeddingsRequest_Input, using the provided EmbeddingsRequestInput0
func (*EmbeddingsRequest_Input) MergeEmbeddingsRequestInput1 ¶
func (t *EmbeddingsRequest_Input) MergeEmbeddingsRequestInput1(v EmbeddingsRequestInput1) error
MergeEmbeddingsRequestInput1 performs a merge with any union data inside the EmbeddingsRequest_Input, using the provided EmbeddingsRequestInput1
func (*EmbeddingsRequest_Input) MergeEmbeddingsRequestInput2 ¶ added in v0.6.0
func (t *EmbeddingsRequest_Input) MergeEmbeddingsRequestInput2(v EmbeddingsRequestInput2) error
MergeEmbeddingsRequestInput2 performs a merge with any union data inside the EmbeddingsRequest_Input, using the provided EmbeddingsRequestInput2
func (*EmbeddingsRequest_Input) MergeEmbeddingsRequestInput3 ¶ added in v0.6.0
func (t *EmbeddingsRequest_Input) MergeEmbeddingsRequestInput3(v EmbeddingsRequestInput3) error
MergeEmbeddingsRequestInput3 performs a merge with any union data inside the EmbeddingsRequest_Input, using the provided EmbeddingsRequestInput3
func (*EmbeddingsRequest_Input) UnmarshalJSON ¶
func (t *EmbeddingsRequest_Input) UnmarshalJSON(b []byte) error
type EmbeddingsResponse ¶
type EmbeddingsResponse struct {
// Data List of embedding objects. Pre-chunked documents and image inputs with num_chunks above 1 return one contextualized object per input, with chunk embeddings in data.
Data *[]EmbeddingsResponse_Data_Item `json:"data,omitempty"`
// Model The model used to generate embeddings
Model *string `json:"model,omitempty"`
// Object The object type
Object *string `json:"object,omitempty"`
// Usage Token usage for the embeddings request
Usage *EmbeddingsUsage `json:"usage,omitempty"`
}
EmbeddingsResponse Response body for embeddings request
type EmbeddingsResponse_Data_Item ¶ added in v0.6.0
type EmbeddingsResponse_Data_Item struct {
// contains filtered or unexported fields
}
EmbeddingsResponse_Data_Item defines model for EmbeddingsResponse.data.Item.
func (EmbeddingsResponse_Data_Item) AsContextualizedEmbeddingObject ¶ added in v0.6.0
func (t EmbeddingsResponse_Data_Item) AsContextualizedEmbeddingObject() (ContextualizedEmbeddingObject, error)
AsContextualizedEmbeddingObject returns the union data inside the EmbeddingsResponse_Data_Item as a ContextualizedEmbeddingObject
func (EmbeddingsResponse_Data_Item) AsEmbeddingObject ¶ added in v0.6.0
func (t EmbeddingsResponse_Data_Item) AsEmbeddingObject() (EmbeddingObject, error)
AsEmbeddingObject returns the union data inside the EmbeddingsResponse_Data_Item as a EmbeddingObject
func (*EmbeddingsResponse_Data_Item) FromContextualizedEmbeddingObject ¶ added in v0.6.0
func (t *EmbeddingsResponse_Data_Item) FromContextualizedEmbeddingObject(v ContextualizedEmbeddingObject) error
FromContextualizedEmbeddingObject overwrites any union data inside the EmbeddingsResponse_Data_Item as the provided ContextualizedEmbeddingObject
func (*EmbeddingsResponse_Data_Item) FromEmbeddingObject ¶ added in v0.6.0
func (t *EmbeddingsResponse_Data_Item) FromEmbeddingObject(v EmbeddingObject) error
FromEmbeddingObject overwrites any union data inside the EmbeddingsResponse_Data_Item as the provided EmbeddingObject
func (EmbeddingsResponse_Data_Item) MarshalJSON ¶ added in v0.6.0
func (t EmbeddingsResponse_Data_Item) MarshalJSON() ([]byte, error)
func (*EmbeddingsResponse_Data_Item) MergeContextualizedEmbeddingObject ¶ added in v0.6.0
func (t *EmbeddingsResponse_Data_Item) MergeContextualizedEmbeddingObject(v ContextualizedEmbeddingObject) error
MergeContextualizedEmbeddingObject performs a merge with any union data inside the EmbeddingsResponse_Data_Item, using the provided ContextualizedEmbeddingObject
func (*EmbeddingsResponse_Data_Item) MergeEmbeddingObject ¶ added in v0.6.0
func (t *EmbeddingsResponse_Data_Item) MergeEmbeddingObject(v EmbeddingObject) error
MergeEmbeddingObject performs a merge with any union data inside the EmbeddingsResponse_Data_Item, using the provided EmbeddingObject
func (*EmbeddingsResponse_Data_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *EmbeddingsResponse_Data_Item) UnmarshalJSON(b []byte) error
type EmbeddingsUsage ¶
type EmbeddingsUsage struct {
// Cost Cost breakdown for the request
Cost *struct {
// Currency Currency of the cost values
Currency *EmbeddingsUsageCostCurrency `json:"currency,omitempty"`
// InputCost Cost for input tokens in USD
InputCost *float64 `json:"input_cost,omitempty"`
// TotalCost Total cost for the request in USD
TotalCost *float64 `json:"total_cost,omitempty"`
} `json:"cost,omitempty"`
// PromptTokens Number of tokens in the input texts
PromptTokens *int `json:"prompt_tokens,omitempty"`
// TotalTokens Total number of tokens processed
TotalTokens *int `json:"total_tokens,omitempty"`
}
EmbeddingsUsage Token usage for the embeddings request
type EmbeddingsUsageCostCurrency ¶
type EmbeddingsUsageCostCurrency string
EmbeddingsUsageCostCurrency Currency of the cost values
const (
EmbeddingsUsageCostCurrencyUSD EmbeddingsUsageCostCurrency = "USD"
)
Defines values for EmbeddingsUsageCostCurrency.
func (EmbeddingsUsageCostCurrency) Valid ¶
func (e EmbeddingsUsageCostCurrency) Valid() bool
Valid indicates whether the value is a known member of the EmbeddingsUsageCostCurrency enum.
type EmbeddingsV1EmbeddingsPostJSONRequestBody ¶
type EmbeddingsV1EmbeddingsPostJSONRequestBody = EmbeddingsRequest
EmbeddingsV1EmbeddingsPostJSONRequestBody defines body for EmbeddingsV1EmbeddingsPost for application/json ContentType.
type EmbeddingsV1EmbeddingsPostResponse ¶
type EmbeddingsV1EmbeddingsPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EmbeddingsResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseEmbeddingsV1EmbeddingsPostResponse ¶
func ParseEmbeddingsV1EmbeddingsPostResponse(rsp *http.Response) (*EmbeddingsV1EmbeddingsPostResponse, error)
ParseEmbeddingsV1EmbeddingsPostResponse parses an HTTP response from a EmbeddingsV1EmbeddingsPostWithResponse call
func (EmbeddingsV1EmbeddingsPostResponse) ContentType ¶
func (r EmbeddingsV1EmbeddingsPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (EmbeddingsV1EmbeddingsPostResponse) GetBody ¶
func (r EmbeddingsV1EmbeddingsPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (EmbeddingsV1EmbeddingsPostResponse) GetJSON200 ¶
func (r EmbeddingsV1EmbeddingsPostResponse) GetJSON200() *EmbeddingsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (EmbeddingsV1EmbeddingsPostResponse) GetJSON422 ¶
func (r EmbeddingsV1EmbeddingsPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (EmbeddingsV1EmbeddingsPostResponse) Status ¶
func (r EmbeddingsV1EmbeddingsPostResponse) Status() string
Status returns HTTPResponse.Status
func (EmbeddingsV1EmbeddingsPostResponse) StatusCode ¶
func (r EmbeddingsV1EmbeddingsPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Error ¶
type Error struct {
// Code A status code as a string or a number, or `null`. Do not branch on it; use the HTTP status.
Code *Error_Code `json:"code,omitempty"`
// Message What went wrong.
Message string `json:"message"`
// Param Present on some errors; `null` when present.
Param *string `json:"param,omitempty"`
// Type The error category, for example `invalid_request_error`, `invalid_request`, `invalid_api_key`, or `too_many_requests`.
Type string `json:"type"`
}
Error Details of the error.
type ErrorInfo ¶
type ErrorInfo struct {
// Code Error code
Code *string `json:"code,omitempty"`
// Message Human-readable error message
Message string `json:"message"`
// Type Error type category
Type *string `json:"type,omitempty"`
}
ErrorInfo Error information returned when a request fails
type ErrorResponse ¶
type ErrorResponse struct {
// Error Details of the error.
Error Error `json:"error"`
}
ErrorResponse The body of an error response.
type Error_Code ¶
type Error_Code struct {
// contains filtered or unexported fields
}
Error_Code A status code as a string or a number, or `null`. Do not branch on it; use the HTTP status.
func (Error_Code) AsErrorCode0 ¶
func (t Error_Code) AsErrorCode0() (ErrorCode0, error)
AsErrorCode0 returns the union data inside the Error_Code as a ErrorCode0
func (Error_Code) AsErrorCode1 ¶
func (t Error_Code) AsErrorCode1() (ErrorCode1, error)
AsErrorCode1 returns the union data inside the Error_Code as a ErrorCode1
func (*Error_Code) FromErrorCode0 ¶
func (t *Error_Code) FromErrorCode0(v ErrorCode0) error
FromErrorCode0 overwrites any union data inside the Error_Code as the provided ErrorCode0
func (*Error_Code) FromErrorCode1 ¶
func (t *Error_Code) FromErrorCode1(v ErrorCode1) error
FromErrorCode1 overwrites any union data inside the Error_Code as the provided ErrorCode1
func (Error_Code) MarshalJSON ¶
func (t Error_Code) MarshalJSON() ([]byte, error)
func (*Error_Code) MergeErrorCode0 ¶
func (t *Error_Code) MergeErrorCode0(v ErrorCode0) error
MergeErrorCode0 performs a merge with any union data inside the Error_Code, using the provided ErrorCode0
func (*Error_Code) MergeErrorCode1 ¶
func (t *Error_Code) MergeErrorCode1(v ErrorCode1) error
MergeErrorCode1 performs a merge with any union data inside the Error_Code, using the provided ErrorCode1
func (*Error_Code) UnmarshalJSON ¶
func (t *Error_Code) UnmarshalJSON(b []byte) error
type EventType ¶
type EventType string
EventType SSE event type discriminator
const ( EventTypeResponseCompleted EventType = "response.completed" EventTypeResponseCreated EventType = "response.created" EventTypeResponseFailed EventType = "response.failed" EventTypeResponseInProgress EventType = "response.in_progress" EventTypeResponseOutputItemAdded EventType = "response.output_item.added" EventTypeResponseOutputItemDone EventType = "response.output_item.done" EventTypeResponseOutputTextDelta EventType = "response.output_text.delta" EventTypeResponseOutputTextDone EventType = "response.output_text.done" EventTypeResponseReasoningFetchUrlQueries EventType = "response.reasoning.fetch_url_queries" EventTypeResponseReasoningFetchUrlResults EventType = "response.reasoning.fetch_url_results" EventTypeResponseReasoningImageSearchQueries EventType = "response.reasoning.image_search_queries" EventTypeResponseReasoningImageSearchResults EventType = "response.reasoning.image_search_results" EventTypeResponseReasoningSearchQueries EventType = "response.reasoning.search_queries" EventTypeResponseReasoningSearchResults EventType = "response.reasoning.search_results" EventTypeResponseReasoningStarted EventType = "response.reasoning.started" EventTypeResponseReasoningStopped EventType = "response.reasoning.stopped" )
Defines values for EventType.
type ExpectedRevisionRequired ¶
type ExpectedRevisionRequired = string
ExpectedRevisionRequired defines model for ExpectedRevisionRequired.
type FetchUrlQueriesEvent ¶
type FetchUrlQueriesEvent struct {
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
Thought *string `json:"thought,omitempty"`
// Type SSE event type discriminator
Type EventType `json:"type"`
Urls []string `json:"urls"`
}
FetchUrlQueriesEvent URL fetch queries event (type: "response.reasoning.fetch_url_queries"). Contains URLs being fetched.
type FetchUrlResultsEvent ¶
type FetchUrlResultsEvent struct {
Contents []UrlContent `json:"contents"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
Thought *string `json:"thought,omitempty"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
FetchUrlResultsEvent URL fetch results event (type: "response.reasoning.fetch_url_results"). Contains fetched URL contents.
type FetchUrlResultsOutputItem ¶
type FetchUrlResultsOutputItem struct {
Contents []UrlContent `json:"contents"`
Type FetchUrlResultsOutputItemType `json:"type"`
}
FetchUrlResultsOutputItem defines model for FetchUrlResultsOutputItem.
type FetchUrlResultsOutputItemType ¶
type FetchUrlResultsOutputItemType string
FetchUrlResultsOutputItemType defines model for FetchUrlResultsOutputItem.Type.
const (
FetchUrlResultsOutputItemTypeFetchUrlResults FetchUrlResultsOutputItemType = "fetch_url_results"
)
Defines values for FetchUrlResultsOutputItemType.
func (FetchUrlResultsOutputItemType) Valid ¶
func (e FetchUrlResultsOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the FetchUrlResultsOutputItemType enum.
type FetchUrlTool ¶
type FetchUrlTool struct {
Filters *struct {
// SnapshotAsOf Fetch each page as of this RFC 3339 time with a time zone, such as 2026-11-01T00:00:00Z. It must not be in the future or more than 365 days ago.
SnapshotAsOf *string `json:"snapshot_as_of,omitempty"`
} `json:"filters,omitempty"`
// MaxUrls Maximum number of URLs to fetch per tool call
MaxUrls *int32 `json:"max_urls,omitempty"`
Type FetchUrlToolType `json:"type"`
}
FetchUrlTool defines model for FetchUrlTool.
type FetchUrlToolType ¶
type FetchUrlToolType string
FetchUrlToolType defines model for FetchUrlTool.Type.
const (
FetchUrlToolTypeFetchUrl FetchUrlToolType = "fetch_url"
)
Defines values for FetchUrlToolType.
func (FetchUrlToolType) Valid ¶
func (e FetchUrlToolType) Valid() bool
Valid indicates whether the value is a known member of the FetchUrlToolType enum.
type FinanceResult ¶
type FinanceResult struct {
// Category Finance category this result belongs to (for example, "quote").
Category string `json:"category"`
// Content Structured content for the result, typically a markdown-formatted table or snippet.
Content string `json:"content"`
// Sources Source URLs backing the structured content.
Sources *[]string `json:"sources,omitempty"`
// Tickers Ticker symbols this result pertains to.
Tickers *[]string `json:"tickers,omitempty"`
}
FinanceResult A single structured finance result returned by the finance_search tool.
type FinanceResultsOutputItem ¶
type FinanceResultsOutputItem struct {
// Categories Finance categories the tool was asked to retrieve for this invocation (for example, "quote").
Categories *[]string `json:"categories,omitempty"`
// Results Structured finance results returned for the invocation.
Results []FinanceResult `json:"results"`
// Tickers Ticker symbols the tool was asked to retrieve for this invocation.
Tickers *[]string `json:"tickers,omitempty"`
Type FinanceResultsOutputItemType `json:"type"`
}
FinanceResultsOutputItem Intermediate output item emitted when the finance_search tool runs. One item is emitted per tool invocation; the requested categories and tickers are echoed at the envelope level alongside the per-result entries.
type FinanceResultsOutputItemType ¶
type FinanceResultsOutputItemType string
FinanceResultsOutputItemType defines model for FinanceResultsOutputItem.Type.
const (
FinanceResultsOutputItemTypeFinanceResults FinanceResultsOutputItemType = "finance_results"
)
Defines values for FinanceResultsOutputItemType.
func (FinanceResultsOutputItemType) Valid ¶
func (e FinanceResultsOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the FinanceResultsOutputItemType enum.
type FinanceSearchTool ¶
type FinanceSearchTool struct {
// Type Tool type identifier
Type FinanceSearchToolType `json:"type"`
}
FinanceSearchTool Finance search tool configuration for the Agent API
type FinanceSearchToolType ¶
type FinanceSearchToolType string
FinanceSearchToolType Tool type identifier
const (
FinanceSearchToolTypeFinanceSearch FinanceSearchToolType = "finance_search"
)
Defines values for FinanceSearchToolType.
func (FinanceSearchToolType) Valid ¶
func (e FinanceSearchToolType) Valid() bool
Valid indicates whether the value is a known member of the FinanceSearchToolType enum.
type FunctionCallInput ¶
type FunctionCallInput struct {
// Arguments Function arguments (JSON string)
Arguments string `json:"arguments"`
// CallId The call_id that correlates with function_call_output
CallId string `json:"call_id"`
// Name The function name
Name string `json:"name"`
// ThoughtSignature Base64-encoded signature for thinking models
ThoughtSignature *string `json:"thought_signature,omitempty"`
Type FunctionCallInputType `json:"type"`
}
FunctionCallInput defines model for FunctionCallInput.
type FunctionCallInputType ¶
type FunctionCallInputType string
FunctionCallInputType defines model for FunctionCallInput.Type.
const (
FunctionCallInputTypeFunctionCall FunctionCallInputType = "function_call"
)
Defines values for FunctionCallInputType.
func (FunctionCallInputType) Valid ¶
func (e FunctionCallInputType) Valid() bool
Valid indicates whether the value is a known member of the FunctionCallInputType enum.
type FunctionCallOutputImagePart ¶
type FunctionCallOutputImagePart struct {
// Detail Accepted for OpenAI replay compatibility; native tool-result forwarding ignores this hint.
Detail *FunctionCallOutputImagePartDetail `json:"detail,omitempty"`
// ImageUrl A fully qualified HTTP(S) URL or base64 image data URI.
ImageUrl string `json:"image_url"`
Type FunctionCallOutputImagePartType `json:"type"`
}
FunctionCallOutputImagePart defines model for FunctionCallOutputImagePart.
type FunctionCallOutputImagePartDetail ¶
type FunctionCallOutputImagePartDetail string
FunctionCallOutputImagePartDetail Accepted for OpenAI replay compatibility; native tool-result forwarding ignores this hint.
const ( FunctionCallOutputImagePartDetailAuto FunctionCallOutputImagePartDetail = "auto" FunctionCallOutputImagePartDetailHigh FunctionCallOutputImagePartDetail = "high" FunctionCallOutputImagePartDetailLow FunctionCallOutputImagePartDetail = "low" )
Defines values for FunctionCallOutputImagePartDetail.
func (FunctionCallOutputImagePartDetail) Valid ¶
func (e FunctionCallOutputImagePartDetail) Valid() bool
Valid indicates whether the value is a known member of the FunctionCallOutputImagePartDetail enum.
type FunctionCallOutputImagePartType ¶
type FunctionCallOutputImagePartType string
FunctionCallOutputImagePartType defines model for FunctionCallOutputImagePart.Type.
const (
FunctionCallOutputImagePartTypeInputImage FunctionCallOutputImagePartType = "input_image"
)
Defines values for FunctionCallOutputImagePartType.
func (FunctionCallOutputImagePartType) Valid ¶
func (e FunctionCallOutputImagePartType) Valid() bool
Valid indicates whether the value is a known member of the FunctionCallOutputImagePartType enum.
type FunctionCallOutputInput ¶
type FunctionCallOutputInput struct {
// CallId The call_id from function_call output
CallId string `json:"call_id"`
// Id Replay metadata populated when this item was returned by the API.
Id *string `json:"id,omitempty"`
// Name Function name (required by some providers)
Name *string `json:"name,omitempty"`
// Output Function result as a JSON string or an array of input_text and input_image content parts.
Output FunctionCallOutputInput_Output `json:"output"`
// Status Replay metadata populated when this item was returned by the API.
Status *FunctionCallOutputInputStatus `json:"status,omitempty"`
// ThoughtSignature Base64-encoded signature from function_call
ThoughtSignature *string `json:"thought_signature,omitempty"`
Type FunctionCallOutputInputType `json:"type"`
}
FunctionCallOutputInput defines model for FunctionCallOutputInput.
type FunctionCallOutputInputOutput0 ¶
type FunctionCallOutputInputOutput0 = string
FunctionCallOutputInputOutput0 defines model for FunctionCallOutputInput.Output.0.
type FunctionCallOutputInputOutput1 ¶
type FunctionCallOutputInputOutput1 = []FunctionCallOutputInput_Output_1_Item
FunctionCallOutputInputOutput1 defines model for FunctionCallOutputInput.Output.1.
type FunctionCallOutputInputStatus ¶
type FunctionCallOutputInputStatus string
FunctionCallOutputInputStatus Replay metadata populated when this item was returned by the API.
const ( FunctionCallOutputInputStatusCompleted FunctionCallOutputInputStatus = "completed" FunctionCallOutputInputStatusInProgress FunctionCallOutputInputStatus = "in_progress" FunctionCallOutputInputStatusIncomplete FunctionCallOutputInputStatus = "incomplete" )
Defines values for FunctionCallOutputInputStatus.
func (FunctionCallOutputInputStatus) Valid ¶
func (e FunctionCallOutputInputStatus) Valid() bool
Valid indicates whether the value is a known member of the FunctionCallOutputInputStatus enum.
type FunctionCallOutputInputType ¶
type FunctionCallOutputInputType string
FunctionCallOutputInputType defines model for FunctionCallOutputInput.Type.
const (
FunctionCallOutputInputTypeFunctionCallOutput FunctionCallOutputInputType = "function_call_output"
)
Defines values for FunctionCallOutputInputType.
func (FunctionCallOutputInputType) Valid ¶
func (e FunctionCallOutputInputType) Valid() bool
Valid indicates whether the value is a known member of the FunctionCallOutputInputType enum.
type FunctionCallOutputInput_Output ¶
type FunctionCallOutputInput_Output struct {
// contains filtered or unexported fields
}
FunctionCallOutputInput_Output Function result as a JSON string or an array of input_text and input_image content parts.
func (FunctionCallOutputInput_Output) AsFunctionCallOutputInputOutput0 ¶
func (t FunctionCallOutputInput_Output) AsFunctionCallOutputInputOutput0() (FunctionCallOutputInputOutput0, error)
AsFunctionCallOutputInputOutput0 returns the union data inside the FunctionCallOutputInput_Output as a FunctionCallOutputInputOutput0
func (FunctionCallOutputInput_Output) AsFunctionCallOutputInputOutput1 ¶
func (t FunctionCallOutputInput_Output) AsFunctionCallOutputInputOutput1() (FunctionCallOutputInputOutput1, error)
AsFunctionCallOutputInputOutput1 returns the union data inside the FunctionCallOutputInput_Output as a FunctionCallOutputInputOutput1
func (*FunctionCallOutputInput_Output) FromFunctionCallOutputInputOutput0 ¶
func (t *FunctionCallOutputInput_Output) FromFunctionCallOutputInputOutput0(v FunctionCallOutputInputOutput0) error
FromFunctionCallOutputInputOutput0 overwrites any union data inside the FunctionCallOutputInput_Output as the provided FunctionCallOutputInputOutput0
func (*FunctionCallOutputInput_Output) FromFunctionCallOutputInputOutput1 ¶
func (t *FunctionCallOutputInput_Output) FromFunctionCallOutputInputOutput1(v FunctionCallOutputInputOutput1) error
FromFunctionCallOutputInputOutput1 overwrites any union data inside the FunctionCallOutputInput_Output as the provided FunctionCallOutputInputOutput1
func (FunctionCallOutputInput_Output) MarshalJSON ¶
func (t FunctionCallOutputInput_Output) MarshalJSON() ([]byte, error)
func (*FunctionCallOutputInput_Output) MergeFunctionCallOutputInputOutput0 ¶
func (t *FunctionCallOutputInput_Output) MergeFunctionCallOutputInputOutput0(v FunctionCallOutputInputOutput0) error
MergeFunctionCallOutputInputOutput0 performs a merge with any union data inside the FunctionCallOutputInput_Output, using the provided FunctionCallOutputInputOutput0
func (*FunctionCallOutputInput_Output) MergeFunctionCallOutputInputOutput1 ¶
func (t *FunctionCallOutputInput_Output) MergeFunctionCallOutputInputOutput1(v FunctionCallOutputInputOutput1) error
MergeFunctionCallOutputInputOutput1 performs a merge with any union data inside the FunctionCallOutputInput_Output, using the provided FunctionCallOutputInputOutput1
func (*FunctionCallOutputInput_Output) UnmarshalJSON ¶
func (t *FunctionCallOutputInput_Output) UnmarshalJSON(b []byte) error
type FunctionCallOutputInput_Output_1_Item ¶
type FunctionCallOutputInput_Output_1_Item struct {
// contains filtered or unexported fields
}
FunctionCallOutputInput_Output_1_Item defines model for FunctionCallOutputInput.Output.1.Item.
func (FunctionCallOutputInput_Output_1_Item) AsFunctionCallOutputImagePart ¶
func (t FunctionCallOutputInput_Output_1_Item) AsFunctionCallOutputImagePart() (FunctionCallOutputImagePart, error)
AsFunctionCallOutputImagePart returns the union data inside the FunctionCallOutputInput_Output_1_Item as a FunctionCallOutputImagePart
func (FunctionCallOutputInput_Output_1_Item) AsFunctionCallOutputTextPart ¶
func (t FunctionCallOutputInput_Output_1_Item) AsFunctionCallOutputTextPart() (FunctionCallOutputTextPart, error)
AsFunctionCallOutputTextPart returns the union data inside the FunctionCallOutputInput_Output_1_Item as a FunctionCallOutputTextPart
func (FunctionCallOutputInput_Output_1_Item) Discriminator ¶
func (t FunctionCallOutputInput_Output_1_Item) Discriminator() (string, error)
func (*FunctionCallOutputInput_Output_1_Item) FromFunctionCallOutputImagePart ¶
func (t *FunctionCallOutputInput_Output_1_Item) FromFunctionCallOutputImagePart(v FunctionCallOutputImagePart) error
FromFunctionCallOutputImagePart overwrites any union data inside the FunctionCallOutputInput_Output_1_Item as the provided FunctionCallOutputImagePart
func (*FunctionCallOutputInput_Output_1_Item) FromFunctionCallOutputTextPart ¶
func (t *FunctionCallOutputInput_Output_1_Item) FromFunctionCallOutputTextPart(v FunctionCallOutputTextPart) error
FromFunctionCallOutputTextPart overwrites any union data inside the FunctionCallOutputInput_Output_1_Item as the provided FunctionCallOutputTextPart
func (FunctionCallOutputInput_Output_1_Item) MarshalJSON ¶
func (t FunctionCallOutputInput_Output_1_Item) MarshalJSON() ([]byte, error)
func (*FunctionCallOutputInput_Output_1_Item) MergeFunctionCallOutputImagePart ¶
func (t *FunctionCallOutputInput_Output_1_Item) MergeFunctionCallOutputImagePart(v FunctionCallOutputImagePart) error
MergeFunctionCallOutputImagePart performs a merge with any union data inside the FunctionCallOutputInput_Output_1_Item, using the provided FunctionCallOutputImagePart
func (*FunctionCallOutputInput_Output_1_Item) MergeFunctionCallOutputTextPart ¶
func (t *FunctionCallOutputInput_Output_1_Item) MergeFunctionCallOutputTextPart(v FunctionCallOutputTextPart) error
MergeFunctionCallOutputTextPart performs a merge with any union data inside the FunctionCallOutputInput_Output_1_Item, using the provided FunctionCallOutputTextPart
func (*FunctionCallOutputInput_Output_1_Item) UnmarshalJSON ¶
func (t *FunctionCallOutputInput_Output_1_Item) UnmarshalJSON(b []byte) error
func (FunctionCallOutputInput_Output_1_Item) ValueByDiscriminator ¶
func (t FunctionCallOutputInput_Output_1_Item) ValueByDiscriminator() (interface{}, error)
type FunctionCallOutputItem ¶
type FunctionCallOutputItem struct {
// Arguments JSON string of arguments
Arguments string `json:"arguments"`
// CallId Correlates with function_call_output input
CallId string `json:"call_id"`
Id string `json:"id"`
Name string `json:"name"`
// Status Status of a response or output item
Status Status `json:"status"`
// ThoughtSignature Base64-encoded opaque signature for thinking models
ThoughtSignature *string `json:"thought_signature,omitempty"`
Type FunctionCallOutputItemType `json:"type"`
}
FunctionCallOutputItem defines model for FunctionCallOutputItem.
type FunctionCallOutputItemType ¶
type FunctionCallOutputItemType string
FunctionCallOutputItemType defines model for FunctionCallOutputItem.Type.
const (
FunctionCallOutputItemTypeFunctionCall FunctionCallOutputItemType = "function_call"
)
Defines values for FunctionCallOutputItemType.
func (FunctionCallOutputItemType) Valid ¶
func (e FunctionCallOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the FunctionCallOutputItemType enum.
type FunctionCallOutputTextPart ¶
type FunctionCallOutputTextPart struct {
Text string `json:"text"`
Type FunctionCallOutputTextPartType `json:"type"`
}
FunctionCallOutputTextPart defines model for FunctionCallOutputTextPart.
type FunctionCallOutputTextPartType ¶
type FunctionCallOutputTextPartType string
FunctionCallOutputTextPartType defines model for FunctionCallOutputTextPart.Type.
const (
FunctionCallOutputTextPartTypeInputText FunctionCallOutputTextPartType = "input_text"
)
Defines values for FunctionCallOutputTextPartType.
func (FunctionCallOutputTextPartType) Valid ¶
func (e FunctionCallOutputTextPartType) Valid() bool
Valid indicates whether the value is a known member of the FunctionCallOutputTextPartType enum.
type FunctionTool ¶
type FunctionTool struct {
// Description A description of what the function does
Description *string `json:"description,omitempty"`
// Name The name of the function
Name string `json:"name"`
// Parameters JSON Schema defining the function's parameters
Parameters *map[string]interface{} `json:"parameters,omitempty"`
// Strict Whether to enable strict schema validation
Strict *bool `json:"strict,omitempty"`
Type FunctionToolType `json:"type"`
}
FunctionTool defines model for FunctionTool.
type FunctionToolType ¶
type FunctionToolType string
FunctionToolType defines model for FunctionTool.Type.
const (
FunctionToolTypeFunction FunctionToolType = "function"
)
Defines values for FunctionToolType.
func (FunctionToolType) Valid ¶
func (e FunctionToolType) Valid() bool
Valid indicates whether the value is a known member of the FunctionToolType enum.
type GatewayCreateChatCompletionJSONRequestBody ¶ added in v0.6.0
type GatewayCreateChatCompletionJSONRequestBody = OrchestratorChatCreateChatCompletionRequest
GatewayCreateChatCompletionJSONRequestBody defines body for GatewayCreateChatCompletion for application/json ContentType.
type GatewayCreateChatCompletionResponse ¶ added in v0.6.0
type GatewayCreateChatCompletionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrchestratorChatCreateChatCompletionResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *OrchestratorChatErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *OrchestratorChatErrorResponse
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *OrchestratorChatErrorResponse
}
func ParseGatewayCreateChatCompletionResponse ¶ added in v0.6.0
func ParseGatewayCreateChatCompletionResponse(rsp *http.Response) (*GatewayCreateChatCompletionResponse, error)
ParseGatewayCreateChatCompletionResponse parses an HTTP response from a GatewayCreateChatCompletionWithResponse call
func (GatewayCreateChatCompletionResponse) ContentType ¶ added in v0.6.0
func (r GatewayCreateChatCompletionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GatewayCreateChatCompletionResponse) GetBody ¶ added in v0.6.0
func (r GatewayCreateChatCompletionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GatewayCreateChatCompletionResponse) GetJSON200 ¶ added in v0.6.0
func (r GatewayCreateChatCompletionResponse) GetJSON200() *OrchestratorChatCreateChatCompletionResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GatewayCreateChatCompletionResponse) GetJSON400 ¶ added in v0.6.0
func (r GatewayCreateChatCompletionResponse) GetJSON400() *OrchestratorChatErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GatewayCreateChatCompletionResponse) GetJSON404 ¶ added in v0.6.0
func (r GatewayCreateChatCompletionResponse) GetJSON404() *OrchestratorChatErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GatewayCreateChatCompletionResponse) GetJSON429 ¶ added in v0.6.0
func (r GatewayCreateChatCompletionResponse) GetJSON429() *OrchestratorChatErrorResponse
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GatewayCreateChatCompletionResponse) Status ¶ added in v0.6.0
func (r GatewayCreateChatCompletionResponse) Status() string
Status returns HTTPResponse.Status
func (GatewayCreateChatCompletionResponse) StatusCode ¶ added in v0.6.0
func (r GatewayCreateChatCompletionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GatewayCreateMessageJSONRequestBody ¶ added in v0.6.0
type GatewayCreateMessageJSONRequestBody = OrchestratorMessagesCreateMessageRequest
GatewayCreateMessageJSONRequestBody defines body for GatewayCreateMessage for application/json ContentType.
type GatewayCreateMessageResponse ¶ added in v0.6.0
type GatewayCreateMessageResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrchestratorMessagesMessage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *OrchestratorMessagesErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *OrchestratorMessagesErrorResponse
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *OrchestratorMessagesErrorResponse
}
func ParseGatewayCreateMessageResponse ¶ added in v0.6.0
func ParseGatewayCreateMessageResponse(rsp *http.Response) (*GatewayCreateMessageResponse, error)
ParseGatewayCreateMessageResponse parses an HTTP response from a GatewayCreateMessageWithResponse call
func (GatewayCreateMessageResponse) ContentType ¶ added in v0.6.0
func (r GatewayCreateMessageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GatewayCreateMessageResponse) GetBody ¶ added in v0.6.0
func (r GatewayCreateMessageResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GatewayCreateMessageResponse) GetJSON200 ¶ added in v0.6.0
func (r GatewayCreateMessageResponse) GetJSON200() *OrchestratorMessagesMessage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GatewayCreateMessageResponse) GetJSON400 ¶ added in v0.6.0
func (r GatewayCreateMessageResponse) GetJSON400() *OrchestratorMessagesErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GatewayCreateMessageResponse) GetJSON404 ¶ added in v0.6.0
func (r GatewayCreateMessageResponse) GetJSON404() *OrchestratorMessagesErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GatewayCreateMessageResponse) GetJSON429 ¶ added in v0.6.0
func (r GatewayCreateMessageResponse) GetJSON429() *OrchestratorMessagesErrorResponse
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GatewayCreateMessageResponse) Status ¶ added in v0.6.0
func (r GatewayCreateMessageResponse) Status() string
Status returns HTTPResponse.Status
func (GatewayCreateMessageResponse) StatusCode ¶ added in v0.6.0
func (r GatewayCreateMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GatewayCreateResponseJSONRequestBody ¶ added in v0.6.0
type GatewayCreateResponseJSONRequestBody = OrchestratorResponsesCreateResponseBody
GatewayCreateResponseJSONRequestBody defines body for GatewayCreateResponse for application/json ContentType.
type GatewayCreateResponseResponse ¶ added in v0.6.0
type GatewayCreateResponseResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrchestratorResponsesResponseResource
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *OrchestratorResponsesErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *OrchestratorResponsesErrorResponse
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *OrchestratorResponsesErrorResponse
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *OrchestratorResponsesErrorResponse
}
func ParseGatewayCreateResponseResponse ¶ added in v0.6.0
func ParseGatewayCreateResponseResponse(rsp *http.Response) (*GatewayCreateResponseResponse, error)
ParseGatewayCreateResponseResponse parses an HTTP response from a GatewayCreateResponseWithResponse call
func (GatewayCreateResponseResponse) ContentType ¶ added in v0.6.0
func (r GatewayCreateResponseResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GatewayCreateResponseResponse) GetBody ¶ added in v0.6.0
func (r GatewayCreateResponseResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GatewayCreateResponseResponse) GetJSON200 ¶ added in v0.6.0
func (r GatewayCreateResponseResponse) GetJSON200() *OrchestratorResponsesResponseResource
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GatewayCreateResponseResponse) GetJSON400 ¶ added in v0.6.0
func (r GatewayCreateResponseResponse) GetJSON400() *OrchestratorResponsesErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GatewayCreateResponseResponse) GetJSON404 ¶ added in v0.6.0
func (r GatewayCreateResponseResponse) GetJSON404() *OrchestratorResponsesErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GatewayCreateResponseResponse) GetJSON429 ¶ added in v0.6.0
func (r GatewayCreateResponseResponse) GetJSON429() *OrchestratorResponsesErrorResponse
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GatewayCreateResponseResponse) GetJSON500 ¶ added in v0.6.0
func (r GatewayCreateResponseResponse) GetJSON500() *OrchestratorResponsesErrorResponse
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GatewayCreateResponseResponse) Status ¶ added in v0.6.0
func (r GatewayCreateResponseResponse) Status() string
Status returns HTTPResponse.Status
func (GatewayCreateResponseResponse) StatusCode ¶ added in v0.6.0
func (r GatewayCreateResponseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GatewayListModelsResponse ¶ added in v0.6.0
type GatewayListModelsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrchestratorChatModelList
}
func ParseGatewayListModelsResponse ¶ added in v0.6.0
func ParseGatewayListModelsResponse(rsp *http.Response) (*GatewayListModelsResponse, error)
ParseGatewayListModelsResponse parses an HTTP response from a GatewayListModelsWithResponse call
func (GatewayListModelsResponse) ContentType ¶ added in v0.6.0
func (r GatewayListModelsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GatewayListModelsResponse) GetBody ¶ added in v0.6.0
func (r GatewayListModelsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GatewayListModelsResponse) GetJSON200 ¶ added in v0.6.0
func (r GatewayListModelsResponse) GetJSON200() *OrchestratorChatModelList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GatewayListModelsResponse) Status ¶ added in v0.6.0
func (r GatewayListModelsResponse) Status() string
Status returns HTTPResponse.Status
func (GatewayListModelsResponse) StatusCode ¶ added in v0.6.0
func (r GatewayListModelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GatewayRetrieveModelResponse ¶ added in v0.6.0
type GatewayRetrieveModelResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OrchestratorChatModel
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *OrchestratorChatErrorResponse
}
func ParseGatewayRetrieveModelResponse ¶ added in v0.6.0
func ParseGatewayRetrieveModelResponse(rsp *http.Response) (*GatewayRetrieveModelResponse, error)
ParseGatewayRetrieveModelResponse parses an HTTP response from a GatewayRetrieveModelWithResponse call
func (GatewayRetrieveModelResponse) ContentType ¶ added in v0.6.0
func (r GatewayRetrieveModelResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GatewayRetrieveModelResponse) GetBody ¶ added in v0.6.0
func (r GatewayRetrieveModelResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GatewayRetrieveModelResponse) GetJSON200 ¶ added in v0.6.0
func (r GatewayRetrieveModelResponse) GetJSON200() *OrchestratorChatModel
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GatewayRetrieveModelResponse) GetJSON404 ¶ added in v0.6.0
func (r GatewayRetrieveModelResponse) GetJSON404() *OrchestratorChatErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GatewayRetrieveModelResponse) Status ¶ added in v0.6.0
func (r GatewayRetrieveModelResponse) Status() string
Status returns HTTPResponse.Status
func (GatewayRetrieveModelResponse) StatusCode ¶ added in v0.6.0
func (r GatewayRetrieveModelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse ¶
type GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AsyncApiChatCompletionsResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse ¶
func ParseGetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse(rsp *http.Response) (*GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse, error)
ParseGetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse parses an HTTP response from a GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetWithResponse call
func (GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) ContentType ¶
func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) GetBody ¶
func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) GetJSON200 ¶
func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) GetJSON200() *AsyncApiChatCompletionsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) GetJSON422 ¶
func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) Status ¶
Status returns HTTPResponse.Status
func (GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) StatusCode ¶
func (r GetAsyncChatCompletionResponseAsyncChatCompletionsApiRequestGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBatchResponse ¶ added in v0.2.0
type GetBatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Batch
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
}
func ParseGetBatchResponse ¶ added in v0.2.0
func ParseGetBatchResponse(rsp *http.Response) (*GetBatchResponse, error)
ParseGetBatchResponse parses an HTTP response from a GetBatchWithResponse call
func (GetBatchResponse) ContentType ¶ added in v0.2.0
func (r GetBatchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetBatchResponse) GetBody ¶ added in v0.2.0
func (r GetBatchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetBatchResponse) GetJSON200 ¶ added in v0.2.0
func (r GetBatchResponse) GetJSON200() *Batch
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetBatchResponse) GetJSON404 ¶ added in v0.2.0
func (r GetBatchResponse) GetJSON404() *ApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetBatchResponse) GetJSON429 ¶ added in v0.2.0
func (r GetBatchResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetBatchResponse) Status ¶ added in v0.2.0
func (r GetBatchResponse) Status() string
Status returns HTTPResponse.Status
func (GetBatchResponse) StatusCode ¶ added in v0.2.0
func (r GetBatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetComputerUsageAnalyticsParams ¶
type GetComputerUsageAnalyticsParams struct {
// Dataset The dataset to query. query_volume and daily_active_users are daily organization-level datasets: they reject bucket_width=1h and user_email.
Dataset GetComputerUsageAnalyticsParamsDataset `form:"dataset" json:"dataset"`
// StartTime Window start in unix seconds (UTC), inclusive. Snapped down to the bucket grid, so the first bucket can include usage from before this time.
StartTime int `form:"start_time" json:"start_time"`
// EndTime Window end in unix seconds (UTC), exclusive. Defaults to now; future values are capped at now. The window may span at most 90 days.
EndTime *int `form:"end_time,omitempty" json:"end_time,omitempty"`
// BucketWidth Bucket size. Buckets align to the UTC grid. Not accepted as 1h for query_volume or daily_active_users, which are stored at day grain.
BucketWidth *GetComputerUsageAnalyticsParamsBucketWidth `form:"bucket_width,omitempty" json:"bucket_width,omitempty"`
// Limit Buckets per page. 1d: default 7, max 31. 1h: default 24, max 168.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Page Opaque pagination cursor from a previous response's next_page. Keep the other query parameters unchanged to continue the same report.
Page *string `form:"page,omitempty" json:"page,omitempty"`
// UserEmail Restrict results to a single member of your organization. Emails that don't match a current member return a generic 400. Not available for query_volume or daily_active_users, which are aggregated per organization; use the v2 endpoint for per-member query volume.
UserEmail *openapi_types.Email `form:"user_email,omitempty" json:"user_email,omitempty"`
}
GetComputerUsageAnalyticsParams defines parameters for GetComputerUsageAnalytics.
type GetComputerUsageAnalyticsParamsBucketWidth ¶
type GetComputerUsageAnalyticsParamsBucketWidth string
GetComputerUsageAnalyticsParamsBucketWidth defines parameters for GetComputerUsageAnalytics.
const ( GetComputerUsageAnalyticsParamsBucketWidthN1d GetComputerUsageAnalyticsParamsBucketWidth = "1d" GetComputerUsageAnalyticsParamsBucketWidthN1h GetComputerUsageAnalyticsParamsBucketWidth = "1h" )
Defines values for GetComputerUsageAnalyticsParamsBucketWidth.
func (GetComputerUsageAnalyticsParamsBucketWidth) Valid ¶
func (e GetComputerUsageAnalyticsParamsBucketWidth) Valid() bool
Valid indicates whether the value is a known member of the GetComputerUsageAnalyticsParamsBucketWidth enum.
type GetComputerUsageAnalyticsParamsDataset ¶
type GetComputerUsageAnalyticsParamsDataset string
GetComputerUsageAnalyticsParamsDataset defines parameters for GetComputerUsageAnalytics.
const ( GetComputerUsageAnalyticsParamsDatasetArtifacts GetComputerUsageAnalyticsParamsDataset = "artifacts" GetComputerUsageAnalyticsParamsDatasetConnectors GetComputerUsageAnalyticsParamsDataset = "connectors" GetComputerUsageAnalyticsParamsDatasetCreditUsage GetComputerUsageAnalyticsParamsDataset = "credit_usage" GetComputerUsageAnalyticsParamsDatasetDailyActiveUsers GetComputerUsageAnalyticsParamsDataset = "daily_active_users" GetComputerUsageAnalyticsParamsDatasetQueryVolume GetComputerUsageAnalyticsParamsDataset = "query_volume" GetComputerUsageAnalyticsParamsDatasetSkills GetComputerUsageAnalyticsParamsDataset = "skills" GetComputerUsageAnalyticsParamsDatasetSpaces GetComputerUsageAnalyticsParamsDataset = "spaces" GetComputerUsageAnalyticsParamsDatasetTaskDurations GetComputerUsageAnalyticsParamsDataset = "task_durations" GetComputerUsageAnalyticsParamsDatasetWorkflows GetComputerUsageAnalyticsParamsDataset = "workflows" )
Defines values for GetComputerUsageAnalyticsParamsDataset.
func (GetComputerUsageAnalyticsParamsDataset) Valid ¶
func (e GetComputerUsageAnalyticsParamsDataset) Valid() bool
Valid indicates whether the value is a known member of the GetComputerUsageAnalyticsParamsDataset enum.
type GetComputerUsageAnalyticsResponse ¶
type GetComputerUsageAnalyticsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ComputerUsageResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *AnalyticsErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *AnalyticsErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *AnalyticsErrorResponse
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *AnalyticsErrorResponse
}
func ParseGetComputerUsageAnalyticsResponse ¶
func ParseGetComputerUsageAnalyticsResponse(rsp *http.Response) (*GetComputerUsageAnalyticsResponse, error)
ParseGetComputerUsageAnalyticsResponse parses an HTTP response from a GetComputerUsageAnalyticsWithResponse call
func (GetComputerUsageAnalyticsResponse) ContentType ¶
func (r GetComputerUsageAnalyticsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetComputerUsageAnalyticsResponse) GetBody ¶
func (r GetComputerUsageAnalyticsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetComputerUsageAnalyticsResponse) GetJSON200 ¶
func (r GetComputerUsageAnalyticsResponse) GetJSON200() *ComputerUsageResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetComputerUsageAnalyticsResponse) GetJSON400 ¶
func (r GetComputerUsageAnalyticsResponse) GetJSON400() *AnalyticsErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetComputerUsageAnalyticsResponse) GetJSON401 ¶
func (r GetComputerUsageAnalyticsResponse) GetJSON401() *AnalyticsErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetComputerUsageAnalyticsResponse) GetJSON404 ¶
func (r GetComputerUsageAnalyticsResponse) GetJSON404() *AnalyticsErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetComputerUsageAnalyticsResponse) GetJSON429 ¶
func (r GetComputerUsageAnalyticsResponse) GetJSON429() *AnalyticsErrorResponse
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetComputerUsageAnalyticsResponse) Status ¶
func (r GetComputerUsageAnalyticsResponse) Status() string
Status returns HTTPResponse.Status
func (GetComputerUsageAnalyticsResponse) StatusCode ¶
func (r GetComputerUsageAnalyticsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetComputerUsageAnalyticsV2Params ¶
type GetComputerUsageAnalyticsV2Params struct {
// Dataset The dataset to query. query_volume at this grain carries Feature, Project and Comet breakdowns, but not Model or Model Family.
Dataset GetComputerUsageAnalyticsV2ParamsDataset `form:"dataset" json:"dataset"`
// GroupBy The dimension to group each day's usage by. user_email is currently the only supported value.
GroupBy GetComputerUsageAnalyticsV2ParamsGroupBy `form:"group_by" json:"group_by"`
// StartTime Window start in unix seconds (UTC), inclusive. Snapped down to the day grid, so the first day can include usage from before this time.
StartTime int `form:"start_time" json:"start_time"`
// EndTime Window end in unix seconds (UTC), exclusive. Defaults to now; future values are capped at now. The window may span at most 90 days.
EndTime *int `form:"end_time,omitempty" json:"end_time,omitempty"`
// Limit Member rows per page. Default 50, max 100. A page can span multiple days.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Page Opaque pagination cursor from a previous response's next_page. Keep the other query parameters unchanged to continue the same report.
Page *string `form:"page,omitempty" json:"page,omitempty"`
}
GetComputerUsageAnalyticsV2Params defines parameters for GetComputerUsageAnalyticsV2.
type GetComputerUsageAnalyticsV2ParamsDataset ¶
type GetComputerUsageAnalyticsV2ParamsDataset string
GetComputerUsageAnalyticsV2ParamsDataset defines parameters for GetComputerUsageAnalyticsV2.
const ( GetComputerUsageAnalyticsV2ParamsDatasetCreditUsage GetComputerUsageAnalyticsV2ParamsDataset = "credit_usage" GetComputerUsageAnalyticsV2ParamsDatasetQueryVolume GetComputerUsageAnalyticsV2ParamsDataset = "query_volume" )
Defines values for GetComputerUsageAnalyticsV2ParamsDataset.
func (GetComputerUsageAnalyticsV2ParamsDataset) Valid ¶
func (e GetComputerUsageAnalyticsV2ParamsDataset) Valid() bool
Valid indicates whether the value is a known member of the GetComputerUsageAnalyticsV2ParamsDataset enum.
type GetComputerUsageAnalyticsV2ParamsGroupBy ¶
type GetComputerUsageAnalyticsV2ParamsGroupBy string
GetComputerUsageAnalyticsV2ParamsGroupBy defines parameters for GetComputerUsageAnalyticsV2.
const (
GetComputerUsageAnalyticsV2ParamsGroupByUserEmail GetComputerUsageAnalyticsV2ParamsGroupBy = "user_email"
)
Defines values for GetComputerUsageAnalyticsV2ParamsGroupBy.
func (GetComputerUsageAnalyticsV2ParamsGroupBy) Valid ¶
func (e GetComputerUsageAnalyticsV2ParamsGroupBy) Valid() bool
Valid indicates whether the value is a known member of the GetComputerUsageAnalyticsV2ParamsGroupBy enum.
type GetComputerUsageAnalyticsV2Response ¶
type GetComputerUsageAnalyticsV2Response struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ComputerUsageV2Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *AnalyticsErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *AnalyticsErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *AnalyticsErrorResponse
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *AnalyticsErrorResponse
}
func ParseGetComputerUsageAnalyticsV2Response ¶
func ParseGetComputerUsageAnalyticsV2Response(rsp *http.Response) (*GetComputerUsageAnalyticsV2Response, error)
ParseGetComputerUsageAnalyticsV2Response parses an HTTP response from a GetComputerUsageAnalyticsV2WithResponse call
func (GetComputerUsageAnalyticsV2Response) ContentType ¶
func (r GetComputerUsageAnalyticsV2Response) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetComputerUsageAnalyticsV2Response) GetBody ¶
func (r GetComputerUsageAnalyticsV2Response) GetBody() []byte
GetBody returns the raw response body bytes
func (GetComputerUsageAnalyticsV2Response) GetJSON200 ¶
func (r GetComputerUsageAnalyticsV2Response) GetJSON200() *ComputerUsageV2Response
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetComputerUsageAnalyticsV2Response) GetJSON400 ¶
func (r GetComputerUsageAnalyticsV2Response) GetJSON400() *AnalyticsErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetComputerUsageAnalyticsV2Response) GetJSON401 ¶
func (r GetComputerUsageAnalyticsV2Response) GetJSON401() *AnalyticsErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetComputerUsageAnalyticsV2Response) GetJSON404 ¶
func (r GetComputerUsageAnalyticsV2Response) GetJSON404() *AnalyticsErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetComputerUsageAnalyticsV2Response) GetJSON429 ¶
func (r GetComputerUsageAnalyticsV2Response) GetJSON429() *AnalyticsErrorResponse
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetComputerUsageAnalyticsV2Response) Status ¶
func (r GetComputerUsageAnalyticsV2Response) Status() string
Status returns HTTPResponse.Status
func (GetComputerUsageAnalyticsV2Response) StatusCode ¶
func (r GetComputerUsageAnalyticsV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFileContentResponse ¶ added in v0.2.0
type GetFileContentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ApiError
}
func ParseGetFileContentResponse ¶ added in v0.2.0
func ParseGetFileContentResponse(rsp *http.Response) (*GetFileContentResponse, error)
ParseGetFileContentResponse parses an HTTP response from a GetFileContentWithResponse call
func (GetFileContentResponse) ContentType ¶ added in v0.2.0
func (r GetFileContentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFileContentResponse) GetBody ¶ added in v0.2.0
func (r GetFileContentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFileContentResponse) GetJSON404 ¶ added in v0.2.0
func (r GetFileContentResponse) GetJSON404() *ApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetFileContentResponse) Status ¶ added in v0.2.0
func (r GetFileContentResponse) Status() string
Status returns HTTPResponse.Status
func (GetFileContentResponse) StatusCode ¶ added in v0.2.0
func (r GetFileContentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFileResponse ¶ added in v0.2.0
type GetFileResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BatchFile
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ApiError
}
func ParseGetFileResponse ¶ added in v0.2.0
func ParseGetFileResponse(rsp *http.Response) (*GetFileResponse, error)
ParseGetFileResponse parses an HTTP response from a GetFileWithResponse call
func (GetFileResponse) ContentType ¶ added in v0.2.0
func (r GetFileResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFileResponse) GetBody ¶ added in v0.2.0
func (r GetFileResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFileResponse) GetJSON200 ¶ added in v0.2.0
func (r GetFileResponse) GetJSON200() *BatchFile
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetFileResponse) GetJSON404 ¶ added in v0.2.0
func (r GetFileResponse) GetJSON404() *ApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetFileResponse) Status ¶ added in v0.2.0
func (r GetFileResponse) Status() string
Status returns HTTPResponse.Status
func (GetFileResponse) StatusCode ¶ added in v0.2.0
func (r GetFileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMonitorResponse ¶ added in v0.5.0
type GetMonitorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Monitor
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *MonitorNotFound
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetMonitorResponse429Headers
}
func ParseGetMonitorResponse ¶ added in v0.5.0
func ParseGetMonitorResponse(rsp *http.Response) (*GetMonitorResponse, error)
ParseGetMonitorResponse parses an HTTP response from a GetMonitorWithResponse call
func (GetMonitorResponse) ContentType ¶ added in v0.5.0
func (r GetMonitorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMonitorResponse) GetBody ¶ added in v0.5.0
func (r GetMonitorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetMonitorResponse) GetJSON200 ¶ added in v0.5.0
func (r GetMonitorResponse) GetJSON200() *Monitor
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetMonitorResponse) GetJSON401 ¶ added in v0.5.0
func (r GetMonitorResponse) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetMonitorResponse) GetJSON403 ¶ added in v0.5.0
func (r GetMonitorResponse) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetMonitorResponse) GetJSON404 ¶ added in v0.5.0
func (r GetMonitorResponse) GetJSON404() *MonitorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetMonitorResponse) GetJSON429 ¶ added in v0.5.0
func (r GetMonitorResponse) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetMonitorResponse) GetJSON502 ¶ added in v0.5.0
func (r GetMonitorResponse) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (GetMonitorResponse) GetJSON503 ¶ added in v0.5.0
func (r GetMonitorResponse) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetMonitorResponse) GetJSON504 ¶ added in v0.5.0
func (r GetMonitorResponse) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (GetMonitorResponse) Status ¶ added in v0.5.0
func (r GetMonitorResponse) Status() string
Status returns HTTPResponse.Status
func (GetMonitorResponse) StatusCode ¶ added in v0.5.0
func (r GetMonitorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMonitorResponse429Headers ¶ added in v0.5.0
type GetMonitorResponse429Headers struct {
RetryAfter *int
}
GetMonitorResponse429Headers the declared response headers of an HTTP 429 response for GetMonitor
type GetMonitorRunResponse ¶ added in v0.5.0
type GetMonitorRunResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MonitorRun
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *MonitorApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetMonitorRunResponse429Headers
}
func ParseGetMonitorRunResponse ¶ added in v0.5.0
func ParseGetMonitorRunResponse(rsp *http.Response) (*GetMonitorRunResponse, error)
ParseGetMonitorRunResponse parses an HTTP response from a GetMonitorRunWithResponse call
func (GetMonitorRunResponse) ContentType ¶ added in v0.5.0
func (r GetMonitorRunResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMonitorRunResponse) GetBody ¶ added in v0.5.0
func (r GetMonitorRunResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetMonitorRunResponse) GetJSON200 ¶ added in v0.5.0
func (r GetMonitorRunResponse) GetJSON200() *MonitorRun
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetMonitorRunResponse) GetJSON401 ¶ added in v0.5.0
func (r GetMonitorRunResponse) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetMonitorRunResponse) GetJSON403 ¶ added in v0.5.0
func (r GetMonitorRunResponse) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetMonitorRunResponse) GetJSON404 ¶ added in v0.5.0
func (r GetMonitorRunResponse) GetJSON404() *MonitorApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetMonitorRunResponse) GetJSON429 ¶ added in v0.5.0
func (r GetMonitorRunResponse) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetMonitorRunResponse) GetJSON502 ¶ added in v0.5.0
func (r GetMonitorRunResponse) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (GetMonitorRunResponse) GetJSON503 ¶ added in v0.5.0
func (r GetMonitorRunResponse) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetMonitorRunResponse) GetJSON504 ¶ added in v0.5.0
func (r GetMonitorRunResponse) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (GetMonitorRunResponse) Status ¶ added in v0.5.0
func (r GetMonitorRunResponse) Status() string
Status returns HTTPResponse.Status
func (GetMonitorRunResponse) StatusCode ¶ added in v0.5.0
func (r GetMonitorRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMonitorRunResponse429Headers ¶ added in v0.5.0
type GetMonitorRunResponse429Headers struct {
RetryAfter *int
}
GetMonitorRunResponse429Headers the declared response headers of an HTTP 429 response for GetMonitorRun
type GetSkillParams ¶
type GetSkillParams struct {
// Revision Opaque revision token; when omitted, the active revision is used
Revision *Revision `form:"revision,omitempty" json:"revision,omitempty"`
}
GetSkillParams defines parameters for GetSkill.
type GetSkillResponse ¶
type GetSkillResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ManagedSkill
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *ApiError
}
func ParseGetSkillResponse ¶
func ParseGetSkillResponse(rsp *http.Response) (*GetSkillResponse, error)
ParseGetSkillResponse parses an HTTP response from a GetSkillWithResponse call
func (GetSkillResponse) ContentType ¶
func (r GetSkillResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSkillResponse) GetBody ¶
func (r GetSkillResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSkillResponse) GetJSON200 ¶
func (r GetSkillResponse) GetJSON200() *ManagedSkill
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSkillResponse) GetJSON400 ¶
func (r GetSkillResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetSkillResponse) GetJSON404 ¶
func (r GetSkillResponse) GetJSON404() *ApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetSkillResponse) GetJSON429 ¶
func (r GetSkillResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (GetSkillResponse) GetJSON502 ¶
func (r GetSkillResponse) GetJSON502() *ApiError
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (GetSkillResponse) Status ¶
func (r GetSkillResponse) Status() string
Status returns HTTPResponse.Status
func (GetSkillResponse) StatusCode ¶
func (r GetSkillResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HTTPValidationError ¶
type HTTPValidationError struct {
Detail *[]ValidationError `json:"detail,omitempty"`
}
HTTPValidationError defines model for HTTPValidationError.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImageResult ¶
type ImageResult struct {
// Height Height of the image in pixels
Height int64 `json:"height"`
// ImageUrl URL of the image
ImageUrl string `json:"image_url"`
// OriginUrl Original URL where the image was found
OriginUrl string `json:"origin_url"`
// Title Title or description of the image
Title *string `json:"title,omitempty"`
// Width Width of the image in pixels
Width int64 `json:"width"`
}
ImageResult A single image search result
type ImageSearchFilters ¶
type ImageSearchFilters struct {
DomainFilter *[]string `json:"domain_filter,omitempty"`
FormatFilter *[]ImageSearchFiltersFormatFilter `json:"format_filter,omitempty"`
SafeSearch *bool `json:"safe_search,omitempty"`
}
ImageSearchFilters defines model for ImageSearchFilters.
type ImageSearchFiltersFormatFilter ¶
type ImageSearchFiltersFormatFilter string
ImageSearchFiltersFormatFilter defines model for ImageSearchFilters.FormatFilter.
const ( ImageSearchFiltersFormatFilterBmp ImageSearchFiltersFormatFilter = "bmp" ImageSearchFiltersFormatFilterGif ImageSearchFiltersFormatFilter = "gif" ImageSearchFiltersFormatFilterJpeg ImageSearchFiltersFormatFilter = "jpeg" ImageSearchFiltersFormatFilterPng ImageSearchFiltersFormatFilter = "png" ImageSearchFiltersFormatFilterSvg ImageSearchFiltersFormatFilter = "svg" ImageSearchFiltersFormatFilterWebp ImageSearchFiltersFormatFilter = "webp" )
Defines values for ImageSearchFiltersFormatFilter.
func (ImageSearchFiltersFormatFilter) Valid ¶
func (e ImageSearchFiltersFormatFilter) Valid() bool
Valid indicates whether the value is a known member of the ImageSearchFiltersFormatFilter enum.
type ImageSearchQueriesEvent ¶
type ImageSearchQueriesEvent struct {
CallId string `json:"call_id"`
Queries []string `json:"queries"`
SequenceNumber int64 `json:"sequence_number"`
Thought *string `json:"thought,omitempty"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
ImageSearchQueriesEvent defines model for ImageSearchQueriesEvent.
type ImageSearchResultsEvent ¶
type ImageSearchResultsEvent struct {
CallId string `json:"call_id"`
Results []ImageResult `json:"results"`
SequenceNumber int64 `json:"sequence_number"`
Thought *string `json:"thought,omitempty"`
// Type SSE event type discriminator
Type EventType `json:"type"`
// Usage Token usage and cost information for a Responses API request
Usage *ResponsesUsage `json:"usage,omitempty"`
}
ImageSearchResultsEvent defines model for ImageSearchResultsEvent.
type ImageSearchResultsOutputItem ¶
type ImageSearchResultsOutputItem struct {
// Error Present when image search failed. The value is image_search_failed.
Error *string `json:"error,omitempty"`
Queries *[]string `json:"queries,omitempty"`
Results []ImageResult `json:"results"`
Type ImageSearchResultsOutputItemType `json:"type"`
}
ImageSearchResultsOutputItem defines model for ImageSearchResultsOutputItem.
type ImageSearchResultsOutputItemType ¶
type ImageSearchResultsOutputItemType string
ImageSearchResultsOutputItemType defines model for ImageSearchResultsOutputItem.Type.
const (
ImageSearchResultsOutputItemTypeImageSearchResults ImageSearchResultsOutputItemType = "image_search_results"
)
Defines values for ImageSearchResultsOutputItemType.
func (ImageSearchResultsOutputItemType) Valid ¶
func (e ImageSearchResultsOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the ImageSearchResultsOutputItemType enum.
type ImageSearchTool ¶
type ImageSearchTool struct {
Filters *ImageSearchFilters `json:"filters,omitempty"`
MaxResults *int32 `json:"max_results,omitempty"`
Type ImageSearchToolType `json:"type"`
}
ImageSearchTool defines model for ImageSearchTool.
type ImageSearchToolType ¶
type ImageSearchToolType string
ImageSearchToolType defines model for ImageSearchTool.Type.
const (
ImageSearchToolTypeImageSearch ImageSearchToolType = "image_search"
)
Defines values for ImageSearchToolType.
func (ImageSearchToolType) Valid ¶
func (e ImageSearchToolType) Valid() bool
Valid indicates whether the value is a known member of the ImageSearchToolType enum.
type InlineSkill ¶
type InlineSkill struct {
// Description Short discovery description, limited to 1,024 UTF-8 bytes.
Description string `json:"description"`
// Instructions Instructions returned by load_skill, limited to 65,536 UTF-8 bytes per skill and 262,144 bytes across the request.
Instructions string `json:"instructions"`
// Name Request-scoped lowercase ASCII name separated by single hyphens.
Name string `json:"name"`
Type InlineSkillType `json:"type"`
}
InlineSkill defines model for InlineSkill.
type InlineSkillType ¶
type InlineSkillType string
InlineSkillType defines model for InlineSkill.Type.
const (
InlineSkillTypeInline InlineSkillType = "inline"
)
Defines values for InlineSkillType.
func (InlineSkillType) Valid ¶
func (e InlineSkillType) Valid() bool
Valid indicates whether the value is a known member of the InlineSkillType enum.
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
Input Input content - either a string or array of input items
func (*Input) FromInput0 ¶
FromInput0 overwrites any union data inside the Input as the provided Input0
func (*Input) FromInput1 ¶
FromInput1 overwrites any union data inside the Input as the provided Input1
func (Input) MarshalJSON ¶
func (*Input) MergeInput0 ¶
MergeInput0 performs a merge with any union data inside the Input, using the provided Input0
func (*Input) MergeInput1 ¶
MergeInput1 performs a merge with any union data inside the Input, using the provided Input1
func (*Input) UnmarshalJSON ¶
type InputContent ¶
type InputContent struct {
// contains filtered or unexported fields
}
InputContent Message content - either a string or array of content parts
func (InputContent) AsInputContent0 ¶
func (t InputContent) AsInputContent0() (InputContent0, error)
AsInputContent0 returns the union data inside the InputContent as a InputContent0
func (InputContent) AsInputContent1 ¶
func (t InputContent) AsInputContent1() (InputContent1, error)
AsInputContent1 returns the union data inside the InputContent as a InputContent1
func (*InputContent) FromInputContent0 ¶
func (t *InputContent) FromInputContent0(v InputContent0) error
FromInputContent0 overwrites any union data inside the InputContent as the provided InputContent0
func (*InputContent) FromInputContent1 ¶
func (t *InputContent) FromInputContent1(v InputContent1) error
FromInputContent1 overwrites any union data inside the InputContent as the provided InputContent1
func (InputContent) MarshalJSON ¶
func (t InputContent) MarshalJSON() ([]byte, error)
func (*InputContent) MergeInputContent0 ¶
func (t *InputContent) MergeInputContent0(v InputContent0) error
MergeInputContent0 performs a merge with any union data inside the InputContent, using the provided InputContent0
func (*InputContent) MergeInputContent1 ¶
func (t *InputContent) MergeInputContent1(v InputContent1) error
MergeInputContent1 performs a merge with any union data inside the InputContent, using the provided InputContent1
func (*InputContent) UnmarshalJSON ¶
func (t *InputContent) UnmarshalJSON(b []byte) error
type InputContent1 ¶
type InputContent1 = []InputContentPart
InputContent1 defines model for InputContent.1.
type InputContentPart ¶
type InputContentPart struct {
// FileData For input_file, standard base64 or a base64 data URI. Exactly one of file_data and file_url is required. Native Agent input allows at most 30 document parts and 50 MiB combined decoded inline bytes, including inherited documents. Provider limits also apply. Browser tools are unavailable with document inputs or document continuations.
FileData *string `json:"file_data,omitempty"`
// FileUrl For input_file, public HTTPS URL fetched by the provider. Exactly one of file_data and file_url is required. Defaults to PDF unless filename supplies another supported extension; the remote content must match. No file_id support. Browser tools are unavailable with document inputs or document continuations.
FileUrl *string `json:"file_url,omitempty"`
// Filename Optional input_file basename, at most 255 UTF-8 bytes. Its extension must match the document type.
Filename *string `json:"filename,omitempty"`
ImageUrl *string `json:"image_url,omitempty"`
// PromptCacheBreakpoint Marks the end of a reusable prompt prefix on an `input_text` part. Marks replace the default cache breakpoints. A request allows up to 4 marks in `explicit` mode and up to 3 in `implicit` mode; more marks, or a mark on another part type, return HTTP 400.
PromptCacheBreakpoint *PromptCacheBreakpoint `json:"prompt_cache_breakpoint,omitempty"`
Text *string `json:"text,omitempty"`
Type InputContentPartType `json:"type"`
}
InputContentPart defines model for InputContentPart.
type InputContentPartType ¶
type InputContentPartType string
InputContentPartType defines model for InputContentPart.Type.
const ( InputContentPartTypeInputFile InputContentPartType = "input_file" InputContentPartTypeInputImage InputContentPartType = "input_image" InputContentPartTypeInputText InputContentPartType = "input_text" )
Defines values for InputContentPartType.
func (InputContentPartType) Valid ¶
func (e InputContentPartType) Valid() bool
Valid indicates whether the value is a known member of the InputContentPartType enum.
type InputItem ¶
type InputItem struct {
// contains filtered or unexported fields
}
InputItem defines model for InputItem.
func (InputItem) AsFunctionCallInput ¶
func (t InputItem) AsFunctionCallInput() (FunctionCallInput, error)
AsFunctionCallInput returns the union data inside the InputItem as a FunctionCallInput
func (InputItem) AsFunctionCallOutputInput ¶
func (t InputItem) AsFunctionCallOutputInput() (FunctionCallOutputInput, error)
AsFunctionCallOutputInput returns the union data inside the InputItem as a FunctionCallOutputInput
func (InputItem) AsInputMessage ¶
func (t InputItem) AsInputMessage() (InputMessage, error)
AsInputMessage returns the union data inside the InputItem as a InputMessage
func (InputItem) AsMcpApprovalRequestInput ¶
func (t InputItem) AsMcpApprovalRequestInput() (McpApprovalRequestInput, error)
AsMcpApprovalRequestInput returns the union data inside the InputItem as a McpApprovalRequestInput
func (InputItem) AsMcpApprovalResponseInput ¶
func (t InputItem) AsMcpApprovalResponseInput() (McpApprovalResponseInput, error)
AsMcpApprovalResponseInput returns the union data inside the InputItem as a McpApprovalResponseInput
func (InputItem) AsMcpCallInput ¶
func (t InputItem) AsMcpCallInput() (McpCallInput, error)
AsMcpCallInput returns the union data inside the InputItem as a McpCallInput
func (InputItem) AsMcpListToolsInput ¶
func (t InputItem) AsMcpListToolsInput() (McpListToolsInput, error)
AsMcpListToolsInput returns the union data inside the InputItem as a McpListToolsInput
func (InputItem) Discriminator ¶
func (*InputItem) FromFunctionCallInput ¶
func (t *InputItem) FromFunctionCallInput(v FunctionCallInput) error
FromFunctionCallInput overwrites any union data inside the InputItem as the provided FunctionCallInput
func (*InputItem) FromFunctionCallOutputInput ¶
func (t *InputItem) FromFunctionCallOutputInput(v FunctionCallOutputInput) error
FromFunctionCallOutputInput overwrites any union data inside the InputItem as the provided FunctionCallOutputInput
func (*InputItem) FromInputMessage ¶
func (t *InputItem) FromInputMessage(v InputMessage) error
FromInputMessage overwrites any union data inside the InputItem as the provided InputMessage
func (*InputItem) FromMcpApprovalRequestInput ¶
func (t *InputItem) FromMcpApprovalRequestInput(v McpApprovalRequestInput) error
FromMcpApprovalRequestInput overwrites any union data inside the InputItem as the provided McpApprovalRequestInput
func (*InputItem) FromMcpApprovalResponseInput ¶
func (t *InputItem) FromMcpApprovalResponseInput(v McpApprovalResponseInput) error
FromMcpApprovalResponseInput overwrites any union data inside the InputItem as the provided McpApprovalResponseInput
func (*InputItem) FromMcpCallInput ¶
func (t *InputItem) FromMcpCallInput(v McpCallInput) error
FromMcpCallInput overwrites any union data inside the InputItem as the provided McpCallInput
func (*InputItem) FromMcpListToolsInput ¶
func (t *InputItem) FromMcpListToolsInput(v McpListToolsInput) error
FromMcpListToolsInput overwrites any union data inside the InputItem as the provided McpListToolsInput
func (InputItem) MarshalJSON ¶
func (*InputItem) MergeFunctionCallInput ¶
func (t *InputItem) MergeFunctionCallInput(v FunctionCallInput) error
MergeFunctionCallInput performs a merge with any union data inside the InputItem, using the provided FunctionCallInput
func (*InputItem) MergeFunctionCallOutputInput ¶
func (t *InputItem) MergeFunctionCallOutputInput(v FunctionCallOutputInput) error
MergeFunctionCallOutputInput performs a merge with any union data inside the InputItem, using the provided FunctionCallOutputInput
func (*InputItem) MergeInputMessage ¶
func (t *InputItem) MergeInputMessage(v InputMessage) error
MergeInputMessage performs a merge with any union data inside the InputItem, using the provided InputMessage
func (*InputItem) MergeMcpApprovalRequestInput ¶
func (t *InputItem) MergeMcpApprovalRequestInput(v McpApprovalRequestInput) error
MergeMcpApprovalRequestInput performs a merge with any union data inside the InputItem, using the provided McpApprovalRequestInput
func (*InputItem) MergeMcpApprovalResponseInput ¶
func (t *InputItem) MergeMcpApprovalResponseInput(v McpApprovalResponseInput) error
MergeMcpApprovalResponseInput performs a merge with any union data inside the InputItem, using the provided McpApprovalResponseInput
func (*InputItem) MergeMcpCallInput ¶
func (t *InputItem) MergeMcpCallInput(v McpCallInput) error
MergeMcpCallInput performs a merge with any union data inside the InputItem, using the provided McpCallInput
func (*InputItem) MergeMcpListToolsInput ¶
func (t *InputItem) MergeMcpListToolsInput(v McpListToolsInput) error
MergeMcpListToolsInput performs a merge with any union data inside the InputItem, using the provided McpListToolsInput
func (*InputItem) UnmarshalJSON ¶
func (InputItem) ValueByDiscriminator ¶
type InputMessage ¶
type InputMessage struct {
// Content Message content - either a string or array of content parts
Content InputContent `json:"content"`
Role InputMessageRole `json:"role"`
Type InputMessageType `json:"type"`
}
InputMessage defines model for InputMessage.
type InputMessageRole ¶
type InputMessageRole string
InputMessageRole defines model for InputMessage.Role.
const ( InputMessageRoleAssistant InputMessageRole = "assistant" InputMessageRoleDeveloper InputMessageRole = "developer" InputMessageRoleSystem InputMessageRole = "system" InputMessageRoleUser InputMessageRole = "user" )
Defines values for InputMessageRole.
func (InputMessageRole) Valid ¶
func (e InputMessageRole) Valid() bool
Valid indicates whether the value is a known member of the InputMessageRole enum.
type InputMessageType ¶
type InputMessageType string
InputMessageType defines model for InputMessage.Type.
const (
InputMessageTypeMessage InputMessageType = "message"
)
Defines values for InputMessageType.
func (InputMessageType) Valid ¶
func (e InputMessageType) Valid() bool
Valid indicates whether the value is a known member of the InputMessageType enum.
type InputTokensDetails ¶
type InputTokensDetails struct {
CacheCreationInputTokens *int64 `json:"cache_creation_input_tokens,omitempty"`
CacheReadInputTokens *int64 `json:"cache_read_input_tokens,omitempty"`
CachedTokens int64 `json:"cached_tokens"`
}
InputTokensDetails defines model for InputTokensDetails.
type JSONSchema ¶
type JSONSchema struct {
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty"`
Schema map[string]interface{} `json:"schema"`
Strict *bool `json:"strict,omitempty"`
}
JSONSchema defines model for JSONSchema.
type JSONSchemaFormat ¶
type JSONSchemaFormat struct {
// Description Optional description of the schema
Description *string `json:"description,omitempty"`
// Name Name of the schema (1-64 alphanumeric chars)
Name string `json:"name"`
// Schema The JSON schema object
Schema map[string]interface{} `json:"schema"`
// Strict Whether to enforce strict schema validation
Strict *bool `json:"strict,omitempty"`
}
JSONSchemaFormat Defines a JSON schema for structured output validation
type ListAdminAuditEventsV1AdminAuditEventsGetParams ¶ added in v0.3.0
type ListAdminAuditEventsV1AdminAuditEventsGetParams struct {
// Limit Maximum number of events to return in one page.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// StartTime Inclusive lower bound on `created_at`, as an RFC 3339 timestamp with a timezone offset (for example `2026-10-01T00:00:00Z`). Defaults to 30 days before `end_time`.
StartTime *time.Time `form:"start_time,omitempty" json:"start_time,omitempty"`
// EndTime Inclusive upper bound on `created_at`, as an RFC 3339 timestamp with a timezone offset. Defaults to the current time. The window between `start_time` and `end_time` cannot exceed 30 days.
EndTime *time.Time `form:"end_time,omitempty" json:"end_time,omitempty"`
// EventType Return only events of this type, for example `member_role_changed`. Required to see `audit_events_accessed` events, which the default feed omits.
EventType *string `form:"event_type,omitempty" json:"event_type,omitempty"`
// AfterId Opaque cursor. Return events older than this cursor; pass the previous page's `last_id` to fetch the next older page. Cannot be combined with `before_id`.
AfterId *string `form:"after_id,omitempty" json:"after_id,omitempty"`
// BeforeId Opaque cursor. Return events newer than this cursor; pass a saved `first_id` to fetch only events that arrived since. Cannot be combined with `after_id`.
BeforeId *string `form:"before_id,omitempty" json:"before_id,omitempty"`
}
ListAdminAuditEventsV1AdminAuditEventsGetParams defines parameters for ListAdminAuditEventsV1AdminAuditEventsGet.
type ListAdminAuditEventsV1AdminAuditEventsGetResponse ¶ added in v0.3.0
type ListAdminAuditEventsV1AdminAuditEventsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuditEventsResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *AdminApiErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *AdminApiErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *AdminApiErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *AdminApiErrorResponse
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *AdminApiErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *AdminApiErrorResponse
}
func ParseListAdminAuditEventsV1AdminAuditEventsGetResponse ¶ added in v0.3.0
func ParseListAdminAuditEventsV1AdminAuditEventsGetResponse(rsp *http.Response) (*ListAdminAuditEventsV1AdminAuditEventsGetResponse, error)
ParseListAdminAuditEventsV1AdminAuditEventsGetResponse parses an HTTP response from a ListAdminAuditEventsV1AdminAuditEventsGetWithResponse call
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) ContentType ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetBody ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON200 ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON200() *AuditEventsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON400 ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON400() *AdminApiErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON401 ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON401() *AdminApiErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON403 ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON403() *AdminApiErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON404 ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON404() *AdminApiErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON429 ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON429() *AdminApiErrorResponse
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON503 ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) GetJSON503() *AdminApiErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) Status ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) Status() string
Status returns HTTPResponse.Status
func (ListAdminAuditEventsV1AdminAuditEventsGetResponse) StatusCode ¶ added in v0.3.0
func (r ListAdminAuditEventsV1AdminAuditEventsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAgentFilesResponse ¶
type ListAgentFilesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ResponseFileList
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
// Error Error information returned when a request fails
Error *ErrorInfo `json:"error,omitempty"`
}
}
func ParseListAgentFilesResponse ¶
func ParseListAgentFilesResponse(rsp *http.Response) (*ListAgentFilesResponse, error)
ParseListAgentFilesResponse parses an HTTP response from a ListAgentFilesWithResponse call
func (ListAgentFilesResponse) ContentType ¶
func (r ListAgentFilesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAgentFilesResponse) GetBody ¶
func (r ListAgentFilesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAgentFilesResponse) GetJSON200 ¶
func (r ListAgentFilesResponse) GetJSON200() *ResponseFileList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAgentFilesResponse) GetJSON404 ¶
func (r ListAgentFilesResponse) GetJSON404() *struct { // Error Error information returned when a request fails Error *ErrorInfo `json:"error,omitempty"` }
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListAgentFilesResponse) Status ¶
func (r ListAgentFilesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAgentFilesResponse) StatusCode ¶
func (r ListAgentFilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAsyncApiChatCompletionsResponse ¶
type ListAsyncApiChatCompletionsResponse struct {
NextToken *string `json:"next_token,omitempty"`
Requests []AsyncApiChatCompletionsResponseSummary `json:"requests"`
}
ListAsyncApiChatCompletionsResponse defines model for ListAsyncApiChatCompletionsResponse.
type ListAsyncChatCompletionsAsyncChatCompletionsGetResponse ¶
type ListAsyncChatCompletionsAsyncChatCompletionsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListAsyncApiChatCompletionsResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseListAsyncChatCompletionsAsyncChatCompletionsGetResponse ¶
func ParseListAsyncChatCompletionsAsyncChatCompletionsGetResponse(rsp *http.Response) (*ListAsyncChatCompletionsAsyncChatCompletionsGetResponse, error)
ParseListAsyncChatCompletionsAsyncChatCompletionsGetResponse parses an HTTP response from a ListAsyncChatCompletionsAsyncChatCompletionsGetWithResponse call
func (ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) ContentType ¶
func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) GetBody ¶
func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) GetJSON200 ¶
func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) GetJSON200() *ListAsyncApiChatCompletionsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) GetJSON422 ¶
func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) Status ¶
func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) Status() string
Status returns HTTPResponse.Status
func (ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) StatusCode ¶
func (r ListAsyncChatCompletionsAsyncChatCompletionsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListBatchesParams ¶ added in v0.2.0
type ListBatchesParams struct {
// Limit Maximum number of batches to return
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// AfterId Batch id to start after, the `last_id` of the previous page
AfterId *string `form:"after_id,omitempty" json:"after_id,omitempty"`
}
ListBatchesParams defines parameters for ListBatches.
type ListBatchesResponse ¶ added in v0.2.0
type ListBatchesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BatchList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
}
func ParseListBatchesResponse ¶ added in v0.2.0
func ParseListBatchesResponse(rsp *http.Response) (*ListBatchesResponse, error)
ParseListBatchesResponse parses an HTTP response from a ListBatchesWithResponse call
func (ListBatchesResponse) ContentType ¶ added in v0.2.0
func (r ListBatchesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListBatchesResponse) GetBody ¶ added in v0.2.0
func (r ListBatchesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListBatchesResponse) GetJSON200 ¶ added in v0.2.0
func (r ListBatchesResponse) GetJSON200() *BatchList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListBatchesResponse) GetJSON400 ¶ added in v0.2.0
func (r ListBatchesResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListBatchesResponse) GetJSON429 ¶ added in v0.2.0
func (r ListBatchesResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListBatchesResponse) Status ¶ added in v0.2.0
func (r ListBatchesResponse) Status() string
Status returns HTTPResponse.Status
func (ListBatchesResponse) StatusCode ¶ added in v0.2.0
func (r ListBatchesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListFilesParams ¶ added in v0.2.0
type ListFilesParams struct {
// Limit Maximum number of files to return
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// AfterId File id to start after, the `last_id` of the previous page
AfterId *string `form:"after_id,omitempty" json:"after_id,omitempty"`
// Order Sort order, `desc` for newest first
Order *ListFilesParamsOrder `form:"order,omitempty" json:"order,omitempty"`
// Purpose Only list files with this purpose, `batch` for uploads or `batch_output` for output and error files
Purpose *ListFilesParamsPurpose `form:"purpose,omitempty" json:"purpose,omitempty"`
}
ListFilesParams defines parameters for ListFiles.
type ListFilesParamsOrder ¶ added in v0.2.0
type ListFilesParamsOrder string
ListFilesParamsOrder defines parameters for ListFiles.
const ( ListFilesParamsOrderAsc ListFilesParamsOrder = "asc" ListFilesParamsOrderDesc ListFilesParamsOrder = "desc" )
Defines values for ListFilesParamsOrder.
func (ListFilesParamsOrder) Valid ¶ added in v0.2.0
func (e ListFilesParamsOrder) Valid() bool
Valid indicates whether the value is a known member of the ListFilesParamsOrder enum.
type ListFilesParamsPurpose ¶ added in v0.2.0
type ListFilesParamsPurpose string
ListFilesParamsPurpose defines parameters for ListFiles.
const ( ListFilesParamsPurposeBatch ListFilesParamsPurpose = "batch" ListFilesParamsPurposeBatchOutput ListFilesParamsPurpose = "batch_output" )
Defines values for ListFilesParamsPurpose.
func (ListFilesParamsPurpose) Valid ¶ added in v0.2.0
func (e ListFilesParamsPurpose) Valid() bool
Valid indicates whether the value is a known member of the ListFilesParamsPurpose enum.
type ListFilesResponse ¶ added in v0.2.0
type ListFilesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BatchFileList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
}
func ParseListFilesResponse ¶ added in v0.2.0
func ParseListFilesResponse(rsp *http.Response) (*ListFilesResponse, error)
ParseListFilesResponse parses an HTTP response from a ListFilesWithResponse call
func (ListFilesResponse) ContentType ¶ added in v0.2.0
func (r ListFilesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListFilesResponse) GetBody ¶ added in v0.2.0
func (r ListFilesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListFilesResponse) GetJSON200 ¶ added in v0.2.0
func (r ListFilesResponse) GetJSON200() *BatchFileList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListFilesResponse) GetJSON400 ¶ added in v0.2.0
func (r ListFilesResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListFilesResponse) GetJSON429 ¶ added in v0.2.0
func (r ListFilesResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListFilesResponse) Status ¶ added in v0.2.0
func (r ListFilesResponse) Status() string
Status returns HTTPResponse.Status
func (ListFilesResponse) StatusCode ¶ added in v0.2.0
func (r ListFilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListModelsResponse ¶
type ListModelsResponse struct {
// Data A list of model objects.
Data []Model `json:"data"`
// Object The object type, which is always `list`.
Object ListModelsResponseObject `json:"object"`
}
ListModelsResponse Response from the List Models endpoint. Contains a list of available models.
type ListModelsResponse2 ¶
type ListModelsResponse2 struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListModelsResponse
}
func ParseListModelsResponse2 ¶
func ParseListModelsResponse2(rsp *http.Response) (*ListModelsResponse2, error)
ParseListModelsResponse2 parses an HTTP response from a ListModelsWithResponse call
func (ListModelsResponse2) ContentType ¶
func (r ListModelsResponse2) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListModelsResponse2) GetBody ¶
func (r ListModelsResponse2) GetBody() []byte
GetBody returns the raw response body bytes
func (ListModelsResponse2) GetJSON200 ¶
func (r ListModelsResponse2) GetJSON200() *ListModelsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListModelsResponse2) Status ¶
func (r ListModelsResponse2) Status() string
Status returns HTTPResponse.Status
func (ListModelsResponse2) StatusCode ¶
func (r ListModelsResponse2) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListModelsResponseObject ¶
type ListModelsResponseObject string
ListModelsResponseObject The object type, which is always `list`.
const (
ListModelsResponseObjectList ListModelsResponseObject = "list"
)
Defines values for ListModelsResponseObject.
func (ListModelsResponseObject) Valid ¶
func (e ListModelsResponseObject) Valid() bool
Valid indicates whether the value is a known member of the ListModelsResponseObject enum.
type ListMonitorRunsParams ¶ added in v0.5.0
type ListMonitorRunsParams struct {
// Limit Maximum number of objects to return. Values above 100 are treated as 100.
Limit *MonitorLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Id to start after, the last `data[].id` of the previous page
After *MonitorAfter `form:"after,omitempty" json:"after,omitempty"`
}
ListMonitorRunsParams defines parameters for ListMonitorRuns.
type ListMonitorRunsResponse ¶ added in v0.5.0
type ListMonitorRunsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MonitorRunList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *MonitorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *MonitorNotFound
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListMonitorRunsResponse429Headers
}
func ParseListMonitorRunsResponse ¶ added in v0.5.0
func ParseListMonitorRunsResponse(rsp *http.Response) (*ListMonitorRunsResponse, error)
ParseListMonitorRunsResponse parses an HTTP response from a ListMonitorRunsWithResponse call
func (ListMonitorRunsResponse) ContentType ¶ added in v0.5.0
func (r ListMonitorRunsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMonitorRunsResponse) GetBody ¶ added in v0.5.0
func (r ListMonitorRunsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListMonitorRunsResponse) GetJSON200 ¶ added in v0.5.0
func (r ListMonitorRunsResponse) GetJSON200() *MonitorRunList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListMonitorRunsResponse) GetJSON400 ¶ added in v0.5.0
func (r ListMonitorRunsResponse) GetJSON400() *MonitorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListMonitorRunsResponse) GetJSON401 ¶ added in v0.5.0
func (r ListMonitorRunsResponse) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListMonitorRunsResponse) GetJSON403 ¶ added in v0.5.0
func (r ListMonitorRunsResponse) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListMonitorRunsResponse) GetJSON404 ¶ added in v0.5.0
func (r ListMonitorRunsResponse) GetJSON404() *MonitorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListMonitorRunsResponse) GetJSON429 ¶ added in v0.5.0
func (r ListMonitorRunsResponse) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListMonitorRunsResponse) GetJSON502 ¶ added in v0.5.0
func (r ListMonitorRunsResponse) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (ListMonitorRunsResponse) GetJSON503 ¶ added in v0.5.0
func (r ListMonitorRunsResponse) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListMonitorRunsResponse) GetJSON504 ¶ added in v0.5.0
func (r ListMonitorRunsResponse) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (ListMonitorRunsResponse) Status ¶ added in v0.5.0
func (r ListMonitorRunsResponse) Status() string
Status returns HTTPResponse.Status
func (ListMonitorRunsResponse) StatusCode ¶ added in v0.5.0
func (r ListMonitorRunsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMonitorRunsResponse429Headers ¶ added in v0.5.0
type ListMonitorRunsResponse429Headers struct {
RetryAfter *int
}
ListMonitorRunsResponse429Headers the declared response headers of an HTTP 429 response for ListMonitorRuns
type ListMonitorsParams ¶ added in v0.5.0
type ListMonitorsParams struct {
// Limit Maximum number of objects to return. Values above 100 are treated as 100.
Limit *MonitorLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Id to start after, the last `data[].id` of the previous page
After *MonitorAfter `form:"after,omitempty" json:"after,omitempty"`
}
ListMonitorsParams defines parameters for ListMonitors.
type ListMonitorsResponse ¶ added in v0.5.0
type ListMonitorsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MonitorList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *MonitorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListMonitorsResponse429Headers
}
func ParseListMonitorsResponse ¶ added in v0.5.0
func ParseListMonitorsResponse(rsp *http.Response) (*ListMonitorsResponse, error)
ParseListMonitorsResponse parses an HTTP response from a ListMonitorsWithResponse call
func (ListMonitorsResponse) ContentType ¶ added in v0.5.0
func (r ListMonitorsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMonitorsResponse) GetBody ¶ added in v0.5.0
func (r ListMonitorsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListMonitorsResponse) GetJSON200 ¶ added in v0.5.0
func (r ListMonitorsResponse) GetJSON200() *MonitorList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListMonitorsResponse) GetJSON400 ¶ added in v0.5.0
func (r ListMonitorsResponse) GetJSON400() *MonitorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListMonitorsResponse) GetJSON401 ¶ added in v0.5.0
func (r ListMonitorsResponse) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListMonitorsResponse) GetJSON403 ¶ added in v0.5.0
func (r ListMonitorsResponse) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListMonitorsResponse) GetJSON429 ¶ added in v0.5.0
func (r ListMonitorsResponse) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListMonitorsResponse) GetJSON502 ¶ added in v0.5.0
func (r ListMonitorsResponse) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (ListMonitorsResponse) GetJSON503 ¶ added in v0.5.0
func (r ListMonitorsResponse) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListMonitorsResponse) GetJSON504 ¶ added in v0.5.0
func (r ListMonitorsResponse) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (ListMonitorsResponse) Status ¶ added in v0.5.0
func (r ListMonitorsResponse) Status() string
Status returns HTTPResponse.Status
func (ListMonitorsResponse) StatusCode ¶ added in v0.5.0
func (r ListMonitorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMonitorsResponse429Headers ¶ added in v0.5.0
type ListMonitorsResponse429Headers struct {
RetryAfter *int
}
ListMonitorsResponse429Headers the declared response headers of an HTTP 429 response for ListMonitors
type ListSkillRevisionsParams ¶
type ListSkillRevisionsParams struct {
// Limit Maximum items to return, 1 to 200; defaults to 50
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// PageToken Opaque token from a previous response's `next_page_token`
PageToken *PageToken `form:"page_token,omitempty" json:"page_token,omitempty"`
}
ListSkillRevisionsParams defines parameters for ListSkillRevisions.
type ListSkillRevisionsResponse ¶
type ListSkillRevisionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SkillRevisionList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *ApiError
}
func ParseListSkillRevisionsResponse ¶
func ParseListSkillRevisionsResponse(rsp *http.Response) (*ListSkillRevisionsResponse, error)
ParseListSkillRevisionsResponse parses an HTTP response from a ListSkillRevisionsWithResponse call
func (ListSkillRevisionsResponse) ContentType ¶
func (r ListSkillRevisionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSkillRevisionsResponse) GetBody ¶
func (r ListSkillRevisionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSkillRevisionsResponse) GetJSON200 ¶
func (r ListSkillRevisionsResponse) GetJSON200() *SkillRevisionList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSkillRevisionsResponse) GetJSON400 ¶
func (r ListSkillRevisionsResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSkillRevisionsResponse) GetJSON404 ¶
func (r ListSkillRevisionsResponse) GetJSON404() *ApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSkillRevisionsResponse) GetJSON429 ¶
func (r ListSkillRevisionsResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListSkillRevisionsResponse) GetJSON502 ¶
func (r ListSkillRevisionsResponse) GetJSON502() *ApiError
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (ListSkillRevisionsResponse) Status ¶
func (r ListSkillRevisionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSkillRevisionsResponse) StatusCode ¶
func (r ListSkillRevisionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSkillsParams ¶
type ListSkillsParams struct {
// Limit Maximum items to return, 1 to 200; defaults to 50
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// PageToken Opaque token from a previous response's `next_page_token`
PageToken *PageToken `form:"page_token,omitempty" json:"page_token,omitempty"`
}
ListSkillsParams defines parameters for ListSkills.
type ListSkillsResponse ¶
type ListSkillsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SkillList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *ApiError
}
func ParseListSkillsResponse ¶
func ParseListSkillsResponse(rsp *http.Response) (*ListSkillsResponse, error)
ParseListSkillsResponse parses an HTTP response from a ListSkillsWithResponse call
func (ListSkillsResponse) ContentType ¶
func (r ListSkillsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSkillsResponse) GetBody ¶
func (r ListSkillsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSkillsResponse) GetJSON200 ¶
func (r ListSkillsResponse) GetJSON200() *SkillList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSkillsResponse) GetJSON400 ¶
func (r ListSkillsResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSkillsResponse) GetJSON429 ¶
func (r ListSkillsResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ListSkillsResponse) GetJSON502 ¶
func (r ListSkillsResponse) GetJSON502() *ApiError
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (ListSkillsResponse) Status ¶
func (r ListSkillsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSkillsResponse) StatusCode ¶
func (r ListSkillsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LocateAnswer ¶ added in v0.3.6
type LocateAnswer struct {
// Spans The spans that match the question, as verbatim substrings of `state`. `[]` when nothing matches.
Spans []LocateSpan `json:"spans"`
// Type Always `locate`.
Type LocateAnswerType `json:"type"`
}
LocateAnswer Answer to a `locate` question: the matching spans of `state`.
type LocateAnswerType ¶ added in v0.3.6
type LocateAnswerType string
LocateAnswerType Always `locate`.
const (
LocateAnswerTypeLocate LocateAnswerType = "locate"
)
Defines values for LocateAnswerType.
func (LocateAnswerType) Valid ¶ added in v0.3.6
func (e LocateAnswerType) Valid() bool
Valid indicates whether the value is a known member of the LocateAnswerType enum.
type LocateQuestion ¶ added in v0.3.6
type LocateQuestion struct {
// Instructions What to find in `state`: a short label such as `email address` or an instruction such as `Extract the city where the job is located.` Whitespace-only text returns `400`.
Instructions string `json:"instructions"`
// Type Always `locate`.
Type LocateQuestionType `json:"type"`
}
LocateQuestion A question that returns the spans of `state` that match `instructions`. It ignores `criteria` and any other member besides `type` and `instructions`. It needs a v1.3 model: `pplx-decider-v1.3`, `pplx-decider-flash-v1.3`, or the `-latest` aliases that select them; any other model returns `400`. A request with a `locate` question needs a string `state`, no images, and at most 128 questions; with `web_grounding`, a page URL `state` returns `400` with `param` `state`. Other question types can be sent in the same request. Locate was trained on inputs of up to 8k tokens and evaluated on inputs of up to 32k tokens; longer inputs are accepted, but span quality on them is not measured.
type LocateQuestionType ¶ added in v0.3.6
type LocateQuestionType string
LocateQuestionType Always `locate`.
const (
LocateQuestionTypeLocate LocateQuestionType = "locate"
)
Defines values for LocateQuestionType.
func (LocateQuestionType) Valid ¶ added in v0.3.6
func (e LocateQuestionType) Valid() bool
Valid indicates whether the value is a known member of the LocateQuestionType enum.
type LocateSpan ¶ added in v0.3.6
type LocateSpan struct {
// End Offset after the last character of the span in `state`, in Unicode characters (exclusive).
End int `json:"end"`
// Score The model's score for the span. Higher means more certainty.
Score float64 `json:"score"`
// SearchResult With `web_grounding`, present when the span was found in search evidence: the index of that result in `search_results`. `start`, `end`, and `text` then refer to that result's `snippet`.
SearchResult *int `json:"search_result,omitempty"`
// Start Offset of the first character of the span in `state`, in Unicode characters.
Start int `json:"start"`
// Text The text of `state` from `start` to `end`.
Text string `json:"text"`
}
LocateSpan One span of `state`.
type ManagedSkill ¶
type ManagedSkill struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
// Description Skill description, read from the bundle's `SKILL.md`
Description *string `json:"description,omitempty"`
// LatestRevision Opaque token of the skill's current latest revision; pass as expected_revision to update or delete
LatestRevision *string `json:"latest_revision,omitempty"`
// Name Skill name, read from the bundle's `SKILL.md`
Name *string `json:"name,omitempty"`
// Revision Opaque token of the revision returned in this response; the latest revision, or the specific one requested via `revision`
Revision *string `json:"revision,omitempty"`
// SkillId Skill identifier
SkillId string `json:"skill_id"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
ManagedSkill defines model for ManagedSkill.
type McpApprovalRequestInput ¶
type McpApprovalRequestInput struct {
// Arguments JSON-encoded arguments the model proposed.
Arguments string `json:"arguments"`
// ConnectorId Present only when the request came from a connector.
ConnectorId *string `json:"connector_id,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
ServerLabel string `json:"server_label"`
// ThoughtSignature Base64-encoded signature for thinking models.
ThoughtSignature *string `json:"thought_signature,omitempty"`
Type McpApprovalRequestInputType `json:"type"`
}
McpApprovalRequestInput A prior `mcp_approval_request` output item resent as manual history. Resend `thought_signature` unchanged when it is present.
type McpApprovalRequestInputType ¶
type McpApprovalRequestInputType string
McpApprovalRequestInputType defines model for McpApprovalRequestInput.Type.
const (
McpApprovalRequestInputTypeMcpApprovalRequest McpApprovalRequestInputType = "mcp_approval_request"
)
Defines values for McpApprovalRequestInputType.
func (McpApprovalRequestInputType) Valid ¶
func (e McpApprovalRequestInputType) Valid() bool
Valid indicates whether the value is a known member of the McpApprovalRequestInputType enum.
type McpApprovalRequestOutputItem ¶
type McpApprovalRequestOutputItem struct {
// Arguments JSON-encoded arguments the model proposed.
Arguments string `json:"arguments"`
// ConnectorId Present only when the item originated from a connector.
ConnectorId *string `json:"connector_id,omitempty"`
// Id Opaque approval request ID. Return it as `approval_request_id` when submitting a decision.
Id string `json:"id"`
Name string `json:"name"`
ServerLabel string `json:"server_label"`
// ThoughtSignature Base64-encoded signature for thinking models. Resend it unchanged in manual history.
ThoughtSignature *string `json:"thought_signature,omitempty"`
Type McpApprovalRequestOutputItemType `json:"type"`
}
McpApprovalRequestOutputItem One MCP or connector tool call waiting for the application to approve or deny it. The call has not run. Answer with an `mcp_approval_response` input item in the next request.
type McpApprovalRequestOutputItemType ¶
type McpApprovalRequestOutputItemType string
McpApprovalRequestOutputItemType defines model for McpApprovalRequestOutputItem.Type.
const (
McpApprovalRequestOutputItemTypeMcpApprovalRequest McpApprovalRequestOutputItemType = "mcp_approval_request"
)
Defines values for McpApprovalRequestOutputItemType.
func (McpApprovalRequestOutputItemType) Valid ¶
func (e McpApprovalRequestOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the McpApprovalRequestOutputItemType enum.
type McpApprovalResponseInput ¶
type McpApprovalResponseInput struct {
// ApprovalRequestId The `id` of the `mcp_approval_request` being answered.
ApprovalRequestId string `json:"approval_request_id"`
// Approve When true, run the recorded call. When false, skip it and tell the model the user denied the action.
Approve bool `json:"approve"`
// Id Optional client item ID. It is ignored for correlation; use `approval_request_id` instead.
Id *string `json:"id,omitempty"`
// Reason Optional text returned to the model with a denial. A string is rejected when `approve` is true; null is accepted.
Reason *string `json:"reason,omitempty"`
Type McpApprovalResponseInputType `json:"type"`
}
McpApprovalResponseInput The application's decision for one pending `mcp_approval_request`. Every pending request in the selected history needs exactly one decision before any approved call runs.
type McpApprovalResponseInputType ¶
type McpApprovalResponseInputType string
McpApprovalResponseInputType defines model for McpApprovalResponseInput.Type.
const (
McpApprovalResponseInputTypeMcpApprovalResponse McpApprovalResponseInputType = "mcp_approval_response"
)
Defines values for McpApprovalResponseInputType.
func (McpApprovalResponseInputType) Valid ¶
func (e McpApprovalResponseInputType) Valid() bool
Valid indicates whether the value is a known member of the McpApprovalResponseInputType enum.
type McpCallInput ¶
type McpCallInput struct {
// ApprovalRequestId The approval request this call resolved, or null for an automatic call.
ApprovalRequestId *string `json:"approval_request_id,omitempty"`
Arguments string `json:"arguments"`
ConnectorId *string `json:"connector_id,omitempty"`
Error *string `json:"error,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
Output *string `json:"output,omitempty"`
ServerLabel string `json:"server_label"`
Type McpCallInputType `json:"type"`
}
McpCallInput A prior `mcp_call` output item resent as manual history. It records history and does not trigger execution.
type McpCallInputType ¶
type McpCallInputType string
McpCallInputType defines model for McpCallInput.Type.
const (
McpCallInputTypeMcpCall McpCallInputType = "mcp_call"
)
Defines values for McpCallInputType.
func (McpCallInputType) Valid ¶
func (e McpCallInputType) Valid() bool
Valid indicates whether the value is a known member of the McpCallInputType enum.
type McpCallOutputItem ¶
type McpCallOutputItem struct {
// ApprovalRequestId The `mcp_approval_request` ID this call resolved; null when the call ran automatically.
ApprovalRequestId *string `json:"approval_request_id,omitempty"`
// Arguments JSON-encoded arguments the model passed.
Arguments string `json:"arguments"`
// ConnectorId Present only when the item originated from a managed connector.
ConnectorId *string `json:"connector_id,omitempty"`
// Error The failure string when the call failed (also returned to the model in-band); null on success, matching OpenAI's mcp_call.
Error *string `json:"error,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
// Output Tool output text; empty when the call failed.
Output *string `json:"output,omitempty"`
ServerLabel string `json:"server_label"`
Type McpCallOutputItemType `json:"type"`
}
McpCallOutputItem One tool call executed against an external MCP server, modeled on OpenAI's mcp_call item.
type McpCallOutputItemType ¶
type McpCallOutputItemType string
McpCallOutputItemType defines model for McpCallOutputItem.Type.
const (
McpCallOutputItemTypeMcpCall McpCallOutputItemType = "mcp_call"
)
Defines values for McpCallOutputItemType.
func (McpCallOutputItemType) Valid ¶
func (e McpCallOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the McpCallOutputItemType enum.
type McpListToolsInput ¶
type McpListToolsInput struct {
Error *string `json:"error,omitempty"`
Id *string `json:"id,omitempty"`
ServerLabel *string `json:"server_label,omitempty"`
Tools *[]McpToolDef `json:"tools,omitempty"`
Type McpListToolsInputType `json:"type"`
}
McpListToolsInput A prior `mcp_list_tools` output item resent as history. The API accepts and drops it because tool discovery runs again.
type McpListToolsInputType ¶
type McpListToolsInputType string
McpListToolsInputType defines model for McpListToolsInput.Type.
const (
McpListToolsInputTypeMcpListTools McpListToolsInputType = "mcp_list_tools"
)
Defines values for McpListToolsInputType.
func (McpListToolsInputType) Valid ¶
func (e McpListToolsInputType) Valid() bool
Valid indicates whether the value is a known member of the McpListToolsInputType enum.
type McpListToolsOutputItem ¶
type McpListToolsOutputItem struct {
// ConnectorId Present only when the item originated from a managed connector.
ConnectorId *string `json:"connector_id,omitempty"`
// Error Present only when the server's tools could not be listed. Absent on success.
Error *string `json:"error,omitempty"`
Id string `json:"id"`
ServerLabel string `json:"server_label"`
Tools []McpToolDef `json:"tools"`
Type McpListToolsOutputItemType `json:"type"`
}
McpListToolsOutputItem Tools discovered on one external MCP server when the request starts. Matches OpenAI's mcp_list_tools item.
type McpListToolsOutputItemType ¶
type McpListToolsOutputItemType string
McpListToolsOutputItemType defines model for McpListToolsOutputItem.Type.
const (
McpListToolsOutputItemTypeMcpListTools McpListToolsOutputItemType = "mcp_list_tools"
)
Defines values for McpListToolsOutputItemType.
func (McpListToolsOutputItemType) Valid ¶
func (e McpListToolsOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the McpListToolsOutputItemType enum.
type McpTool ¶
type McpTool struct {
// AllowedTools Optional allowlist of tool names. Empty exposes all discovered tools.
AllowedTools *[]string `json:"allowed_tools,omitempty"`
// Authorization An access token passed to the remote MCP server for authentication. Provide the raw token value. Never logged or echoed.
Authorization *string `json:"authorization,omitempty"`
// DeferLoading When true, keeps discovered tool definitions out of the initial model context and lets the model load relevant schemas as needed. Defaults to false.
DeferLoading *bool `json:"defer_loading,omitempty"`
// Headers Extra request headers.
Headers *map[string]string `json:"headers,omitempty"`
// RequireApproval Approval policy for this server's tool calls. Omitted, null, or `"never"` runs every call automatically; `"always"` gates every call; the object form filters by exact tool name and reported read-only classification.
RequireApproval *RequireApproval `json:"require_approval,omitempty"`
// ServerLabel Unique per request, ^[a-zA-Z0-9_-]{1,64}$. Namespaces the server's tools.
ServerLabel string `json:"server_label"`
// ServerUrl HTTPS URL of the remote MCP server. Must be a Streamable HTTP MCP endpoint; the legacy SSE transport is not supported.
ServerUrl string `json:"server_url"`
Type McpToolType `json:"type"`
}
McpTool Connects a user-supplied remote MCP server. Agent API discovers the server's tools when the request starts and calls them like native tools. `defer_loading: true` keeps discovered definitions out of the initial model context and lets the model search, inspect, and call them as needed. The `require_approval` contract pauses gated calls for an application decision.
type McpToolDef ¶
type McpToolDef struct {
// Annotations Tool annotations. `read_only` is untrusted catalog metadata used by approval filters, not a side-effect guarantee.
Annotations *McpToolDef_Annotations `json:"annotations,omitempty"`
Description *string `json:"description,omitempty"`
// InputSchema The server's JSON Schema for the tool, passed through unmodified.
InputSchema map[string]interface{} `json:"input_schema"`
Name string `json:"name"`
}
McpToolDef One tool discovered on a remote MCP server.
type McpToolDef_Annotations ¶
type McpToolDef_Annotations struct {
ReadOnly *bool `json:"read_only,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
McpToolDef_Annotations Tool annotations. `read_only` is untrusted catalog metadata used by approval filters, not a side-effect guarantee.
func (McpToolDef_Annotations) Get ¶
func (a McpToolDef_Annotations) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for McpToolDef_Annotations. Returns the specified element and whether it was found
func (McpToolDef_Annotations) MarshalJSON ¶
func (a McpToolDef_Annotations) MarshalJSON() ([]byte, error)
Override default JSON handling for McpToolDef_Annotations to handle AdditionalProperties
func (*McpToolDef_Annotations) Set ¶
func (a *McpToolDef_Annotations) Set(fieldName string, value interface{})
Setter for additional properties for McpToolDef_Annotations
func (*McpToolDef_Annotations) UnmarshalJSON ¶
func (a *McpToolDef_Annotations) UnmarshalJSON(b []byte) error
Override default JSON handling for McpToolDef_Annotations to handle AdditionalProperties
type McpToolType ¶
type McpToolType string
McpToolType defines model for McpTool.Type.
const (
McpToolTypeMcp McpToolType = "mcp"
)
Defines values for McpToolType.
func (McpToolType) Valid ¶
func (e McpToolType) Valid() bool
Valid indicates whether the value is a known member of the McpToolType enum.
type MessageOutputItem ¶
type MessageOutputItem struct {
Content []ContentPart `json:"content"`
Id string `json:"id"`
// Role Role in a message
Role RoleType `json:"role"`
// Status Status of a response or output item
Status Status `json:"status"`
Type MessageOutputItemType `json:"type"`
}
MessageOutputItem defines model for MessageOutputItem.
type MessageOutputItemType ¶
type MessageOutputItemType string
MessageOutputItemType defines model for MessageOutputItem.Type.
const (
MessageOutputItemTypeMessage MessageOutputItemType = "message"
)
Defines values for MessageOutputItemType.
func (MessageOutputItemType) Valid ¶
func (e MessageOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the MessageOutputItemType enum.
type Model ¶
type Model struct {
// Created The Unix timestamp (in seconds) when the model was created.
Created int `json:"created"`
// Id The model identifier in `provider/model-name` format. Use this value as the `model` parameter in Agent API requests.
Id string `json:"id"`
// Object The object type, which is always `model`.
Object ModelObject `json:"object"`
// OwnedBy The provider that owns the model (e.g. `openai`, `anthropic`, `google`, `perplexity`, `xai`, `z-ai`, `moonshotai`, `nvidia`).
OwnedBy string `json:"owned_by"`
}
Model Represents a model available through the Agent API.
type ModelObject ¶
type ModelObject string
ModelObject The object type, which is always `model`.
const (
ModelObjectModel ModelObject = "model"
)
Defines values for ModelObject.
func (ModelObject) Valid ¶
func (e ModelObject) Valid() bool
Valid indicates whether the value is a known member of the ModelObject enum.
type Monitor ¶ added in v0.5.0
type Monitor struct {
// CreatedAt RFC 3339 in UTC with whole seconds, for example `2026-11-12T09:00:41Z`.
CreatedAt MonitorTimestamp `json:"created_at"`
// CurrentRunId The queued or running run
CurrentRunId *string `json:"current_run_id,omitempty"`
// Goal The changes you want the monitor to report. The service returns an empty string if you do not set a goal.
Goal string `json:"goal"`
// Id Opaque ID with the prefix `mon_`
Id string `json:"id"`
// LastRun The last finished run
LastRun *MonitorLastRun `json:"last_run,omitempty"`
// Metadata Up to 16 key value pairs; keys 1 to 64 characters, values up to 512 characters (Unicode code points, valid UTF-8). Echoed on every webhook.
Metadata MonitorMetadata `json:"metadata"`
Name string `json:"name"`
// NextRunAt Omitted while paused
NextRunAt *MonitorTimestamp `json:"next_run_at,omitempty"`
Object MonitorObject `json:"object"`
// PauseReason Only while `paused`
PauseReason *MonitorPauseReason `json:"pause_reason,omitempty"`
// Schedule When a monitor runs. New types may be added.
Schedule MonitorSchedule `json:"schedule"`
// Status `active` monitors run on their schedule; `paused` ones don't run until
// resumed. Whether a run is in flight is `current_run_id`, not the
// status. New statuses may be added; treat an unknown one as not
// running on its schedule.
Status MonitorStatus `json:"status"`
// Targets The targets for one monitor. An Agent monitor has exactly one target.
Targets []MonitorTarget `json:"targets"`
// UpdatedAt RFC 3339 in UTC with whole seconds, for example `2026-11-12T09:00:41Z`.
UpdatedAt MonitorTimestamp `json:"updated_at"`
Webhook *MonitorWebhook `json:"webhook,omitempty"`
}
Monitor Fields that do not apply are omitted, never null: `webhook`, `pause_reason`, `current_run_id`, `next_run_at` and `last_run`.
type MonitorAfter ¶ added in v0.5.0
type MonitorAfter = string
MonitorAfter defines model for MonitorAfter.
type MonitorAgentFilters ¶ added in v0.6.2
type MonitorAgentFilters struct {
// ExcludeDomains The domains the Agent monitor excludes, including their subdomains.
ExcludeDomains []MonitorDomain `json:"exclude_domains"`
// Freshness The freshness values for the target. When both values are present, the Agent monitor applies no date filter to the agent's web search.
Freshness []MonitorFreshness `json:"freshness"`
// IncludeDomains The allowed domains and their subdomains. If this list is empty, only `exclude_domains` can restrict which domains the Agent monitor uses.
IncludeDomains []MonitorDomain `json:"include_domains"`
}
MonitorAgentFilters defines model for MonitorAgentFilters.
type MonitorAgentFiltersRequest ¶ added in v0.6.2
type MonitorAgentFiltersRequest struct {
// ExcludeDomains Exclude up to 20 domains and their subdomains. Use bare host names such as `example.com`, without a scheme, path, or port. Do not put the same domain in both lists.
ExcludeDomains *[]string `json:"exclude_domains,omitempty"`
// Freshness Use only `published` to filter the agent's web search by publication date. Use only `updated` to filter it by last-updated date. The service applies no date filter if the field is absent, empty, or contains both values.
Freshness *[]MonitorFreshness `json:"freshness,omitempty"`
// IncludeDomains Allow up to 20 domains and their subdomains. Use bare host names such as `example.com`, without a scheme, path, or port.
IncludeDomains *[]string `json:"include_domains,omitempty"`
}
MonitorAgentFiltersRequest If either domain list is not empty, the service removes sources that the lists do not allow. An update needs at least one allowed source.
type MonitorAgentProfileReference ¶ added in v0.6.2
type MonitorAgentProfileReference struct {
// Id The profile ID, from 1 to 128 characters.
Id string `json:"id"`
Type MonitorAgentProfileReferenceType `json:"type"`
// Version The profile version, up to 128 bytes. Omit it to use the latest version.
Version *string `json:"version,omitempty"`
}
MonitorAgentProfileReference A saved Agent API profile.
type MonitorAgentProfileReferenceType ¶ added in v0.6.2
type MonitorAgentProfileReferenceType string
MonitorAgentProfileReferenceType defines model for MonitorAgentProfileReference.Type.
const (
MonitorAgentProfileReferenceTypeCustom MonitorAgentProfileReferenceType = "custom"
)
Defines values for MonitorAgentProfileReferenceType.
func (MonitorAgentProfileReferenceType) Valid ¶ added in v0.6.2
func (e MonitorAgentProfileReferenceType) Valid() bool
Valid indicates whether the value is a known member of the MonitorAgentProfileReferenceType enum.
type MonitorAgentSource ¶ added in v0.6.2
type MonitorAgentSource struct {
// PublishedAt The publication date of the source, if available.
PublishedAt *MonitorTimestamp `json:"published_at,omitempty"`
// Title The source title, if available.
Title *string `json:"title,omitempty"`
// Url The URL of the source.
Url string `json:"url"`
}
MonitorAgentSource defines model for MonitorAgentSource.
type MonitorAgentTarget ¶ added in v0.6.2
type MonitorAgentTarget struct {
// Effort The Agent API effort. The service omits this field when the target uses a `profile`.
Effort *string `json:"effort,omitempty"`
Filters MonitorAgentFilters `json:"filters"`
// Input The task for each run.
Input string `json:"input"`
// Profile A saved Agent API profile.
Profile *MonitorAgentProfileReference `json:"profile,omitempty"`
Type MonitorAgentTargetType `json:"type"`
}
MonitorAgentTarget An Agent monitor runs the task in `input` on each run. A run with no saved state is a first check. A first check can save at most one update about the current state. Later runs can save up to five updates.
type MonitorAgentTargetRequest ¶ added in v0.6.2
type MonitorAgentTargetRequest struct {
// Effort Set the effort to one of these values:
//
// - `low`
// - `medium`
// - `high`
//
// You can add `@latest` or `@<version>` to any value. If you omit `effort` and `profile`, the service uses `low`. Do not send both `effort` and `profile`.
Effort *string `json:"effort,omitempty"`
// Filters If either domain list is not empty, the service removes sources that the lists do not allow. An update needs at least one allowed source.
Filters *MonitorAgentFiltersRequest `json:"filters,omitempty"`
// Input The task for each run, from 1 to 4,000 characters.
Input string `json:"input"`
// Profile A saved Agent API profile.
Profile *MonitorAgentProfileReference `json:"profile,omitempty"`
Type MonitorAgentTargetRequestType `json:"type"`
}
MonitorAgentTargetRequest defines model for MonitorAgentTargetRequest.
type MonitorAgentTargetRequestType ¶ added in v0.6.2
type MonitorAgentTargetRequestType string
MonitorAgentTargetRequestType defines model for MonitorAgentTargetRequest.Type.
const (
MonitorAgentTargetRequestTypeAgent MonitorAgentTargetRequestType = "agent"
)
Defines values for MonitorAgentTargetRequestType.
func (MonitorAgentTargetRequestType) Valid ¶ added in v0.6.2
func (e MonitorAgentTargetRequestType) Valid() bool
Valid indicates whether the value is a known member of the MonitorAgentTargetRequestType enum.
type MonitorAgentTargetType ¶ added in v0.6.2
type MonitorAgentTargetType string
MonitorAgentTargetType defines model for MonitorAgentTarget.Type.
const (
MonitorAgentTargetTypeAgent MonitorAgentTargetType = "agent"
)
Defines values for MonitorAgentTargetType.
func (MonitorAgentTargetType) Valid ¶ added in v0.6.2
func (e MonitorAgentTargetType) Valid() bool
Valid indicates whether the value is a known member of the MonitorAgentTargetType enum.
type MonitorAgentUpdateChange ¶ added in v0.6.2
type MonitorAgentUpdateChange struct {
// Confidence The confidence score, from 0 to 1. Compare scores within one monitor.
Confidence float64 `json:"confidence"`
// Id Stable opaque ID with the prefix `chg_`. Use it to deduplicate the same finding across runs and webhook deliveries.
Id MonitorChangeId `json:"id"`
// Sources Up to five sources for the update. The list can be empty.
Sources []MonitorAgentSource `json:"sources"`
// Text The text of the update, up to 1,000 characters.
Text string `json:"text"`
// Title The update title, up to 200 characters.
Title string `json:"title"`
Type MonitorAgentUpdateChangeType `json:"type"`
// Url The URL of the first source. The service omits this field if `sources` is empty.
Url *string `json:"url,omitempty"`
}
MonitorAgentUpdateChange An update that the Agent monitor saved.
type MonitorAgentUpdateChangeType ¶ added in v0.6.2
type MonitorAgentUpdateChangeType string
MonitorAgentUpdateChangeType defines model for MonitorAgentUpdateChange.Type.
const (
MonitorAgentUpdateChangeTypeAgentUpdate MonitorAgentUpdateChangeType = "agent_update"
)
Defines values for MonitorAgentUpdateChangeType.
func (MonitorAgentUpdateChangeType) Valid ¶ added in v0.6.2
func (e MonitorAgentUpdateChangeType) Valid() bool
Valid indicates whether the value is a known member of the MonitorAgentUpdateChangeType enum.
type MonitorApiError ¶ added in v0.5.0
type MonitorApiError struct {
Error *struct {
// Code HTTP status code
Code int `json:"code"`
// Message Human-readable error message
Message string `json:"message"`
// Param Parameter that caused the error
Param *string `json:"param,omitempty"`
// Type Machine-readable error type. Monitors returns `invalid_request`
// (400), `invalid_api_key`, `token_expired` and
// `insufficient_quota` (401), `payment_required` (402),
// `forbidden` and `api_product_not_allowed` (403), `not_found`
// (404), `invalid_state` (409: the monitor's state does not allow
// the request; change it first), `conflict` (409: the monitor was
// modified concurrently; retry), `quota_exceeded` (409),
// `run_in_progress` (409), `request_rate_limit_exceeded` (429),
// `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503) and
// `gateway_timeout` (504). New types may be added; act on `code`
// for an unknown one.
Type MonitorApiErrorType `json:"type"`
} `json:"error,omitempty"`
}
MonitorApiError defines model for MonitorApiError.
type MonitorApiErrorType ¶ added in v0.5.0
type MonitorApiErrorType string
MonitorApiErrorType Machine-readable error type. Monitors returns `invalid_request` (400), `invalid_api_key`, `token_expired` and `insufficient_quota` (401), `payment_required` (402), `forbidden` and `api_product_not_allowed` (403), `not_found` (404), `invalid_state` (409: the monitor's state does not allow the request; change it first), `conflict` (409: the monitor was modified concurrently; retry), `quota_exceeded` (409), `run_in_progress` (409), `request_rate_limit_exceeded` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503) and `gateway_timeout` (504). New types may be added; act on `code` for an unknown one.
const ( MonitorApiErrorTypeApiProductNotAllowed MonitorApiErrorType = "api_product_not_allowed" MonitorApiErrorTypeBadGateway MonitorApiErrorType = "bad_gateway" MonitorApiErrorTypeConflict MonitorApiErrorType = "conflict" MonitorApiErrorTypeForbidden MonitorApiErrorType = "forbidden" MonitorApiErrorTypeGatewayTimeout MonitorApiErrorType = "gateway_timeout" MonitorApiErrorTypeInsufficientQuota MonitorApiErrorType = "insufficient_quota" MonitorApiErrorTypeInternalError MonitorApiErrorType = "internal_error" MonitorApiErrorTypeInvalidApiKey MonitorApiErrorType = "invalid_api_key" MonitorApiErrorTypeInvalidRequest MonitorApiErrorType = "invalid_request" MonitorApiErrorTypeInvalidState MonitorApiErrorType = "invalid_state" MonitorApiErrorTypeNotFound MonitorApiErrorType = "not_found" MonitorApiErrorTypePaymentRequired MonitorApiErrorType = "payment_required" MonitorApiErrorTypeQuotaExceeded MonitorApiErrorType = "quota_exceeded" MonitorApiErrorTypeRequestRateLimitExceeded MonitorApiErrorType = "request_rate_limit_exceeded" MonitorApiErrorTypeRunInProgress MonitorApiErrorType = "run_in_progress" MonitorApiErrorTypeTokenExpired MonitorApiErrorType = "token_expired" )
Defines values for MonitorApiErrorType.
func (MonitorApiErrorType) Valid ¶ added in v0.5.0
func (e MonitorApiErrorType) Valid() bool
Valid indicates whether the value is a known member of the MonitorApiErrorType enum.
type MonitorBadGateway ¶ added in v0.5.0
type MonitorBadGateway = MonitorApiError
MonitorBadGateway defines model for MonitorBadGateway.
type MonitorBadRequest ¶ added in v0.5.0
type MonitorBadRequest = MonitorApiError
MonitorBadRequest defines model for MonitorBadRequest.
type MonitorChange ¶ added in v0.5.0
type MonitorChange struct {
// contains filtered or unexported fields
}
MonitorChange A change that the monitor saved. Skip changes with a type you do not recognize.
func (MonitorChange) AsMonitorAgentUpdateChange ¶ added in v0.6.2
func (t MonitorChange) AsMonitorAgentUpdateChange() (MonitorAgentUpdateChange, error)
AsMonitorAgentUpdateChange returns the union data inside the MonitorChange as a MonitorAgentUpdateChange
func (MonitorChange) AsMonitorPageChange ¶ added in v0.5.0
func (t MonitorChange) AsMonitorPageChange() (MonitorPageChange, error)
AsMonitorPageChange returns the union data inside the MonitorChange as a MonitorPageChange
func (MonitorChange) AsMonitorSearchResultChange ¶ added in v0.5.0
func (t MonitorChange) AsMonitorSearchResultChange() (MonitorSearchResultChange, error)
AsMonitorSearchResultChange returns the union data inside the MonitorChange as a MonitorSearchResultChange
func (MonitorChange) Discriminator ¶ added in v0.5.0
func (t MonitorChange) Discriminator() (string, error)
func (*MonitorChange) FromMonitorAgentUpdateChange ¶ added in v0.6.2
func (t *MonitorChange) FromMonitorAgentUpdateChange(v MonitorAgentUpdateChange) error
FromMonitorAgentUpdateChange overwrites any union data inside the MonitorChange as the provided MonitorAgentUpdateChange
func (*MonitorChange) FromMonitorPageChange ¶ added in v0.5.0
func (t *MonitorChange) FromMonitorPageChange(v MonitorPageChange) error
FromMonitorPageChange overwrites any union data inside the MonitorChange as the provided MonitorPageChange
func (*MonitorChange) FromMonitorSearchResultChange ¶ added in v0.5.0
func (t *MonitorChange) FromMonitorSearchResultChange(v MonitorSearchResultChange) error
FromMonitorSearchResultChange overwrites any union data inside the MonitorChange as the provided MonitorSearchResultChange
func (MonitorChange) MarshalJSON ¶ added in v0.5.0
func (t MonitorChange) MarshalJSON() ([]byte, error)
func (*MonitorChange) MergeMonitorAgentUpdateChange ¶ added in v0.6.2
func (t *MonitorChange) MergeMonitorAgentUpdateChange(v MonitorAgentUpdateChange) error
MergeMonitorAgentUpdateChange performs a merge with any union data inside the MonitorChange, using the provided MonitorAgentUpdateChange
func (*MonitorChange) MergeMonitorPageChange ¶ added in v0.5.0
func (t *MonitorChange) MergeMonitorPageChange(v MonitorPageChange) error
MergeMonitorPageChange performs a merge with any union data inside the MonitorChange, using the provided MonitorPageChange
func (*MonitorChange) MergeMonitorSearchResultChange ¶ added in v0.5.0
func (t *MonitorChange) MergeMonitorSearchResultChange(v MonitorSearchResultChange) error
MergeMonitorSearchResultChange performs a merge with any union data inside the MonitorChange, using the provided MonitorSearchResultChange
func (*MonitorChange) UnmarshalJSON ¶ added in v0.5.0
func (t *MonitorChange) UnmarshalJSON(b []byte) error
func (MonitorChange) ValueByDiscriminator ¶ added in v0.5.0
func (t MonitorChange) ValueByDiscriminator() (interface{}, error)
type MonitorChangeId ¶ added in v0.5.0
type MonitorChangeId = string
MonitorChangeId Stable opaque ID with the prefix `chg_`. Use it to deduplicate the same finding across runs and webhook deliveries.
type MonitorConcurrentUpdate ¶ added in v0.5.0
type MonitorConcurrentUpdate = MonitorApiError
MonitorConcurrentUpdate defines model for MonitorConcurrentUpdate.
type MonitorCronSchedule ¶ added in v0.5.0
type MonitorCronSchedule struct {
// Cron Five-field cron expression, for example `0 9 * * 1-5`, without a `TZ=` prefix. Runs may be as often as every minute and at most 31 days apart, checked in `timezone`: monthly passes; quarterly, yearly, the 31st and leap-day schedules are rejected. Runs get up to 10 minutes of jitter.
Cron string `json:"cron"`
// Timezone IANA timezone, for example `Europe/Belgrade`. Optional in requests (default `UTC`); always returned.
Timezone string `json:"timezone"`
Type MonitorCronScheduleType `json:"type"`
}
MonitorCronSchedule defines model for MonitorCronSchedule.
type MonitorCronScheduleRequest ¶ added in v0.5.0
type MonitorCronScheduleRequest struct {
Cron string `json:"cron"`
Timezone *string `json:"timezone,omitempty"`
Type MonitorCronScheduleRequestType `json:"type"`
}
MonitorCronScheduleRequest defines model for MonitorCronScheduleRequest.
type MonitorCronScheduleRequestType ¶ added in v0.5.0
type MonitorCronScheduleRequestType string
MonitorCronScheduleRequestType defines model for MonitorCronScheduleRequest.Type.
const (
MonitorCronScheduleRequestTypeCron MonitorCronScheduleRequestType = "cron"
)
Defines values for MonitorCronScheduleRequestType.
func (MonitorCronScheduleRequestType) Valid ¶ added in v0.5.0
func (e MonitorCronScheduleRequestType) Valid() bool
Valid indicates whether the value is a known member of the MonitorCronScheduleRequestType enum.
type MonitorCronScheduleType ¶ added in v0.5.0
type MonitorCronScheduleType string
MonitorCronScheduleType defines model for MonitorCronSchedule.Type.
const (
MonitorCronScheduleTypeCron MonitorCronScheduleType = "cron"
)
Defines values for MonitorCronScheduleType.
func (MonitorCronScheduleType) Valid ¶ added in v0.5.0
func (e MonitorCronScheduleType) Valid() bool
Valid indicates whether the value is a known member of the MonitorCronScheduleType enum.
type MonitorCurrency ¶ added in v0.5.0
type MonitorCurrency string
MonitorCurrency Currency code for cost values
const (
MonitorCurrencyUSD MonitorCurrency = "USD"
)
Defines values for MonitorCurrency.
func (MonitorCurrency) Valid ¶ added in v0.5.0
func (e MonitorCurrency) Valid() bool
Valid indicates whether the value is a known member of the MonitorCurrency enum.
type MonitorDiff ¶ added in v0.5.0
type MonitorDiff struct {
// AddedLines Added lines in the whole diff, also when `unified` was cut
AddedLines int32 `json:"added_lines"`
// RemovedLines Removed lines in the whole diff, also when `unified` was cut
RemovedLines int32 `json:"removed_lines"`
// Truncated Whether `unified` was cut to fit the 24 KiB byte limit. It keeps
// complete lines where possible; an oversized line can be shortened
// at a UTF-8 character boundary. Its last hunk header counts only
// the lines shown.
Truncated bool `json:"truncated"`
// Unified Unified diff without file headers: `@@ -l,s +l,s @@` hunks with one
// context line, each line prefixed with ` `, `-` or `+` and ending in
// `\n`. Any diff library or viewer reads it. Limited to 24 KiB
// (24,576 UTF-8 bytes).
Unified string `json:"unified"`
}
MonitorDiff Text changes between two page checks.
type MonitorDomain ¶ added in v0.5.0
type MonitorDomain = string
MonitorDomain A bare host name, such as `example.com`.
type MonitorEventType ¶ added in v0.5.0
type MonitorEventType string
MonitorEventType `monitor.changes.detected`: a run succeeded with at least one change. `monitor.run.completed`: a run ended `succeeded` (with or without changes) or `failed`. `monitor.paused`: the service paused the monitor; your own pause sends nothing. `monitor.created`: the first successful run. Subscribe explicitly; it replaces `monitor.changes.detected` and `monitor.run.completed` for that run. New types may be added and are sent only to webhooks that list them in `events`.
const ( MonitorEventTypeMonitorChangesDetected MonitorEventType = "monitor.changes.detected" MonitorEventTypeMonitorCreated MonitorEventType = "monitor.created" MonitorEventTypeMonitorPaused MonitorEventType = "monitor.paused" MonitorEventTypeMonitorRunCompleted MonitorEventType = "monitor.run.completed" )
Defines values for MonitorEventType.
func (MonitorEventType) Valid ¶ added in v0.5.0
func (e MonitorEventType) Valid() bool
Valid indicates whether the value is a known member of the MonitorEventType enum.
type MonitorForbidden ¶ added in v0.5.0
type MonitorForbidden = MonitorApiError
MonitorForbidden defines model for MonitorForbidden.
type MonitorFreshness ¶ added in v0.5.0
type MonitorFreshness string
MonitorFreshness New values may be added; ignore unknown ones in responses.
const ( MonitorFreshnessPublished MonitorFreshness = "published" MonitorFreshnessUpdated MonitorFreshness = "updated" )
Defines values for MonitorFreshness.
func (MonitorFreshness) Valid ¶ added in v0.5.0
func (e MonitorFreshness) Valid() bool
Valid indicates whether the value is a known member of the MonitorFreshness enum.
type MonitorGatewayTimeout ¶ added in v0.5.0
type MonitorGatewayTimeout = MonitorApiError
MonitorGatewayTimeout defines model for MonitorGatewayTimeout.
type MonitorIdempotencyKey ¶ added in v0.5.0
type MonitorIdempotencyKey = string
MonitorIdempotencyKey defines model for MonitorIdempotencyKey.
type MonitorIntervalSchedule ¶ added in v0.5.0
type MonitorIntervalSchedule struct {
// Interval A whole number of minutes, hours, days or weeks (`30m`, `6h`,
// `1d`, `2w`), from `1m` to `31d`. Responses use the largest exact
// unit, so `60m` reads back as `1h`. Runs get up to 10% jitter.
Interval string `json:"interval"`
Type MonitorIntervalScheduleType `json:"type"`
}
MonitorIntervalSchedule defines model for MonitorIntervalSchedule.
type MonitorIntervalScheduleRequest ¶ added in v0.5.0
type MonitorIntervalScheduleRequest struct {
// Interval A whole number of minutes, hours, days or weeks (`30m`, `6h`,
// `1d`, `2w`), from `1m` to `31d`. Runs get up to 10% jitter.
Interval string `json:"interval"`
Type MonitorIntervalScheduleRequestType `json:"type"`
}
MonitorIntervalScheduleRequest defines model for MonitorIntervalScheduleRequest.
type MonitorIntervalScheduleRequestType ¶ added in v0.5.0
type MonitorIntervalScheduleRequestType string
MonitorIntervalScheduleRequestType defines model for MonitorIntervalScheduleRequest.Type.
const (
MonitorIntervalScheduleRequestTypeInterval MonitorIntervalScheduleRequestType = "interval"
)
Defines values for MonitorIntervalScheduleRequestType.
func (MonitorIntervalScheduleRequestType) Valid ¶ added in v0.5.0
func (e MonitorIntervalScheduleRequestType) Valid() bool
Valid indicates whether the value is a known member of the MonitorIntervalScheduleRequestType enum.
type MonitorIntervalScheduleType ¶ added in v0.5.0
type MonitorIntervalScheduleType string
MonitorIntervalScheduleType defines model for MonitorIntervalSchedule.Type.
const (
MonitorIntervalScheduleTypeInterval MonitorIntervalScheduleType = "interval"
)
Defines values for MonitorIntervalScheduleType.
func (MonitorIntervalScheduleType) Valid ¶ added in v0.5.0
func (e MonitorIntervalScheduleType) Valid() bool
Valid indicates whether the value is a known member of the MonitorIntervalScheduleType enum.
type MonitorInvalidState ¶ added in v0.5.0
type MonitorInvalidState = MonitorApiError
MonitorInvalidState defines model for MonitorInvalidState.
type MonitorJudge ¶ added in v0.5.0
type MonitorJudge struct {
// Threshold Minimum score, above 0 and up to 1, that every judging check must reach for a result or page change to be kept. A higher value keeps fewer changes.
Threshold *float64 `json:"threshold,omitempty"`
}
MonitorJudge Judging settings for this target. Present only when the monitor overrides the default threshold.
type MonitorJudgeRequest ¶ added in v0.5.0
type MonitorJudgeRequest struct {
// Threshold Minimum score, above 0 and up to 1, that every judging check must reach for a result or page change to be kept. A higher value keeps fewer changes.
Threshold *float64 `json:"threshold,omitempty"`
}
MonitorJudgeRequest Judging settings for this target.
type MonitorLastRun ¶ added in v0.5.0
type MonitorLastRun struct {
ChangeCount int32 `json:"change_count"`
// FinishedAt RFC 3339 in UTC with whole seconds, for example `2026-11-12T09:00:41Z`.
FinishedAt MonitorTimestamp `json:"finished_at"`
Id string `json:"id"`
// Status `queued` is a manual run that has not started. `skipped` is a run that did not start, including a queued run cancelled by pausing the monitor. New statuses may be added; treat an unknown one as not finished.
Status MonitorRunStatus `json:"status"`
}
MonitorLastRun The last finished run
type MonitorLimit ¶ added in v0.5.0
type MonitorLimit = int
MonitorLimit defines model for MonitorLimit.
type MonitorList ¶ added in v0.5.0
type MonitorList struct {
Data []Monitor `json:"data"`
// HasMore Pass the last `data[].id` as `after` for the next page
HasMore bool `json:"has_more"`
Object MonitorListObject `json:"object"`
}
MonitorList defines model for MonitorList.
type MonitorListObject ¶ added in v0.5.0
type MonitorListObject string
MonitorListObject defines model for MonitorList.Object.
const (
MonitorListObjectList MonitorListObject = "list"
)
Defines values for MonitorListObject.
func (MonitorListObject) Valid ¶ added in v0.5.0
func (e MonitorListObject) Valid() bool
Valid indicates whether the value is a known member of the MonitorListObject enum.
type MonitorMetadata ¶ added in v0.5.0
MonitorMetadata Up to 16 key value pairs; keys 1 to 64 characters, values up to 512 characters (Unicode code points, valid UTF-8). Echoed on every webhook.
type MonitorNotFound ¶ added in v0.5.0
type MonitorNotFound = MonitorApiError
MonitorNotFound defines model for MonitorNotFound.
type MonitorObject ¶ added in v0.5.0
type MonitorObject string
MonitorObject defines model for Monitor.Object.
const (
MonitorObjectMonitor MonitorObject = "monitor"
)
Defines values for MonitorObject.
func (MonitorObject) Valid ¶ added in v0.5.0
func (e MonitorObject) Valid() bool
Valid indicates whether the value is a known member of the MonitorObject enum.
type MonitorPageChange ¶ added in v0.5.0
type MonitorPageChange struct {
// Confidence `confidence` is the meaningfulness score, from 0 to 1. The judge uses your goal if you set one.
Confidence float64 `json:"confidence"`
// Diff Text changes between two page checks.
Diff MonitorDiff `json:"diff"`
// FetchedAt When the later snapshot was fetched
FetchedAt MonitorTimestamp `json:"fetched_at"`
// Id Stable opaque ID with the prefix `chg_`. Use it to deduplicate the same finding across runs and webhook deliveries.
Id MonitorChangeId `json:"id"`
// PreviousFetchedAt When the earlier of the two compared snapshots was fetched
PreviousFetchedAt MonitorTimestamp `json:"previous_fetched_at"`
// Title Omitted when unknown
Title *string `json:"title,omitempty"`
Type MonitorPageChangeType `json:"type"`
Url string `json:"url"`
}
MonitorPageChange A meaningful change to a page target
type MonitorPageChangeType ¶ added in v0.5.0
type MonitorPageChangeType string
MonitorPageChangeType defines model for MonitorPageChange.Type.
const (
MonitorPageChangeTypePageChange MonitorPageChangeType = "page_change"
)
Defines values for MonitorPageChangeType.
func (MonitorPageChangeType) Valid ¶ added in v0.5.0
func (e MonitorPageChangeType) Valid() bool
Valid indicates whether the value is a known member of the MonitorPageChangeType enum.
type MonitorPageTarget ¶ added in v0.5.0
type MonitorPageTarget struct {
// Judge Judging settings for this target. Present only when the monitor overrides the default threshold.
Judge *MonitorJudge `json:"judge,omitempty"`
Type MonitorPageTargetType `json:"type"`
// Url Absolute `http(s)` URL of a public host, without credentials
Url string `json:"url"`
}
MonitorPageTarget Reports meaningful changes to one URL. The first run of a page target saves a baseline and reports nothing.
type MonitorPageTargetError ¶ added in v0.5.0
type MonitorPageTargetError struct {
// Code Why the page could not be read: the URL is not valid (`invalid_url`), the site blocked the request (`blocked`), the page has no readable text (`no_content`), loading failed (`load_failed`) or timed out (`timeout`), page retrieval is temporarily unavailable (`fetch_unavailable`), or the page returned an error status (`http_status`, with `status_code`). New codes may be added.
Code MonitorTargetErrorCode `json:"code"`
// Message Human-readable; may change. Do not parse.
Message string `json:"message"`
// StatusCode The page's HTTP status; only with `http_status`
StatusCode *int32 `json:"status_code,omitempty"`
Type MonitorPageTargetErrorType `json:"type"`
Url string `json:"url"`
}
MonitorPageTargetError A page target that could not be read this run
type MonitorPageTargetErrorType ¶ added in v0.5.0
type MonitorPageTargetErrorType string
MonitorPageTargetErrorType defines model for MonitorPageTargetError.Type.
const (
MonitorPageTargetErrorTypePage MonitorPageTargetErrorType = "page"
)
Defines values for MonitorPageTargetErrorType.
func (MonitorPageTargetErrorType) Valid ¶ added in v0.5.0
func (e MonitorPageTargetErrorType) Valid() bool
Valid indicates whether the value is a known member of the MonitorPageTargetErrorType enum.
type MonitorPageTargetRequest ¶ added in v0.5.0
type MonitorPageTargetRequest struct {
// Judge Judging settings for this target.
Judge *MonitorJudgeRequest `json:"judge,omitempty"`
Type MonitorPageTargetRequestType `json:"type"`
// Url Absolute `http(s)` URL of a public host, without credentials
Url string `json:"url"`
}
MonitorPageTargetRequest defines model for MonitorPageTargetRequest.
type MonitorPageTargetRequestType ¶ added in v0.5.0
type MonitorPageTargetRequestType string
MonitorPageTargetRequestType defines model for MonitorPageTargetRequest.Type.
const (
MonitorPageTargetRequestTypePage MonitorPageTargetRequestType = "page"
)
Defines values for MonitorPageTargetRequestType.
func (MonitorPageTargetRequestType) Valid ¶ added in v0.5.0
func (e MonitorPageTargetRequestType) Valid() bool
Valid indicates whether the value is a known member of the MonitorPageTargetRequestType enum.
type MonitorPageTargetType ¶ added in v0.5.0
type MonitorPageTargetType string
MonitorPageTargetType defines model for MonitorPageTarget.Type.
const (
MonitorPageTargetTypePage MonitorPageTargetType = "page"
)
Defines values for MonitorPageTargetType.
func (MonitorPageTargetType) Valid ¶ added in v0.5.0
func (e MonitorPageTargetType) Valid() bool
Valid indicates whether the value is a known member of the MonitorPageTargetType enum.
type MonitorPauseReason ¶ added in v0.5.0
type MonitorPauseReason string
MonitorPauseReason Why a `paused` monitor stopped: you paused it (`user`), credits ran out, webhook deliveries repeatedly failed (`webhook_failing`), every source the monitor reads repeatedly failed (`source_failing`), or your API Group's policy no longer allows monitors. Resume it once the cause is fixed. New reasons may be added; treat an unknown value as a reason to check the monitor before resuming it.
const ( MonitorPauseReasonInsufficientCredits MonitorPauseReason = "insufficient_credits" MonitorPauseReasonOrgPolicy MonitorPauseReason = "org_policy" MonitorPauseReasonSourceFailing MonitorPauseReason = "source_failing" MonitorPauseReasonUser MonitorPauseReason = "user" MonitorPauseReasonWebhookFailing MonitorPauseReason = "webhook_failing" )
Defines values for MonitorPauseReason.
func (MonitorPauseReason) Valid ¶ added in v0.5.0
func (e MonitorPauseReason) Valid() bool
Valid indicates whether the value is a known member of the MonitorPauseReason enum.
type MonitorPaymentRequired ¶ added in v0.5.0
type MonitorPaymentRequired = MonitorApiError
MonitorPaymentRequired defines model for MonitorPaymentRequired.
type MonitorRun ¶ added in v0.5.0
type MonitorRun struct {
Changes []MonitorChange `json:"changes"`
Counts MonitorRunCounts `json:"counts"`
// CreatedAt RFC 3339 in UTC with whole seconds, for example `2026-11-12T09:00:41Z`.
CreatedAt MonitorTimestamp `json:"created_at"`
// Error Only on `failed` and `skipped` runs
Error *MonitorRunError `json:"error,omitempty"`
// FinishedAt Omitted until the run ends
FinishedAt *MonitorTimestamp `json:"finished_at,omitempty"`
// Id Opaque ID with the prefix `run_`
Id string `json:"id"`
MonitorId string `json:"monitor_id"`
Object MonitorRunObject `json:"object"`
// Status `queued` is a manual run that has not started. `skipped` is a run that did not start, including a queued run cancelled by pausing the monitor. New statuses may be added; treat an unknown one as not finished.
Status MonitorRunStatus `json:"status"`
TargetErrors []MonitorTargetError `json:"target_errors"`
// Trigger What started the run. New triggers may be added; accept unknown values.
Trigger MonitorRunTrigger `json:"trigger"`
// Usage Search and Page runs report nonzero usage only when they succeed. A successful Search run counts as one run for billing. A successful Page run counts each fetched URL that qualifies. An Agent run can report an Agent API cost even if the run fails.
Usage MonitorRunUsage `json:"usage"`
// Window Omitted while the run is `queued`
Window *MonitorRunWindow `json:"window,omitempty"`
}
MonitorRun defines model for MonitorRun.
type MonitorRunCost ¶ added in v0.5.0
type MonitorRunCost struct {
// Currency Currency code for cost values
Currency MonitorCurrency `json:"currency"`
TotalCost float64 `json:"total_cost"`
}
MonitorRunCost The service estimates the cost at list prices and rounds it to 5 decimal places. This estimate is not the amount charged. A successful Search run costs $0.001 at list prices. A successful Page run costs $0.001 per counted fetched URL at list prices. An Agent run reports only the [Agent API](/docs/getting-started/pricing#agent-api-pricing) cost at list prices, if available.
type MonitorRunCounts ¶ added in v0.5.0
type MonitorRunCounts struct {
// Candidates The number of results, page changes, or Agent updates the monitor considered for this run.
Candidates int32 `json:"candidates"`
Changes int32 `json:"changes"`
// Errors Target fetch failures and candidates that could not be judged.
Errors int32 `json:"errors"`
}
MonitorRunCounts defines model for MonitorRunCounts.
type MonitorRunError ¶ added in v0.5.0
type MonitorRunError struct {
// Code Why a run failed: it could not start (`gate_unavailable`), retrieval failed (`detect_failed`), judging failed (`judge_failed`), every source failed (`source_failed`), the notification could not be scheduled (`notify_failed`), or the run timed out (`timed_out`). New codes may be added; treat an unknown one as a failure to retry on schedule.
Code *MonitorRunFailureCode `json:"code,omitempty"`
// Message Human-readable; may change. Do not parse.
Message string `json:"message"`
// SkipReason Why a `paused` monitor stopped: you paused it (`user`), credits ran
// out, webhook deliveries repeatedly failed (`webhook_failing`), every source the monitor reads repeatedly failed (`source_failing`), or your API Group's policy
// no longer allows monitors. Resume it once the cause is
// fixed. New reasons may be added; treat an unknown value as a reason to
// check the monitor before resuming it.
SkipReason *MonitorPauseReason `json:"skip_reason,omitempty"`
}
MonitorRunError Why a run failed or was skipped: a `failed` run has `code`, a `skipped` run has `skip_reason`, the pause reason that refused it.
type MonitorRunFailureCode ¶ added in v0.5.0
type MonitorRunFailureCode string
MonitorRunFailureCode Why a run failed: it could not start (`gate_unavailable`), retrieval failed (`detect_failed`), judging failed (`judge_failed`), every source failed (`source_failed`), the notification could not be scheduled (`notify_failed`), or the run timed out (`timed_out`). New codes may be added; treat an unknown one as a failure to retry on schedule.
const ( MonitorRunFailureCodeDetectFailed MonitorRunFailureCode = "detect_failed" MonitorRunFailureCodeJudgeFailed MonitorRunFailureCode = "judge_failed" MonitorRunFailureCodeNotifyFailed MonitorRunFailureCode = "notify_failed" MonitorRunFailureCodeSourceFailed MonitorRunFailureCode = "source_failed" MonitorRunFailureCodeTimedOut MonitorRunFailureCode = "timed_out" )
Defines values for MonitorRunFailureCode.
func (MonitorRunFailureCode) Valid ¶ added in v0.5.0
func (e MonitorRunFailureCode) Valid() bool
Valid indicates whether the value is a known member of the MonitorRunFailureCode enum.
type MonitorRunId ¶ added in v0.5.0
type MonitorRunId = string
MonitorRunId defines model for MonitorRunId.
type MonitorRunInProgressError ¶ added in v0.5.0
type MonitorRunInProgressError struct {
Error struct {
Code MonitorRunInProgressErrorErrorCode `json:"code"`
// CurrentRunId The run already queued or running
CurrentRunId string `json:"current_run_id"`
Message string `json:"message"`
Type MonitorRunInProgressErrorErrorType `json:"type"`
} `json:"error"`
}
MonitorRunInProgressError defines model for MonitorRunInProgressError.
type MonitorRunInProgressErrorErrorCode ¶ added in v0.5.0
type MonitorRunInProgressErrorErrorCode int
MonitorRunInProgressErrorErrorCode defines model for MonitorRunInProgressError.Error.Code.
const (
MonitorRunInProgressErrorErrorCodeN409 MonitorRunInProgressErrorErrorCode = 409
)
Defines values for MonitorRunInProgressErrorErrorCode.
func (MonitorRunInProgressErrorErrorCode) Valid ¶ added in v0.5.0
func (e MonitorRunInProgressErrorErrorCode) Valid() bool
Valid indicates whether the value is a known member of the MonitorRunInProgressErrorErrorCode enum.
type MonitorRunInProgressErrorErrorType ¶ added in v0.5.0
type MonitorRunInProgressErrorErrorType string
MonitorRunInProgressErrorErrorType defines model for MonitorRunInProgressError.Error.Type.
const (
MonitorRunInProgressErrorErrorTypeRunInProgress MonitorRunInProgressErrorErrorType = "run_in_progress"
)
Defines values for MonitorRunInProgressErrorErrorType.
func (MonitorRunInProgressErrorErrorType) Valid ¶ added in v0.5.0
func (e MonitorRunInProgressErrorErrorType) Valid() bool
Valid indicates whether the value is a known member of the MonitorRunInProgressErrorErrorType enum.
type MonitorRunList ¶ added in v0.5.0
type MonitorRunList struct {
Data []MonitorRun `json:"data"`
// HasMore Pass the last `data[].id` as `after` for the next page
HasMore bool `json:"has_more"`
Object MonitorRunListObject `json:"object"`
}
MonitorRunList defines model for MonitorRunList.
type MonitorRunListObject ¶ added in v0.5.0
type MonitorRunListObject string
MonitorRunListObject defines model for MonitorRunList.Object.
const (
MonitorRunListObjectList MonitorRunListObject = "list"
)
Defines values for MonitorRunListObject.
func (MonitorRunListObject) Valid ¶ added in v0.5.0
func (e MonitorRunListObject) Valid() bool
Valid indicates whether the value is a known member of the MonitorRunListObject enum.
type MonitorRunObject ¶ added in v0.5.0
type MonitorRunObject string
MonitorRunObject defines model for MonitorRun.Object.
const (
MonitorRunObjectMonitorRun MonitorRunObject = "monitor.run"
)
Defines values for MonitorRunObject.
func (MonitorRunObject) Valid ¶ added in v0.5.0
func (e MonitorRunObject) Valid() bool
Valid indicates whether the value is a known member of the MonitorRunObject enum.
type MonitorRunStatus ¶ added in v0.5.0
type MonitorRunStatus string
MonitorRunStatus `queued` is a manual run that has not started. `skipped` is a run that did not start, including a queued run cancelled by pausing the monitor. New statuses may be added; treat an unknown one as not finished.
const ( MonitorRunStatusFailed MonitorRunStatus = "failed" MonitorRunStatusQueued MonitorRunStatus = "queued" MonitorRunStatusRunning MonitorRunStatus = "running" MonitorRunStatusSkipped MonitorRunStatus = "skipped" MonitorRunStatusSucceeded MonitorRunStatus = "succeeded" )
Defines values for MonitorRunStatus.
func (MonitorRunStatus) Valid ¶ added in v0.5.0
func (e MonitorRunStatus) Valid() bool
Valid indicates whether the value is a known member of the MonitorRunStatus enum.
type MonitorRunTrigger ¶ added in v0.5.0
type MonitorRunTrigger string
MonitorRunTrigger What started the run. New triggers may be added; accept unknown values.
const ( MonitorRunTriggerManual MonitorRunTrigger = "manual" MonitorRunTriggerSchedule MonitorRunTrigger = "schedule" )
Defines values for MonitorRunTrigger.
func (MonitorRunTrigger) Valid ¶ added in v0.5.0
func (e MonitorRunTrigger) Valid() bool
Valid indicates whether the value is a known member of the MonitorRunTrigger enum.
type MonitorRunUsage ¶ added in v0.5.0
type MonitorRunUsage struct {
// Cost The service estimates the cost at list prices and rounds it to 5 decimal places. This estimate is not the amount charged. A successful Search run costs $0.001 at list prices. A successful Page run costs $0.001 per counted fetched URL at list prices. An Agent run reports only the [Agent API](/docs/getting-started/pricing#agent-api-pricing) cost at list prices, if available.
Cost MonitorRunCost `json:"cost"`
// FetchedUrls The number of counted URLs that a successful Page run fetched. This value is zero for all other runs.
FetchedUrls int32 `json:"fetched_urls"`
}
MonitorRunUsage Search and Page runs report nonzero usage only when they succeed. A successful Search run counts as one run for billing. A successful Page run counts each fetched URL that qualifies. An Agent run can report an Agent API cost even if the run fails.
type MonitorRunWindow ¶ added in v0.5.0
type MonitorRunWindow struct {
// From RFC 3339 in UTC with whole seconds, for example `2026-11-12T09:00:41Z`.
From MonitorTimestamp `json:"from"`
// To RFC 3339 in UTC with whole seconds, for example `2026-11-12T09:00:41Z`.
To MonitorTimestamp `json:"to"`
}
MonitorRunWindow The time range a run covers, `(from, to]`. Before the first successful run, the window starts one schedule period before creation, up to seven days earlier. Later windows normally start where the last successful window ended, subject to the service's lookback limit. The window ends when the run starts.
type MonitorSchedule ¶ added in v0.5.0
type MonitorSchedule struct {
// contains filtered or unexported fields
}
MonitorSchedule When a monitor runs. New types may be added.
func (MonitorSchedule) AsMonitorCronSchedule ¶ added in v0.5.0
func (t MonitorSchedule) AsMonitorCronSchedule() (MonitorCronSchedule, error)
AsMonitorCronSchedule returns the union data inside the MonitorSchedule as a MonitorCronSchedule
func (MonitorSchedule) AsMonitorIntervalSchedule ¶ added in v0.5.0
func (t MonitorSchedule) AsMonitorIntervalSchedule() (MonitorIntervalSchedule, error)
AsMonitorIntervalSchedule returns the union data inside the MonitorSchedule as a MonitorIntervalSchedule
func (MonitorSchedule) Discriminator ¶ added in v0.5.0
func (t MonitorSchedule) Discriminator() (string, error)
func (*MonitorSchedule) FromMonitorCronSchedule ¶ added in v0.5.0
func (t *MonitorSchedule) FromMonitorCronSchedule(v MonitorCronSchedule) error
FromMonitorCronSchedule overwrites any union data inside the MonitorSchedule as the provided MonitorCronSchedule
func (*MonitorSchedule) FromMonitorIntervalSchedule ¶ added in v0.5.0
func (t *MonitorSchedule) FromMonitorIntervalSchedule(v MonitorIntervalSchedule) error
FromMonitorIntervalSchedule overwrites any union data inside the MonitorSchedule as the provided MonitorIntervalSchedule
func (MonitorSchedule) MarshalJSON ¶ added in v0.5.0
func (t MonitorSchedule) MarshalJSON() ([]byte, error)
func (*MonitorSchedule) MergeMonitorCronSchedule ¶ added in v0.5.0
func (t *MonitorSchedule) MergeMonitorCronSchedule(v MonitorCronSchedule) error
MergeMonitorCronSchedule performs a merge with any union data inside the MonitorSchedule, using the provided MonitorCronSchedule
func (*MonitorSchedule) MergeMonitorIntervalSchedule ¶ added in v0.5.0
func (t *MonitorSchedule) MergeMonitorIntervalSchedule(v MonitorIntervalSchedule) error
MergeMonitorIntervalSchedule performs a merge with any union data inside the MonitorSchedule, using the provided MonitorIntervalSchedule
func (*MonitorSchedule) UnmarshalJSON ¶ added in v0.5.0
func (t *MonitorSchedule) UnmarshalJSON(b []byte) error
func (MonitorSchedule) ValueByDiscriminator ¶ added in v0.5.0
func (t MonitorSchedule) ValueByDiscriminator() (interface{}, error)
type MonitorScheduleRequest ¶ added in v0.5.0
type MonitorScheduleRequest struct {
// contains filtered or unexported fields
}
MonitorScheduleRequest defines model for MonitorScheduleRequest.
func (MonitorScheduleRequest) AsMonitorCronScheduleRequest ¶ added in v0.5.0
func (t MonitorScheduleRequest) AsMonitorCronScheduleRequest() (MonitorCronScheduleRequest, error)
AsMonitorCronScheduleRequest returns the union data inside the MonitorScheduleRequest as a MonitorCronScheduleRequest
func (MonitorScheduleRequest) AsMonitorIntervalScheduleRequest ¶ added in v0.5.0
func (t MonitorScheduleRequest) AsMonitorIntervalScheduleRequest() (MonitorIntervalScheduleRequest, error)
AsMonitorIntervalScheduleRequest returns the union data inside the MonitorScheduleRequest as a MonitorIntervalScheduleRequest
func (MonitorScheduleRequest) Discriminator ¶ added in v0.5.0
func (t MonitorScheduleRequest) Discriminator() (string, error)
func (*MonitorScheduleRequest) FromMonitorCronScheduleRequest ¶ added in v0.5.0
func (t *MonitorScheduleRequest) FromMonitorCronScheduleRequest(v MonitorCronScheduleRequest) error
FromMonitorCronScheduleRequest overwrites any union data inside the MonitorScheduleRequest as the provided MonitorCronScheduleRequest
func (*MonitorScheduleRequest) FromMonitorIntervalScheduleRequest ¶ added in v0.5.0
func (t *MonitorScheduleRequest) FromMonitorIntervalScheduleRequest(v MonitorIntervalScheduleRequest) error
FromMonitorIntervalScheduleRequest overwrites any union data inside the MonitorScheduleRequest as the provided MonitorIntervalScheduleRequest
func (MonitorScheduleRequest) MarshalJSON ¶ added in v0.5.0
func (t MonitorScheduleRequest) MarshalJSON() ([]byte, error)
func (*MonitorScheduleRequest) MergeMonitorCronScheduleRequest ¶ added in v0.5.0
func (t *MonitorScheduleRequest) MergeMonitorCronScheduleRequest(v MonitorCronScheduleRequest) error
MergeMonitorCronScheduleRequest performs a merge with any union data inside the MonitorScheduleRequest, using the provided MonitorCronScheduleRequest
func (*MonitorScheduleRequest) MergeMonitorIntervalScheduleRequest ¶ added in v0.5.0
func (t *MonitorScheduleRequest) MergeMonitorIntervalScheduleRequest(v MonitorIntervalScheduleRequest) error
MergeMonitorIntervalScheduleRequest performs a merge with any union data inside the MonitorScheduleRequest, using the provided MonitorIntervalScheduleRequest
func (*MonitorScheduleRequest) UnmarshalJSON ¶ added in v0.5.0
func (t *MonitorScheduleRequest) UnmarshalJSON(b []byte) error
func (MonitorScheduleRequest) ValueByDiscriminator ¶ added in v0.5.0
func (t MonitorScheduleRequest) ValueByDiscriminator() (interface{}, error)
type MonitorSearchFilters ¶ added in v0.5.0
type MonitorSearchFilters struct {
// ExcludeDomains Results from these domains or their subdomains are dropped; may be `[]`
ExcludeDomains []MonitorDomain `json:"exclude_domains"`
// Freshness Which result date puts a result in the run window: `published`,
// `updated`, or both (either date counts). Responses always list
// the values in use. `updated` uses the source's last-updated date
// with calendar-day precision, not a content-version or page-diff
// guarantee. URLs this monitor has already reported stay
// suppressed.
Freshness []MonitorFreshness `json:"freshness"`
// IncludeDomains Only results from these domains or their subdomains; `[]` for no restriction
IncludeDomains []MonitorDomain `json:"include_domains"`
}
MonitorSearchFilters defines model for MonitorSearchFilters.
type MonitorSearchFiltersRequest ¶ added in v0.5.0
type MonitorSearchFiltersRequest struct {
// ExcludeDomains Up to 20 host names whose results, and their subdomains', are
// dropped. A domain may not also be in `include_domains`.
ExcludeDomains *[]string `json:"exclude_domains,omitempty"`
// Freshness Omit or send an empty array for both `published` and `updated`.
Freshness *[]MonitorFreshness `json:"freshness,omitempty"`
// IncludeDomains Up to 20 bare host names such as `example.com`, without a scheme, path, or port. Only results from these domains or their subdomains are included.
IncludeDomains *[]string `json:"include_domains,omitempty"`
}
MonitorSearchFiltersRequest defines model for MonitorSearchFiltersRequest.
type MonitorSearchResultChange ¶ added in v0.5.0
type MonitorSearchResultChange struct {
// Confidence `confidence` is the product of the applicable judging scores, from 0 to 1. The threshold applies to each check, not to the product, so a kept result can have a lower confidence than the threshold. Compare scores within one monitor.
Confidence float64 `json:"confidence"`
// Id Stable opaque ID with the prefix `chg_`. Use it to deduplicate the same finding across runs and webhook deliveries.
Id MonitorChangeId `json:"id"`
// LastUpdatedAt The source's last-updated date, at calendar-day precision, when it has one
LastUpdatedAt *MonitorTimestamp `json:"last_updated_at,omitempty"`
// PublishedAt When the source reports one
PublishedAt *MonitorTimestamp `json:"published_at,omitempty"`
// Snippet Text from the result, when the source has it
Snippet *string `json:"snippet,omitempty"`
// Title Omitted when unknown
Title *string `json:"title,omitempty"`
Type MonitorSearchResultChangeType `json:"type"`
Url string `json:"url"`
}
MonitorSearchResultChange A search result new to the query since the last run
type MonitorSearchResultChangeType ¶ added in v0.5.0
type MonitorSearchResultChangeType string
MonitorSearchResultChangeType defines model for MonitorSearchResultChange.Type.
const (
MonitorSearchResultChangeTypeSearchResult MonitorSearchResultChangeType = "search_result"
)
Defines values for MonitorSearchResultChangeType.
func (MonitorSearchResultChangeType) Valid ¶ added in v0.5.0
func (e MonitorSearchResultChangeType) Valid() bool
Valid indicates whether the value is a known member of the MonitorSearchResultChangeType enum.
type MonitorSearchTarget ¶ added in v0.5.0
type MonitorSearchTarget struct {
Filters MonitorSearchFilters `json:"filters"`
// Judge Judging settings for this target. Present only when the monitor overrides the default threshold.
Judge *MonitorJudge `json:"judge,omitempty"`
// MaxResults Maximum search results considered per query; the run can keep fewer.
MaxResults int32 `json:"max_results"`
Query string `json:"query"`
Type MonitorSearchTargetType `json:"type"`
}
MonitorSearchTarget Reports pages new to `query` since the last run.
type MonitorSearchTargetRequest ¶ added in v0.5.0
type MonitorSearchTargetRequest struct {
Filters *MonitorSearchFiltersRequest `json:"filters,omitempty"`
// Judge Judging settings for this target.
Judge *MonitorJudgeRequest `json:"judge,omitempty"`
// MaxResults Maximum search results considered per query; the run can keep fewer.
MaxResults *int32 `json:"max_results,omitempty"`
// Query Search query to run on each run
Query string `json:"query"`
Type MonitorSearchTargetRequestType `json:"type"`
}
MonitorSearchTargetRequest defines model for MonitorSearchTargetRequest.
type MonitorSearchTargetRequestType ¶ added in v0.5.0
type MonitorSearchTargetRequestType string
MonitorSearchTargetRequestType defines model for MonitorSearchTargetRequest.Type.
const (
MonitorSearchTargetRequestTypeSearch MonitorSearchTargetRequestType = "search"
)
Defines values for MonitorSearchTargetRequestType.
func (MonitorSearchTargetRequestType) Valid ¶ added in v0.5.0
func (e MonitorSearchTargetRequestType) Valid() bool
Valid indicates whether the value is a known member of the MonitorSearchTargetRequestType enum.
type MonitorSearchTargetType ¶ added in v0.5.0
type MonitorSearchTargetType string
MonitorSearchTargetType defines model for MonitorSearchTarget.Type.
const (
MonitorSearchTargetTypeSearch MonitorSearchTargetType = "search"
)
Defines values for MonitorSearchTargetType.
func (MonitorSearchTargetType) Valid ¶ added in v0.5.0
func (e MonitorSearchTargetType) Valid() bool
Valid indicates whether the value is a known member of the MonitorSearchTargetType enum.
type MonitorStatus ¶ added in v0.5.0
type MonitorStatus string
MonitorStatus `active` monitors run on their schedule; `paused` ones don't run until resumed. Whether a run is in flight is `current_run_id`, not the status. New statuses may be added; treat an unknown one as not running on its schedule.
const ( MonitorStatusActive MonitorStatus = "active" MonitorStatusPaused MonitorStatus = "paused" )
Defines values for MonitorStatus.
func (MonitorStatus) Valid ¶ added in v0.5.0
func (e MonitorStatus) Valid() bool
Valid indicates whether the value is a known member of the MonitorStatus enum.
type MonitorTarget ¶ added in v0.5.0
type MonitorTarget struct {
// contains filtered or unexported fields
}
MonitorTarget A target for the monitor. Skip targets with a type you do not recognize.
func (MonitorTarget) AsMonitorAgentTarget ¶ added in v0.6.2
func (t MonitorTarget) AsMonitorAgentTarget() (MonitorAgentTarget, error)
AsMonitorAgentTarget returns the union data inside the MonitorTarget as a MonitorAgentTarget
func (MonitorTarget) AsMonitorPageTarget ¶ added in v0.5.0
func (t MonitorTarget) AsMonitorPageTarget() (MonitorPageTarget, error)
AsMonitorPageTarget returns the union data inside the MonitorTarget as a MonitorPageTarget
func (MonitorTarget) AsMonitorSearchTarget ¶ added in v0.5.0
func (t MonitorTarget) AsMonitorSearchTarget() (MonitorSearchTarget, error)
AsMonitorSearchTarget returns the union data inside the MonitorTarget as a MonitorSearchTarget
func (MonitorTarget) Discriminator ¶ added in v0.5.0
func (t MonitorTarget) Discriminator() (string, error)
func (*MonitorTarget) FromMonitorAgentTarget ¶ added in v0.6.2
func (t *MonitorTarget) FromMonitorAgentTarget(v MonitorAgentTarget) error
FromMonitorAgentTarget overwrites any union data inside the MonitorTarget as the provided MonitorAgentTarget
func (*MonitorTarget) FromMonitorPageTarget ¶ added in v0.5.0
func (t *MonitorTarget) FromMonitorPageTarget(v MonitorPageTarget) error
FromMonitorPageTarget overwrites any union data inside the MonitorTarget as the provided MonitorPageTarget
func (*MonitorTarget) FromMonitorSearchTarget ¶ added in v0.5.0
func (t *MonitorTarget) FromMonitorSearchTarget(v MonitorSearchTarget) error
FromMonitorSearchTarget overwrites any union data inside the MonitorTarget as the provided MonitorSearchTarget
func (MonitorTarget) MarshalJSON ¶ added in v0.5.0
func (t MonitorTarget) MarshalJSON() ([]byte, error)
func (*MonitorTarget) MergeMonitorAgentTarget ¶ added in v0.6.2
func (t *MonitorTarget) MergeMonitorAgentTarget(v MonitorAgentTarget) error
MergeMonitorAgentTarget performs a merge with any union data inside the MonitorTarget, using the provided MonitorAgentTarget
func (*MonitorTarget) MergeMonitorPageTarget ¶ added in v0.5.0
func (t *MonitorTarget) MergeMonitorPageTarget(v MonitorPageTarget) error
MergeMonitorPageTarget performs a merge with any union data inside the MonitorTarget, using the provided MonitorPageTarget
func (*MonitorTarget) MergeMonitorSearchTarget ¶ added in v0.5.0
func (t *MonitorTarget) MergeMonitorSearchTarget(v MonitorSearchTarget) error
MergeMonitorSearchTarget performs a merge with any union data inside the MonitorTarget, using the provided MonitorSearchTarget
func (*MonitorTarget) UnmarshalJSON ¶ added in v0.5.0
func (t *MonitorTarget) UnmarshalJSON(b []byte) error
func (MonitorTarget) ValueByDiscriminator ¶ added in v0.5.0
func (t MonitorTarget) ValueByDiscriminator() (interface{}, error)
type MonitorTargetError ¶ added in v0.5.0
type MonitorTargetError struct {
// contains filtered or unexported fields
}
MonitorTargetError A target that could not be read this run; its baseline is kept. New types may be added; skip errors with an unknown type.
func (MonitorTargetError) AsMonitorPageTargetError ¶ added in v0.5.0
func (t MonitorTargetError) AsMonitorPageTargetError() (MonitorPageTargetError, error)
AsMonitorPageTargetError returns the union data inside the MonitorTargetError as a MonitorPageTargetError
func (MonitorTargetError) Discriminator ¶ added in v0.5.0
func (t MonitorTargetError) Discriminator() (string, error)
func (*MonitorTargetError) FromMonitorPageTargetError ¶ added in v0.5.0
func (t *MonitorTargetError) FromMonitorPageTargetError(v MonitorPageTargetError) error
FromMonitorPageTargetError overwrites any union data inside the MonitorTargetError as the provided MonitorPageTargetError
func (MonitorTargetError) MarshalJSON ¶ added in v0.5.0
func (t MonitorTargetError) MarshalJSON() ([]byte, error)
func (*MonitorTargetError) MergeMonitorPageTargetError ¶ added in v0.5.0
func (t *MonitorTargetError) MergeMonitorPageTargetError(v MonitorPageTargetError) error
MergeMonitorPageTargetError performs a merge with any union data inside the MonitorTargetError, using the provided MonitorPageTargetError
func (*MonitorTargetError) UnmarshalJSON ¶ added in v0.5.0
func (t *MonitorTargetError) UnmarshalJSON(b []byte) error
func (MonitorTargetError) ValueByDiscriminator ¶ added in v0.5.0
func (t MonitorTargetError) ValueByDiscriminator() (interface{}, error)
type MonitorTargetErrorCode ¶ added in v0.5.0
type MonitorTargetErrorCode string
MonitorTargetErrorCode Why the page could not be read: the URL is not valid (`invalid_url`), the site blocked the request (`blocked`), the page has no readable text (`no_content`), loading failed (`load_failed`) or timed out (`timeout`), page retrieval is temporarily unavailable (`fetch_unavailable`), or the page returned an error status (`http_status`, with `status_code`). New codes may be added.
const ( MonitorTargetErrorCodeBlocked MonitorTargetErrorCode = "blocked" MonitorTargetErrorCodeHttpStatus MonitorTargetErrorCode = "http_status" MonitorTargetErrorCodeInvalidUrl MonitorTargetErrorCode = "invalid_url" MonitorTargetErrorCodeLoadFailed MonitorTargetErrorCode = "load_failed" MonitorTargetErrorCodeNoContent MonitorTargetErrorCode = "no_content" MonitorTargetErrorCodeTimeout MonitorTargetErrorCode = "timeout" )
Defines values for MonitorTargetErrorCode.
func (MonitorTargetErrorCode) Valid ¶ added in v0.5.0
func (e MonitorTargetErrorCode) Valid() bool
Valid indicates whether the value is a known member of the MonitorTargetErrorCode enum.
type MonitorTargetRequest ¶ added in v0.5.0
type MonitorTargetRequest struct {
// contains filtered or unexported fields
}
MonitorTargetRequest defines model for MonitorTargetRequest.
func (MonitorTargetRequest) AsMonitorAgentTargetRequest ¶ added in v0.6.2
func (t MonitorTargetRequest) AsMonitorAgentTargetRequest() (MonitorAgentTargetRequest, error)
AsMonitorAgentTargetRequest returns the union data inside the MonitorTargetRequest as a MonitorAgentTargetRequest
func (MonitorTargetRequest) AsMonitorPageTargetRequest ¶ added in v0.5.0
func (t MonitorTargetRequest) AsMonitorPageTargetRequest() (MonitorPageTargetRequest, error)
AsMonitorPageTargetRequest returns the union data inside the MonitorTargetRequest as a MonitorPageTargetRequest
func (MonitorTargetRequest) AsMonitorSearchTargetRequest ¶ added in v0.5.0
func (t MonitorTargetRequest) AsMonitorSearchTargetRequest() (MonitorSearchTargetRequest, error)
AsMonitorSearchTargetRequest returns the union data inside the MonitorTargetRequest as a MonitorSearchTargetRequest
func (MonitorTargetRequest) Discriminator ¶ added in v0.5.0
func (t MonitorTargetRequest) Discriminator() (string, error)
func (*MonitorTargetRequest) FromMonitorAgentTargetRequest ¶ added in v0.6.2
func (t *MonitorTargetRequest) FromMonitorAgentTargetRequest(v MonitorAgentTargetRequest) error
FromMonitorAgentTargetRequest overwrites any union data inside the MonitorTargetRequest as the provided MonitorAgentTargetRequest
func (*MonitorTargetRequest) FromMonitorPageTargetRequest ¶ added in v0.5.0
func (t *MonitorTargetRequest) FromMonitorPageTargetRequest(v MonitorPageTargetRequest) error
FromMonitorPageTargetRequest overwrites any union data inside the MonitorTargetRequest as the provided MonitorPageTargetRequest
func (*MonitorTargetRequest) FromMonitorSearchTargetRequest ¶ added in v0.5.0
func (t *MonitorTargetRequest) FromMonitorSearchTargetRequest(v MonitorSearchTargetRequest) error
FromMonitorSearchTargetRequest overwrites any union data inside the MonitorTargetRequest as the provided MonitorSearchTargetRequest
func (MonitorTargetRequest) MarshalJSON ¶ added in v0.5.0
func (t MonitorTargetRequest) MarshalJSON() ([]byte, error)
func (*MonitorTargetRequest) MergeMonitorAgentTargetRequest ¶ added in v0.6.2
func (t *MonitorTargetRequest) MergeMonitorAgentTargetRequest(v MonitorAgentTargetRequest) error
MergeMonitorAgentTargetRequest performs a merge with any union data inside the MonitorTargetRequest, using the provided MonitorAgentTargetRequest
func (*MonitorTargetRequest) MergeMonitorPageTargetRequest ¶ added in v0.5.0
func (t *MonitorTargetRequest) MergeMonitorPageTargetRequest(v MonitorPageTargetRequest) error
MergeMonitorPageTargetRequest performs a merge with any union data inside the MonitorTargetRequest, using the provided MonitorPageTargetRequest
func (*MonitorTargetRequest) MergeMonitorSearchTargetRequest ¶ added in v0.5.0
func (t *MonitorTargetRequest) MergeMonitorSearchTargetRequest(v MonitorSearchTargetRequest) error
MergeMonitorSearchTargetRequest performs a merge with any union data inside the MonitorTargetRequest, using the provided MonitorSearchTargetRequest
func (*MonitorTargetRequest) UnmarshalJSON ¶ added in v0.5.0
func (t *MonitorTargetRequest) UnmarshalJSON(b []byte) error
func (MonitorTargetRequest) ValueByDiscriminator ¶ added in v0.5.0
func (t MonitorTargetRequest) ValueByDiscriminator() (interface{}, error)
type MonitorTargets ¶ added in v0.5.0
type MonitorTargets = []MonitorTargetRequest
MonitorTargets Use one of these target configurations:
- One Search target. - One Agent target. - One to 10 Page targets with distinct URLs.
Do not mix target types.
type MonitorTimestamp ¶ added in v0.5.0
MonitorTimestamp RFC 3339 in UTC with whole seconds, for example `2026-11-12T09:00:41Z`.
type MonitorTooManyRequests ¶ added in v0.5.0
type MonitorTooManyRequests = MonitorApiError
MonitorTooManyRequests defines model for MonitorTooManyRequests.
type MonitorUnauthorized ¶ added in v0.5.0
type MonitorUnauthorized = MonitorApiError
MonitorUnauthorized defines model for MonitorUnauthorized.
type MonitorUnavailable ¶ added in v0.5.0
type MonitorUnavailable = MonitorApiError
MonitorUnavailable defines model for MonitorUnavailable.
type MonitorWebhook ¶ added in v0.5.0
type MonitorWebhook struct {
// Events The subscribed event types, defaults filled in
Events []MonitorEventType `json:"events"`
// Secret Present only in the response that generated it: a create, or an
// update that adds a webhook, without a `secret` in the request.
Secret *MonitorWebhookSecret `json:"secret,omitempty"`
Url string `json:"url"`
}
MonitorWebhook defines model for MonitorWebhook.
type MonitorWebhookRequest ¶ added in v0.5.0
type MonitorWebhookRequest struct {
// Events Event types to send. Omitted or empty means
// `[monitor.changes.detected, monitor.paused]`. An unknown type
// returns 400 with param `webhook.events[N]`, the index of the
// first unknown entry.
Events *[]MonitorEventType `json:"events,omitempty"`
// Secret Optional signing secret. Without it, create generates one and an
// update keeps the current one (or generates one when the monitor
// had no webhook). A different secret on update rotates: the old one
// also signs for 24 hours. A secret you send is never returned.
Secret *MonitorWebhookSecret `json:"secret,omitempty"`
// Url HTTPS endpoint with a public address
Url string `json:"url"`
}
MonitorWebhookRequest defines model for MonitorWebhookRequest.
type MonitorWebhookSecret ¶ added in v0.5.0
type MonitorWebhookSecret = string
MonitorWebhookSecret Standard Webhooks signing secret: `whsec_` plus the standard (padded) base64 of 24 to 64 bytes; the HMAC key is the decoded bytes.
type MonitorWebhookTest ¶ added in v0.5.0
type MonitorWebhookTest struct {
// Delivered The receiver answered 2xx
Delivered bool `json:"delivered"`
// DurationMs Time from sending to the answer or the failure
DurationMs int32 `json:"duration_ms"`
// Error Why the send failed; omitted when delivered. `http_status`: the
// receiver answered `status_code` (a 3xx too, since redirects are not
// followed). New values may be added.
Error *MonitorWebhookTestError `json:"error,omitempty"`
// EventId The test event's `id` and `webhook-id` header
EventId string `json:"event_id"`
Object MonitorWebhookTestObject `json:"object"`
// StatusCode The receiver's HTTP status; omitted when it never answered
StatusCode *int32 `json:"status_code,omitempty"`
}
MonitorWebhookTest The outcome of one test send
type MonitorWebhookTestError ¶ added in v0.5.0
type MonitorWebhookTestError string
MonitorWebhookTestError Why the send failed; omitted when delivered. `http_status`: the receiver answered `status_code` (a 3xx too, since redirects are not followed). New values may be added.
const ( MonitorWebhookTestErrorBlockedAddress MonitorWebhookTestError = "blocked_address" MonitorWebhookTestErrorHttpStatus MonitorWebhookTestError = "http_status" MonitorWebhookTestErrorInvalidUrl MonitorWebhookTestError = "invalid_url" MonitorWebhookTestErrorNetworkError MonitorWebhookTestError = "network_error" MonitorWebhookTestErrorSendFailed MonitorWebhookTestError = "send_failed" MonitorWebhookTestErrorTimeout MonitorWebhookTestError = "timeout" MonitorWebhookTestErrorTlsCertificate MonitorWebhookTestError = "tls_certificate" )
Defines values for MonitorWebhookTestError.
func (MonitorWebhookTestError) Valid ¶ added in v0.5.0
func (e MonitorWebhookTestError) Valid() bool
Valid indicates whether the value is a known member of the MonitorWebhookTestError enum.
type MonitorWebhookTestObject ¶ added in v0.5.0
type MonitorWebhookTestObject string
MonitorWebhookTestObject defines model for MonitorWebhookTest.Object.
const (
MonitorWebhookTestObjectMonitorWebhookTest MonitorWebhookTestObject = "monitor.webhook_test"
)
Defines values for MonitorWebhookTestObject.
func (MonitorWebhookTestObject) Valid ¶ added in v0.5.0
func (e MonitorWebhookTestObject) Valid() bool
Valid indicates whether the value is a known member of the MonitorWebhookTestObject enum.
type NamespaceTool ¶
type NamespaceTool struct {
Description string `json:"description"`
Name string `json:"name"`
Tools []NamespaceToolDef `json:"tools"`
Type NamespaceToolType `json:"type"`
}
NamespaceTool A response-only namespace containing complete external tool definitions.
type NamespaceToolDef ¶
type NamespaceToolDef struct {
Description *string `json:"description,omitempty"`
Name string `json:"name"`
// Parameters The server's JSON Schema for the tool, passed through unmodified.
Parameters *map[string]interface{} `json:"parameters,omitempty"`
Type NamespaceToolDefType `json:"type"`
}
NamespaceToolDef One function definition discovered by hosted external-tool search.
type NamespaceToolDefType ¶
type NamespaceToolDefType string
NamespaceToolDefType defines model for NamespaceToolDef.Type.
const (
NamespaceToolDefTypeFunction NamespaceToolDefType = "function"
)
Defines values for NamespaceToolDefType.
func (NamespaceToolDefType) Valid ¶
func (e NamespaceToolDefType) Valid() bool
Valid indicates whether the value is a known member of the NamespaceToolDefType enum.
type NamespaceToolType ¶
type NamespaceToolType string
NamespaceToolType defines model for NamespaceTool.Type.
const (
NamespaceToolTypeNamespace NamespaceToolType = "namespace"
)
Defines values for NamespaceToolType.
func (NamespaceToolType) Valid ¶
func (e NamespaceToolType) Valid() bool
Valid indicates whether the value is a known member of the NamespaceToolType enum.
type NoulAnswer ¶
type NoulAnswer struct {
// Noul Probability of yes or true, from 0 to 1. Values near 0.5 mean the model is unsure.
Noul float64 `json:"noul"`
// Type Always `noul`.
Type NoulAnswerType `json:"type"`
}
NoulAnswer Answer to a `noul` question: the probability that the answer is yes or the statement is true.
type NoulAnswerType ¶
type NoulAnswerType string
NoulAnswerType Always `noul`.
const (
NoulAnswerTypeNoul NoulAnswerType = "noul"
)
Defines values for NoulAnswerType.
func (NoulAnswerType) Valid ¶
func (e NoulAnswerType) Valid() bool
Valid indicates whether the value is a known member of the NoulAnswerType enum.
type NoulCriteria ¶
type NoulCriteria struct {
// False What a no answer means for this question.
False *NoulCriteria_False `json:"false,omitempty"`
// True What a yes answer means for this question.
True *NoulCriteria_True `json:"true,omitempty"`
}
NoulCriteria Optional definitions of what counts as yes and what counts as no.
type NoulCriteriaFalse0 ¶
type NoulCriteriaFalse0 = string
NoulCriteriaFalse0 defines model for NoulCriteria.False.0.
type NoulCriteriaFalse1 ¶
type NoulCriteriaFalse1 map[string]interface{}
NoulCriteriaFalse1 defines model for NoulCriteria.False.1.
type NoulCriteriaFalse2 ¶
type NoulCriteriaFalse2 = []interface{}
NoulCriteriaFalse2 defines model for NoulCriteria.False.2.
type NoulCriteriaTrue0 ¶
type NoulCriteriaTrue0 = string
NoulCriteriaTrue0 defines model for NoulCriteria.True.0.
type NoulCriteriaTrue1 ¶
type NoulCriteriaTrue1 map[string]interface{}
NoulCriteriaTrue1 defines model for NoulCriteria.True.1.
type NoulCriteriaTrue2 ¶
type NoulCriteriaTrue2 = []interface{}
NoulCriteriaTrue2 defines model for NoulCriteria.True.2.
type NoulCriteria_False ¶
type NoulCriteria_False struct {
// contains filtered or unexported fields
}
NoulCriteria_False What a no answer means for this question.
func (NoulCriteria_False) AsNoulCriteriaFalse0 ¶
func (t NoulCriteria_False) AsNoulCriteriaFalse0() (NoulCriteriaFalse0, error)
AsNoulCriteriaFalse0 returns the union data inside the NoulCriteria_False as a NoulCriteriaFalse0
func (NoulCriteria_False) AsNoulCriteriaFalse1 ¶
func (t NoulCriteria_False) AsNoulCriteriaFalse1() (NoulCriteriaFalse1, error)
AsNoulCriteriaFalse1 returns the union data inside the NoulCriteria_False as a NoulCriteriaFalse1
func (NoulCriteria_False) AsNoulCriteriaFalse2 ¶
func (t NoulCriteria_False) AsNoulCriteriaFalse2() (NoulCriteriaFalse2, error)
AsNoulCriteriaFalse2 returns the union data inside the NoulCriteria_False as a NoulCriteriaFalse2
func (*NoulCriteria_False) FromNoulCriteriaFalse0 ¶
func (t *NoulCriteria_False) FromNoulCriteriaFalse0(v NoulCriteriaFalse0) error
FromNoulCriteriaFalse0 overwrites any union data inside the NoulCriteria_False as the provided NoulCriteriaFalse0
func (*NoulCriteria_False) FromNoulCriteriaFalse1 ¶
func (t *NoulCriteria_False) FromNoulCriteriaFalse1(v NoulCriteriaFalse1) error
FromNoulCriteriaFalse1 overwrites any union data inside the NoulCriteria_False as the provided NoulCriteriaFalse1
func (*NoulCriteria_False) FromNoulCriteriaFalse2 ¶
func (t *NoulCriteria_False) FromNoulCriteriaFalse2(v NoulCriteriaFalse2) error
FromNoulCriteriaFalse2 overwrites any union data inside the NoulCriteria_False as the provided NoulCriteriaFalse2
func (NoulCriteria_False) MarshalJSON ¶
func (t NoulCriteria_False) MarshalJSON() ([]byte, error)
func (*NoulCriteria_False) MergeNoulCriteriaFalse0 ¶
func (t *NoulCriteria_False) MergeNoulCriteriaFalse0(v NoulCriteriaFalse0) error
MergeNoulCriteriaFalse0 performs a merge with any union data inside the NoulCriteria_False, using the provided NoulCriteriaFalse0
func (*NoulCriteria_False) MergeNoulCriteriaFalse1 ¶
func (t *NoulCriteria_False) MergeNoulCriteriaFalse1(v NoulCriteriaFalse1) error
MergeNoulCriteriaFalse1 performs a merge with any union data inside the NoulCriteria_False, using the provided NoulCriteriaFalse1
func (*NoulCriteria_False) MergeNoulCriteriaFalse2 ¶
func (t *NoulCriteria_False) MergeNoulCriteriaFalse2(v NoulCriteriaFalse2) error
MergeNoulCriteriaFalse2 performs a merge with any union data inside the NoulCriteria_False, using the provided NoulCriteriaFalse2
func (*NoulCriteria_False) UnmarshalJSON ¶
func (t *NoulCriteria_False) UnmarshalJSON(b []byte) error
type NoulCriteria_True ¶
type NoulCriteria_True struct {
// contains filtered or unexported fields
}
NoulCriteria_True What a yes answer means for this question.
func (NoulCriteria_True) AsNoulCriteriaTrue0 ¶
func (t NoulCriteria_True) AsNoulCriteriaTrue0() (NoulCriteriaTrue0, error)
AsNoulCriteriaTrue0 returns the union data inside the NoulCriteria_True as a NoulCriteriaTrue0
func (NoulCriteria_True) AsNoulCriteriaTrue1 ¶
func (t NoulCriteria_True) AsNoulCriteriaTrue1() (NoulCriteriaTrue1, error)
AsNoulCriteriaTrue1 returns the union data inside the NoulCriteria_True as a NoulCriteriaTrue1
func (NoulCriteria_True) AsNoulCriteriaTrue2 ¶
func (t NoulCriteria_True) AsNoulCriteriaTrue2() (NoulCriteriaTrue2, error)
AsNoulCriteriaTrue2 returns the union data inside the NoulCriteria_True as a NoulCriteriaTrue2
func (*NoulCriteria_True) FromNoulCriteriaTrue0 ¶
func (t *NoulCriteria_True) FromNoulCriteriaTrue0(v NoulCriteriaTrue0) error
FromNoulCriteriaTrue0 overwrites any union data inside the NoulCriteria_True as the provided NoulCriteriaTrue0
func (*NoulCriteria_True) FromNoulCriteriaTrue1 ¶
func (t *NoulCriteria_True) FromNoulCriteriaTrue1(v NoulCriteriaTrue1) error
FromNoulCriteriaTrue1 overwrites any union data inside the NoulCriteria_True as the provided NoulCriteriaTrue1
func (*NoulCriteria_True) FromNoulCriteriaTrue2 ¶
func (t *NoulCriteria_True) FromNoulCriteriaTrue2(v NoulCriteriaTrue2) error
FromNoulCriteriaTrue2 overwrites any union data inside the NoulCriteria_True as the provided NoulCriteriaTrue2
func (NoulCriteria_True) MarshalJSON ¶
func (t NoulCriteria_True) MarshalJSON() ([]byte, error)
func (*NoulCriteria_True) MergeNoulCriteriaTrue0 ¶
func (t *NoulCriteria_True) MergeNoulCriteriaTrue0(v NoulCriteriaTrue0) error
MergeNoulCriteriaTrue0 performs a merge with any union data inside the NoulCriteria_True, using the provided NoulCriteriaTrue0
func (*NoulCriteria_True) MergeNoulCriteriaTrue1 ¶
func (t *NoulCriteria_True) MergeNoulCriteriaTrue1(v NoulCriteriaTrue1) error
MergeNoulCriteriaTrue1 performs a merge with any union data inside the NoulCriteria_True, using the provided NoulCriteriaTrue1
func (*NoulCriteria_True) MergeNoulCriteriaTrue2 ¶
func (t *NoulCriteria_True) MergeNoulCriteriaTrue2(v NoulCriteriaTrue2) error
MergeNoulCriteriaTrue2 performs a merge with any union data inside the NoulCriteria_True, using the provided NoulCriteriaTrue2
func (*NoulCriteria_True) UnmarshalJSON ¶
func (t *NoulCriteria_True) UnmarshalJSON(b []byte) error
type NoulQuestion ¶
type NoulQuestion struct {
// Criteria Optional definitions of yes and no. Required unless `instructions` is set.
Criteria *NoulCriteria `json:"criteria,omitempty"`
// Instructions The question to answer or the statement to check. Required unless `criteria` is set.
Instructions *NoulQuestion_Instructions `json:"instructions,omitempty"`
// Type Always `noul`.
Type NoulQuestionType `json:"type"`
}
NoulQuestion A yes/no question, or a statement to check, answered with the probability of yes or true.
type NoulQuestionInstructions0 ¶
type NoulQuestionInstructions0 = string
NoulQuestionInstructions0 defines model for NoulQuestion.Instructions.0.
type NoulQuestionInstructions1 ¶
type NoulQuestionInstructions1 map[string]interface{}
NoulQuestionInstructions1 defines model for NoulQuestion.Instructions.1.
type NoulQuestionInstructions2 ¶
type NoulQuestionInstructions2 = []interface{}
NoulQuestionInstructions2 defines model for NoulQuestion.Instructions.2.
type NoulQuestionType ¶
type NoulQuestionType string
NoulQuestionType Always `noul`.
const (
NoulQuestionTypeNoul NoulQuestionType = "noul"
)
Defines values for NoulQuestionType.
func (NoulQuestionType) Valid ¶
func (e NoulQuestionType) Valid() bool
Valid indicates whether the value is a known member of the NoulQuestionType enum.
type NoulQuestion_Instructions ¶
type NoulQuestion_Instructions struct {
// contains filtered or unexported fields
}
NoulQuestion_Instructions The question to answer or the statement to check. Required unless `criteria` is set.
func (NoulQuestion_Instructions) AsNoulQuestionInstructions0 ¶
func (t NoulQuestion_Instructions) AsNoulQuestionInstructions0() (NoulQuestionInstructions0, error)
AsNoulQuestionInstructions0 returns the union data inside the NoulQuestion_Instructions as a NoulQuestionInstructions0
func (NoulQuestion_Instructions) AsNoulQuestionInstructions1 ¶
func (t NoulQuestion_Instructions) AsNoulQuestionInstructions1() (NoulQuestionInstructions1, error)
AsNoulQuestionInstructions1 returns the union data inside the NoulQuestion_Instructions as a NoulQuestionInstructions1
func (NoulQuestion_Instructions) AsNoulQuestionInstructions2 ¶
func (t NoulQuestion_Instructions) AsNoulQuestionInstructions2() (NoulQuestionInstructions2, error)
AsNoulQuestionInstructions2 returns the union data inside the NoulQuestion_Instructions as a NoulQuestionInstructions2
func (*NoulQuestion_Instructions) FromNoulQuestionInstructions0 ¶
func (t *NoulQuestion_Instructions) FromNoulQuestionInstructions0(v NoulQuestionInstructions0) error
FromNoulQuestionInstructions0 overwrites any union data inside the NoulQuestion_Instructions as the provided NoulQuestionInstructions0
func (*NoulQuestion_Instructions) FromNoulQuestionInstructions1 ¶
func (t *NoulQuestion_Instructions) FromNoulQuestionInstructions1(v NoulQuestionInstructions1) error
FromNoulQuestionInstructions1 overwrites any union data inside the NoulQuestion_Instructions as the provided NoulQuestionInstructions1
func (*NoulQuestion_Instructions) FromNoulQuestionInstructions2 ¶
func (t *NoulQuestion_Instructions) FromNoulQuestionInstructions2(v NoulQuestionInstructions2) error
FromNoulQuestionInstructions2 overwrites any union data inside the NoulQuestion_Instructions as the provided NoulQuestionInstructions2
func (NoulQuestion_Instructions) MarshalJSON ¶
func (t NoulQuestion_Instructions) MarshalJSON() ([]byte, error)
func (*NoulQuestion_Instructions) MergeNoulQuestionInstructions0 ¶
func (t *NoulQuestion_Instructions) MergeNoulQuestionInstructions0(v NoulQuestionInstructions0) error
MergeNoulQuestionInstructions0 performs a merge with any union data inside the NoulQuestion_Instructions, using the provided NoulQuestionInstructions0
func (*NoulQuestion_Instructions) MergeNoulQuestionInstructions1 ¶
func (t *NoulQuestion_Instructions) MergeNoulQuestionInstructions1(v NoulQuestionInstructions1) error
MergeNoulQuestionInstructions1 performs a merge with any union data inside the NoulQuestion_Instructions, using the provided NoulQuestionInstructions1
func (*NoulQuestion_Instructions) MergeNoulQuestionInstructions2 ¶
func (t *NoulQuestion_Instructions) MergeNoulQuestionInstructions2(v NoulQuestionInstructions2) error
MergeNoulQuestionInstructions2 performs a merge with any union data inside the NoulQuestion_Instructions, using the provided NoulQuestionInstructions2
func (*NoulQuestion_Instructions) UnmarshalJSON ¶
func (t *NoulQuestion_Instructions) UnmarshalJSON(b []byte) error
type OrchestratorChatChatCompletionAllowedTools ¶ added in v0.6.0
type OrchestratorChatChatCompletionAllowedTools struct {
Mode OrchestratorChatChatCompletionAllowedToolsMode `json:"mode"`
Tools []map[string]interface{} `json:"tools"`
}
OrchestratorChatChatCompletionAllowedTools defines model for OrchestratorChatChatCompletionAllowedTools.
type OrchestratorChatChatCompletionAllowedToolsChoice ¶ added in v0.6.0
type OrchestratorChatChatCompletionAllowedToolsChoice struct {
AllowedTools OrchestratorChatChatCompletionAllowedTools `json:"allowed_tools"`
Type OrchestratorChatChatCompletionAllowedToolsChoiceType `json:"type"`
}
OrchestratorChatChatCompletionAllowedToolsChoice defines model for OrchestratorChatChatCompletionAllowedToolsChoice.
type OrchestratorChatChatCompletionAllowedToolsChoiceType ¶ added in v0.6.0
type OrchestratorChatChatCompletionAllowedToolsChoiceType string
OrchestratorChatChatCompletionAllowedToolsChoiceType defines model for OrchestratorChatChatCompletionAllowedToolsChoice.Type.
const (
OrchestratorChatChatCompletionAllowedToolsChoiceTypeAllowedTools OrchestratorChatChatCompletionAllowedToolsChoiceType = "allowed_tools"
)
Defines values for OrchestratorChatChatCompletionAllowedToolsChoiceType.
func (OrchestratorChatChatCompletionAllowedToolsChoiceType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionAllowedToolsChoiceType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionAllowedToolsChoiceType enum.
type OrchestratorChatChatCompletionAllowedToolsMode ¶ added in v0.6.0
type OrchestratorChatChatCompletionAllowedToolsMode string
OrchestratorChatChatCompletionAllowedToolsMode defines model for OrchestratorChatChatCompletionAllowedTools.Mode.
const ( OrchestratorChatChatCompletionAllowedToolsModeAuto OrchestratorChatChatCompletionAllowedToolsMode = "auto" OrchestratorChatChatCompletionAllowedToolsModeRequired OrchestratorChatChatCompletionAllowedToolsMode = "required" )
Defines values for OrchestratorChatChatCompletionAllowedToolsMode.
func (OrchestratorChatChatCompletionAllowedToolsMode) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionAllowedToolsMode) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionAllowedToolsMode enum.
type OrchestratorChatChatCompletionMessageCustomToolCall ¶ added in v0.6.0
type OrchestratorChatChatCompletionMessageCustomToolCall struct {
Custom struct {
Input string `json:"input"`
Name string `json:"name"`
} `json:"custom"`
Id string `json:"id"`
Type OrchestratorChatChatCompletionMessageCustomToolCallType `json:"type"`
}
OrchestratorChatChatCompletionMessageCustomToolCall defines model for OrchestratorChatChatCompletionMessageCustomToolCall.
type OrchestratorChatChatCompletionMessageCustomToolCallType ¶ added in v0.6.0
type OrchestratorChatChatCompletionMessageCustomToolCallType string
OrchestratorChatChatCompletionMessageCustomToolCallType defines model for OrchestratorChatChatCompletionMessageCustomToolCall.Type.
const (
OrchestratorChatChatCompletionMessageCustomToolCallTypeCustom OrchestratorChatChatCompletionMessageCustomToolCallType = "custom"
)
Defines values for OrchestratorChatChatCompletionMessageCustomToolCallType.
func (OrchestratorChatChatCompletionMessageCustomToolCallType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionMessageCustomToolCallType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionMessageCustomToolCallType enum.
type OrchestratorChatChatCompletionMessageToolCall ¶ added in v0.6.0
type OrchestratorChatChatCompletionMessageToolCall struct {
Function struct {
Arguments string `json:"arguments"`
Name string `json:"name"`
} `json:"function"`
Id string `json:"id"`
Type OrchestratorChatChatCompletionMessageToolCallType `json:"type"`
}
OrchestratorChatChatCompletionMessageToolCall defines model for OrchestratorChatChatCompletionMessageToolCall.
type OrchestratorChatChatCompletionMessageToolCallChunk ¶ added in v0.6.0
type OrchestratorChatChatCompletionMessageToolCallChunk struct {
Function *struct {
Arguments *string `json:"arguments,omitempty"`
Name *string `json:"name,omitempty"`
} `json:"function,omitempty"`
Id *string `json:"id,omitempty"`
Index int `json:"index"`
Type *OrchestratorChatChatCompletionMessageToolCallChunkType `json:"type,omitempty"`
}
OrchestratorChatChatCompletionMessageToolCallChunk defines model for OrchestratorChatChatCompletionMessageToolCallChunk.
type OrchestratorChatChatCompletionMessageToolCallChunkType ¶ added in v0.6.0
type OrchestratorChatChatCompletionMessageToolCallChunkType string
OrchestratorChatChatCompletionMessageToolCallChunkType defines model for OrchestratorChatChatCompletionMessageToolCallChunk.Type.
const (
OrchestratorChatChatCompletionMessageToolCallChunkTypeFunction OrchestratorChatChatCompletionMessageToolCallChunkType = "function"
)
Defines values for OrchestratorChatChatCompletionMessageToolCallChunkType.
func (OrchestratorChatChatCompletionMessageToolCallChunkType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionMessageToolCallChunkType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionMessageToolCallChunkType enum.
type OrchestratorChatChatCompletionMessageToolCallType ¶ added in v0.6.0
type OrchestratorChatChatCompletionMessageToolCallType string
OrchestratorChatChatCompletionMessageToolCallType defines model for OrchestratorChatChatCompletionMessageToolCall.Type.
const (
OrchestratorChatChatCompletionMessageToolCallTypeFunction OrchestratorChatChatCompletionMessageToolCallType = "function"
)
Defines values for OrchestratorChatChatCompletionMessageToolCallType.
func (OrchestratorChatChatCompletionMessageToolCallType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionMessageToolCallType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionMessageToolCallType enum.
type OrchestratorChatChatCompletionMessageToolCalls ¶ added in v0.6.0
type OrchestratorChatChatCompletionMessageToolCalls = []OrchestratorChatChatCompletionMessageToolCalls_Item
OrchestratorChatChatCompletionMessageToolCalls defines model for OrchestratorChatChatCompletionMessageToolCalls.
type OrchestratorChatChatCompletionMessageToolCalls_Item ¶ added in v0.6.0
type OrchestratorChatChatCompletionMessageToolCalls_Item struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionMessageToolCalls_Item defines model for OrchestratorChatChatCompletionMessageToolCalls.Item.
func (OrchestratorChatChatCompletionMessageToolCalls_Item) AsOrchestratorChatChatCompletionMessageCustomToolCall ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionMessageToolCalls_Item) AsOrchestratorChatChatCompletionMessageCustomToolCall() (OrchestratorChatChatCompletionMessageCustomToolCall, error)
AsOrchestratorChatChatCompletionMessageCustomToolCall returns the union data inside the OrchestratorChatChatCompletionMessageToolCalls_Item as a OrchestratorChatChatCompletionMessageCustomToolCall
func (OrchestratorChatChatCompletionMessageToolCalls_Item) AsOrchestratorChatChatCompletionMessageToolCall ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionMessageToolCalls_Item) AsOrchestratorChatChatCompletionMessageToolCall() (OrchestratorChatChatCompletionMessageToolCall, error)
AsOrchestratorChatChatCompletionMessageToolCall returns the union data inside the OrchestratorChatChatCompletionMessageToolCalls_Item as a OrchestratorChatChatCompletionMessageToolCall
func (OrchestratorChatChatCompletionMessageToolCalls_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionMessageToolCalls_Item) Discriminator() (string, error)
func (*OrchestratorChatChatCompletionMessageToolCalls_Item) FromOrchestratorChatChatCompletionMessageCustomToolCall ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionMessageToolCalls_Item) FromOrchestratorChatChatCompletionMessageCustomToolCall(v OrchestratorChatChatCompletionMessageCustomToolCall) error
FromOrchestratorChatChatCompletionMessageCustomToolCall overwrites any union data inside the OrchestratorChatChatCompletionMessageToolCalls_Item as the provided OrchestratorChatChatCompletionMessageCustomToolCall
func (*OrchestratorChatChatCompletionMessageToolCalls_Item) FromOrchestratorChatChatCompletionMessageToolCall ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionMessageToolCalls_Item) FromOrchestratorChatChatCompletionMessageToolCall(v OrchestratorChatChatCompletionMessageToolCall) error
FromOrchestratorChatChatCompletionMessageToolCall overwrites any union data inside the OrchestratorChatChatCompletionMessageToolCalls_Item as the provided OrchestratorChatChatCompletionMessageToolCall
func (OrchestratorChatChatCompletionMessageToolCalls_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionMessageToolCalls_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionMessageToolCalls_Item) MergeOrchestratorChatChatCompletionMessageCustomToolCall ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionMessageToolCalls_Item) MergeOrchestratorChatChatCompletionMessageCustomToolCall(v OrchestratorChatChatCompletionMessageCustomToolCall) error
MergeOrchestratorChatChatCompletionMessageCustomToolCall performs a merge with any union data inside the OrchestratorChatChatCompletionMessageToolCalls_Item, using the provided OrchestratorChatChatCompletionMessageCustomToolCall
func (*OrchestratorChatChatCompletionMessageToolCalls_Item) MergeOrchestratorChatChatCompletionMessageToolCall ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionMessageToolCalls_Item) MergeOrchestratorChatChatCompletionMessageToolCall(v OrchestratorChatChatCompletionMessageToolCall) error
MergeOrchestratorChatChatCompletionMessageToolCall performs a merge with any union data inside the OrchestratorChatChatCompletionMessageToolCalls_Item, using the provided OrchestratorChatChatCompletionMessageToolCall
func (*OrchestratorChatChatCompletionMessageToolCalls_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionMessageToolCalls_Item) UnmarshalJSON(b []byte) error
func (OrchestratorChatChatCompletionMessageToolCalls_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionMessageToolCalls_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorChatChatCompletionModeration ¶ added in v0.6.0
type OrchestratorChatChatCompletionModeration struct {
Input OrchestratorChatChatCompletionModeration_Input `json:"input"`
Output OrchestratorChatChatCompletionModeration_Output `json:"output"`
}
OrchestratorChatChatCompletionModeration defines model for OrchestratorChatChatCompletionModeration.
type OrchestratorChatChatCompletionModerationError ¶ added in v0.6.0
type OrchestratorChatChatCompletionModerationError struct {
Code string `json:"code"`
Message string `json:"message"`
Type OrchestratorChatChatCompletionModerationErrorType `json:"type"`
}
OrchestratorChatChatCompletionModerationError defines model for OrchestratorChatChatCompletionModerationError.
type OrchestratorChatChatCompletionModerationErrorType ¶ added in v0.6.0
type OrchestratorChatChatCompletionModerationErrorType string
OrchestratorChatChatCompletionModerationErrorType defines model for OrchestratorChatChatCompletionModerationError.Type.
const (
OrchestratorChatChatCompletionModerationErrorTypeError OrchestratorChatChatCompletionModerationErrorType = "error"
)
Defines values for OrchestratorChatChatCompletionModerationErrorType.
func (OrchestratorChatChatCompletionModerationErrorType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionModerationErrorType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionModerationErrorType enum.
type OrchestratorChatChatCompletionModerationResults ¶ added in v0.6.0
type OrchestratorChatChatCompletionModerationResults struct {
Model string `json:"model"`
Results []OrchestratorChatModerationResultBody `json:"results"`
Type OrchestratorChatChatCompletionModerationResultsType `json:"type"`
}
OrchestratorChatChatCompletionModerationResults defines model for OrchestratorChatChatCompletionModerationResults.
type OrchestratorChatChatCompletionModerationResultsType ¶ added in v0.6.0
type OrchestratorChatChatCompletionModerationResultsType string
OrchestratorChatChatCompletionModerationResultsType defines model for OrchestratorChatChatCompletionModerationResults.Type.
const (
OrchestratorChatChatCompletionModerationResultsTypeModerationResults OrchestratorChatChatCompletionModerationResultsType = "moderation_results"
)
Defines values for OrchestratorChatChatCompletionModerationResultsType.
func (OrchestratorChatChatCompletionModerationResultsType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionModerationResultsType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionModerationResultsType enum.
type OrchestratorChatChatCompletionModeration_Input ¶ added in v0.6.0
type OrchestratorChatChatCompletionModeration_Input struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionModeration_Input defines model for OrchestratorChatChatCompletionModeration.Input.
func (OrchestratorChatChatCompletionModeration_Input) AsOrchestratorChatChatCompletionModerationError ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionModeration_Input) AsOrchestratorChatChatCompletionModerationError() (OrchestratorChatChatCompletionModerationError, error)
AsOrchestratorChatChatCompletionModerationError returns the union data inside the OrchestratorChatChatCompletionModeration_Input as a OrchestratorChatChatCompletionModerationError
func (OrchestratorChatChatCompletionModeration_Input) AsOrchestratorChatChatCompletionModerationResults ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionModeration_Input) AsOrchestratorChatChatCompletionModerationResults() (OrchestratorChatChatCompletionModerationResults, error)
AsOrchestratorChatChatCompletionModerationResults returns the union data inside the OrchestratorChatChatCompletionModeration_Input as a OrchestratorChatChatCompletionModerationResults
func (OrchestratorChatChatCompletionModeration_Input) Discriminator ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionModeration_Input) Discriminator() (string, error)
func (*OrchestratorChatChatCompletionModeration_Input) FromOrchestratorChatChatCompletionModerationError ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionModeration_Input) FromOrchestratorChatChatCompletionModerationError(v OrchestratorChatChatCompletionModerationError) error
FromOrchestratorChatChatCompletionModerationError overwrites any union data inside the OrchestratorChatChatCompletionModeration_Input as the provided OrchestratorChatChatCompletionModerationError
func (*OrchestratorChatChatCompletionModeration_Input) FromOrchestratorChatChatCompletionModerationResults ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionModeration_Input) FromOrchestratorChatChatCompletionModerationResults(v OrchestratorChatChatCompletionModerationResults) error
FromOrchestratorChatChatCompletionModerationResults overwrites any union data inside the OrchestratorChatChatCompletionModeration_Input as the provided OrchestratorChatChatCompletionModerationResults
func (OrchestratorChatChatCompletionModeration_Input) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionModeration_Input) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionModeration_Input) MergeOrchestratorChatChatCompletionModerationError ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionModeration_Input) MergeOrchestratorChatChatCompletionModerationError(v OrchestratorChatChatCompletionModerationError) error
MergeOrchestratorChatChatCompletionModerationError performs a merge with any union data inside the OrchestratorChatChatCompletionModeration_Input, using the provided OrchestratorChatChatCompletionModerationError
func (*OrchestratorChatChatCompletionModeration_Input) MergeOrchestratorChatChatCompletionModerationResults ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionModeration_Input) MergeOrchestratorChatChatCompletionModerationResults(v OrchestratorChatChatCompletionModerationResults) error
MergeOrchestratorChatChatCompletionModerationResults performs a merge with any union data inside the OrchestratorChatChatCompletionModeration_Input, using the provided OrchestratorChatChatCompletionModerationResults
func (*OrchestratorChatChatCompletionModeration_Input) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionModeration_Input) UnmarshalJSON(b []byte) error
func (OrchestratorChatChatCompletionModeration_Input) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionModeration_Input) ValueByDiscriminator() (interface{}, error)
type OrchestratorChatChatCompletionModeration_Output ¶ added in v0.6.0
type OrchestratorChatChatCompletionModeration_Output struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionModeration_Output defines model for OrchestratorChatChatCompletionModeration.Output.
func (OrchestratorChatChatCompletionModeration_Output) AsOrchestratorChatChatCompletionModerationError ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionModeration_Output) AsOrchestratorChatChatCompletionModerationError() (OrchestratorChatChatCompletionModerationError, error)
AsOrchestratorChatChatCompletionModerationError returns the union data inside the OrchestratorChatChatCompletionModeration_Output as a OrchestratorChatChatCompletionModerationError
func (OrchestratorChatChatCompletionModeration_Output) AsOrchestratorChatChatCompletionModerationResults ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionModeration_Output) AsOrchestratorChatChatCompletionModerationResults() (OrchestratorChatChatCompletionModerationResults, error)
AsOrchestratorChatChatCompletionModerationResults returns the union data inside the OrchestratorChatChatCompletionModeration_Output as a OrchestratorChatChatCompletionModerationResults
func (OrchestratorChatChatCompletionModeration_Output) Discriminator ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionModeration_Output) Discriminator() (string, error)
func (*OrchestratorChatChatCompletionModeration_Output) FromOrchestratorChatChatCompletionModerationError ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionModeration_Output) FromOrchestratorChatChatCompletionModerationError(v OrchestratorChatChatCompletionModerationError) error
FromOrchestratorChatChatCompletionModerationError overwrites any union data inside the OrchestratorChatChatCompletionModeration_Output as the provided OrchestratorChatChatCompletionModerationError
func (*OrchestratorChatChatCompletionModeration_Output) FromOrchestratorChatChatCompletionModerationResults ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionModeration_Output) FromOrchestratorChatChatCompletionModerationResults(v OrchestratorChatChatCompletionModerationResults) error
FromOrchestratorChatChatCompletionModerationResults overwrites any union data inside the OrchestratorChatChatCompletionModeration_Output as the provided OrchestratorChatChatCompletionModerationResults
func (OrchestratorChatChatCompletionModeration_Output) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionModeration_Output) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionModeration_Output) MergeOrchestratorChatChatCompletionModerationError ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionModeration_Output) MergeOrchestratorChatChatCompletionModerationError(v OrchestratorChatChatCompletionModerationError) error
MergeOrchestratorChatChatCompletionModerationError performs a merge with any union data inside the OrchestratorChatChatCompletionModeration_Output, using the provided OrchestratorChatChatCompletionModerationError
func (*OrchestratorChatChatCompletionModeration_Output) MergeOrchestratorChatChatCompletionModerationResults ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionModeration_Output) MergeOrchestratorChatChatCompletionModerationResults(v OrchestratorChatChatCompletionModerationResults) error
MergeOrchestratorChatChatCompletionModerationResults performs a merge with any union data inside the OrchestratorChatChatCompletionModeration_Output, using the provided OrchestratorChatChatCompletionModerationResults
func (*OrchestratorChatChatCompletionModeration_Output) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionModeration_Output) UnmarshalJSON(b []byte) error
func (OrchestratorChatChatCompletionModeration_Output) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionModeration_Output) ValueByDiscriminator() (interface{}, error)
type OrchestratorChatChatCompletionNamedToolChoice ¶ added in v0.6.0
type OrchestratorChatChatCompletionNamedToolChoice struct {
Function struct {
Name string `json:"name"`
} `json:"function"`
Type OrchestratorChatChatCompletionNamedToolChoiceType `json:"type"`
}
OrchestratorChatChatCompletionNamedToolChoice defines model for OrchestratorChatChatCompletionNamedToolChoice.
type OrchestratorChatChatCompletionNamedToolChoiceCustom ¶ added in v0.6.0
type OrchestratorChatChatCompletionNamedToolChoiceCustom struct {
Custom struct {
Name string `json:"name"`
} `json:"custom"`
Type OrchestratorChatChatCompletionNamedToolChoiceCustomType `json:"type"`
}
OrchestratorChatChatCompletionNamedToolChoiceCustom defines model for OrchestratorChatChatCompletionNamedToolChoiceCustom.
type OrchestratorChatChatCompletionNamedToolChoiceCustomType ¶ added in v0.6.0
type OrchestratorChatChatCompletionNamedToolChoiceCustomType string
OrchestratorChatChatCompletionNamedToolChoiceCustomType defines model for OrchestratorChatChatCompletionNamedToolChoiceCustom.Type.
const (
OrchestratorChatChatCompletionNamedToolChoiceCustomTypeCustom OrchestratorChatChatCompletionNamedToolChoiceCustomType = "custom"
)
Defines values for OrchestratorChatChatCompletionNamedToolChoiceCustomType.
func (OrchestratorChatChatCompletionNamedToolChoiceCustomType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionNamedToolChoiceCustomType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionNamedToolChoiceCustomType enum.
type OrchestratorChatChatCompletionNamedToolChoiceType ¶ added in v0.6.0
type OrchestratorChatChatCompletionNamedToolChoiceType string
OrchestratorChatChatCompletionNamedToolChoiceType defines model for OrchestratorChatChatCompletionNamedToolChoice.Type.
const (
OrchestratorChatChatCompletionNamedToolChoiceTypeFunction OrchestratorChatChatCompletionNamedToolChoiceType = "function"
)
Defines values for OrchestratorChatChatCompletionNamedToolChoiceType.
func (OrchestratorChatChatCompletionNamedToolChoiceType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionNamedToolChoiceType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionNamedToolChoiceType enum.
type OrchestratorChatChatCompletionRequestAssistantMessage ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestAssistantMessage struct {
Audio *struct {
Id string `json:"id"`
} `json:"audio,omitempty"`
Content *struct {
// contains filtered or unexported fields
} `json:"content,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
FunctionCall *struct {
Arguments string `json:"arguments"`
Name string `json:"name"`
} `json:"function_call,omitempty"`
Name *string `json:"name,omitempty"`
ReasoningContent *string `json:"reasoning_content,omitempty"`
Refusal *string `json:"refusal,omitempty"`
Role OrchestratorChatChatCompletionRequestAssistantMessageRole `json:"role"`
ToolCalls *OrchestratorChatChatCompletionMessageToolCalls `json:"tool_calls,omitempty"`
}
OrchestratorChatChatCompletionRequestAssistantMessage defines model for OrchestratorChatChatCompletionRequestAssistantMessage.
type OrchestratorChatChatCompletionRequestAssistantMessageContent0 ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestAssistantMessageContent0 = string
OrchestratorChatChatCompletionRequestAssistantMessageContent0 defines model for OrchestratorChatChatCompletionRequestAssistantMessage.Content.0.
type OrchestratorChatChatCompletionRequestAssistantMessageContent1 ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestAssistantMessageContent1 = []OrchestratorChatChatCompletionRequestAssistantMessageContentPart
OrchestratorChatChatCompletionRequestAssistantMessageContent1 defines model for OrchestratorChatChatCompletionRequestAssistantMessage.Content.1.
type OrchestratorChatChatCompletionRequestAssistantMessageContentPart ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestAssistantMessageContentPart struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionRequestAssistantMessageContentPart defines model for OrchestratorChatChatCompletionRequestAssistantMessageContentPart.
func (OrchestratorChatChatCompletionRequestAssistantMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartRefusal ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestAssistantMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartRefusal() (OrchestratorChatChatCompletionRequestMessageContentPartRefusal, error)
AsOrchestratorChatChatCompletionRequestMessageContentPartRefusal returns the union data inside the OrchestratorChatChatCompletionRequestAssistantMessageContentPart as a OrchestratorChatChatCompletionRequestMessageContentPartRefusal
func (OrchestratorChatChatCompletionRequestAssistantMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestAssistantMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText() (OrchestratorChatChatCompletionRequestMessageContentPartText, error)
AsOrchestratorChatChatCompletionRequestMessageContentPartText returns the union data inside the OrchestratorChatChatCompletionRequestAssistantMessageContentPart as a OrchestratorChatChatCompletionRequestMessageContentPartText
func (OrchestratorChatChatCompletionRequestAssistantMessageContentPart) Discriminator ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestAssistantMessageContentPart) Discriminator() (string, error)
func (*OrchestratorChatChatCompletionRequestAssistantMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartRefusal ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestAssistantMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartRefusal(v OrchestratorChatChatCompletionRequestMessageContentPartRefusal) error
FromOrchestratorChatChatCompletionRequestMessageContentPartRefusal overwrites any union data inside the OrchestratorChatChatCompletionRequestAssistantMessageContentPart as the provided OrchestratorChatChatCompletionRequestMessageContentPartRefusal
func (*OrchestratorChatChatCompletionRequestAssistantMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestAssistantMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
FromOrchestratorChatChatCompletionRequestMessageContentPartText overwrites any union data inside the OrchestratorChatChatCompletionRequestAssistantMessageContentPart as the provided OrchestratorChatChatCompletionRequestMessageContentPartText
func (OrchestratorChatChatCompletionRequestAssistantMessageContentPart) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestAssistantMessageContentPart) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionRequestAssistantMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartRefusal ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestAssistantMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartRefusal(v OrchestratorChatChatCompletionRequestMessageContentPartRefusal) error
MergeOrchestratorChatChatCompletionRequestMessageContentPartRefusal performs a merge with any union data inside the OrchestratorChatChatCompletionRequestAssistantMessageContentPart, using the provided OrchestratorChatChatCompletionRequestMessageContentPartRefusal
func (*OrchestratorChatChatCompletionRequestAssistantMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestAssistantMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
MergeOrchestratorChatChatCompletionRequestMessageContentPartText performs a merge with any union data inside the OrchestratorChatChatCompletionRequestAssistantMessageContentPart, using the provided OrchestratorChatChatCompletionRequestMessageContentPartText
func (*OrchestratorChatChatCompletionRequestAssistantMessageContentPart) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestAssistantMessageContentPart) UnmarshalJSON(b []byte) error
func (OrchestratorChatChatCompletionRequestAssistantMessageContentPart) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestAssistantMessageContentPart) ValueByDiscriminator() (interface{}, error)
type OrchestratorChatChatCompletionRequestAssistantMessageRole ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestAssistantMessageRole string
OrchestratorChatChatCompletionRequestAssistantMessageRole defines model for OrchestratorChatChatCompletionRequestAssistantMessage.Role.
const (
OrchestratorChatChatCompletionRequestAssistantMessageRoleAssistant OrchestratorChatChatCompletionRequestAssistantMessageRole = "assistant"
)
Defines values for OrchestratorChatChatCompletionRequestAssistantMessageRole.
func (OrchestratorChatChatCompletionRequestAssistantMessageRole) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestAssistantMessageRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestAssistantMessageRole enum.
type OrchestratorChatChatCompletionRequestDeveloperMessage ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestDeveloperMessage struct {
Content OrchestratorChatChatCompletionRequestDeveloperMessage_Content `json:"content"`
Name *string `json:"name,omitempty"`
Role OrchestratorChatChatCompletionRequestDeveloperMessageRole `json:"role"`
}
OrchestratorChatChatCompletionRequestDeveloperMessage defines model for OrchestratorChatChatCompletionRequestDeveloperMessage.
type OrchestratorChatChatCompletionRequestDeveloperMessageContent0 ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestDeveloperMessageContent0 = string
OrchestratorChatChatCompletionRequestDeveloperMessageContent0 defines model for OrchestratorChatChatCompletionRequestDeveloperMessage.Content.0.
type OrchestratorChatChatCompletionRequestDeveloperMessageContent1 ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestDeveloperMessageContent1 = []OrchestratorChatChatCompletionRequestMessageContentPartText
OrchestratorChatChatCompletionRequestDeveloperMessageContent1 defines model for OrchestratorChatChatCompletionRequestDeveloperMessage.Content.1.
type OrchestratorChatChatCompletionRequestDeveloperMessageRole ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestDeveloperMessageRole string
OrchestratorChatChatCompletionRequestDeveloperMessageRole defines model for OrchestratorChatChatCompletionRequestDeveloperMessage.Role.
const (
OrchestratorChatChatCompletionRequestDeveloperMessageRoleDeveloper OrchestratorChatChatCompletionRequestDeveloperMessageRole = "developer"
)
Defines values for OrchestratorChatChatCompletionRequestDeveloperMessageRole.
func (OrchestratorChatChatCompletionRequestDeveloperMessageRole) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestDeveloperMessageRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestDeveloperMessageRole enum.
type OrchestratorChatChatCompletionRequestDeveloperMessage_Content ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestDeveloperMessage_Content struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionRequestDeveloperMessage_Content defines model for OrchestratorChatChatCompletionRequestDeveloperMessage.Content.
func (OrchestratorChatChatCompletionRequestDeveloperMessage_Content) AsOrchestratorChatChatCompletionRequestDeveloperMessageContent0 ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestDeveloperMessage_Content) AsOrchestratorChatChatCompletionRequestDeveloperMessageContent0() (OrchestratorChatChatCompletionRequestDeveloperMessageContent0, error)
AsOrchestratorChatChatCompletionRequestDeveloperMessageContent0 returns the union data inside the OrchestratorChatChatCompletionRequestDeveloperMessage_Content as a OrchestratorChatChatCompletionRequestDeveloperMessageContent0
func (OrchestratorChatChatCompletionRequestDeveloperMessage_Content) AsOrchestratorChatChatCompletionRequestDeveloperMessageContent1 ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestDeveloperMessage_Content) AsOrchestratorChatChatCompletionRequestDeveloperMessageContent1() (OrchestratorChatChatCompletionRequestDeveloperMessageContent1, error)
AsOrchestratorChatChatCompletionRequestDeveloperMessageContent1 returns the union data inside the OrchestratorChatChatCompletionRequestDeveloperMessage_Content as a OrchestratorChatChatCompletionRequestDeveloperMessageContent1
func (*OrchestratorChatChatCompletionRequestDeveloperMessage_Content) FromOrchestratorChatChatCompletionRequestDeveloperMessageContent0 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestDeveloperMessage_Content) FromOrchestratorChatChatCompletionRequestDeveloperMessageContent0(v OrchestratorChatChatCompletionRequestDeveloperMessageContent0) error
FromOrchestratorChatChatCompletionRequestDeveloperMessageContent0 overwrites any union data inside the OrchestratorChatChatCompletionRequestDeveloperMessage_Content as the provided OrchestratorChatChatCompletionRequestDeveloperMessageContent0
func (*OrchestratorChatChatCompletionRequestDeveloperMessage_Content) FromOrchestratorChatChatCompletionRequestDeveloperMessageContent1 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestDeveloperMessage_Content) FromOrchestratorChatChatCompletionRequestDeveloperMessageContent1(v OrchestratorChatChatCompletionRequestDeveloperMessageContent1) error
FromOrchestratorChatChatCompletionRequestDeveloperMessageContent1 overwrites any union data inside the OrchestratorChatChatCompletionRequestDeveloperMessage_Content as the provided OrchestratorChatChatCompletionRequestDeveloperMessageContent1
func (OrchestratorChatChatCompletionRequestDeveloperMessage_Content) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestDeveloperMessage_Content) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionRequestDeveloperMessage_Content) MergeOrchestratorChatChatCompletionRequestDeveloperMessageContent0 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestDeveloperMessage_Content) MergeOrchestratorChatChatCompletionRequestDeveloperMessageContent0(v OrchestratorChatChatCompletionRequestDeveloperMessageContent0) error
MergeOrchestratorChatChatCompletionRequestDeveloperMessageContent0 performs a merge with any union data inside the OrchestratorChatChatCompletionRequestDeveloperMessage_Content, using the provided OrchestratorChatChatCompletionRequestDeveloperMessageContent0
func (*OrchestratorChatChatCompletionRequestDeveloperMessage_Content) MergeOrchestratorChatChatCompletionRequestDeveloperMessageContent1 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestDeveloperMessage_Content) MergeOrchestratorChatChatCompletionRequestDeveloperMessageContent1(v OrchestratorChatChatCompletionRequestDeveloperMessageContent1) error
MergeOrchestratorChatChatCompletionRequestDeveloperMessageContent1 performs a merge with any union data inside the OrchestratorChatChatCompletionRequestDeveloperMessage_Content, using the provided OrchestratorChatChatCompletionRequestDeveloperMessageContent1
func (*OrchestratorChatChatCompletionRequestDeveloperMessage_Content) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestDeveloperMessage_Content) UnmarshalJSON(b []byte) error
type OrchestratorChatChatCompletionRequestFunctionMessage
deprecated
added in
v0.6.0
type OrchestratorChatChatCompletionRequestFunctionMessage struct {
Content *string `json:"content"`
Name string `json:"name"`
Role OrchestratorChatChatCompletionRequestFunctionMessageRole `json:"role"`
}
OrchestratorChatChatCompletionRequestFunctionMessage defines model for OrchestratorChatChatCompletionRequestFunctionMessage.
Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set
type OrchestratorChatChatCompletionRequestFunctionMessageRole ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestFunctionMessageRole string
OrchestratorChatChatCompletionRequestFunctionMessageRole defines model for OrchestratorChatChatCompletionRequestFunctionMessage.Role.
const (
OrchestratorChatChatCompletionRequestFunctionMessageRoleFunction OrchestratorChatChatCompletionRequestFunctionMessageRole = "function"
)
Defines values for OrchestratorChatChatCompletionRequestFunctionMessageRole.
func (OrchestratorChatChatCompletionRequestFunctionMessageRole) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestFunctionMessageRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestFunctionMessageRole enum.
type OrchestratorChatChatCompletionRequestMessage ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessage struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionRequestMessage defines model for OrchestratorChatChatCompletionRequestMessage.
func (OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestAssistantMessage ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestAssistantMessage() (OrchestratorChatChatCompletionRequestAssistantMessage, error)
AsOrchestratorChatChatCompletionRequestAssistantMessage returns the union data inside the OrchestratorChatChatCompletionRequestMessage as a OrchestratorChatChatCompletionRequestAssistantMessage
func (OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestDeveloperMessage ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestDeveloperMessage() (OrchestratorChatChatCompletionRequestDeveloperMessage, error)
AsOrchestratorChatChatCompletionRequestDeveloperMessage returns the union data inside the OrchestratorChatChatCompletionRequestMessage as a OrchestratorChatChatCompletionRequestDeveloperMessage
func (OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestFunctionMessage ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestFunctionMessage() (OrchestratorChatChatCompletionRequestFunctionMessage, error)
AsOrchestratorChatChatCompletionRequestFunctionMessage returns the union data inside the OrchestratorChatChatCompletionRequestMessage as a OrchestratorChatChatCompletionRequestFunctionMessage
func (OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestSystemMessage ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestSystemMessage() (OrchestratorChatChatCompletionRequestSystemMessage, error)
AsOrchestratorChatChatCompletionRequestSystemMessage returns the union data inside the OrchestratorChatChatCompletionRequestMessage as a OrchestratorChatChatCompletionRequestSystemMessage
func (OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestToolMessage ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestToolMessage() (OrchestratorChatChatCompletionRequestToolMessage, error)
AsOrchestratorChatChatCompletionRequestToolMessage returns the union data inside the OrchestratorChatChatCompletionRequestMessage as a OrchestratorChatChatCompletionRequestToolMessage
func (OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestUserMessage ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestMessage) AsOrchestratorChatChatCompletionRequestUserMessage() (OrchestratorChatChatCompletionRequestUserMessage, error)
AsOrchestratorChatChatCompletionRequestUserMessage returns the union data inside the OrchestratorChatChatCompletionRequestMessage as a OrchestratorChatChatCompletionRequestUserMessage
func (OrchestratorChatChatCompletionRequestMessage) Discriminator ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestMessage) Discriminator() (string, error)
func (*OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestAssistantMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestAssistantMessage(v OrchestratorChatChatCompletionRequestAssistantMessage) error
FromOrchestratorChatChatCompletionRequestAssistantMessage overwrites any union data inside the OrchestratorChatChatCompletionRequestMessage as the provided OrchestratorChatChatCompletionRequestAssistantMessage
func (*OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestDeveloperMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestDeveloperMessage(v OrchestratorChatChatCompletionRequestDeveloperMessage) error
FromOrchestratorChatChatCompletionRequestDeveloperMessage overwrites any union data inside the OrchestratorChatChatCompletionRequestMessage as the provided OrchestratorChatChatCompletionRequestDeveloperMessage
func (*OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestFunctionMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestFunctionMessage(v OrchestratorChatChatCompletionRequestFunctionMessage) error
FromOrchestratorChatChatCompletionRequestFunctionMessage overwrites any union data inside the OrchestratorChatChatCompletionRequestMessage as the provided OrchestratorChatChatCompletionRequestFunctionMessage
func (*OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestSystemMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestSystemMessage(v OrchestratorChatChatCompletionRequestSystemMessage) error
FromOrchestratorChatChatCompletionRequestSystemMessage overwrites any union data inside the OrchestratorChatChatCompletionRequestMessage as the provided OrchestratorChatChatCompletionRequestSystemMessage
func (*OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestToolMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestToolMessage(v OrchestratorChatChatCompletionRequestToolMessage) error
FromOrchestratorChatChatCompletionRequestToolMessage overwrites any union data inside the OrchestratorChatChatCompletionRequestMessage as the provided OrchestratorChatChatCompletionRequestToolMessage
func (*OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestUserMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) FromOrchestratorChatChatCompletionRequestUserMessage(v OrchestratorChatChatCompletionRequestUserMessage) error
FromOrchestratorChatChatCompletionRequestUserMessage overwrites any union data inside the OrchestratorChatChatCompletionRequestMessage as the provided OrchestratorChatChatCompletionRequestUserMessage
func (OrchestratorChatChatCompletionRequestMessage) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestMessage) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestAssistantMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestAssistantMessage(v OrchestratorChatChatCompletionRequestAssistantMessage) error
MergeOrchestratorChatChatCompletionRequestAssistantMessage performs a merge with any union data inside the OrchestratorChatChatCompletionRequestMessage, using the provided OrchestratorChatChatCompletionRequestAssistantMessage
func (*OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestDeveloperMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestDeveloperMessage(v OrchestratorChatChatCompletionRequestDeveloperMessage) error
MergeOrchestratorChatChatCompletionRequestDeveloperMessage performs a merge with any union data inside the OrchestratorChatChatCompletionRequestMessage, using the provided OrchestratorChatChatCompletionRequestDeveloperMessage
func (*OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestFunctionMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestFunctionMessage(v OrchestratorChatChatCompletionRequestFunctionMessage) error
MergeOrchestratorChatChatCompletionRequestFunctionMessage performs a merge with any union data inside the OrchestratorChatChatCompletionRequestMessage, using the provided OrchestratorChatChatCompletionRequestFunctionMessage
func (*OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestSystemMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestSystemMessage(v OrchestratorChatChatCompletionRequestSystemMessage) error
MergeOrchestratorChatChatCompletionRequestSystemMessage performs a merge with any union data inside the OrchestratorChatChatCompletionRequestMessage, using the provided OrchestratorChatChatCompletionRequestSystemMessage
func (*OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestToolMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestToolMessage(v OrchestratorChatChatCompletionRequestToolMessage) error
MergeOrchestratorChatChatCompletionRequestToolMessage performs a merge with any union data inside the OrchestratorChatChatCompletionRequestMessage, using the provided OrchestratorChatChatCompletionRequestToolMessage
func (*OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestUserMessage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) MergeOrchestratorChatChatCompletionRequestUserMessage(v OrchestratorChatChatCompletionRequestUserMessage) error
MergeOrchestratorChatChatCompletionRequestUserMessage performs a merge with any union data inside the OrchestratorChatChatCompletionRequestMessage, using the provided OrchestratorChatChatCompletionRequestUserMessage
func (*OrchestratorChatChatCompletionRequestMessage) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestMessage) UnmarshalJSON(b []byte) error
func (OrchestratorChatChatCompletionRequestMessage) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestMessage) ValueByDiscriminator() (interface{}, error)
type OrchestratorChatChatCompletionRequestMessageContentPartAudio ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartAudio struct {
InputAudio struct {
Data string `json:"data"`
Format OrchestratorChatChatCompletionRequestMessageContentPartAudioInputAudioFormat `json:"format"`
} `json:"input_audio"`
PromptCacheBreakpoint *OrchestratorChatPromptCacheBreakpointParam `json:"prompt_cache_breakpoint,omitempty"`
Type OrchestratorChatChatCompletionRequestMessageContentPartAudioType `json:"type"`
}
OrchestratorChatChatCompletionRequestMessageContentPartAudio defines model for OrchestratorChatChatCompletionRequestMessageContentPartAudio.
type OrchestratorChatChatCompletionRequestMessageContentPartAudioInputAudioFormat ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartAudioInputAudioFormat string
OrchestratorChatChatCompletionRequestMessageContentPartAudioInputAudioFormat defines model for OrchestratorChatChatCompletionRequestMessageContentPartAudio.InputAudio.Format.
const ( OrchestratorChatChatCompletionRequestMessageContentPartAudioInputAudioFormatMp3 OrchestratorChatChatCompletionRequestMessageContentPartAudioInputAudioFormat = "mp3" OrchestratorChatChatCompletionRequestMessageContentPartAudioInputAudioFormatWav OrchestratorChatChatCompletionRequestMessageContentPartAudioInputAudioFormat = "wav" )
Defines values for OrchestratorChatChatCompletionRequestMessageContentPartAudioInputAudioFormat.
type OrchestratorChatChatCompletionRequestMessageContentPartAudioType ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartAudioType string
OrchestratorChatChatCompletionRequestMessageContentPartAudioType defines model for OrchestratorChatChatCompletionRequestMessageContentPartAudio.Type.
const (
OrchestratorChatChatCompletionRequestMessageContentPartAudioTypeInputAudio OrchestratorChatChatCompletionRequestMessageContentPartAudioType = "input_audio"
)
Defines values for OrchestratorChatChatCompletionRequestMessageContentPartAudioType.
func (OrchestratorChatChatCompletionRequestMessageContentPartAudioType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestMessageContentPartAudioType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestMessageContentPartAudioType enum.
type OrchestratorChatChatCompletionRequestMessageContentPartFile ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartFile struct {
File struct {
FileData *string `json:"file_data,omitempty"`
FileId *string `json:"file_id,omitempty"`
Filename *string `json:"filename,omitempty"`
} `json:"file"`
PromptCacheBreakpoint *OrchestratorChatPromptCacheBreakpointParam `json:"prompt_cache_breakpoint,omitempty"`
Type OrchestratorChatChatCompletionRequestMessageContentPartFileType `json:"type"`
}
OrchestratorChatChatCompletionRequestMessageContentPartFile defines model for OrchestratorChatChatCompletionRequestMessageContentPartFile.
type OrchestratorChatChatCompletionRequestMessageContentPartFileType ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartFileType string
OrchestratorChatChatCompletionRequestMessageContentPartFileType defines model for OrchestratorChatChatCompletionRequestMessageContentPartFile.Type.
const (
OrchestratorChatChatCompletionRequestMessageContentPartFileTypeFile OrchestratorChatChatCompletionRequestMessageContentPartFileType = "file"
)
Defines values for OrchestratorChatChatCompletionRequestMessageContentPartFileType.
func (OrchestratorChatChatCompletionRequestMessageContentPartFileType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestMessageContentPartFileType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestMessageContentPartFileType enum.
type OrchestratorChatChatCompletionRequestMessageContentPartImage ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartImage struct {
ImageUrl struct {
Detail *OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetail `json:"detail,omitempty"`
Url string `json:"url"`
} `json:"image_url"`
PromptCacheBreakpoint *OrchestratorChatPromptCacheBreakpointParam `json:"prompt_cache_breakpoint,omitempty"`
Type OrchestratorChatChatCompletionRequestMessageContentPartImageType `json:"type"`
}
OrchestratorChatChatCompletionRequestMessageContentPartImage defines model for OrchestratorChatChatCompletionRequestMessageContentPartImage.
type OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetail ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetail string
OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetail defines model for OrchestratorChatChatCompletionRequestMessageContentPartImage.ImageUrl.Detail.
const ( OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetailAuto OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetail = "auto" OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetailHigh OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetail = "high" OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetailLow OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetail = "low" )
Defines values for OrchestratorChatChatCompletionRequestMessageContentPartImageImageUrlDetail.
type OrchestratorChatChatCompletionRequestMessageContentPartImageType ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartImageType string
OrchestratorChatChatCompletionRequestMessageContentPartImageType defines model for OrchestratorChatChatCompletionRequestMessageContentPartImage.Type.
const (
OrchestratorChatChatCompletionRequestMessageContentPartImageTypeImageUrl OrchestratorChatChatCompletionRequestMessageContentPartImageType = "image_url"
)
Defines values for OrchestratorChatChatCompletionRequestMessageContentPartImageType.
func (OrchestratorChatChatCompletionRequestMessageContentPartImageType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestMessageContentPartImageType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestMessageContentPartImageType enum.
type OrchestratorChatChatCompletionRequestMessageContentPartRefusal ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartRefusal struct {
Refusal string `json:"refusal"`
Type OrchestratorChatChatCompletionRequestMessageContentPartRefusalType `json:"type"`
}
OrchestratorChatChatCompletionRequestMessageContentPartRefusal defines model for OrchestratorChatChatCompletionRequestMessageContentPartRefusal.
type OrchestratorChatChatCompletionRequestMessageContentPartRefusalType ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartRefusalType string
OrchestratorChatChatCompletionRequestMessageContentPartRefusalType defines model for OrchestratorChatChatCompletionRequestMessageContentPartRefusal.Type.
const (
OrchestratorChatChatCompletionRequestMessageContentPartRefusalTypeRefusal OrchestratorChatChatCompletionRequestMessageContentPartRefusalType = "refusal"
)
Defines values for OrchestratorChatChatCompletionRequestMessageContentPartRefusalType.
func (OrchestratorChatChatCompletionRequestMessageContentPartRefusalType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestMessageContentPartRefusalType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestMessageContentPartRefusalType enum.
type OrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartText struct {
PromptCacheBreakpoint *OrchestratorChatPromptCacheBreakpointParam `json:"prompt_cache_breakpoint,omitempty"`
Text string `json:"text"`
Type OrchestratorChatChatCompletionRequestMessageContentPartTextType `json:"type"`
}
OrchestratorChatChatCompletionRequestMessageContentPartText defines model for OrchestratorChatChatCompletionRequestMessageContentPartText.
type OrchestratorChatChatCompletionRequestMessageContentPartTextType ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestMessageContentPartTextType string
OrchestratorChatChatCompletionRequestMessageContentPartTextType defines model for OrchestratorChatChatCompletionRequestMessageContentPartText.Type.
const (
OrchestratorChatChatCompletionRequestMessageContentPartTextTypeText OrchestratorChatChatCompletionRequestMessageContentPartTextType = "text"
)
Defines values for OrchestratorChatChatCompletionRequestMessageContentPartTextType.
func (OrchestratorChatChatCompletionRequestMessageContentPartTextType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestMessageContentPartTextType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestMessageContentPartTextType enum.
type OrchestratorChatChatCompletionRequestSystemMessage ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestSystemMessage struct {
Content OrchestratorChatChatCompletionRequestSystemMessage_Content `json:"content"`
Name *string `json:"name,omitempty"`
Role OrchestratorChatChatCompletionRequestSystemMessageRole `json:"role"`
}
OrchestratorChatChatCompletionRequestSystemMessage defines model for OrchestratorChatChatCompletionRequestSystemMessage.
type OrchestratorChatChatCompletionRequestSystemMessageContent0 ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestSystemMessageContent0 = string
OrchestratorChatChatCompletionRequestSystemMessageContent0 defines model for OrchestratorChatChatCompletionRequestSystemMessage.Content.0.
type OrchestratorChatChatCompletionRequestSystemMessageContent1 ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestSystemMessageContent1 = []OrchestratorChatChatCompletionRequestSystemMessageContentPart
OrchestratorChatChatCompletionRequestSystemMessageContent1 defines model for OrchestratorChatChatCompletionRequestSystemMessage.Content.1.
type OrchestratorChatChatCompletionRequestSystemMessageContentPart ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestSystemMessageContentPart struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionRequestSystemMessageContentPart defines model for OrchestratorChatChatCompletionRequestSystemMessageContentPart.
func (OrchestratorChatChatCompletionRequestSystemMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestSystemMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText() (OrchestratorChatChatCompletionRequestMessageContentPartText, error)
AsOrchestratorChatChatCompletionRequestMessageContentPartText returns the union data inside the OrchestratorChatChatCompletionRequestSystemMessageContentPart as a OrchestratorChatChatCompletionRequestMessageContentPartText
func (*OrchestratorChatChatCompletionRequestSystemMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestSystemMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
FromOrchestratorChatChatCompletionRequestMessageContentPartText overwrites any union data inside the OrchestratorChatChatCompletionRequestSystemMessageContentPart as the provided OrchestratorChatChatCompletionRequestMessageContentPartText
func (OrchestratorChatChatCompletionRequestSystemMessageContentPart) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestSystemMessageContentPart) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionRequestSystemMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestSystemMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
MergeOrchestratorChatChatCompletionRequestMessageContentPartText performs a merge with any union data inside the OrchestratorChatChatCompletionRequestSystemMessageContentPart, using the provided OrchestratorChatChatCompletionRequestMessageContentPartText
func (*OrchestratorChatChatCompletionRequestSystemMessageContentPart) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestSystemMessageContentPart) UnmarshalJSON(b []byte) error
type OrchestratorChatChatCompletionRequestSystemMessageRole ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestSystemMessageRole string
OrchestratorChatChatCompletionRequestSystemMessageRole defines model for OrchestratorChatChatCompletionRequestSystemMessage.Role.
const (
OrchestratorChatChatCompletionRequestSystemMessageRoleSystem OrchestratorChatChatCompletionRequestSystemMessageRole = "system"
)
Defines values for OrchestratorChatChatCompletionRequestSystemMessageRole.
func (OrchestratorChatChatCompletionRequestSystemMessageRole) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestSystemMessageRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestSystemMessageRole enum.
type OrchestratorChatChatCompletionRequestSystemMessage_Content ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestSystemMessage_Content struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionRequestSystemMessage_Content defines model for OrchestratorChatChatCompletionRequestSystemMessage.Content.
func (OrchestratorChatChatCompletionRequestSystemMessage_Content) AsOrchestratorChatChatCompletionRequestSystemMessageContent0 ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestSystemMessage_Content) AsOrchestratorChatChatCompletionRequestSystemMessageContent0() (OrchestratorChatChatCompletionRequestSystemMessageContent0, error)
AsOrchestratorChatChatCompletionRequestSystemMessageContent0 returns the union data inside the OrchestratorChatChatCompletionRequestSystemMessage_Content as a OrchestratorChatChatCompletionRequestSystemMessageContent0
func (OrchestratorChatChatCompletionRequestSystemMessage_Content) AsOrchestratorChatChatCompletionRequestSystemMessageContent1 ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestSystemMessage_Content) AsOrchestratorChatChatCompletionRequestSystemMessageContent1() (OrchestratorChatChatCompletionRequestSystemMessageContent1, error)
AsOrchestratorChatChatCompletionRequestSystemMessageContent1 returns the union data inside the OrchestratorChatChatCompletionRequestSystemMessage_Content as a OrchestratorChatChatCompletionRequestSystemMessageContent1
func (*OrchestratorChatChatCompletionRequestSystemMessage_Content) FromOrchestratorChatChatCompletionRequestSystemMessageContent0 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestSystemMessage_Content) FromOrchestratorChatChatCompletionRequestSystemMessageContent0(v OrchestratorChatChatCompletionRequestSystemMessageContent0) error
FromOrchestratorChatChatCompletionRequestSystemMessageContent0 overwrites any union data inside the OrchestratorChatChatCompletionRequestSystemMessage_Content as the provided OrchestratorChatChatCompletionRequestSystemMessageContent0
func (*OrchestratorChatChatCompletionRequestSystemMessage_Content) FromOrchestratorChatChatCompletionRequestSystemMessageContent1 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestSystemMessage_Content) FromOrchestratorChatChatCompletionRequestSystemMessageContent1(v OrchestratorChatChatCompletionRequestSystemMessageContent1) error
FromOrchestratorChatChatCompletionRequestSystemMessageContent1 overwrites any union data inside the OrchestratorChatChatCompletionRequestSystemMessage_Content as the provided OrchestratorChatChatCompletionRequestSystemMessageContent1
func (OrchestratorChatChatCompletionRequestSystemMessage_Content) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestSystemMessage_Content) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionRequestSystemMessage_Content) MergeOrchestratorChatChatCompletionRequestSystemMessageContent0 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestSystemMessage_Content) MergeOrchestratorChatChatCompletionRequestSystemMessageContent0(v OrchestratorChatChatCompletionRequestSystemMessageContent0) error
MergeOrchestratorChatChatCompletionRequestSystemMessageContent0 performs a merge with any union data inside the OrchestratorChatChatCompletionRequestSystemMessage_Content, using the provided OrchestratorChatChatCompletionRequestSystemMessageContent0
func (*OrchestratorChatChatCompletionRequestSystemMessage_Content) MergeOrchestratorChatChatCompletionRequestSystemMessageContent1 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestSystemMessage_Content) MergeOrchestratorChatChatCompletionRequestSystemMessageContent1(v OrchestratorChatChatCompletionRequestSystemMessageContent1) error
MergeOrchestratorChatChatCompletionRequestSystemMessageContent1 performs a merge with any union data inside the OrchestratorChatChatCompletionRequestSystemMessage_Content, using the provided OrchestratorChatChatCompletionRequestSystemMessageContent1
func (*OrchestratorChatChatCompletionRequestSystemMessage_Content) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestSystemMessage_Content) UnmarshalJSON(b []byte) error
type OrchestratorChatChatCompletionRequestToolMessage ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestToolMessage struct {
Content OrchestratorChatChatCompletionRequestToolMessage_Content `json:"content"`
Role OrchestratorChatChatCompletionRequestToolMessageRole `json:"role"`
ToolCallId string `json:"tool_call_id"`
}
OrchestratorChatChatCompletionRequestToolMessage defines model for OrchestratorChatChatCompletionRequestToolMessage.
type OrchestratorChatChatCompletionRequestToolMessageContent0 ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestToolMessageContent0 = string
OrchestratorChatChatCompletionRequestToolMessageContent0 defines model for OrchestratorChatChatCompletionRequestToolMessage.Content.0.
type OrchestratorChatChatCompletionRequestToolMessageContent1 ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestToolMessageContent1 = []OrchestratorChatChatCompletionRequestToolMessageContentPart
OrchestratorChatChatCompletionRequestToolMessageContent1 defines model for OrchestratorChatChatCompletionRequestToolMessage.Content.1.
type OrchestratorChatChatCompletionRequestToolMessageContentPart ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestToolMessageContentPart struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionRequestToolMessageContentPart defines model for OrchestratorChatChatCompletionRequestToolMessageContentPart.
func (OrchestratorChatChatCompletionRequestToolMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestToolMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText() (OrchestratorChatChatCompletionRequestMessageContentPartText, error)
AsOrchestratorChatChatCompletionRequestMessageContentPartText returns the union data inside the OrchestratorChatChatCompletionRequestToolMessageContentPart as a OrchestratorChatChatCompletionRequestMessageContentPartText
func (*OrchestratorChatChatCompletionRequestToolMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestToolMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
FromOrchestratorChatChatCompletionRequestMessageContentPartText overwrites any union data inside the OrchestratorChatChatCompletionRequestToolMessageContentPart as the provided OrchestratorChatChatCompletionRequestMessageContentPartText
func (OrchestratorChatChatCompletionRequestToolMessageContentPart) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestToolMessageContentPart) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionRequestToolMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestToolMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
MergeOrchestratorChatChatCompletionRequestMessageContentPartText performs a merge with any union data inside the OrchestratorChatChatCompletionRequestToolMessageContentPart, using the provided OrchestratorChatChatCompletionRequestMessageContentPartText
func (*OrchestratorChatChatCompletionRequestToolMessageContentPart) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestToolMessageContentPart) UnmarshalJSON(b []byte) error
type OrchestratorChatChatCompletionRequestToolMessageRole ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestToolMessageRole string
OrchestratorChatChatCompletionRequestToolMessageRole defines model for OrchestratorChatChatCompletionRequestToolMessage.Role.
const (
OrchestratorChatChatCompletionRequestToolMessageRoleTool OrchestratorChatChatCompletionRequestToolMessageRole = "tool"
)
Defines values for OrchestratorChatChatCompletionRequestToolMessageRole.
func (OrchestratorChatChatCompletionRequestToolMessageRole) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestToolMessageRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestToolMessageRole enum.
type OrchestratorChatChatCompletionRequestToolMessage_Content ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestToolMessage_Content struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionRequestToolMessage_Content defines model for OrchestratorChatChatCompletionRequestToolMessage.Content.
func (OrchestratorChatChatCompletionRequestToolMessage_Content) AsOrchestratorChatChatCompletionRequestToolMessageContent0 ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestToolMessage_Content) AsOrchestratorChatChatCompletionRequestToolMessageContent0() (OrchestratorChatChatCompletionRequestToolMessageContent0, error)
AsOrchestratorChatChatCompletionRequestToolMessageContent0 returns the union data inside the OrchestratorChatChatCompletionRequestToolMessage_Content as a OrchestratorChatChatCompletionRequestToolMessageContent0
func (OrchestratorChatChatCompletionRequestToolMessage_Content) AsOrchestratorChatChatCompletionRequestToolMessageContent1 ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestToolMessage_Content) AsOrchestratorChatChatCompletionRequestToolMessageContent1() (OrchestratorChatChatCompletionRequestToolMessageContent1, error)
AsOrchestratorChatChatCompletionRequestToolMessageContent1 returns the union data inside the OrchestratorChatChatCompletionRequestToolMessage_Content as a OrchestratorChatChatCompletionRequestToolMessageContent1
func (*OrchestratorChatChatCompletionRequestToolMessage_Content) FromOrchestratorChatChatCompletionRequestToolMessageContent0 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestToolMessage_Content) FromOrchestratorChatChatCompletionRequestToolMessageContent0(v OrchestratorChatChatCompletionRequestToolMessageContent0) error
FromOrchestratorChatChatCompletionRequestToolMessageContent0 overwrites any union data inside the OrchestratorChatChatCompletionRequestToolMessage_Content as the provided OrchestratorChatChatCompletionRequestToolMessageContent0
func (*OrchestratorChatChatCompletionRequestToolMessage_Content) FromOrchestratorChatChatCompletionRequestToolMessageContent1 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestToolMessage_Content) FromOrchestratorChatChatCompletionRequestToolMessageContent1(v OrchestratorChatChatCompletionRequestToolMessageContent1) error
FromOrchestratorChatChatCompletionRequestToolMessageContent1 overwrites any union data inside the OrchestratorChatChatCompletionRequestToolMessage_Content as the provided OrchestratorChatChatCompletionRequestToolMessageContent1
func (OrchestratorChatChatCompletionRequestToolMessage_Content) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestToolMessage_Content) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionRequestToolMessage_Content) MergeOrchestratorChatChatCompletionRequestToolMessageContent0 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestToolMessage_Content) MergeOrchestratorChatChatCompletionRequestToolMessageContent0(v OrchestratorChatChatCompletionRequestToolMessageContent0) error
MergeOrchestratorChatChatCompletionRequestToolMessageContent0 performs a merge with any union data inside the OrchestratorChatChatCompletionRequestToolMessage_Content, using the provided OrchestratorChatChatCompletionRequestToolMessageContent0
func (*OrchestratorChatChatCompletionRequestToolMessage_Content) MergeOrchestratorChatChatCompletionRequestToolMessageContent1 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestToolMessage_Content) MergeOrchestratorChatChatCompletionRequestToolMessageContent1(v OrchestratorChatChatCompletionRequestToolMessageContent1) error
MergeOrchestratorChatChatCompletionRequestToolMessageContent1 performs a merge with any union data inside the OrchestratorChatChatCompletionRequestToolMessage_Content, using the provided OrchestratorChatChatCompletionRequestToolMessageContent1
func (*OrchestratorChatChatCompletionRequestToolMessage_Content) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestToolMessage_Content) UnmarshalJSON(b []byte) error
type OrchestratorChatChatCompletionRequestUserMessage ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestUserMessage struct {
Content OrchestratorChatChatCompletionRequestUserMessage_Content `json:"content"`
Name *string `json:"name,omitempty"`
Role OrchestratorChatChatCompletionRequestUserMessageRole `json:"role"`
}
OrchestratorChatChatCompletionRequestUserMessage defines model for OrchestratorChatChatCompletionRequestUserMessage.
type OrchestratorChatChatCompletionRequestUserMessageContent0 ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestUserMessageContent0 = string
OrchestratorChatChatCompletionRequestUserMessageContent0 defines model for OrchestratorChatChatCompletionRequestUserMessage.Content.0.
type OrchestratorChatChatCompletionRequestUserMessageContent1 ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestUserMessageContent1 = []OrchestratorChatChatCompletionRequestUserMessageContentPart
OrchestratorChatChatCompletionRequestUserMessageContent1 defines model for OrchestratorChatChatCompletionRequestUserMessage.Content.1.
type OrchestratorChatChatCompletionRequestUserMessageContentPart ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestUserMessageContentPart struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionRequestUserMessageContentPart defines model for OrchestratorChatChatCompletionRequestUserMessageContentPart.
func (OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartAudio ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartAudio() (OrchestratorChatChatCompletionRequestMessageContentPartAudio, error)
AsOrchestratorChatChatCompletionRequestMessageContentPartAudio returns the union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart as a OrchestratorChatChatCompletionRequestMessageContentPartAudio
func (OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartFile ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartFile() (OrchestratorChatChatCompletionRequestMessageContentPartFile, error)
AsOrchestratorChatChatCompletionRequestMessageContentPartFile returns the union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart as a OrchestratorChatChatCompletionRequestMessageContentPartFile
func (OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartImage ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartImage() (OrchestratorChatChatCompletionRequestMessageContentPartImage, error)
AsOrchestratorChatChatCompletionRequestMessageContentPartImage returns the union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart as a OrchestratorChatChatCompletionRequestMessageContentPartImage
func (OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestUserMessageContentPart) AsOrchestratorChatChatCompletionRequestMessageContentPartText() (OrchestratorChatChatCompletionRequestMessageContentPartText, error)
AsOrchestratorChatChatCompletionRequestMessageContentPartText returns the union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart as a OrchestratorChatChatCompletionRequestMessageContentPartText
func (*OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartAudio ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartAudio(v OrchestratorChatChatCompletionRequestMessageContentPartAudio) error
FromOrchestratorChatChatCompletionRequestMessageContentPartAudio overwrites any union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart as the provided OrchestratorChatChatCompletionRequestMessageContentPartAudio
func (*OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartFile ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartFile(v OrchestratorChatChatCompletionRequestMessageContentPartFile) error
FromOrchestratorChatChatCompletionRequestMessageContentPartFile overwrites any union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart as the provided OrchestratorChatChatCompletionRequestMessageContentPartFile
func (*OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartImage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartImage(v OrchestratorChatChatCompletionRequestMessageContentPartImage) error
FromOrchestratorChatChatCompletionRequestMessageContentPartImage overwrites any union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart as the provided OrchestratorChatChatCompletionRequestMessageContentPartImage
func (*OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) FromOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
FromOrchestratorChatChatCompletionRequestMessageContentPartText overwrites any union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart as the provided OrchestratorChatChatCompletionRequestMessageContentPartText
func (OrchestratorChatChatCompletionRequestUserMessageContentPart) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestUserMessageContentPart) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartAudio ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartAudio(v OrchestratorChatChatCompletionRequestMessageContentPartAudio) error
MergeOrchestratorChatChatCompletionRequestMessageContentPartAudio performs a merge with any union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart, using the provided OrchestratorChatChatCompletionRequestMessageContentPartAudio
func (*OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartFile ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartFile(v OrchestratorChatChatCompletionRequestMessageContentPartFile) error
MergeOrchestratorChatChatCompletionRequestMessageContentPartFile performs a merge with any union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart, using the provided OrchestratorChatChatCompletionRequestMessageContentPartFile
func (*OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartImage ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartImage(v OrchestratorChatChatCompletionRequestMessageContentPartImage) error
MergeOrchestratorChatChatCompletionRequestMessageContentPartImage performs a merge with any union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart, using the provided OrchestratorChatChatCompletionRequestMessageContentPartImage
func (*OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) MergeOrchestratorChatChatCompletionRequestMessageContentPartText(v OrchestratorChatChatCompletionRequestMessageContentPartText) error
MergeOrchestratorChatChatCompletionRequestMessageContentPartText performs a merge with any union data inside the OrchestratorChatChatCompletionRequestUserMessageContentPart, using the provided OrchestratorChatChatCompletionRequestMessageContentPartText
func (*OrchestratorChatChatCompletionRequestUserMessageContentPart) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessageContentPart) UnmarshalJSON(b []byte) error
type OrchestratorChatChatCompletionRequestUserMessageRole ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestUserMessageRole string
OrchestratorChatChatCompletionRequestUserMessageRole defines model for OrchestratorChatChatCompletionRequestUserMessage.Role.
const (
OrchestratorChatChatCompletionRequestUserMessageRoleUser OrchestratorChatChatCompletionRequestUserMessageRole = "user"
)
Defines values for OrchestratorChatChatCompletionRequestUserMessageRole.
func (OrchestratorChatChatCompletionRequestUserMessageRole) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionRequestUserMessageRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionRequestUserMessageRole enum.
type OrchestratorChatChatCompletionRequestUserMessage_Content ¶ added in v0.6.0
type OrchestratorChatChatCompletionRequestUserMessage_Content struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionRequestUserMessage_Content defines model for OrchestratorChatChatCompletionRequestUserMessage.Content.
func (OrchestratorChatChatCompletionRequestUserMessage_Content) AsOrchestratorChatChatCompletionRequestUserMessageContent0 ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestUserMessage_Content) AsOrchestratorChatChatCompletionRequestUserMessageContent0() (OrchestratorChatChatCompletionRequestUserMessageContent0, error)
AsOrchestratorChatChatCompletionRequestUserMessageContent0 returns the union data inside the OrchestratorChatChatCompletionRequestUserMessage_Content as a OrchestratorChatChatCompletionRequestUserMessageContent0
func (OrchestratorChatChatCompletionRequestUserMessage_Content) AsOrchestratorChatChatCompletionRequestUserMessageContent1 ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestUserMessage_Content) AsOrchestratorChatChatCompletionRequestUserMessageContent1() (OrchestratorChatChatCompletionRequestUserMessageContent1, error)
AsOrchestratorChatChatCompletionRequestUserMessageContent1 returns the union data inside the OrchestratorChatChatCompletionRequestUserMessage_Content as a OrchestratorChatChatCompletionRequestUserMessageContent1
func (*OrchestratorChatChatCompletionRequestUserMessage_Content) FromOrchestratorChatChatCompletionRequestUserMessageContent0 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessage_Content) FromOrchestratorChatChatCompletionRequestUserMessageContent0(v OrchestratorChatChatCompletionRequestUserMessageContent0) error
FromOrchestratorChatChatCompletionRequestUserMessageContent0 overwrites any union data inside the OrchestratorChatChatCompletionRequestUserMessage_Content as the provided OrchestratorChatChatCompletionRequestUserMessageContent0
func (*OrchestratorChatChatCompletionRequestUserMessage_Content) FromOrchestratorChatChatCompletionRequestUserMessageContent1 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessage_Content) FromOrchestratorChatChatCompletionRequestUserMessageContent1(v OrchestratorChatChatCompletionRequestUserMessageContent1) error
FromOrchestratorChatChatCompletionRequestUserMessageContent1 overwrites any union data inside the OrchestratorChatChatCompletionRequestUserMessage_Content as the provided OrchestratorChatChatCompletionRequestUserMessageContent1
func (OrchestratorChatChatCompletionRequestUserMessage_Content) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionRequestUserMessage_Content) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionRequestUserMessage_Content) MergeOrchestratorChatChatCompletionRequestUserMessageContent0 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessage_Content) MergeOrchestratorChatChatCompletionRequestUserMessageContent0(v OrchestratorChatChatCompletionRequestUserMessageContent0) error
MergeOrchestratorChatChatCompletionRequestUserMessageContent0 performs a merge with any union data inside the OrchestratorChatChatCompletionRequestUserMessage_Content, using the provided OrchestratorChatChatCompletionRequestUserMessageContent0
func (*OrchestratorChatChatCompletionRequestUserMessage_Content) MergeOrchestratorChatChatCompletionRequestUserMessageContent1 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessage_Content) MergeOrchestratorChatChatCompletionRequestUserMessageContent1(v OrchestratorChatChatCompletionRequestUserMessageContent1) error
MergeOrchestratorChatChatCompletionRequestUserMessageContent1 performs a merge with any union data inside the OrchestratorChatChatCompletionRequestUserMessage_Content, using the provided OrchestratorChatChatCompletionRequestUserMessageContent1
func (*OrchestratorChatChatCompletionRequestUserMessage_Content) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionRequestUserMessage_Content) UnmarshalJSON(b []byte) error
type OrchestratorChatChatCompletionResponseMessage ¶ added in v0.6.0
type OrchestratorChatChatCompletionResponseMessage struct {
Annotations *[]struct {
Type OrchestratorChatChatCompletionResponseMessageAnnotationsType `json:"type"`
UrlCitation struct {
EndIndex int `json:"end_index"`
StartIndex int `json:"start_index"`
Title string `json:"title"`
Url string `json:"url"`
} `json:"url_citation"`
} `json:"annotations,omitempty"`
Audio *struct {
Data string `json:"data"`
ExpiresAt int `json:"expires_at"`
Id string `json:"id"`
Transcript string `json:"transcript"`
} `json:"audio,omitempty"`
Content *string `json:"content"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
FunctionCall *struct {
Arguments string `json:"arguments"`
Name string `json:"name"`
} `json:"function_call,omitempty"`
ReasoningContent *string `json:"reasoning_content,omitempty"`
Refusal *string `json:"refusal"`
Role OrchestratorChatChatCompletionResponseMessageRole `json:"role"`
ToolCalls *OrchestratorChatChatCompletionMessageToolCalls `json:"tool_calls,omitempty"`
}
OrchestratorChatChatCompletionResponseMessage defines model for OrchestratorChatChatCompletionResponseMessage.
type OrchestratorChatChatCompletionResponseMessageAnnotationsType ¶ added in v0.6.0
type OrchestratorChatChatCompletionResponseMessageAnnotationsType string
OrchestratorChatChatCompletionResponseMessageAnnotationsType defines model for OrchestratorChatChatCompletionResponseMessage.Annotations.Type.
const (
OrchestratorChatChatCompletionResponseMessageAnnotationsTypeUrlCitation OrchestratorChatChatCompletionResponseMessageAnnotationsType = "url_citation"
)
Defines values for OrchestratorChatChatCompletionResponseMessageAnnotationsType.
func (OrchestratorChatChatCompletionResponseMessageAnnotationsType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionResponseMessageAnnotationsType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionResponseMessageAnnotationsType enum.
type OrchestratorChatChatCompletionResponseMessageRole ¶ added in v0.6.0
type OrchestratorChatChatCompletionResponseMessageRole string
OrchestratorChatChatCompletionResponseMessageRole defines model for OrchestratorChatChatCompletionResponseMessage.Role.
const (
OrchestratorChatChatCompletionResponseMessageRoleAssistant OrchestratorChatChatCompletionResponseMessageRole = "assistant"
)
Defines values for OrchestratorChatChatCompletionResponseMessageRole.
func (OrchestratorChatChatCompletionResponseMessageRole) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionResponseMessageRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionResponseMessageRole enum.
type OrchestratorChatChatCompletionStreamOptions ¶ added in v0.6.0
type OrchestratorChatChatCompletionStreamOptions struct {
// IncludeUsage When `true`, a final chunk before `data: [DONE]` reports token usage for the whole request.
IncludeUsage *bool `json:"include_usage,omitempty"`
}
OrchestratorChatChatCompletionStreamOptions defines model for OrchestratorChatChatCompletionStreamOptions.
type OrchestratorChatChatCompletionStreamResponseDelta ¶ added in v0.6.0
type OrchestratorChatChatCompletionStreamResponseDelta struct {
Content *string `json:"content,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
FunctionCall *struct {
Arguments *string `json:"arguments,omitempty"`
Name *string `json:"name,omitempty"`
} `json:"function_call,omitempty"`
ReasoningContent *string `json:"reasoning_content,omitempty"`
Refusal nullable.Nullable[string] `json:"refusal,omitempty"`
Role *OrchestratorChatChatCompletionStreamResponseDeltaRole `json:"role,omitempty"`
ToolCalls *[]OrchestratorChatChatCompletionMessageToolCallChunk `json:"tool_calls,omitempty"`
}
OrchestratorChatChatCompletionStreamResponseDelta defines model for OrchestratorChatChatCompletionStreamResponseDelta.
type OrchestratorChatChatCompletionStreamResponseDeltaRole ¶ added in v0.6.0
type OrchestratorChatChatCompletionStreamResponseDeltaRole string
OrchestratorChatChatCompletionStreamResponseDeltaRole defines model for OrchestratorChatChatCompletionStreamResponseDelta.Role.
const ( OrchestratorChatChatCompletionStreamResponseDeltaRoleAssistant OrchestratorChatChatCompletionStreamResponseDeltaRole = "assistant" OrchestratorChatChatCompletionStreamResponseDeltaRoleDeveloper OrchestratorChatChatCompletionStreamResponseDeltaRole = "developer" OrchestratorChatChatCompletionStreamResponseDeltaRoleSystem OrchestratorChatChatCompletionStreamResponseDeltaRole = "system" OrchestratorChatChatCompletionStreamResponseDeltaRoleTool OrchestratorChatChatCompletionStreamResponseDeltaRole = "tool" OrchestratorChatChatCompletionStreamResponseDeltaRoleUser OrchestratorChatChatCompletionStreamResponseDeltaRole = "user" )
Defines values for OrchestratorChatChatCompletionStreamResponseDeltaRole.
func (OrchestratorChatChatCompletionStreamResponseDeltaRole) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionStreamResponseDeltaRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionStreamResponseDeltaRole enum.
type OrchestratorChatChatCompletionTokenLogprob ¶ added in v0.6.0
type OrchestratorChatChatCompletionTokenLogprob struct {
Bytes *[]int `json:"bytes"`
Logprob float64 `json:"logprob"`
Token string `json:"token"`
TopLogprobs []struct {
Bytes *[]int `json:"bytes"`
Logprob float64 `json:"logprob"`
Token string `json:"token"`
} `json:"top_logprobs"`
}
OrchestratorChatChatCompletionTokenLogprob defines model for OrchestratorChatChatCompletionTokenLogprob.
type OrchestratorChatChatCompletionTool ¶ added in v0.6.0
type OrchestratorChatChatCompletionTool struct {
Function OrchestratorChatFunctionObject `json:"function"`
Type OrchestratorChatChatCompletionToolType `json:"type"`
}
OrchestratorChatChatCompletionTool defines model for OrchestratorChatChatCompletionTool.
type OrchestratorChatChatCompletionToolChoiceOption ¶ added in v0.6.0
type OrchestratorChatChatCompletionToolChoiceOption struct {
// contains filtered or unexported fields
}
OrchestratorChatChatCompletionToolChoiceOption defines model for OrchestratorChatChatCompletionToolChoiceOption.
func (OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionAllowedToolsChoice ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionAllowedToolsChoice() (OrchestratorChatChatCompletionAllowedToolsChoice, error)
AsOrchestratorChatChatCompletionAllowedToolsChoice returns the union data inside the OrchestratorChatChatCompletionToolChoiceOption as a OrchestratorChatChatCompletionAllowedToolsChoice
func (OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionNamedToolChoice ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionNamedToolChoice() (OrchestratorChatChatCompletionNamedToolChoice, error)
AsOrchestratorChatChatCompletionNamedToolChoice returns the union data inside the OrchestratorChatChatCompletionToolChoiceOption as a OrchestratorChatChatCompletionNamedToolChoice
func (OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionNamedToolChoiceCustom ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionNamedToolChoiceCustom() (OrchestratorChatChatCompletionNamedToolChoiceCustom, error)
AsOrchestratorChatChatCompletionNamedToolChoiceCustom returns the union data inside the OrchestratorChatChatCompletionToolChoiceOption as a OrchestratorChatChatCompletionNamedToolChoiceCustom
func (OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionToolChoiceOption0 ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionToolChoiceOption) AsOrchestratorChatChatCompletionToolChoiceOption0() (OrchestratorChatChatCompletionToolChoiceOption0, error)
AsOrchestratorChatChatCompletionToolChoiceOption0 returns the union data inside the OrchestratorChatChatCompletionToolChoiceOption as a OrchestratorChatChatCompletionToolChoiceOption0
func (*OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionAllowedToolsChoice ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionAllowedToolsChoice(v OrchestratorChatChatCompletionAllowedToolsChoice) error
FromOrchestratorChatChatCompletionAllowedToolsChoice overwrites any union data inside the OrchestratorChatChatCompletionToolChoiceOption as the provided OrchestratorChatChatCompletionAllowedToolsChoice
func (*OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionNamedToolChoice ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionNamedToolChoice(v OrchestratorChatChatCompletionNamedToolChoice) error
FromOrchestratorChatChatCompletionNamedToolChoice overwrites any union data inside the OrchestratorChatChatCompletionToolChoiceOption as the provided OrchestratorChatChatCompletionNamedToolChoice
func (*OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionNamedToolChoiceCustom ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionNamedToolChoiceCustom(v OrchestratorChatChatCompletionNamedToolChoiceCustom) error
FromOrchestratorChatChatCompletionNamedToolChoiceCustom overwrites any union data inside the OrchestratorChatChatCompletionToolChoiceOption as the provided OrchestratorChatChatCompletionNamedToolChoiceCustom
func (*OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionToolChoiceOption0 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionToolChoiceOption) FromOrchestratorChatChatCompletionToolChoiceOption0(v OrchestratorChatChatCompletionToolChoiceOption0) error
FromOrchestratorChatChatCompletionToolChoiceOption0 overwrites any union data inside the OrchestratorChatChatCompletionToolChoiceOption as the provided OrchestratorChatChatCompletionToolChoiceOption0
func (OrchestratorChatChatCompletionToolChoiceOption) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatChatCompletionToolChoiceOption) MarshalJSON() ([]byte, error)
func (*OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionAllowedToolsChoice ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionAllowedToolsChoice(v OrchestratorChatChatCompletionAllowedToolsChoice) error
MergeOrchestratorChatChatCompletionAllowedToolsChoice performs a merge with any union data inside the OrchestratorChatChatCompletionToolChoiceOption, using the provided OrchestratorChatChatCompletionAllowedToolsChoice
func (*OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionNamedToolChoice ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionNamedToolChoice(v OrchestratorChatChatCompletionNamedToolChoice) error
MergeOrchestratorChatChatCompletionNamedToolChoice performs a merge with any union data inside the OrchestratorChatChatCompletionToolChoiceOption, using the provided OrchestratorChatChatCompletionNamedToolChoice
func (*OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionNamedToolChoiceCustom ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionNamedToolChoiceCustom(v OrchestratorChatChatCompletionNamedToolChoiceCustom) error
MergeOrchestratorChatChatCompletionNamedToolChoiceCustom performs a merge with any union data inside the OrchestratorChatChatCompletionToolChoiceOption, using the provided OrchestratorChatChatCompletionNamedToolChoiceCustom
func (*OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionToolChoiceOption0 ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionToolChoiceOption) MergeOrchestratorChatChatCompletionToolChoiceOption0(v OrchestratorChatChatCompletionToolChoiceOption0) error
MergeOrchestratorChatChatCompletionToolChoiceOption0 performs a merge with any union data inside the OrchestratorChatChatCompletionToolChoiceOption, using the provided OrchestratorChatChatCompletionToolChoiceOption0
func (*OrchestratorChatChatCompletionToolChoiceOption) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatChatCompletionToolChoiceOption) UnmarshalJSON(b []byte) error
type OrchestratorChatChatCompletionToolChoiceOption0 ¶ added in v0.6.0
type OrchestratorChatChatCompletionToolChoiceOption0 string
OrchestratorChatChatCompletionToolChoiceOption0 defines model for OrchestratorChatChatCompletionToolChoiceOption.0.
const ( OrchestratorChatChatCompletionToolChoiceOption0Auto OrchestratorChatChatCompletionToolChoiceOption0 = "auto" OrchestratorChatChatCompletionToolChoiceOption0None OrchestratorChatChatCompletionToolChoiceOption0 = "none" OrchestratorChatChatCompletionToolChoiceOption0Required OrchestratorChatChatCompletionToolChoiceOption0 = "required" )
Defines values for OrchestratorChatChatCompletionToolChoiceOption0.
func (OrchestratorChatChatCompletionToolChoiceOption0) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionToolChoiceOption0) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionToolChoiceOption0 enum.
type OrchestratorChatChatCompletionToolType ¶ added in v0.6.0
type OrchestratorChatChatCompletionToolType string
OrchestratorChatChatCompletionToolType defines model for OrchestratorChatChatCompletionTool.Type.
const (
OrchestratorChatChatCompletionToolTypeFunction OrchestratorChatChatCompletionToolType = "function"
)
Defines values for OrchestratorChatChatCompletionToolType.
func (OrchestratorChatChatCompletionToolType) Valid ¶ added in v0.6.0
func (e OrchestratorChatChatCompletionToolType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatChatCompletionToolType enum.
type OrchestratorChatCompletionUsage ¶ added in v0.6.0
type OrchestratorChatCompletionUsage struct {
// CompletionTokens Generated tokens, including reasoning tokens.
CompletionTokens int `json:"completion_tokens"`
CompletionTokensDetails *struct {
AcceptedPredictionTokens *int `json:"accepted_prediction_tokens,omitempty"`
AudioTokens *int `json:"audio_tokens,omitempty"`
ReasoningTokens *int `json:"reasoning_tokens,omitempty"`
RejectedPredictionTokens *int `json:"rejected_prediction_tokens,omitempty"`
} `json:"completion_tokens_details,omitempty"`
// PromptTokens Input tokens for the request, including cache reads and writes.
PromptTokens int `json:"prompt_tokens"`
PromptTokensDetails *struct {
AudioTokens *int `json:"audio_tokens,omitempty"`
CacheWriteTokens *int `json:"cache_write_tokens,omitempty"`
CachedTokens *int `json:"cached_tokens,omitempty"`
} `json:"prompt_tokens_details,omitempty"`
// TotalTokens Sum of `prompt_tokens` and `completion_tokens`.
TotalTokens int `json:"total_tokens"`
}
OrchestratorChatCompletionUsage defines model for OrchestratorChatCompletionUsage.
type OrchestratorChatCreateChatCompletionRequest ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionRequest struct {
// MaxCompletionTokens Upper bound on generated tokens for this request, including reasoning tokens. Some Anthropic models with reasoning can report more completion tokens than this value.
MaxCompletionTokens *int `json:"max_completion_tokens,omitempty"`
// MaxTokens Legacy alias of `max_completion_tokens`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
MaxTokens *int `json:"max_tokens,omitempty"`
// Messages The conversation so far, as an array of message objects with `role` and `content`. The leading `system` or `developer` message is applied as the system prompt.
Messages []OrchestratorChatChatCompletionRequestMessage `json:"messages"`
// Metadata Accepted for SDK compatibility; not forwarded to the model.
Metadata *OrchestratorChatMetadata `json:"metadata,omitempty"`
// Model A model id from the Orchestrator catalog, or `perplexity/auto` to select a model for each request. With Auto, omit `routing` to use the default policy or provide an inline routing object.
Model OrchestratorChatModelIdsShared `json:"model"`
// ParallelToolCalls Set to `false` to allow at most one tool call per turn. Defaults to `true`, which allows, but does not require, several calls.
ParallelToolCalls *OrchestratorChatParallelToolCalls `json:"parallel_tool_calls,omitempty"`
// PromptCacheKey Stable key grouping related requests to improve prompt-cache hit rates.
PromptCacheKey *string `json:"prompt_cache_key,omitempty"`
// PromptCacheOptions Prompt-cache settings. `ttl` accepts `30m` or `1h`; `1h` works on Anthropic models only.
PromptCacheOptions *OrchestratorChatPromptCacheOptionsParam `json:"prompt_cache_options,omitempty"`
// ReasoningEffort How much reasoning the model performs before answering, on models that support it. Supported values and the default vary by model, and an unsupported value returns a 400.
ReasoningEffort *OrchestratorChatReasoningEffort `json:"reasoning_effort,omitempty"`
// ResponseFormat Output format. Use type `json_schema` for strict structured output or `json_object` for JSON mode.
ResponseFormat *OrchestratorChatCreateChatCompletionRequest_ResponseFormat `json:"response_format,omitempty"`
// Routing Inline routing for `model: "perplexity/auto"` only. Omit this field or set it to null to use the default policy. The serialized routing object must be at most 16384 bytes. Models must be available in the Orchestrator catalog. Routes incompatible with the request are excluded; if the default model is incompatible, the first compatible route model becomes the default. The request fails if no model is compatible.
Routing *OrchestratorChatCreateChatCompletionRequest_Routing `json:"routing,omitempty"`
// SafetyIdentifier Accepted for SDK compatibility; not forwarded to the model.
SafetyIdentifier *string `json:"safety_identifier,omitempty"`
// ServiceTier Processing tier for the request. `flex` halves token rates on supported models; `auto` and `default` are equivalent.
ServiceTier *OrchestratorChatServiceTier `json:"service_tier,omitempty"`
// Stop One stop string, or an array of at most 4. On models that honor stop sequences, output ends at the first match. Some models accept the field without applying it.
Stop *OrchestratorChatStopConfiguration `json:"stop,omitempty"`
// Stream When `true`, tokens are sent as server-sent events as they are generated, terminated by `data: [DONE]`.
Stream *bool `json:"stream,omitempty"`
// StreamOptions Streaming options. Only allowed when `stream` is `true`.
StreamOptions *OrchestratorChatChatCompletionStreamOptions `json:"stream_options,omitempty"`
// Temperature Controls randomness in token selection. Anthropic models accept 0 to 1; other models accept 0 to 2. Higher values produce more varied output. Some models reject requests that set both `temperature` and `top_p`.
Temperature *float64 `json:"temperature,omitempty"`
// ToolChoice Controls whether the model may call tools, requires a specific tool, or limits selection with `allowed_tools`.
ToolChoice *OrchestratorChatChatCompletionToolChoiceOption `json:"tool_choice,omitempty"`
// Tools Function definitions the model can invoke. A tool's `description` is optional.
Tools *[]OrchestratorChatCreateChatCompletionRequest_Tools_Item `json:"tools,omitempty"`
// TopP Cumulative probability cutoff for nucleus sampling, 0 to 1. Some models reject requests that set both `top_p` and `temperature`.
TopP *float64 `json:"top_p,omitempty"`
// User Accepted for SDK compatibility; not forwarded to the model.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
User *string `json:"user,omitempty"`
}
OrchestratorChatCreateChatCompletionRequest defines model for OrchestratorChatCreateChatCompletionRequest.
type OrchestratorChatCreateChatCompletionRequestRouting1 ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionRequestRouting1 = map[string]interface{}
OrchestratorChatCreateChatCompletionRequestRouting1 defines model for OrchestratorChatCreateChatCompletionRequest.Routing.1.
type OrchestratorChatCreateChatCompletionRequest_ResponseFormat ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionRequest_ResponseFormat struct {
// contains filtered or unexported fields
}
OrchestratorChatCreateChatCompletionRequest_ResponseFormat Output format. Use type `json_schema` for strict structured output or `json_object` for JSON mode.
func (OrchestratorChatCreateChatCompletionRequest_ResponseFormat) AsOrchestratorChatResponseFormatJsonObject ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) AsOrchestratorChatResponseFormatJsonObject() (OrchestratorChatResponseFormatJsonObject, error)
AsOrchestratorChatResponseFormatJsonObject returns the union data inside the OrchestratorChatCreateChatCompletionRequest_ResponseFormat as a OrchestratorChatResponseFormatJsonObject
func (OrchestratorChatCreateChatCompletionRequest_ResponseFormat) AsOrchestratorChatResponseFormatJsonSchema ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) AsOrchestratorChatResponseFormatJsonSchema() (OrchestratorChatResponseFormatJsonSchema, error)
AsOrchestratorChatResponseFormatJsonSchema returns the union data inside the OrchestratorChatCreateChatCompletionRequest_ResponseFormat as a OrchestratorChatResponseFormatJsonSchema
func (OrchestratorChatCreateChatCompletionRequest_ResponseFormat) AsOrchestratorChatResponseFormatText ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) AsOrchestratorChatResponseFormatText() (OrchestratorChatResponseFormatText, error)
AsOrchestratorChatResponseFormatText returns the union data inside the OrchestratorChatCreateChatCompletionRequest_ResponseFormat as a OrchestratorChatResponseFormatText
func (OrchestratorChatCreateChatCompletionRequest_ResponseFormat) Discriminator ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) Discriminator() (string, error)
func (*OrchestratorChatCreateChatCompletionRequest_ResponseFormat) FromOrchestratorChatResponseFormatJsonObject ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) FromOrchestratorChatResponseFormatJsonObject(v OrchestratorChatResponseFormatJsonObject) error
FromOrchestratorChatResponseFormatJsonObject overwrites any union data inside the OrchestratorChatCreateChatCompletionRequest_ResponseFormat as the provided OrchestratorChatResponseFormatJsonObject
func (*OrchestratorChatCreateChatCompletionRequest_ResponseFormat) FromOrchestratorChatResponseFormatJsonSchema ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) FromOrchestratorChatResponseFormatJsonSchema(v OrchestratorChatResponseFormatJsonSchema) error
FromOrchestratorChatResponseFormatJsonSchema overwrites any union data inside the OrchestratorChatCreateChatCompletionRequest_ResponseFormat as the provided OrchestratorChatResponseFormatJsonSchema
func (*OrchestratorChatCreateChatCompletionRequest_ResponseFormat) FromOrchestratorChatResponseFormatText ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) FromOrchestratorChatResponseFormatText(v OrchestratorChatResponseFormatText) error
FromOrchestratorChatResponseFormatText overwrites any union data inside the OrchestratorChatCreateChatCompletionRequest_ResponseFormat as the provided OrchestratorChatResponseFormatText
func (OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MarshalJSON() ([]byte, error)
func (*OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MergeOrchestratorChatResponseFormatJsonObject ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MergeOrchestratorChatResponseFormatJsonObject(v OrchestratorChatResponseFormatJsonObject) error
MergeOrchestratorChatResponseFormatJsonObject performs a merge with any union data inside the OrchestratorChatCreateChatCompletionRequest_ResponseFormat, using the provided OrchestratorChatResponseFormatJsonObject
func (*OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MergeOrchestratorChatResponseFormatJsonSchema ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MergeOrchestratorChatResponseFormatJsonSchema(v OrchestratorChatResponseFormatJsonSchema) error
MergeOrchestratorChatResponseFormatJsonSchema performs a merge with any union data inside the OrchestratorChatCreateChatCompletionRequest_ResponseFormat, using the provided OrchestratorChatResponseFormatJsonSchema
func (*OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MergeOrchestratorChatResponseFormatText ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) MergeOrchestratorChatResponseFormatText(v OrchestratorChatResponseFormatText) error
MergeOrchestratorChatResponseFormatText performs a merge with any union data inside the OrchestratorChatCreateChatCompletionRequest_ResponseFormat, using the provided OrchestratorChatResponseFormatText
func (*OrchestratorChatCreateChatCompletionRequest_ResponseFormat) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_ResponseFormat) UnmarshalJSON(b []byte) error
func (OrchestratorChatCreateChatCompletionRequest_ResponseFormat) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_ResponseFormat) ValueByDiscriminator() (interface{}, error)
type OrchestratorChatCreateChatCompletionRequest_Routing ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionRequest_Routing struct {
// contains filtered or unexported fields
}
OrchestratorChatCreateChatCompletionRequest_Routing Inline routing for `model: "perplexity/auto"` only. Omit this field or set it to null to use the default policy. The serialized routing object must be at most 16384 bytes. Models must be available in the Orchestrator catalog. Routes incompatible with the request are excluded; if the default model is incompatible, the first compatible route model becomes the default. The request fails if no model is compatible.
func (OrchestratorChatCreateChatCompletionRequest_Routing) AsOrchestratorChatCreateChatCompletionRequestRouting1 ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_Routing) AsOrchestratorChatCreateChatCompletionRequestRouting1() (OrchestratorChatCreateChatCompletionRequestRouting1, error)
AsOrchestratorChatCreateChatCompletionRequestRouting1 returns the union data inside the OrchestratorChatCreateChatCompletionRequest_Routing as a OrchestratorChatCreateChatCompletionRequestRouting1
func (OrchestratorChatCreateChatCompletionRequest_Routing) AsOrchestratorRouting ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_Routing) AsOrchestratorRouting() (OrchestratorRouting, error)
AsOrchestratorRouting returns the union data inside the OrchestratorChatCreateChatCompletionRequest_Routing as a OrchestratorRouting
func (*OrchestratorChatCreateChatCompletionRequest_Routing) FromOrchestratorChatCreateChatCompletionRequestRouting1 ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_Routing) FromOrchestratorChatCreateChatCompletionRequestRouting1(v OrchestratorChatCreateChatCompletionRequestRouting1) error
FromOrchestratorChatCreateChatCompletionRequestRouting1 overwrites any union data inside the OrchestratorChatCreateChatCompletionRequest_Routing as the provided OrchestratorChatCreateChatCompletionRequestRouting1
func (*OrchestratorChatCreateChatCompletionRequest_Routing) FromOrchestratorRouting ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_Routing) FromOrchestratorRouting(v OrchestratorRouting) error
FromOrchestratorRouting overwrites any union data inside the OrchestratorChatCreateChatCompletionRequest_Routing as the provided OrchestratorRouting
func (OrchestratorChatCreateChatCompletionRequest_Routing) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_Routing) MarshalJSON() ([]byte, error)
func (*OrchestratorChatCreateChatCompletionRequest_Routing) MergeOrchestratorChatCreateChatCompletionRequestRouting1 ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_Routing) MergeOrchestratorChatCreateChatCompletionRequestRouting1(v OrchestratorChatCreateChatCompletionRequestRouting1) error
MergeOrchestratorChatCreateChatCompletionRequestRouting1 performs a merge with any union data inside the OrchestratorChatCreateChatCompletionRequest_Routing, using the provided OrchestratorChatCreateChatCompletionRequestRouting1
func (*OrchestratorChatCreateChatCompletionRequest_Routing) MergeOrchestratorRouting ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_Routing) MergeOrchestratorRouting(v OrchestratorRouting) error
MergeOrchestratorRouting performs a merge with any union data inside the OrchestratorChatCreateChatCompletionRequest_Routing, using the provided OrchestratorRouting
func (*OrchestratorChatCreateChatCompletionRequest_Routing) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_Routing) UnmarshalJSON(b []byte) error
type OrchestratorChatCreateChatCompletionRequest_Tools_Item ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionRequest_Tools_Item struct {
// contains filtered or unexported fields
}
OrchestratorChatCreateChatCompletionRequest_Tools_Item defines model for OrchestratorChatCreateChatCompletionRequest.tools.Item.
func (OrchestratorChatCreateChatCompletionRequest_Tools_Item) AsOrchestratorChatChatCompletionTool ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_Tools_Item) AsOrchestratorChatChatCompletionTool() (OrchestratorChatChatCompletionTool, error)
AsOrchestratorChatChatCompletionTool returns the union data inside the OrchestratorChatCreateChatCompletionRequest_Tools_Item as a OrchestratorChatChatCompletionTool
func (OrchestratorChatCreateChatCompletionRequest_Tools_Item) AsOrchestratorChatCustomToolChatCompletions ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_Tools_Item) AsOrchestratorChatCustomToolChatCompletions() (OrchestratorChatCustomToolChatCompletions, error)
AsOrchestratorChatCustomToolChatCompletions returns the union data inside the OrchestratorChatCreateChatCompletionRequest_Tools_Item as a OrchestratorChatCustomToolChatCompletions
func (*OrchestratorChatCreateChatCompletionRequest_Tools_Item) FromOrchestratorChatChatCompletionTool ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_Tools_Item) FromOrchestratorChatChatCompletionTool(v OrchestratorChatChatCompletionTool) error
FromOrchestratorChatChatCompletionTool overwrites any union data inside the OrchestratorChatCreateChatCompletionRequest_Tools_Item as the provided OrchestratorChatChatCompletionTool
func (*OrchestratorChatCreateChatCompletionRequest_Tools_Item) FromOrchestratorChatCustomToolChatCompletions ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_Tools_Item) FromOrchestratorChatCustomToolChatCompletions(v OrchestratorChatCustomToolChatCompletions) error
FromOrchestratorChatCustomToolChatCompletions overwrites any union data inside the OrchestratorChatCreateChatCompletionRequest_Tools_Item as the provided OrchestratorChatCustomToolChatCompletions
func (OrchestratorChatCreateChatCompletionRequest_Tools_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionRequest_Tools_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorChatCreateChatCompletionRequest_Tools_Item) MergeOrchestratorChatChatCompletionTool ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_Tools_Item) MergeOrchestratorChatChatCompletionTool(v OrchestratorChatChatCompletionTool) error
MergeOrchestratorChatChatCompletionTool performs a merge with any union data inside the OrchestratorChatCreateChatCompletionRequest_Tools_Item, using the provided OrchestratorChatChatCompletionTool
func (*OrchestratorChatCreateChatCompletionRequest_Tools_Item) MergeOrchestratorChatCustomToolChatCompletions ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_Tools_Item) MergeOrchestratorChatCustomToolChatCompletions(v OrchestratorChatCustomToolChatCompletions) error
MergeOrchestratorChatCustomToolChatCompletions performs a merge with any union data inside the OrchestratorChatCreateChatCompletionRequest_Tools_Item, using the provided OrchestratorChatCustomToolChatCompletions
func (*OrchestratorChatCreateChatCompletionRequest_Tools_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionRequest_Tools_Item) UnmarshalJSON(b []byte) error
type OrchestratorChatCreateChatCompletionResponse ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionResponse struct {
// Choices The completion. Contains exactly one choice.
Choices []struct {
FinishReason OrchestratorChatCreateChatCompletionResponseChoicesFinishReason `json:"finish_reason"`
Index int `json:"index"`
Logprobs *struct {
Content *[]OrchestratorChatChatCompletionTokenLogprob `json:"content"`
Refusal *[]OrchestratorChatChatCompletionTokenLogprob `json:"refusal"`
} `json:"logprobs"`
Message OrchestratorChatChatCompletionResponseMessage `json:"message"`
} `json:"choices"`
// Created Creation time as a Unix timestamp in seconds.
Created int `json:"created"`
// Id Identifier of this completion.
Id string `json:"id"`
// Model The model that served the request. With `perplexity/auto`, this is the selected model, not `perplexity/auto`. Billing uses the served model's rates.
Model string `json:"model"`
Moderation *OrchestratorChatCreateChatCompletionResponse_Moderation `json:"moderation,omitempty"`
// Object Always `"chat.completion"`.
Object OrchestratorChatCreateChatCompletionResponseObject `json:"object"`
// ServiceTier The processing tier that served the request, or `null` when none is reported.
ServiceTier *OrchestratorChatServiceTier `json:"service_tier,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
SystemFingerprint *string `json:"system_fingerprint,omitempty"`
// Usage Token accounting for the request.
Usage *OrchestratorChatCompletionUsage `json:"usage,omitempty"`
}
OrchestratorChatCreateChatCompletionResponse defines model for OrchestratorChatCreateChatCompletionResponse.
type OrchestratorChatCreateChatCompletionResponseChoicesFinishReason ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionResponseChoicesFinishReason string
OrchestratorChatCreateChatCompletionResponseChoicesFinishReason defines model for OrchestratorChatCreateChatCompletionResponse.Choices.FinishReason.
const ( OrchestratorChatCreateChatCompletionResponseChoicesFinishReasonContentFilter OrchestratorChatCreateChatCompletionResponseChoicesFinishReason = "content_filter" OrchestratorChatCreateChatCompletionResponseChoicesFinishReasonFunctionCall OrchestratorChatCreateChatCompletionResponseChoicesFinishReason = "function_call" OrchestratorChatCreateChatCompletionResponseChoicesFinishReasonLength OrchestratorChatCreateChatCompletionResponseChoicesFinishReason = "length" OrchestratorChatCreateChatCompletionResponseChoicesFinishReasonStop OrchestratorChatCreateChatCompletionResponseChoicesFinishReason = "stop" OrchestratorChatCreateChatCompletionResponseChoicesFinishReasonToolCalls OrchestratorChatCreateChatCompletionResponseChoicesFinishReason = "tool_calls" )
Defines values for OrchestratorChatCreateChatCompletionResponseChoicesFinishReason.
func (OrchestratorChatCreateChatCompletionResponseChoicesFinishReason) Valid ¶ added in v0.6.0
func (e OrchestratorChatCreateChatCompletionResponseChoicesFinishReason) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatCreateChatCompletionResponseChoicesFinishReason enum.
type OrchestratorChatCreateChatCompletionResponseObject ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionResponseObject string
OrchestratorChatCreateChatCompletionResponseObject Always `"chat.completion"`.
const (
OrchestratorChatCreateChatCompletionResponseObjectChatCompletion OrchestratorChatCreateChatCompletionResponseObject = "chat.completion"
)
Defines values for OrchestratorChatCreateChatCompletionResponseObject.
func (OrchestratorChatCreateChatCompletionResponseObject) Valid ¶ added in v0.6.0
func (e OrchestratorChatCreateChatCompletionResponseObject) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatCreateChatCompletionResponseObject enum.
type OrchestratorChatCreateChatCompletionResponse_Moderation ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionResponse_Moderation struct {
// contains filtered or unexported fields
}
OrchestratorChatCreateChatCompletionResponse_Moderation defines model for OrchestratorChatCreateChatCompletionResponse.Moderation.
func (OrchestratorChatCreateChatCompletionResponse_Moderation) AsOrchestratorChatChatCompletionModeration ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionResponse_Moderation) AsOrchestratorChatChatCompletionModeration() (OrchestratorChatChatCompletionModeration, error)
AsOrchestratorChatChatCompletionModeration returns the union data inside the OrchestratorChatCreateChatCompletionResponse_Moderation as a OrchestratorChatChatCompletionModeration
func (*OrchestratorChatCreateChatCompletionResponse_Moderation) FromOrchestratorChatChatCompletionModeration ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionResponse_Moderation) FromOrchestratorChatChatCompletionModeration(v OrchestratorChatChatCompletionModeration) error
FromOrchestratorChatChatCompletionModeration overwrites any union data inside the OrchestratorChatCreateChatCompletionResponse_Moderation as the provided OrchestratorChatChatCompletionModeration
func (OrchestratorChatCreateChatCompletionResponse_Moderation) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionResponse_Moderation) MarshalJSON() ([]byte, error)
func (*OrchestratorChatCreateChatCompletionResponse_Moderation) MergeOrchestratorChatChatCompletionModeration ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionResponse_Moderation) MergeOrchestratorChatChatCompletionModeration(v OrchestratorChatChatCompletionModeration) error
MergeOrchestratorChatChatCompletionModeration performs a merge with any union data inside the OrchestratorChatCreateChatCompletionResponse_Moderation, using the provided OrchestratorChatChatCompletionModeration
func (*OrchestratorChatCreateChatCompletionResponse_Moderation) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionResponse_Moderation) UnmarshalJSON(b []byte) error
type OrchestratorChatCreateChatCompletionStreamResponse ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionStreamResponse struct {
// Choices Incremental output. Empty in the final usage chunk when `stream_options.include_usage` is set.
Choices []struct {
Delta OrchestratorChatChatCompletionStreamResponseDelta `json:"delta"`
FinishReason *OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason `json:"finish_reason"`
Index int `json:"index"`
Logprobs *struct {
Content *[]OrchestratorChatChatCompletionTokenLogprob `json:"content"`
Refusal *[]OrchestratorChatChatCompletionTokenLogprob `json:"refusal"`
} `json:"logprobs,omitempty"`
} `json:"choices"`
// Created Creation time as a Unix timestamp in seconds, shared by every chunk.
Created int `json:"created"`
// Id Identifier of this completion, shared by every chunk.
Id string `json:"id"`
// Model The model that served the request. With `perplexity/auto`, this is the selected model, not `perplexity/auto`. Billing uses the served model's rates.
Model string `json:"model"`
Moderation *OrchestratorChatCreateChatCompletionStreamResponse_Moderation `json:"moderation,omitempty"`
// Object Always `"chat.completion.chunk"`.
Object OrchestratorChatCreateChatCompletionStreamResponseObject `json:"object"`
ServiceTier *OrchestratorChatServiceTier `json:"service_tier,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
SystemFingerprint *string `json:"system_fingerprint,omitempty"`
// Usage Only when the request set `stream_options.include_usage`: `null` in earlier chunks and the request's token totals in the final chunk. Omitted otherwise.
Usage *OrchestratorChatCompletionUsage `json:"usage,omitempty"`
}
OrchestratorChatCreateChatCompletionStreamResponse defines model for OrchestratorChatCreateChatCompletionStreamResponse.
type OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason string
OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason defines model for OrchestratorChatCreateChatCompletionStreamResponse.Choices.FinishReason.
const ( OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReasonContentFilter OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason = "content_filter" OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReasonFunctionCall OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason = "function_call" OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReasonLength OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason = "length" OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReasonStop OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason = "stop" OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReasonToolCalls OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason = "tool_calls" )
Defines values for OrchestratorChatCreateChatCompletionStreamResponseChoicesFinishReason.
type OrchestratorChatCreateChatCompletionStreamResponseObject ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionStreamResponseObject string
OrchestratorChatCreateChatCompletionStreamResponseObject Always `"chat.completion.chunk"`.
const (
OrchestratorChatCreateChatCompletionStreamResponseObjectChatCompletionChunk OrchestratorChatCreateChatCompletionStreamResponseObject = "chat.completion.chunk"
)
Defines values for OrchestratorChatCreateChatCompletionStreamResponseObject.
func (OrchestratorChatCreateChatCompletionStreamResponseObject) Valid ¶ added in v0.6.0
func (e OrchestratorChatCreateChatCompletionStreamResponseObject) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatCreateChatCompletionStreamResponseObject enum.
type OrchestratorChatCreateChatCompletionStreamResponse_Moderation ¶ added in v0.6.0
type OrchestratorChatCreateChatCompletionStreamResponse_Moderation struct {
// contains filtered or unexported fields
}
OrchestratorChatCreateChatCompletionStreamResponse_Moderation defines model for OrchestratorChatCreateChatCompletionStreamResponse.Moderation.
func (OrchestratorChatCreateChatCompletionStreamResponse_Moderation) AsOrchestratorChatChatCompletionModeration ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionStreamResponse_Moderation) AsOrchestratorChatChatCompletionModeration() (OrchestratorChatChatCompletionModeration, error)
AsOrchestratorChatChatCompletionModeration returns the union data inside the OrchestratorChatCreateChatCompletionStreamResponse_Moderation as a OrchestratorChatChatCompletionModeration
func (*OrchestratorChatCreateChatCompletionStreamResponse_Moderation) FromOrchestratorChatChatCompletionModeration ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionStreamResponse_Moderation) FromOrchestratorChatChatCompletionModeration(v OrchestratorChatChatCompletionModeration) error
FromOrchestratorChatChatCompletionModeration overwrites any union data inside the OrchestratorChatCreateChatCompletionStreamResponse_Moderation as the provided OrchestratorChatChatCompletionModeration
func (OrchestratorChatCreateChatCompletionStreamResponse_Moderation) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatCreateChatCompletionStreamResponse_Moderation) MarshalJSON() ([]byte, error)
func (*OrchestratorChatCreateChatCompletionStreamResponse_Moderation) MergeOrchestratorChatChatCompletionModeration ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionStreamResponse_Moderation) MergeOrchestratorChatChatCompletionModeration(v OrchestratorChatChatCompletionModeration) error
MergeOrchestratorChatChatCompletionModeration performs a merge with any union data inside the OrchestratorChatCreateChatCompletionStreamResponse_Moderation, using the provided OrchestratorChatChatCompletionModeration
func (*OrchestratorChatCreateChatCompletionStreamResponse_Moderation) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatCreateChatCompletionStreamResponse_Moderation) UnmarshalJSON(b []byte) error
type OrchestratorChatCreateModelResponseProperties ¶ added in v0.6.0
type OrchestratorChatCreateModelResponseProperties struct {
// Metadata Accepted for SDK compatibility; not forwarded to the model.
Metadata *OrchestratorChatMetadata `json:"metadata,omitempty"`
// PromptCacheKey Stable key grouping related requests to improve prompt-cache hit rates.
PromptCacheKey *string `json:"prompt_cache_key,omitempty"`
// PromptCacheOptions Prompt-cache settings. `ttl` accepts `30m` or `1h`; `1h` works on Anthropic models only.
PromptCacheOptions *OrchestratorChatPromptCacheOptionsParam `json:"prompt_cache_options,omitempty"`
// SafetyIdentifier Accepted for SDK compatibility; not forwarded to the model.
SafetyIdentifier *string `json:"safety_identifier,omitempty"`
// ServiceTier Processing tier for the request. `flex` halves token rates on supported models; `auto` and `default` are equivalent.
ServiceTier *OrchestratorChatServiceTier `json:"service_tier,omitempty"`
// Temperature Controls randomness in token selection. Anthropic models accept 0 to 1; other models accept 0 to 2. Higher values produce more varied output. Some models reject requests that set both `temperature` and `top_p`.
Temperature *float64 `json:"temperature,omitempty"`
// TopP Cumulative probability cutoff for nucleus sampling, 0 to 1. Some models reject requests that set both `top_p` and `temperature`.
TopP *float64 `json:"top_p,omitempty"`
// User Accepted for SDK compatibility; not forwarded to the model.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
User *string `json:"user,omitempty"`
}
OrchestratorChatCreateModelResponseProperties defines model for OrchestratorChatCreateModelResponseProperties.
type OrchestratorChatCustomToolChatCompletions ¶ added in v0.6.0
type OrchestratorChatCustomToolChatCompletions struct {
Custom struct {
Format *OrchestratorChatCustomToolChatCompletions_Custom_Format `json:"format,omitempty"`
Name string `json:"name"`
} `json:"custom"`
Type OrchestratorChatCustomToolChatCompletionsType `json:"type"`
}
OrchestratorChatCustomToolChatCompletions defines model for OrchestratorChatCustomToolChatCompletions.
type OrchestratorChatCustomToolChatCompletionsCustomFormat0 ¶ added in v0.6.0
type OrchestratorChatCustomToolChatCompletionsCustomFormat0 struct {
Type OrchestratorChatCustomToolChatCompletionsCustomFormat0Type `json:"type"`
}
OrchestratorChatCustomToolChatCompletionsCustomFormat0 defines model for OrchestratorChatCustomToolChatCompletions.Custom.Format.0.
type OrchestratorChatCustomToolChatCompletionsCustomFormat0Type ¶ added in v0.6.0
type OrchestratorChatCustomToolChatCompletionsCustomFormat0Type string
OrchestratorChatCustomToolChatCompletionsCustomFormat0Type defines model for OrchestratorChatCustomToolChatCompletions.Custom.Format.0.Type.
const (
OrchestratorChatCustomToolChatCompletionsCustomFormat0TypeText OrchestratorChatCustomToolChatCompletionsCustomFormat0Type = "text"
)
Defines values for OrchestratorChatCustomToolChatCompletionsCustomFormat0Type.
func (OrchestratorChatCustomToolChatCompletionsCustomFormat0Type) Valid ¶ added in v0.6.0
func (e OrchestratorChatCustomToolChatCompletionsCustomFormat0Type) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatCustomToolChatCompletionsCustomFormat0Type enum.
type OrchestratorChatCustomToolChatCompletionsCustomFormat1 ¶ added in v0.6.0
type OrchestratorChatCustomToolChatCompletionsCustomFormat1 struct {
Grammar struct {
Definition string `json:"definition"`
Syntax OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax `json:"syntax"`
} `json:"grammar"`
Type OrchestratorChatCustomToolChatCompletionsCustomFormat1Type `json:"type"`
}
OrchestratorChatCustomToolChatCompletionsCustomFormat1 defines model for OrchestratorChatCustomToolChatCompletions.Custom.Format.1.
type OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax ¶ added in v0.6.0
type OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax string
OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax defines model for OrchestratorChatCustomToolChatCompletions.Custom.Format.1.Grammar.Syntax.
const ( OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntaxLark OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax = "lark" OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntaxRegex OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax = "regex" )
Defines values for OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax.
func (OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax) Valid ¶ added in v0.6.0
func (e OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatCustomToolChatCompletionsCustomFormat1GrammarSyntax enum.
type OrchestratorChatCustomToolChatCompletionsCustomFormat1Type ¶ added in v0.6.0
type OrchestratorChatCustomToolChatCompletionsCustomFormat1Type string
OrchestratorChatCustomToolChatCompletionsCustomFormat1Type defines model for OrchestratorChatCustomToolChatCompletions.Custom.Format.1.Type.
const (
OrchestratorChatCustomToolChatCompletionsCustomFormat1TypeGrammar OrchestratorChatCustomToolChatCompletionsCustomFormat1Type = "grammar"
)
Defines values for OrchestratorChatCustomToolChatCompletionsCustomFormat1Type.
func (OrchestratorChatCustomToolChatCompletionsCustomFormat1Type) Valid ¶ added in v0.6.0
func (e OrchestratorChatCustomToolChatCompletionsCustomFormat1Type) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatCustomToolChatCompletionsCustomFormat1Type enum.
type OrchestratorChatCustomToolChatCompletionsType ¶ added in v0.6.0
type OrchestratorChatCustomToolChatCompletionsType string
OrchestratorChatCustomToolChatCompletionsType defines model for OrchestratorChatCustomToolChatCompletions.Type.
const (
OrchestratorChatCustomToolChatCompletionsTypeCustom OrchestratorChatCustomToolChatCompletionsType = "custom"
)
Defines values for OrchestratorChatCustomToolChatCompletionsType.
func (OrchestratorChatCustomToolChatCompletionsType) Valid ¶ added in v0.6.0
func (e OrchestratorChatCustomToolChatCompletionsType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatCustomToolChatCompletionsType enum.
type OrchestratorChatCustomToolChatCompletions_Custom_Format ¶ added in v0.6.0
type OrchestratorChatCustomToolChatCompletions_Custom_Format struct {
// contains filtered or unexported fields
}
OrchestratorChatCustomToolChatCompletions_Custom_Format defines model for OrchestratorChatCustomToolChatCompletions.Custom.Format.
func (OrchestratorChatCustomToolChatCompletions_Custom_Format) AsOrchestratorChatCustomToolChatCompletionsCustomFormat0 ¶ added in v0.6.0
func (t OrchestratorChatCustomToolChatCompletions_Custom_Format) AsOrchestratorChatCustomToolChatCompletionsCustomFormat0() (OrchestratorChatCustomToolChatCompletionsCustomFormat0, error)
AsOrchestratorChatCustomToolChatCompletionsCustomFormat0 returns the union data inside the OrchestratorChatCustomToolChatCompletions_Custom_Format as a OrchestratorChatCustomToolChatCompletionsCustomFormat0
func (OrchestratorChatCustomToolChatCompletions_Custom_Format) AsOrchestratorChatCustomToolChatCompletionsCustomFormat1 ¶ added in v0.6.0
func (t OrchestratorChatCustomToolChatCompletions_Custom_Format) AsOrchestratorChatCustomToolChatCompletionsCustomFormat1() (OrchestratorChatCustomToolChatCompletionsCustomFormat1, error)
AsOrchestratorChatCustomToolChatCompletionsCustomFormat1 returns the union data inside the OrchestratorChatCustomToolChatCompletions_Custom_Format as a OrchestratorChatCustomToolChatCompletionsCustomFormat1
func (*OrchestratorChatCustomToolChatCompletions_Custom_Format) FromOrchestratorChatCustomToolChatCompletionsCustomFormat0 ¶ added in v0.6.0
func (t *OrchestratorChatCustomToolChatCompletions_Custom_Format) FromOrchestratorChatCustomToolChatCompletionsCustomFormat0(v OrchestratorChatCustomToolChatCompletionsCustomFormat0) error
FromOrchestratorChatCustomToolChatCompletionsCustomFormat0 overwrites any union data inside the OrchestratorChatCustomToolChatCompletions_Custom_Format as the provided OrchestratorChatCustomToolChatCompletionsCustomFormat0
func (*OrchestratorChatCustomToolChatCompletions_Custom_Format) FromOrchestratorChatCustomToolChatCompletionsCustomFormat1 ¶ added in v0.6.0
func (t *OrchestratorChatCustomToolChatCompletions_Custom_Format) FromOrchestratorChatCustomToolChatCompletionsCustomFormat1(v OrchestratorChatCustomToolChatCompletionsCustomFormat1) error
FromOrchestratorChatCustomToolChatCompletionsCustomFormat1 overwrites any union data inside the OrchestratorChatCustomToolChatCompletions_Custom_Format as the provided OrchestratorChatCustomToolChatCompletionsCustomFormat1
func (OrchestratorChatCustomToolChatCompletions_Custom_Format) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorChatCustomToolChatCompletions_Custom_Format) MarshalJSON() ([]byte, error)
func (*OrchestratorChatCustomToolChatCompletions_Custom_Format) MergeOrchestratorChatCustomToolChatCompletionsCustomFormat0 ¶ added in v0.6.0
func (t *OrchestratorChatCustomToolChatCompletions_Custom_Format) MergeOrchestratorChatCustomToolChatCompletionsCustomFormat0(v OrchestratorChatCustomToolChatCompletionsCustomFormat0) error
MergeOrchestratorChatCustomToolChatCompletionsCustomFormat0 performs a merge with any union data inside the OrchestratorChatCustomToolChatCompletions_Custom_Format, using the provided OrchestratorChatCustomToolChatCompletionsCustomFormat0
func (*OrchestratorChatCustomToolChatCompletions_Custom_Format) MergeOrchestratorChatCustomToolChatCompletionsCustomFormat1 ¶ added in v0.6.0
func (t *OrchestratorChatCustomToolChatCompletions_Custom_Format) MergeOrchestratorChatCustomToolChatCompletionsCustomFormat1(v OrchestratorChatCustomToolChatCompletionsCustomFormat1) error
MergeOrchestratorChatCustomToolChatCompletionsCustomFormat1 performs a merge with any union data inside the OrchestratorChatCustomToolChatCompletions_Custom_Format, using the provided OrchestratorChatCustomToolChatCompletionsCustomFormat1
func (*OrchestratorChatCustomToolChatCompletions_Custom_Format) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorChatCustomToolChatCompletions_Custom_Format) UnmarshalJSON(b []byte) error
type OrchestratorChatError ¶ added in v0.6.0
type OrchestratorChatError struct {
// Code A machine-readable code when available, such as `unsupported_parameter` or `unsupported_value`; otherwise `null`. Authentication failures use the number `401`.
Code *string `json:"code"`
// Message Human-readable description of the error.
Message string `json:"message"`
// Param The request parameter the error refers to, when applicable.
Param *string `json:"param"`
// Type Error category: `invalid_request_error` for validation errors, `invalid_api_key` for authentication failures, `rate_limit_error` for 429, `server_error` for 5xx.
Type string `json:"type"`
}
OrchestratorChatError defines model for OrchestratorChatError.
type OrchestratorChatErrorResponse ¶ added in v0.6.0
type OrchestratorChatErrorResponse struct {
Error OrchestratorChatError `json:"error"`
}
OrchestratorChatErrorResponse defines model for OrchestratorChatErrorResponse.
type OrchestratorChatFunctionObject ¶ added in v0.6.0
type OrchestratorChatFunctionObject struct {
Name string `json:"name"`
Parameters *OrchestratorChatFunctionParameters `json:"parameters,omitempty"`
Strict *bool `json:"strict,omitempty"`
}
OrchestratorChatFunctionObject defines model for OrchestratorChatFunctionObject.
type OrchestratorChatFunctionParameters ¶ added in v0.6.0
type OrchestratorChatFunctionParameters map[string]interface{}
OrchestratorChatFunctionParameters defines model for OrchestratorChatFunctionParameters.
type OrchestratorChatMetadata ¶ added in v0.6.0
OrchestratorChatMetadata defines model for OrchestratorChatMetadata.
type OrchestratorChatModel ¶ added in v0.6.0
type OrchestratorChatModel struct {
// Id Public model slug, e.g. `perplexity/kimi-k3`.
Id string `json:"id"`
// Object Always `model`.
Object string `json:"object"`
Created int64 `json:"created"`
// OwnedBy Provider prefix of the slug, e.g. `perplexity`.
OwnedBy string `json:"owned_by"`
// Pricing Base token prices in USD per 1M tokens. Every field is a price; cache_read is the effective cached-input price.
Pricing OrchestratorChatModelPricing `json:"pricing"`
}
OrchestratorChatModel defines model for OrchestratorChatModel.
type OrchestratorChatModelIdsShared ¶ added in v0.6.0
type OrchestratorChatModelIdsShared = string
OrchestratorChatModelIdsShared A `creator/model-name` id from the Orchestrator API catalog.
type OrchestratorChatModelList ¶ added in v0.6.0
type OrchestratorChatModelList struct {
// Object Always `list`.
Object string `json:"object"`
Data []OrchestratorChatModel `json:"data"`
}
OrchestratorChatModelList defines model for OrchestratorChatModelList.
type OrchestratorChatModelPricing ¶ added in v0.6.0
type OrchestratorChatModelPricing struct {
Input float64 `json:"input"`
Output float64 `json:"output"`
CacheWrite *float64 `json:"cache_write,omitempty"`
CacheRead *float64 `json:"cache_read,omitempty"`
Unit OrchestratorChatModelPricingUnit `json:"unit"`
}
OrchestratorChatModelPricing Base token prices in USD per 1M tokens. Every field is a price; cache_read is the effective cached-input price.
type OrchestratorChatModelPricingUnit ¶ added in v0.6.0
type OrchestratorChatModelPricingUnit string
OrchestratorChatModelPricingUnit defines model for OrchestratorChatModelPricing.Unit.
const (
OrchestratorChatModelPricingUnitUsdPer1mTokens OrchestratorChatModelPricingUnit = "usd_per_1m_tokens"
)
Defines values for OrchestratorChatModelPricingUnit.
func (OrchestratorChatModelPricingUnit) Valid ¶ added in v0.6.0
func (e OrchestratorChatModelPricingUnit) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatModelPricingUnit enum.
type OrchestratorChatModelResponseProperties ¶ added in v0.6.0
type OrchestratorChatModelResponseProperties struct {
// Metadata Accepted for SDK compatibility; not forwarded to the model.
Metadata *OrchestratorChatMetadata `json:"metadata,omitempty"`
// PromptCacheKey Stable key grouping related requests to improve prompt-cache hit rates.
PromptCacheKey *string `json:"prompt_cache_key,omitempty"`
// SafetyIdentifier Accepted for SDK compatibility; not forwarded to the model.
SafetyIdentifier *string `json:"safety_identifier,omitempty"`
// ServiceTier Processing tier for the request. `flex` halves token rates on supported models; `auto` and `default` are equivalent.
ServiceTier *OrchestratorChatServiceTier `json:"service_tier,omitempty"`
// Temperature Controls randomness in token selection. Anthropic models accept 0 to 1; other models accept 0 to 2. Higher values produce more varied output. Some models reject requests that set both `temperature` and `top_p`.
Temperature *float64 `json:"temperature,omitempty"`
// TopP Cumulative probability cutoff for nucleus sampling, 0 to 1. Some models reject requests that set both `top_p` and `temperature`.
TopP *float64 `json:"top_p,omitempty"`
// User Accepted for SDK compatibility; not forwarded to the model.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
User *string `json:"user,omitempty"`
}
OrchestratorChatModelResponseProperties defines model for OrchestratorChatModelResponseProperties.
type OrchestratorChatModerationInputType ¶ added in v0.6.0
type OrchestratorChatModerationInputType string
OrchestratorChatModerationInputType defines model for OrchestratorChatModerationInputType.
const ( OrchestratorChatModerationInputTypeImage OrchestratorChatModerationInputType = "image" OrchestratorChatModerationInputTypeText OrchestratorChatModerationInputType = "text" )
Defines values for OrchestratorChatModerationInputType.
func (OrchestratorChatModerationInputType) Valid ¶ added in v0.6.0
func (e OrchestratorChatModerationInputType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatModerationInputType enum.
type OrchestratorChatModerationResultBody ¶ added in v0.6.0
type OrchestratorChatModerationResultBody struct {
Categories map[string]bool `json:"categories"`
CategoryAppliedInputTypes map[string][]OrchestratorChatModerationInputType `json:"category_applied_input_types"`
CategoryScores map[string]float64 `json:"category_scores"`
Flagged bool `json:"flagged"`
Model string `json:"model"`
Type OrchestratorChatModerationResultBodyType `json:"type"`
}
OrchestratorChatModerationResultBody defines model for OrchestratorChatModerationResultBody.
type OrchestratorChatModerationResultBodyType ¶ added in v0.6.0
type OrchestratorChatModerationResultBodyType string
OrchestratorChatModerationResultBodyType defines model for OrchestratorChatModerationResultBody.Type.
const (
OrchestratorChatModerationResultBodyTypeModerationResult OrchestratorChatModerationResultBodyType = "moderation_result"
)
Defines values for OrchestratorChatModerationResultBodyType.
func (OrchestratorChatModerationResultBodyType) Valid ¶ added in v0.6.0
func (e OrchestratorChatModerationResultBodyType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatModerationResultBodyType enum.
type OrchestratorChatParallelToolCalls ¶ added in v0.6.0
type OrchestratorChatParallelToolCalls = bool
OrchestratorChatParallelToolCalls defines model for OrchestratorChatParallelToolCalls.
type OrchestratorChatPromptCacheBreakpointParam ¶ added in v0.6.0
type OrchestratorChatPromptCacheBreakpointParam struct {
Mode OrchestratorChatPromptCacheBreakpointParamMode `json:"mode"`
}
OrchestratorChatPromptCacheBreakpointParam defines model for OrchestratorChatPromptCacheBreakpointParam.
type OrchestratorChatPromptCacheBreakpointParamMode ¶ added in v0.6.0
type OrchestratorChatPromptCacheBreakpointParamMode string
OrchestratorChatPromptCacheBreakpointParamMode defines model for OrchestratorChatPromptCacheBreakpointParam.Mode.
const (
OrchestratorChatPromptCacheBreakpointParamModeExplicit OrchestratorChatPromptCacheBreakpointParamMode = "explicit"
)
Defines values for OrchestratorChatPromptCacheBreakpointParamMode.
func (OrchestratorChatPromptCacheBreakpointParamMode) Valid ¶ added in v0.6.0
func (e OrchestratorChatPromptCacheBreakpointParamMode) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatPromptCacheBreakpointParamMode enum.
type OrchestratorChatPromptCacheModeEnum ¶ added in v0.6.0
type OrchestratorChatPromptCacheModeEnum string
OrchestratorChatPromptCacheModeEnum defines model for OrchestratorChatPromptCacheModeEnum.
const ( OrchestratorChatPromptCacheModeEnumExplicit OrchestratorChatPromptCacheModeEnum = "explicit" OrchestratorChatPromptCacheModeEnumImplicit OrchestratorChatPromptCacheModeEnum = "implicit" )
Defines values for OrchestratorChatPromptCacheModeEnum.
func (OrchestratorChatPromptCacheModeEnum) Valid ¶ added in v0.6.0
func (e OrchestratorChatPromptCacheModeEnum) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatPromptCacheModeEnum enum.
type OrchestratorChatPromptCacheOptionsParam ¶ added in v0.6.0
type OrchestratorChatPromptCacheOptionsParam struct {
Mode *OrchestratorChatPromptCacheModeEnum `json:"mode,omitempty"`
Ttl *OrchestratorChatPromptCacheTTLEnum `json:"ttl,omitempty"`
}
OrchestratorChatPromptCacheOptionsParam defines model for OrchestratorChatPromptCacheOptionsParam.
type OrchestratorChatPromptCacheTTLEnum ¶ added in v0.6.0
type OrchestratorChatPromptCacheTTLEnum string
OrchestratorChatPromptCacheTTLEnum defines model for OrchestratorChatPromptCacheTTLEnum.
const ( OrchestratorChatPromptCacheTTLEnumN1h OrchestratorChatPromptCacheTTLEnum = "1h" OrchestratorChatPromptCacheTTLEnumN30m OrchestratorChatPromptCacheTTLEnum = "30m" )
Defines values for OrchestratorChatPromptCacheTTLEnum.
func (OrchestratorChatPromptCacheTTLEnum) Valid ¶ added in v0.6.0
func (e OrchestratorChatPromptCacheTTLEnum) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatPromptCacheTTLEnum enum.
type OrchestratorChatReasoningEffort ¶ added in v0.6.0
type OrchestratorChatReasoningEffort string
OrchestratorChatReasoningEffort defines model for OrchestratorChatReasoningEffort.
type OrchestratorChatResponseFormatJsonObject ¶ added in v0.6.0
type OrchestratorChatResponseFormatJsonObject struct {
Type OrchestratorChatResponseFormatJsonObjectType `json:"type"`
}
OrchestratorChatResponseFormatJsonObject defines model for OrchestratorChatResponseFormatJsonObject.
type OrchestratorChatResponseFormatJsonObjectType ¶ added in v0.6.0
type OrchestratorChatResponseFormatJsonObjectType string
OrchestratorChatResponseFormatJsonObjectType defines model for OrchestratorChatResponseFormatJsonObject.Type.
const (
OrchestratorChatResponseFormatJsonObjectTypeJsonObject OrchestratorChatResponseFormatJsonObjectType = "json_object"
)
Defines values for OrchestratorChatResponseFormatJsonObjectType.
func (OrchestratorChatResponseFormatJsonObjectType) Valid ¶ added in v0.6.0
func (e OrchestratorChatResponseFormatJsonObjectType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatResponseFormatJsonObjectType enum.
type OrchestratorChatResponseFormatJsonSchema ¶ added in v0.6.0
type OrchestratorChatResponseFormatJsonSchema struct {
JsonSchema struct {
Name string `json:"name"`
Schema *OrchestratorChatResponseFormatJsonSchemaSchema `json:"schema,omitempty"`
Strict *bool `json:"strict,omitempty"`
} `json:"json_schema"`
Type OrchestratorChatResponseFormatJsonSchemaType `json:"type"`
}
OrchestratorChatResponseFormatJsonSchema defines model for OrchestratorChatResponseFormatJsonSchema.
type OrchestratorChatResponseFormatJsonSchemaSchema ¶ added in v0.6.0
type OrchestratorChatResponseFormatJsonSchemaSchema map[string]interface{}
OrchestratorChatResponseFormatJsonSchemaSchema defines model for OrchestratorChatResponseFormatJsonSchemaSchema.
type OrchestratorChatResponseFormatJsonSchemaType ¶ added in v0.6.0
type OrchestratorChatResponseFormatJsonSchemaType string
OrchestratorChatResponseFormatJsonSchemaType defines model for OrchestratorChatResponseFormatJsonSchema.Type.
const (
OrchestratorChatResponseFormatJsonSchemaTypeJsonSchema OrchestratorChatResponseFormatJsonSchemaType = "json_schema"
)
Defines values for OrchestratorChatResponseFormatJsonSchemaType.
func (OrchestratorChatResponseFormatJsonSchemaType) Valid ¶ added in v0.6.0
func (e OrchestratorChatResponseFormatJsonSchemaType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatResponseFormatJsonSchemaType enum.
type OrchestratorChatResponseFormatText ¶ added in v0.6.0
type OrchestratorChatResponseFormatText struct {
Type OrchestratorChatResponseFormatTextType `json:"type"`
}
OrchestratorChatResponseFormatText defines model for OrchestratorChatResponseFormatText.
type OrchestratorChatResponseFormatTextType ¶ added in v0.6.0
type OrchestratorChatResponseFormatTextType string
OrchestratorChatResponseFormatTextType defines model for OrchestratorChatResponseFormatText.Type.
const (
OrchestratorChatResponseFormatTextTypeText OrchestratorChatResponseFormatTextType = "text"
)
Defines values for OrchestratorChatResponseFormatTextType.
func (OrchestratorChatResponseFormatTextType) Valid ¶ added in v0.6.0
func (e OrchestratorChatResponseFormatTextType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorChatResponseFormatTextType enum.
type OrchestratorChatServiceTier ¶ added in v0.6.0
type OrchestratorChatServiceTier string
OrchestratorChatServiceTier defines model for OrchestratorChatServiceTier.
type OrchestratorChatStopConfiguration ¶ added in v0.6.0
type OrchestratorChatStopConfiguration struct {
// contains filtered or unexported fields
}
OrchestratorChatStopConfiguration defines model for OrchestratorChatStopConfiguration.
type OrchestratorChatStopConfiguration0 ¶ added in v0.6.0
type OrchestratorChatStopConfiguration0 = string
OrchestratorChatStopConfiguration0 defines model for OrchestratorChatStopConfiguration.0.
type OrchestratorChatStopConfiguration1 ¶ added in v0.6.0
type OrchestratorChatStopConfiguration1 = []string
OrchestratorChatStopConfiguration1 defines model for OrchestratorChatStopConfiguration.1.
type OrchestratorMessagesBase64DocumentSource ¶ added in v0.6.0
type OrchestratorMessagesBase64DocumentSource struct {
Data string `json:"data"`
MediaType OrchestratorMessagesBase64DocumentSourceMediaType `json:"media_type"`
Type OrchestratorMessagesBase64DocumentSourceType `json:"type"`
}
OrchestratorMessagesBase64DocumentSource defines model for OrchestratorMessagesBase64DocumentSource.
type OrchestratorMessagesBase64DocumentSourceMediaType ¶ added in v0.6.0
type OrchestratorMessagesBase64DocumentSourceMediaType string
OrchestratorMessagesBase64DocumentSourceMediaType defines model for OrchestratorMessagesBase64DocumentSource.MediaType.
const (
OrchestratorMessagesBase64DocumentSourceMediaTypeApplicationpdf OrchestratorMessagesBase64DocumentSourceMediaType = "application/pdf"
)
Defines values for OrchestratorMessagesBase64DocumentSourceMediaType.
func (OrchestratorMessagesBase64DocumentSourceMediaType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesBase64DocumentSourceMediaType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesBase64DocumentSourceMediaType enum.
type OrchestratorMessagesBase64DocumentSourceType ¶ added in v0.6.0
type OrchestratorMessagesBase64DocumentSourceType string
OrchestratorMessagesBase64DocumentSourceType defines model for OrchestratorMessagesBase64DocumentSource.Type.
const (
OrchestratorMessagesBase64DocumentSourceTypeBase64 OrchestratorMessagesBase64DocumentSourceType = "base64"
)
Defines values for OrchestratorMessagesBase64DocumentSourceType.
func (OrchestratorMessagesBase64DocumentSourceType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesBase64DocumentSourceType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesBase64DocumentSourceType enum.
type OrchestratorMessagesBase64ImageSource ¶ added in v0.6.0
type OrchestratorMessagesBase64ImageSource struct {
// Data Base64-encoded image bytes, kept as a string end to end.
Data string `json:"data"`
MediaType OrchestratorMessagesBase64ImageSourceMediaType `json:"media_type"`
Type OrchestratorMessagesBase64ImageSourceType `json:"type"`
}
OrchestratorMessagesBase64ImageSource defines model for OrchestratorMessagesBase64ImageSource.
type OrchestratorMessagesBase64ImageSourceMediaType ¶ added in v0.6.0
type OrchestratorMessagesBase64ImageSourceMediaType string
OrchestratorMessagesBase64ImageSourceMediaType defines model for OrchestratorMessagesBase64ImageSource.MediaType.
const ( OrchestratorMessagesBase64ImageSourceMediaTypeImagegif OrchestratorMessagesBase64ImageSourceMediaType = "image/gif" OrchestratorMessagesBase64ImageSourceMediaTypeImagejpeg OrchestratorMessagesBase64ImageSourceMediaType = "image/jpeg" OrchestratorMessagesBase64ImageSourceMediaTypeImagepng OrchestratorMessagesBase64ImageSourceMediaType = "image/png" OrchestratorMessagesBase64ImageSourceMediaTypeImagewebp OrchestratorMessagesBase64ImageSourceMediaType = "image/webp" )
Defines values for OrchestratorMessagesBase64ImageSourceMediaType.
func (OrchestratorMessagesBase64ImageSourceMediaType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesBase64ImageSourceMediaType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesBase64ImageSourceMediaType enum.
type OrchestratorMessagesBase64ImageSourceType ¶ added in v0.6.0
type OrchestratorMessagesBase64ImageSourceType string
OrchestratorMessagesBase64ImageSourceType defines model for OrchestratorMessagesBase64ImageSource.Type.
const (
OrchestratorMessagesBase64ImageSourceTypeBase64 OrchestratorMessagesBase64ImageSourceType = "base64"
)
Defines values for OrchestratorMessagesBase64ImageSourceType.
func (OrchestratorMessagesBase64ImageSourceType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesBase64ImageSourceType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesBase64ImageSourceType enum.
type OrchestratorMessagesCacheControl ¶ added in v0.6.0
type OrchestratorMessagesCacheControl struct {
Ttl *OrchestratorMessagesCacheControlTtl `json:"ttl,omitempty"`
Type OrchestratorMessagesCacheControlType `json:"type"`
}
OrchestratorMessagesCacheControl Ephemeral cache breakpoint. Set `ttl` to `5m` or `1h`. Cache writes with a `1h` TTL are billed at 2x the base input rate.
type OrchestratorMessagesCacheControlTtl ¶ added in v0.6.0
type OrchestratorMessagesCacheControlTtl string
OrchestratorMessagesCacheControlTtl defines model for OrchestratorMessagesCacheControl.Ttl.
const ( OrchestratorMessagesCacheControlTtlN1h OrchestratorMessagesCacheControlTtl = "1h" OrchestratorMessagesCacheControlTtlN5m OrchestratorMessagesCacheControlTtl = "5m" )
Defines values for OrchestratorMessagesCacheControlTtl.
func (OrchestratorMessagesCacheControlTtl) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesCacheControlTtl) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesCacheControlTtl enum.
type OrchestratorMessagesCacheControlType ¶ added in v0.6.0
type OrchestratorMessagesCacheControlType string
OrchestratorMessagesCacheControlType defines model for OrchestratorMessagesCacheControl.Type.
const (
OrchestratorMessagesCacheControlTypeEphemeral OrchestratorMessagesCacheControlType = "ephemeral"
)
Defines values for OrchestratorMessagesCacheControlType.
func (OrchestratorMessagesCacheControlType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesCacheControlType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesCacheControlType enum.
type OrchestratorMessagesCacheCreation ¶ added in v0.6.0
type OrchestratorMessagesCacheCreation struct {
Ephemeral1hInputTokens int `json:"ephemeral_1h_input_tokens"`
Ephemeral5mInputTokens int `json:"ephemeral_5m_input_tokens"`
}
OrchestratorMessagesCacheCreation Cache-write input tokens, broken down by TTL.
type OrchestratorMessagesContentBlock ¶ added in v0.6.0
type OrchestratorMessagesContentBlock struct {
// contains filtered or unexported fields
}
OrchestratorMessagesContentBlock defines model for OrchestratorMessagesContentBlock.
func (OrchestratorMessagesContentBlock) AsOrchestratorMessagesTextBlock ¶ added in v0.6.0
func (t OrchestratorMessagesContentBlock) AsOrchestratorMessagesTextBlock() (OrchestratorMessagesTextBlock, error)
AsOrchestratorMessagesTextBlock returns the union data inside the OrchestratorMessagesContentBlock as a OrchestratorMessagesTextBlock
func (OrchestratorMessagesContentBlock) AsOrchestratorMessagesThinkingBlock ¶ added in v0.6.0
func (t OrchestratorMessagesContentBlock) AsOrchestratorMessagesThinkingBlock() (OrchestratorMessagesThinkingBlock, error)
AsOrchestratorMessagesThinkingBlock returns the union data inside the OrchestratorMessagesContentBlock as a OrchestratorMessagesThinkingBlock
func (OrchestratorMessagesContentBlock) AsOrchestratorMessagesToolUseBlock ¶ added in v0.6.0
func (t OrchestratorMessagesContentBlock) AsOrchestratorMessagesToolUseBlock() (OrchestratorMessagesToolUseBlock, error)
AsOrchestratorMessagesToolUseBlock returns the union data inside the OrchestratorMessagesContentBlock as a OrchestratorMessagesToolUseBlock
func (OrchestratorMessagesContentBlock) Discriminator ¶ added in v0.6.0
func (t OrchestratorMessagesContentBlock) Discriminator() (string, error)
func (*OrchestratorMessagesContentBlock) FromOrchestratorMessagesTextBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesContentBlock) FromOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
FromOrchestratorMessagesTextBlock overwrites any union data inside the OrchestratorMessagesContentBlock as the provided OrchestratorMessagesTextBlock
func (*OrchestratorMessagesContentBlock) FromOrchestratorMessagesThinkingBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesContentBlock) FromOrchestratorMessagesThinkingBlock(v OrchestratorMessagesThinkingBlock) error
FromOrchestratorMessagesThinkingBlock overwrites any union data inside the OrchestratorMessagesContentBlock as the provided OrchestratorMessagesThinkingBlock
func (*OrchestratorMessagesContentBlock) FromOrchestratorMessagesToolUseBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesContentBlock) FromOrchestratorMessagesToolUseBlock(v OrchestratorMessagesToolUseBlock) error
FromOrchestratorMessagesToolUseBlock overwrites any union data inside the OrchestratorMessagesContentBlock as the provided OrchestratorMessagesToolUseBlock
func (OrchestratorMessagesContentBlock) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesContentBlock) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesContentBlock) MergeOrchestratorMessagesTextBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesContentBlock) MergeOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
MergeOrchestratorMessagesTextBlock performs a merge with any union data inside the OrchestratorMessagesContentBlock, using the provided OrchestratorMessagesTextBlock
func (*OrchestratorMessagesContentBlock) MergeOrchestratorMessagesThinkingBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesContentBlock) MergeOrchestratorMessagesThinkingBlock(v OrchestratorMessagesThinkingBlock) error
MergeOrchestratorMessagesThinkingBlock performs a merge with any union data inside the OrchestratorMessagesContentBlock, using the provided OrchestratorMessagesThinkingBlock
func (*OrchestratorMessagesContentBlock) MergeOrchestratorMessagesToolUseBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesContentBlock) MergeOrchestratorMessagesToolUseBlock(v OrchestratorMessagesToolUseBlock) error
MergeOrchestratorMessagesToolUseBlock performs a merge with any union data inside the OrchestratorMessagesContentBlock, using the provided OrchestratorMessagesToolUseBlock
func (*OrchestratorMessagesContentBlock) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesContentBlock) UnmarshalJSON(b []byte) error
func (OrchestratorMessagesContentBlock) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorMessagesContentBlock) ValueByDiscriminator() (interface{}, error)
type OrchestratorMessagesCreateMessageRequest ¶ added in v0.6.0
type OrchestratorMessagesCreateMessageRequest struct {
// CacheControl Ephemeral cache breakpoint. Set `ttl` to `5m` or `1h`. Cache writes with a `1h` TTL are billed at 2x the base input rate.
CacheControl *OrchestratorMessagesCacheControl `json:"cache_control,omitempty"`
// Container Not supported. Requests that set it return a 400.
Container *json.RawMessage `json:"container,omitempty"`
// ContextManagement Requires the `anthropic-beta: context-management-2025-06-27` request header; without it, the request returns a 400. On `anthropic/` models, edits are applied and reported in the response's `context_management.applied_edits`. Other models accept the field without applying it.
ContextManagement *json.RawMessage `json:"context_management,omitempty"`
// FallbackCreditToken Rejected by validation together with fallbacks.
FallbackCreditToken *string `json:"fallback_credit_token,omitempty"`
// Fallbacks Not supported. Requests that set it return a 400.
Fallbacks *json.RawMessage `json:"fallbacks,omitempty"`
// InferenceGeo Not supported. Requests that set it return a 400.
InferenceGeo *string `json:"inference_geo,omitempty"`
// MaxTokens Maximum number of tokens to generate. Required by the Messages API.
MaxTokens int `json:"max_tokens"`
// McpServers Not supported. Requests that set it return a 400.
McpServers *json.RawMessage `json:"mcp_servers,omitempty"`
Messages []OrchestratorMessagesInputMessage `json:"messages"`
Metadata *OrchestratorMessagesRequestMetadata `json:"metadata,omitempty"`
// Model A model id from the Orchestrator catalog, or `perplexity/auto` to select a model for each request. With Auto, omit `routing` to use the default policy or provide an inline routing object.
Model string `json:"model"`
OutputConfig *OrchestratorMessagesOutputConfig `json:"output_config,omitempty"`
// Routing Inline routing for `model: "perplexity/auto"` only. Omit this field or set it to null to use the default policy. The serialized routing object must be at most 16384 bytes. Models must be available in the Orchestrator catalog. Routes incompatible with the request are excluded; if the default model is incompatible, the first compatible route model becomes the default. The request fails if no model is compatible.
Routing *OrchestratorMessagesCreateMessageRequest_Routing `json:"routing,omitempty"`
// ServiceTier Accepts `auto` or `standard_only`; other values return a 400. Neither value changes processing. `anthropic/` responses report `usage.service_tier` as `standard`.
ServiceTier *OrchestratorMessagesCreateMessageRequestServiceTier `json:"service_tier,omitempty"`
// Speed "standard" is inert; "fast" is rejected (no fast-mode routing).
Speed *OrchestratorMessagesCreateMessageRequestSpeed `json:"speed,omitempty"`
StopSequences *[]string `json:"stop_sequences,omitempty"`
// Stream When true, respond with server-sent events.
Stream *bool `json:"stream,omitempty"`
// System System prompt as plain text or an array of text blocks.
System *OrchestratorMessagesCreateMessageRequest_System `json:"system,omitempty"`
Temperature *float32 `json:"temperature,omitempty"`
Thinking *OrchestratorMessagesThinkingConfig `json:"thinking,omitempty"`
ToolChoice *OrchestratorMessagesToolChoice `json:"tool_choice,omitempty"`
Tools *[]OrchestratorMessagesTool `json:"tools,omitempty"`
// TopK Restricts sampling to the K most likely tokens at each step. Must be at least 1.
TopK *int `json:"top_k,omitempty"`
TopP *float32 `json:"top_p,omitempty"`
}
OrchestratorMessagesCreateMessageRequest Request body for POST /orchestrator/v1/messages.
type OrchestratorMessagesCreateMessageRequestRouting1 ¶ added in v0.6.0
type OrchestratorMessagesCreateMessageRequestRouting1 = map[string]interface{}
OrchestratorMessagesCreateMessageRequestRouting1 defines model for OrchestratorMessagesCreateMessageRequest.Routing.1.
type OrchestratorMessagesCreateMessageRequestServiceTier ¶ added in v0.6.0
type OrchestratorMessagesCreateMessageRequestServiceTier string
OrchestratorMessagesCreateMessageRequestServiceTier Accepts `auto` or `standard_only`; other values return a 400. Neither value changes processing. `anthropic/` responses report `usage.service_tier` as `standard`.
const ( OrchestratorMessagesCreateMessageRequestServiceTierAuto OrchestratorMessagesCreateMessageRequestServiceTier = "auto" OrchestratorMessagesCreateMessageRequestServiceTierStandardOnly OrchestratorMessagesCreateMessageRequestServiceTier = "standard_only" )
Defines values for OrchestratorMessagesCreateMessageRequestServiceTier.
func (OrchestratorMessagesCreateMessageRequestServiceTier) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesCreateMessageRequestServiceTier) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesCreateMessageRequestServiceTier enum.
type OrchestratorMessagesCreateMessageRequestSpeed ¶ added in v0.6.0
type OrchestratorMessagesCreateMessageRequestSpeed string
OrchestratorMessagesCreateMessageRequestSpeed "standard" is inert; "fast" is rejected (no fast-mode routing).
const ( OrchestratorMessagesCreateMessageRequestSpeedFast OrchestratorMessagesCreateMessageRequestSpeed = "fast" OrchestratorMessagesCreateMessageRequestSpeedStandard OrchestratorMessagesCreateMessageRequestSpeed = "standard" )
Defines values for OrchestratorMessagesCreateMessageRequestSpeed.
func (OrchestratorMessagesCreateMessageRequestSpeed) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesCreateMessageRequestSpeed) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesCreateMessageRequestSpeed enum.
type OrchestratorMessagesCreateMessageRequestSystem0 ¶ added in v0.6.0
type OrchestratorMessagesCreateMessageRequestSystem0 = string
OrchestratorMessagesCreateMessageRequestSystem0 defines model for OrchestratorMessagesCreateMessageRequest.System.0.
type OrchestratorMessagesCreateMessageRequestSystem1 ¶ added in v0.6.0
type OrchestratorMessagesCreateMessageRequestSystem1 = []OrchestratorMessagesTextBlock
OrchestratorMessagesCreateMessageRequestSystem1 defines model for OrchestratorMessagesCreateMessageRequest.System.1.
type OrchestratorMessagesCreateMessageRequest_Routing ¶ added in v0.6.0
type OrchestratorMessagesCreateMessageRequest_Routing struct {
// contains filtered or unexported fields
}
OrchestratorMessagesCreateMessageRequest_Routing Inline routing for `model: "perplexity/auto"` only. Omit this field or set it to null to use the default policy. The serialized routing object must be at most 16384 bytes. Models must be available in the Orchestrator catalog. Routes incompatible with the request are excluded; if the default model is incompatible, the first compatible route model becomes the default. The request fails if no model is compatible.
func (OrchestratorMessagesCreateMessageRequest_Routing) AsOrchestratorMessagesCreateMessageRequestRouting1 ¶ added in v0.6.0
func (t OrchestratorMessagesCreateMessageRequest_Routing) AsOrchestratorMessagesCreateMessageRequestRouting1() (OrchestratorMessagesCreateMessageRequestRouting1, error)
AsOrchestratorMessagesCreateMessageRequestRouting1 returns the union data inside the OrchestratorMessagesCreateMessageRequest_Routing as a OrchestratorMessagesCreateMessageRequestRouting1
func (OrchestratorMessagesCreateMessageRequest_Routing) AsOrchestratorRouting ¶ added in v0.6.0
func (t OrchestratorMessagesCreateMessageRequest_Routing) AsOrchestratorRouting() (OrchestratorRouting, error)
AsOrchestratorRouting returns the union data inside the OrchestratorMessagesCreateMessageRequest_Routing as a OrchestratorRouting
func (*OrchestratorMessagesCreateMessageRequest_Routing) FromOrchestratorMessagesCreateMessageRequestRouting1 ¶ added in v0.6.0
func (t *OrchestratorMessagesCreateMessageRequest_Routing) FromOrchestratorMessagesCreateMessageRequestRouting1(v OrchestratorMessagesCreateMessageRequestRouting1) error
FromOrchestratorMessagesCreateMessageRequestRouting1 overwrites any union data inside the OrchestratorMessagesCreateMessageRequest_Routing as the provided OrchestratorMessagesCreateMessageRequestRouting1
func (*OrchestratorMessagesCreateMessageRequest_Routing) FromOrchestratorRouting ¶ added in v0.6.0
func (t *OrchestratorMessagesCreateMessageRequest_Routing) FromOrchestratorRouting(v OrchestratorRouting) error
FromOrchestratorRouting overwrites any union data inside the OrchestratorMessagesCreateMessageRequest_Routing as the provided OrchestratorRouting
func (OrchestratorMessagesCreateMessageRequest_Routing) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesCreateMessageRequest_Routing) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesCreateMessageRequest_Routing) MergeOrchestratorMessagesCreateMessageRequestRouting1 ¶ added in v0.6.0
func (t *OrchestratorMessagesCreateMessageRequest_Routing) MergeOrchestratorMessagesCreateMessageRequestRouting1(v OrchestratorMessagesCreateMessageRequestRouting1) error
MergeOrchestratorMessagesCreateMessageRequestRouting1 performs a merge with any union data inside the OrchestratorMessagesCreateMessageRequest_Routing, using the provided OrchestratorMessagesCreateMessageRequestRouting1
func (*OrchestratorMessagesCreateMessageRequest_Routing) MergeOrchestratorRouting ¶ added in v0.6.0
func (t *OrchestratorMessagesCreateMessageRequest_Routing) MergeOrchestratorRouting(v OrchestratorRouting) error
MergeOrchestratorRouting performs a merge with any union data inside the OrchestratorMessagesCreateMessageRequest_Routing, using the provided OrchestratorRouting
func (*OrchestratorMessagesCreateMessageRequest_Routing) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesCreateMessageRequest_Routing) UnmarshalJSON(b []byte) error
type OrchestratorMessagesCreateMessageRequest_System ¶ added in v0.6.0
type OrchestratorMessagesCreateMessageRequest_System struct {
// contains filtered or unexported fields
}
OrchestratorMessagesCreateMessageRequest_System System prompt as plain text or an array of text blocks.
func (OrchestratorMessagesCreateMessageRequest_System) AsOrchestratorMessagesCreateMessageRequestSystem0 ¶ added in v0.6.0
func (t OrchestratorMessagesCreateMessageRequest_System) AsOrchestratorMessagesCreateMessageRequestSystem0() (OrchestratorMessagesCreateMessageRequestSystem0, error)
AsOrchestratorMessagesCreateMessageRequestSystem0 returns the union data inside the OrchestratorMessagesCreateMessageRequest_System as a OrchestratorMessagesCreateMessageRequestSystem0
func (OrchestratorMessagesCreateMessageRequest_System) AsOrchestratorMessagesCreateMessageRequestSystem1 ¶ added in v0.6.0
func (t OrchestratorMessagesCreateMessageRequest_System) AsOrchestratorMessagesCreateMessageRequestSystem1() (OrchestratorMessagesCreateMessageRequestSystem1, error)
AsOrchestratorMessagesCreateMessageRequestSystem1 returns the union data inside the OrchestratorMessagesCreateMessageRequest_System as a OrchestratorMessagesCreateMessageRequestSystem1
func (*OrchestratorMessagesCreateMessageRequest_System) FromOrchestratorMessagesCreateMessageRequestSystem0 ¶ added in v0.6.0
func (t *OrchestratorMessagesCreateMessageRequest_System) FromOrchestratorMessagesCreateMessageRequestSystem0(v OrchestratorMessagesCreateMessageRequestSystem0) error
FromOrchestratorMessagesCreateMessageRequestSystem0 overwrites any union data inside the OrchestratorMessagesCreateMessageRequest_System as the provided OrchestratorMessagesCreateMessageRequestSystem0
func (*OrchestratorMessagesCreateMessageRequest_System) FromOrchestratorMessagesCreateMessageRequestSystem1 ¶ added in v0.6.0
func (t *OrchestratorMessagesCreateMessageRequest_System) FromOrchestratorMessagesCreateMessageRequestSystem1(v OrchestratorMessagesCreateMessageRequestSystem1) error
FromOrchestratorMessagesCreateMessageRequestSystem1 overwrites any union data inside the OrchestratorMessagesCreateMessageRequest_System as the provided OrchestratorMessagesCreateMessageRequestSystem1
func (OrchestratorMessagesCreateMessageRequest_System) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesCreateMessageRequest_System) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesCreateMessageRequest_System) MergeOrchestratorMessagesCreateMessageRequestSystem0 ¶ added in v0.6.0
func (t *OrchestratorMessagesCreateMessageRequest_System) MergeOrchestratorMessagesCreateMessageRequestSystem0(v OrchestratorMessagesCreateMessageRequestSystem0) error
MergeOrchestratorMessagesCreateMessageRequestSystem0 performs a merge with any union data inside the OrchestratorMessagesCreateMessageRequest_System, using the provided OrchestratorMessagesCreateMessageRequestSystem0
func (*OrchestratorMessagesCreateMessageRequest_System) MergeOrchestratorMessagesCreateMessageRequestSystem1 ¶ added in v0.6.0
func (t *OrchestratorMessagesCreateMessageRequest_System) MergeOrchestratorMessagesCreateMessageRequestSystem1(v OrchestratorMessagesCreateMessageRequestSystem1) error
MergeOrchestratorMessagesCreateMessageRequestSystem1 performs a merge with any union data inside the OrchestratorMessagesCreateMessageRequest_System, using the provided OrchestratorMessagesCreateMessageRequestSystem1
func (*OrchestratorMessagesCreateMessageRequest_System) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesCreateMessageRequest_System) UnmarshalJSON(b []byte) error
type OrchestratorMessagesDocumentBlock ¶ added in v0.6.0
type OrchestratorMessagesDocumentBlock struct {
// CacheControl Ephemeral cache breakpoint. Set `ttl` to `5m` or `1h`. Cache writes with a `1h` TTL are billed at 2x the base input rate.
CacheControl *OrchestratorMessagesCacheControl `json:"cache_control,omitempty"`
// Citations Set `enabled: true` to receive citations for this document in the response. The citation type follows the source: `char_location` for plain text, `page_location` for PDFs, and `content_block_location` for content block lists. Requires an `anthropic/` model; other models return a 400.
Citations *json.RawMessage `json:"citations,omitempty"`
Context *string `json:"context,omitempty"`
Source OrchestratorMessagesDocumentSource `json:"source"`
Title *string `json:"title,omitempty"`
Type OrchestratorMessagesDocumentBlockType `json:"type"`
}
OrchestratorMessagesDocumentBlock Document input. Sources can be base64 `application/pdf`, plain text, a URL, or a list of text content blocks. Base64 PDF works on `anthropic/` models and some others. Plain-text, URL, and content sources, `title`, `context`, and enabled citations require an `anthropic/` model; other models return a 400.
type OrchestratorMessagesDocumentBlockType ¶ added in v0.6.0
type OrchestratorMessagesDocumentBlockType string
OrchestratorMessagesDocumentBlockType defines model for OrchestratorMessagesDocumentBlock.Type.
const (
OrchestratorMessagesDocumentBlockTypeDocument OrchestratorMessagesDocumentBlockType = "document"
)
Defines values for OrchestratorMessagesDocumentBlockType.
func (OrchestratorMessagesDocumentBlockType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesDocumentBlockType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesDocumentBlockType enum.
type OrchestratorMessagesDocumentSource ¶ added in v0.6.0
type OrchestratorMessagesDocumentSource struct {
// contains filtered or unexported fields
}
OrchestratorMessagesDocumentSource defines model for OrchestratorMessagesDocumentSource.
func (OrchestratorMessagesDocumentSource) AsOrchestratorMessagesBase64DocumentSource ¶ added in v0.6.0
func (t OrchestratorMessagesDocumentSource) AsOrchestratorMessagesBase64DocumentSource() (OrchestratorMessagesBase64DocumentSource, error)
AsOrchestratorMessagesBase64DocumentSource returns the union data inside the OrchestratorMessagesDocumentSource as a OrchestratorMessagesBase64DocumentSource
func (OrchestratorMessagesDocumentSource) AsOrchestratorMessagesPlainTextDocumentSource ¶ added in v0.6.0
func (t OrchestratorMessagesDocumentSource) AsOrchestratorMessagesPlainTextDocumentSource() (OrchestratorMessagesPlainTextDocumentSource, error)
AsOrchestratorMessagesPlainTextDocumentSource returns the union data inside the OrchestratorMessagesDocumentSource as a OrchestratorMessagesPlainTextDocumentSource
func (OrchestratorMessagesDocumentSource) AsOrchestratorMessagesURLDocumentSource ¶ added in v0.6.0
func (t OrchestratorMessagesDocumentSource) AsOrchestratorMessagesURLDocumentSource() (OrchestratorMessagesURLDocumentSource, error)
AsOrchestratorMessagesURLDocumentSource returns the union data inside the OrchestratorMessagesDocumentSource as a OrchestratorMessagesURLDocumentSource
func (OrchestratorMessagesDocumentSource) Discriminator ¶ added in v0.6.0
func (t OrchestratorMessagesDocumentSource) Discriminator() (string, error)
func (*OrchestratorMessagesDocumentSource) FromOrchestratorMessagesBase64DocumentSource ¶ added in v0.6.0
func (t *OrchestratorMessagesDocumentSource) FromOrchestratorMessagesBase64DocumentSource(v OrchestratorMessagesBase64DocumentSource) error
FromOrchestratorMessagesBase64DocumentSource overwrites any union data inside the OrchestratorMessagesDocumentSource as the provided OrchestratorMessagesBase64DocumentSource
func (*OrchestratorMessagesDocumentSource) FromOrchestratorMessagesPlainTextDocumentSource ¶ added in v0.6.0
func (t *OrchestratorMessagesDocumentSource) FromOrchestratorMessagesPlainTextDocumentSource(v OrchestratorMessagesPlainTextDocumentSource) error
FromOrchestratorMessagesPlainTextDocumentSource overwrites any union data inside the OrchestratorMessagesDocumentSource as the provided OrchestratorMessagesPlainTextDocumentSource
func (*OrchestratorMessagesDocumentSource) FromOrchestratorMessagesURLDocumentSource ¶ added in v0.6.0
func (t *OrchestratorMessagesDocumentSource) FromOrchestratorMessagesURLDocumentSource(v OrchestratorMessagesURLDocumentSource) error
FromOrchestratorMessagesURLDocumentSource overwrites any union data inside the OrchestratorMessagesDocumentSource as the provided OrchestratorMessagesURLDocumentSource
func (OrchestratorMessagesDocumentSource) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesDocumentSource) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesDocumentSource) MergeOrchestratorMessagesBase64DocumentSource ¶ added in v0.6.0
func (t *OrchestratorMessagesDocumentSource) MergeOrchestratorMessagesBase64DocumentSource(v OrchestratorMessagesBase64DocumentSource) error
MergeOrchestratorMessagesBase64DocumentSource performs a merge with any union data inside the OrchestratorMessagesDocumentSource, using the provided OrchestratorMessagesBase64DocumentSource
func (*OrchestratorMessagesDocumentSource) MergeOrchestratorMessagesPlainTextDocumentSource ¶ added in v0.6.0
func (t *OrchestratorMessagesDocumentSource) MergeOrchestratorMessagesPlainTextDocumentSource(v OrchestratorMessagesPlainTextDocumentSource) error
MergeOrchestratorMessagesPlainTextDocumentSource performs a merge with any union data inside the OrchestratorMessagesDocumentSource, using the provided OrchestratorMessagesPlainTextDocumentSource
func (*OrchestratorMessagesDocumentSource) MergeOrchestratorMessagesURLDocumentSource ¶ added in v0.6.0
func (t *OrchestratorMessagesDocumentSource) MergeOrchestratorMessagesURLDocumentSource(v OrchestratorMessagesURLDocumentSource) error
MergeOrchestratorMessagesURLDocumentSource performs a merge with any union data inside the OrchestratorMessagesDocumentSource, using the provided OrchestratorMessagesURLDocumentSource
func (*OrchestratorMessagesDocumentSource) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesDocumentSource) UnmarshalJSON(b []byte) error
func (OrchestratorMessagesDocumentSource) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorMessagesDocumentSource) ValueByDiscriminator() (interface{}, error)
type OrchestratorMessagesErrorObject ¶ added in v0.6.0
type OrchestratorMessagesErrorObject struct {
Message string `json:"message"`
Type OrchestratorMessagesErrorObjectType `json:"type"`
}
OrchestratorMessagesErrorObject defines model for OrchestratorMessagesErrorObject.
type OrchestratorMessagesErrorObjectType ¶ added in v0.6.0
type OrchestratorMessagesErrorObjectType string
OrchestratorMessagesErrorObjectType defines model for OrchestratorMessagesErrorObject.Type.
const ( OrchestratorMessagesErrorObjectTypeApiError OrchestratorMessagesErrorObjectType = "api_error" OrchestratorMessagesErrorObjectTypeAuthenticationError OrchestratorMessagesErrorObjectType = "authentication_error" OrchestratorMessagesErrorObjectTypeInvalidRequestError OrchestratorMessagesErrorObjectType = "invalid_request_error" OrchestratorMessagesErrorObjectTypeNotFoundError OrchestratorMessagesErrorObjectType = "not_found_error" OrchestratorMessagesErrorObjectTypeOverloadedError OrchestratorMessagesErrorObjectType = "overloaded_error" OrchestratorMessagesErrorObjectTypePermissionError OrchestratorMessagesErrorObjectType = "permission_error" OrchestratorMessagesErrorObjectTypeRateLimitError OrchestratorMessagesErrorObjectType = "rate_limit_error" OrchestratorMessagesErrorObjectTypeRequestTooLarge OrchestratorMessagesErrorObjectType = "request_too_large" OrchestratorMessagesErrorObjectTypeTimeoutError OrchestratorMessagesErrorObjectType = "timeout_error" )
Defines values for OrchestratorMessagesErrorObjectType.
func (OrchestratorMessagesErrorObjectType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesErrorObjectType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesErrorObjectType enum.
type OrchestratorMessagesErrorResponse ¶ added in v0.6.0
type OrchestratorMessagesErrorResponse struct {
Error OrchestratorMessagesErrorObject `json:"error"`
Type OrchestratorMessagesErrorResponseType `json:"type"`
}
OrchestratorMessagesErrorResponse Error envelope, as a JSON body and as the SSE error event payload.
type OrchestratorMessagesErrorResponseType ¶ added in v0.6.0
type OrchestratorMessagesErrorResponseType string
OrchestratorMessagesErrorResponseType defines model for OrchestratorMessagesErrorResponse.Type.
const (
OrchestratorMessagesErrorResponseTypeError OrchestratorMessagesErrorResponseType = "error"
)
Defines values for OrchestratorMessagesErrorResponseType.
func (OrchestratorMessagesErrorResponseType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesErrorResponseType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesErrorResponseType enum.
type OrchestratorMessagesImageBlock ¶ added in v0.6.0
type OrchestratorMessagesImageBlock struct {
// CacheControl Ephemeral cache breakpoint. Set `ttl` to `5m` or `1h`. Cache writes with a `1h` TTL are billed at 2x the base input rate.
CacheControl *OrchestratorMessagesCacheControl `json:"cache_control,omitempty"`
Source OrchestratorMessagesImageSource `json:"source"`
Type OrchestratorMessagesImageBlockType `json:"type"`
}
OrchestratorMessagesImageBlock defines model for OrchestratorMessagesImageBlock.
type OrchestratorMessagesImageBlockType ¶ added in v0.6.0
type OrchestratorMessagesImageBlockType string
OrchestratorMessagesImageBlockType defines model for OrchestratorMessagesImageBlock.Type.
const (
OrchestratorMessagesImageBlockTypeImage OrchestratorMessagesImageBlockType = "image"
)
Defines values for OrchestratorMessagesImageBlockType.
func (OrchestratorMessagesImageBlockType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesImageBlockType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesImageBlockType enum.
type OrchestratorMessagesImageSource ¶ added in v0.6.0
type OrchestratorMessagesImageSource struct {
// contains filtered or unexported fields
}
OrchestratorMessagesImageSource defines model for OrchestratorMessagesImageSource.
func (OrchestratorMessagesImageSource) AsOrchestratorMessagesBase64ImageSource ¶ added in v0.6.0
func (t OrchestratorMessagesImageSource) AsOrchestratorMessagesBase64ImageSource() (OrchestratorMessagesBase64ImageSource, error)
AsOrchestratorMessagesBase64ImageSource returns the union data inside the OrchestratorMessagesImageSource as a OrchestratorMessagesBase64ImageSource
func (OrchestratorMessagesImageSource) AsOrchestratorMessagesURLImageSource ¶ added in v0.6.0
func (t OrchestratorMessagesImageSource) AsOrchestratorMessagesURLImageSource() (OrchestratorMessagesURLImageSource, error)
AsOrchestratorMessagesURLImageSource returns the union data inside the OrchestratorMessagesImageSource as a OrchestratorMessagesURLImageSource
func (OrchestratorMessagesImageSource) Discriminator ¶ added in v0.6.0
func (t OrchestratorMessagesImageSource) Discriminator() (string, error)
func (*OrchestratorMessagesImageSource) FromOrchestratorMessagesBase64ImageSource ¶ added in v0.6.0
func (t *OrchestratorMessagesImageSource) FromOrchestratorMessagesBase64ImageSource(v OrchestratorMessagesBase64ImageSource) error
FromOrchestratorMessagesBase64ImageSource overwrites any union data inside the OrchestratorMessagesImageSource as the provided OrchestratorMessagesBase64ImageSource
func (*OrchestratorMessagesImageSource) FromOrchestratorMessagesURLImageSource ¶ added in v0.6.0
func (t *OrchestratorMessagesImageSource) FromOrchestratorMessagesURLImageSource(v OrchestratorMessagesURLImageSource) error
FromOrchestratorMessagesURLImageSource overwrites any union data inside the OrchestratorMessagesImageSource as the provided OrchestratorMessagesURLImageSource
func (OrchestratorMessagesImageSource) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesImageSource) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesImageSource) MergeOrchestratorMessagesBase64ImageSource ¶ added in v0.6.0
func (t *OrchestratorMessagesImageSource) MergeOrchestratorMessagesBase64ImageSource(v OrchestratorMessagesBase64ImageSource) error
MergeOrchestratorMessagesBase64ImageSource performs a merge with any union data inside the OrchestratorMessagesImageSource, using the provided OrchestratorMessagesBase64ImageSource
func (*OrchestratorMessagesImageSource) MergeOrchestratorMessagesURLImageSource ¶ added in v0.6.0
func (t *OrchestratorMessagesImageSource) MergeOrchestratorMessagesURLImageSource(v OrchestratorMessagesURLImageSource) error
MergeOrchestratorMessagesURLImageSource performs a merge with any union data inside the OrchestratorMessagesImageSource, using the provided OrchestratorMessagesURLImageSource
func (*OrchestratorMessagesImageSource) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesImageSource) UnmarshalJSON(b []byte) error
func (OrchestratorMessagesImageSource) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorMessagesImageSource) ValueByDiscriminator() (interface{}, error)
type OrchestratorMessagesInputContentBlock ¶ added in v0.6.0
type OrchestratorMessagesInputContentBlock struct {
// contains filtered or unexported fields
}
OrchestratorMessagesInputContentBlock defines model for OrchestratorMessagesInputContentBlock.
func (OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesDocumentBlock ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesDocumentBlock() (OrchestratorMessagesDocumentBlock, error)
AsOrchestratorMessagesDocumentBlock returns the union data inside the OrchestratorMessagesInputContentBlock as a OrchestratorMessagesDocumentBlock
func (OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesImageBlock ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesImageBlock() (OrchestratorMessagesImageBlock, error)
AsOrchestratorMessagesImageBlock returns the union data inside the OrchestratorMessagesInputContentBlock as a OrchestratorMessagesImageBlock
func (OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesRedactedThinkingBlock ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesRedactedThinkingBlock() (OrchestratorMessagesRedactedThinkingBlock, error)
AsOrchestratorMessagesRedactedThinkingBlock returns the union data inside the OrchestratorMessagesInputContentBlock as a OrchestratorMessagesRedactedThinkingBlock
func (OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesSearchResultBlock ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesSearchResultBlock() (OrchestratorMessagesSearchResultBlock, error)
AsOrchestratorMessagesSearchResultBlock returns the union data inside the OrchestratorMessagesInputContentBlock as a OrchestratorMessagesSearchResultBlock
func (OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesTextBlock ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesTextBlock() (OrchestratorMessagesTextBlock, error)
AsOrchestratorMessagesTextBlock returns the union data inside the OrchestratorMessagesInputContentBlock as a OrchestratorMessagesTextBlock
func (OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesThinkingBlock ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesThinkingBlock() (OrchestratorMessagesThinkingBlock, error)
AsOrchestratorMessagesThinkingBlock returns the union data inside the OrchestratorMessagesInputContentBlock as a OrchestratorMessagesThinkingBlock
func (OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesToolResultBlock ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesToolResultBlock() (OrchestratorMessagesToolResultBlock, error)
AsOrchestratorMessagesToolResultBlock returns the union data inside the OrchestratorMessagesInputContentBlock as a OrchestratorMessagesToolResultBlock
func (OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesToolUseBlock ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) AsOrchestratorMessagesToolUseBlock() (OrchestratorMessagesToolUseBlock, error)
AsOrchestratorMessagesToolUseBlock returns the union data inside the OrchestratorMessagesInputContentBlock as a OrchestratorMessagesToolUseBlock
func (OrchestratorMessagesInputContentBlock) Discriminator ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) Discriminator() (string, error)
func (*OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesDocumentBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesDocumentBlock(v OrchestratorMessagesDocumentBlock) error
FromOrchestratorMessagesDocumentBlock overwrites any union data inside the OrchestratorMessagesInputContentBlock as the provided OrchestratorMessagesDocumentBlock
func (*OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesImageBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesImageBlock(v OrchestratorMessagesImageBlock) error
FromOrchestratorMessagesImageBlock overwrites any union data inside the OrchestratorMessagesInputContentBlock as the provided OrchestratorMessagesImageBlock
func (*OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesRedactedThinkingBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesRedactedThinkingBlock(v OrchestratorMessagesRedactedThinkingBlock) error
FromOrchestratorMessagesRedactedThinkingBlock overwrites any union data inside the OrchestratorMessagesInputContentBlock as the provided OrchestratorMessagesRedactedThinkingBlock
func (*OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesSearchResultBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesSearchResultBlock(v OrchestratorMessagesSearchResultBlock) error
FromOrchestratorMessagesSearchResultBlock overwrites any union data inside the OrchestratorMessagesInputContentBlock as the provided OrchestratorMessagesSearchResultBlock
func (*OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesTextBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
FromOrchestratorMessagesTextBlock overwrites any union data inside the OrchestratorMessagesInputContentBlock as the provided OrchestratorMessagesTextBlock
func (*OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesThinkingBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesThinkingBlock(v OrchestratorMessagesThinkingBlock) error
FromOrchestratorMessagesThinkingBlock overwrites any union data inside the OrchestratorMessagesInputContentBlock as the provided OrchestratorMessagesThinkingBlock
func (*OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesToolResultBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesToolResultBlock(v OrchestratorMessagesToolResultBlock) error
FromOrchestratorMessagesToolResultBlock overwrites any union data inside the OrchestratorMessagesInputContentBlock as the provided OrchestratorMessagesToolResultBlock
func (*OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesToolUseBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) FromOrchestratorMessagesToolUseBlock(v OrchestratorMessagesToolUseBlock) error
FromOrchestratorMessagesToolUseBlock overwrites any union data inside the OrchestratorMessagesInputContentBlock as the provided OrchestratorMessagesToolUseBlock
func (OrchestratorMessagesInputContentBlock) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesDocumentBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesDocumentBlock(v OrchestratorMessagesDocumentBlock) error
MergeOrchestratorMessagesDocumentBlock performs a merge with any union data inside the OrchestratorMessagesInputContentBlock, using the provided OrchestratorMessagesDocumentBlock
func (*OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesImageBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesImageBlock(v OrchestratorMessagesImageBlock) error
MergeOrchestratorMessagesImageBlock performs a merge with any union data inside the OrchestratorMessagesInputContentBlock, using the provided OrchestratorMessagesImageBlock
func (*OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesRedactedThinkingBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesRedactedThinkingBlock(v OrchestratorMessagesRedactedThinkingBlock) error
MergeOrchestratorMessagesRedactedThinkingBlock performs a merge with any union data inside the OrchestratorMessagesInputContentBlock, using the provided OrchestratorMessagesRedactedThinkingBlock
func (*OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesSearchResultBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesSearchResultBlock(v OrchestratorMessagesSearchResultBlock) error
MergeOrchestratorMessagesSearchResultBlock performs a merge with any union data inside the OrchestratorMessagesInputContentBlock, using the provided OrchestratorMessagesSearchResultBlock
func (*OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesTextBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
MergeOrchestratorMessagesTextBlock performs a merge with any union data inside the OrchestratorMessagesInputContentBlock, using the provided OrchestratorMessagesTextBlock
func (*OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesThinkingBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesThinkingBlock(v OrchestratorMessagesThinkingBlock) error
MergeOrchestratorMessagesThinkingBlock performs a merge with any union data inside the OrchestratorMessagesInputContentBlock, using the provided OrchestratorMessagesThinkingBlock
func (*OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesToolResultBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesToolResultBlock(v OrchestratorMessagesToolResultBlock) error
MergeOrchestratorMessagesToolResultBlock performs a merge with any union data inside the OrchestratorMessagesInputContentBlock, using the provided OrchestratorMessagesToolResultBlock
func (*OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesToolUseBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) MergeOrchestratorMessagesToolUseBlock(v OrchestratorMessagesToolUseBlock) error
MergeOrchestratorMessagesToolUseBlock performs a merge with any union data inside the OrchestratorMessagesInputContentBlock, using the provided OrchestratorMessagesToolUseBlock
func (*OrchestratorMessagesInputContentBlock) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesInputContentBlock) UnmarshalJSON(b []byte) error
func (OrchestratorMessagesInputContentBlock) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorMessagesInputContentBlock) ValueByDiscriminator() (interface{}, error)
type OrchestratorMessagesInputMessage ¶ added in v0.6.0
type OrchestratorMessagesInputMessage struct {
// Content Message content as plain text or an array of content blocks.
Content OrchestratorMessagesInputMessage_Content `json:"content"`
Role OrchestratorMessagesInputMessageRole `json:"role"`
}
OrchestratorMessagesInputMessage defines model for OrchestratorMessagesInputMessage.
type OrchestratorMessagesInputMessageContent0 ¶ added in v0.6.0
type OrchestratorMessagesInputMessageContent0 = string
OrchestratorMessagesInputMessageContent0 defines model for OrchestratorMessagesInputMessage.Content.0.
type OrchestratorMessagesInputMessageContent1 ¶ added in v0.6.0
type OrchestratorMessagesInputMessageContent1 = []OrchestratorMessagesInputContentBlock
OrchestratorMessagesInputMessageContent1 defines model for OrchestratorMessagesInputMessage.Content.1.
type OrchestratorMessagesInputMessageRole ¶ added in v0.6.0
type OrchestratorMessagesInputMessageRole string
OrchestratorMessagesInputMessageRole defines model for OrchestratorMessagesInputMessage.Role.
const ( OrchestratorMessagesInputMessageRoleAssistant OrchestratorMessagesInputMessageRole = "assistant" OrchestratorMessagesInputMessageRoleSystem OrchestratorMessagesInputMessageRole = "system" OrchestratorMessagesInputMessageRoleUser OrchestratorMessagesInputMessageRole = "user" )
Defines values for OrchestratorMessagesInputMessageRole.
func (OrchestratorMessagesInputMessageRole) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesInputMessageRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesInputMessageRole enum.
type OrchestratorMessagesInputMessage_Content ¶ added in v0.6.0
type OrchestratorMessagesInputMessage_Content struct {
// contains filtered or unexported fields
}
OrchestratorMessagesInputMessage_Content Message content as plain text or an array of content blocks.
func (OrchestratorMessagesInputMessage_Content) AsOrchestratorMessagesInputMessageContent0 ¶ added in v0.6.0
func (t OrchestratorMessagesInputMessage_Content) AsOrchestratorMessagesInputMessageContent0() (OrchestratorMessagesInputMessageContent0, error)
AsOrchestratorMessagesInputMessageContent0 returns the union data inside the OrchestratorMessagesInputMessage_Content as a OrchestratorMessagesInputMessageContent0
func (OrchestratorMessagesInputMessage_Content) AsOrchestratorMessagesInputMessageContent1 ¶ added in v0.6.0
func (t OrchestratorMessagesInputMessage_Content) AsOrchestratorMessagesInputMessageContent1() (OrchestratorMessagesInputMessageContent1, error)
AsOrchestratorMessagesInputMessageContent1 returns the union data inside the OrchestratorMessagesInputMessage_Content as a OrchestratorMessagesInputMessageContent1
func (*OrchestratorMessagesInputMessage_Content) FromOrchestratorMessagesInputMessageContent0 ¶ added in v0.6.0
func (t *OrchestratorMessagesInputMessage_Content) FromOrchestratorMessagesInputMessageContent0(v OrchestratorMessagesInputMessageContent0) error
FromOrchestratorMessagesInputMessageContent0 overwrites any union data inside the OrchestratorMessagesInputMessage_Content as the provided OrchestratorMessagesInputMessageContent0
func (*OrchestratorMessagesInputMessage_Content) FromOrchestratorMessagesInputMessageContent1 ¶ added in v0.6.0
func (t *OrchestratorMessagesInputMessage_Content) FromOrchestratorMessagesInputMessageContent1(v OrchestratorMessagesInputMessageContent1) error
FromOrchestratorMessagesInputMessageContent1 overwrites any union data inside the OrchestratorMessagesInputMessage_Content as the provided OrchestratorMessagesInputMessageContent1
func (OrchestratorMessagesInputMessage_Content) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesInputMessage_Content) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesInputMessage_Content) MergeOrchestratorMessagesInputMessageContent0 ¶ added in v0.6.0
func (t *OrchestratorMessagesInputMessage_Content) MergeOrchestratorMessagesInputMessageContent0(v OrchestratorMessagesInputMessageContent0) error
MergeOrchestratorMessagesInputMessageContent0 performs a merge with any union data inside the OrchestratorMessagesInputMessage_Content, using the provided OrchestratorMessagesInputMessageContent0
func (*OrchestratorMessagesInputMessage_Content) MergeOrchestratorMessagesInputMessageContent1 ¶ added in v0.6.0
func (t *OrchestratorMessagesInputMessage_Content) MergeOrchestratorMessagesInputMessageContent1(v OrchestratorMessagesInputMessageContent1) error
MergeOrchestratorMessagesInputMessageContent1 performs a merge with any union data inside the OrchestratorMessagesInputMessage_Content, using the provided OrchestratorMessagesInputMessageContent1
func (*OrchestratorMessagesInputMessage_Content) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesInputMessage_Content) UnmarshalJSON(b []byte) error
type OrchestratorMessagesMessage ¶ added in v0.6.0
type OrchestratorMessagesMessage struct {
Content []OrchestratorMessagesContentBlock `json:"content"`
Id string `json:"id"`
// Model The model that served the request. With `perplexity/auto`, this is the selected model, not `perplexity/auto`. Billing uses the served model's rates.
Model string `json:"model"`
Role OrchestratorMessagesMessageRole `json:"role"`
StopReason *OrchestratorMessagesMessageStopReason `json:"stop_reason"`
StopSequence *string `json:"stop_sequence"`
Type OrchestratorMessagesMessageType `json:"type"`
Usage OrchestratorMessagesUsage `json:"usage"`
}
OrchestratorMessagesMessage Non-streaming response body and the message_start payload.
type OrchestratorMessagesMessageRole ¶ added in v0.6.0
type OrchestratorMessagesMessageRole string
OrchestratorMessagesMessageRole defines model for OrchestratorMessagesMessage.Role.
const (
OrchestratorMessagesMessageRoleAssistant OrchestratorMessagesMessageRole = "assistant"
)
Defines values for OrchestratorMessagesMessageRole.
func (OrchestratorMessagesMessageRole) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesMessageRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesMessageRole enum.
type OrchestratorMessagesMessageStopReason ¶ added in v0.6.0
type OrchestratorMessagesMessageStopReason string
OrchestratorMessagesMessageStopReason defines model for OrchestratorMessagesMessage.StopReason.
const ( OrchestratorMessagesMessageStopReasonEndTurn OrchestratorMessagesMessageStopReason = "end_turn" OrchestratorMessagesMessageStopReasonMaxTokens OrchestratorMessagesMessageStopReason = "max_tokens" OrchestratorMessagesMessageStopReasonModelContextWindowExceeded OrchestratorMessagesMessageStopReason = "model_context_window_exceeded" OrchestratorMessagesMessageStopReasonPauseTurn OrchestratorMessagesMessageStopReason = "pause_turn" OrchestratorMessagesMessageStopReasonRefusal OrchestratorMessagesMessageStopReason = "refusal" OrchestratorMessagesMessageStopReasonStopSequence OrchestratorMessagesMessageStopReason = "stop_sequence" OrchestratorMessagesMessageStopReasonToolUse OrchestratorMessagesMessageStopReason = "tool_use" )
Defines values for OrchestratorMessagesMessageStopReason.
func (OrchestratorMessagesMessageStopReason) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesMessageStopReason) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesMessageStopReason enum.
type OrchestratorMessagesMessageType ¶ added in v0.6.0
type OrchestratorMessagesMessageType string
OrchestratorMessagesMessageType defines model for OrchestratorMessagesMessage.Type.
const (
OrchestratorMessagesMessageTypeMessage OrchestratorMessagesMessageType = "message"
)
Defines values for OrchestratorMessagesMessageType.
func (OrchestratorMessagesMessageType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesMessageType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesMessageType enum.
type OrchestratorMessagesOutputConfig ¶ added in v0.6.0
type OrchestratorMessagesOutputConfig struct {
Effort *OrchestratorMessagesOutputConfigEffort `json:"effort,omitempty"`
Format *OrchestratorMessagesOutputConfigFormat `json:"format,omitempty"`
// TaskBudget Accepted and ignored.
TaskBudget *json.RawMessage `json:"task_budget,omitempty"`
}
OrchestratorMessagesOutputConfig defines model for OrchestratorMessagesOutputConfig.
type OrchestratorMessagesOutputConfigEffort ¶ added in v0.6.0
type OrchestratorMessagesOutputConfigEffort string
OrchestratorMessagesOutputConfigEffort defines model for OrchestratorMessagesOutputConfig.Effort.
const ( OrchestratorMessagesOutputConfigEffortHigh OrchestratorMessagesOutputConfigEffort = "high" OrchestratorMessagesOutputConfigEffortLow OrchestratorMessagesOutputConfigEffort = "low" OrchestratorMessagesOutputConfigEffortMax OrchestratorMessagesOutputConfigEffort = "max" OrchestratorMessagesOutputConfigEffortMedium OrchestratorMessagesOutputConfigEffort = "medium" OrchestratorMessagesOutputConfigEffortXhigh OrchestratorMessagesOutputConfigEffort = "xhigh" )
Defines values for OrchestratorMessagesOutputConfigEffort.
func (OrchestratorMessagesOutputConfigEffort) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesOutputConfigEffort) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesOutputConfigEffort enum.
type OrchestratorMessagesOutputConfigFormat ¶ added in v0.6.0
type OrchestratorMessagesOutputConfigFormat struct {
// Schema JSON Schema for the response, kept as raw JSON and forwarded verbatim.
Schema json.RawMessage `json:"schema"`
Type OrchestratorMessagesOutputConfigFormatType `json:"type"`
}
OrchestratorMessagesOutputConfigFormat defines model for OrchestratorMessagesOutputConfigFormat.
type OrchestratorMessagesOutputConfigFormatType ¶ added in v0.6.0
type OrchestratorMessagesOutputConfigFormatType string
OrchestratorMessagesOutputConfigFormatType defines model for OrchestratorMessagesOutputConfigFormat.Type.
const (
OrchestratorMessagesOutputConfigFormatTypeJsonSchema OrchestratorMessagesOutputConfigFormatType = "json_schema"
)
Defines values for OrchestratorMessagesOutputConfigFormatType.
func (OrchestratorMessagesOutputConfigFormatType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesOutputConfigFormatType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesOutputConfigFormatType enum.
type OrchestratorMessagesPlainTextDocumentSource ¶ added in v0.6.0
type OrchestratorMessagesPlainTextDocumentSource struct {
Data string `json:"data"`
MediaType OrchestratorMessagesPlainTextDocumentSourceMediaType `json:"media_type"`
Type OrchestratorMessagesPlainTextDocumentSourceType `json:"type"`
}
OrchestratorMessagesPlainTextDocumentSource defines model for OrchestratorMessagesPlainTextDocumentSource.
type OrchestratorMessagesPlainTextDocumentSourceMediaType ¶ added in v0.6.0
type OrchestratorMessagesPlainTextDocumentSourceMediaType string
OrchestratorMessagesPlainTextDocumentSourceMediaType defines model for OrchestratorMessagesPlainTextDocumentSource.MediaType.
const (
OrchestratorMessagesPlainTextDocumentSourceMediaTypeTextplain OrchestratorMessagesPlainTextDocumentSourceMediaType = "text/plain"
)
Defines values for OrchestratorMessagesPlainTextDocumentSourceMediaType.
func (OrchestratorMessagesPlainTextDocumentSourceMediaType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesPlainTextDocumentSourceMediaType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesPlainTextDocumentSourceMediaType enum.
type OrchestratorMessagesPlainTextDocumentSourceType ¶ added in v0.6.0
type OrchestratorMessagesPlainTextDocumentSourceType string
OrchestratorMessagesPlainTextDocumentSourceType defines model for OrchestratorMessagesPlainTextDocumentSource.Type.
const (
OrchestratorMessagesPlainTextDocumentSourceTypeText OrchestratorMessagesPlainTextDocumentSourceType = "text"
)
Defines values for OrchestratorMessagesPlainTextDocumentSourceType.
func (OrchestratorMessagesPlainTextDocumentSourceType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesPlainTextDocumentSourceType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesPlainTextDocumentSourceType enum.
type OrchestratorMessagesRedactedThinkingBlock ¶ added in v0.6.0
type OrchestratorMessagesRedactedThinkingBlock struct {
Data string `json:"data"`
Type OrchestratorMessagesRedactedThinkingBlockType `json:"type"`
}
OrchestratorMessagesRedactedThinkingBlock Redacted thinking replay. Accepted by the spec, rejected by validation.
type OrchestratorMessagesRedactedThinkingBlockType ¶ added in v0.6.0
type OrchestratorMessagesRedactedThinkingBlockType string
OrchestratorMessagesRedactedThinkingBlockType defines model for OrchestratorMessagesRedactedThinkingBlock.Type.
const (
OrchestratorMessagesRedactedThinkingBlockTypeRedactedThinking OrchestratorMessagesRedactedThinkingBlockType = "redacted_thinking"
)
Defines values for OrchestratorMessagesRedactedThinkingBlockType.
func (OrchestratorMessagesRedactedThinkingBlockType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesRedactedThinkingBlockType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesRedactedThinkingBlockType enum.
type OrchestratorMessagesRequestMetadata ¶ added in v0.6.0
type OrchestratorMessagesRequestMetadata struct {
UserId *string `json:"user_id,omitempty"`
}
OrchestratorMessagesRequestMetadata defines model for OrchestratorMessagesRequestMetadata.
type OrchestratorMessagesSearchResultBlock ¶ added in v0.6.0
type OrchestratorMessagesSearchResultBlock struct {
// CacheControl Ephemeral cache breakpoint. Set `ttl` to `5m` or `1h`. Cache writes with a `1h` TTL are billed at 2x the base input rate.
CacheControl *OrchestratorMessagesCacheControl `json:"cache_control,omitempty"`
// Citations Set `enabled: true` to receive `search_result_location` citations in the response.
Citations *json.RawMessage `json:"citations,omitempty"`
Content []OrchestratorMessagesSearchResultTextBlock `json:"content"`
// Source Source URL or identifier for the result.
Source string `json:"source"`
Title string `json:"title"`
Type OrchestratorMessagesSearchResultBlockType `json:"type"`
}
OrchestratorMessagesSearchResultBlock Search result with source attribution. Supported on `anthropic/` models only; other models return a 400.
type OrchestratorMessagesSearchResultBlockType ¶ added in v0.6.0
type OrchestratorMessagesSearchResultBlockType string
OrchestratorMessagesSearchResultBlockType defines model for OrchestratorMessagesSearchResultBlock.Type.
const (
OrchestratorMessagesSearchResultBlockTypeSearchResult OrchestratorMessagesSearchResultBlockType = "search_result"
)
Defines values for OrchestratorMessagesSearchResultBlockType.
func (OrchestratorMessagesSearchResultBlockType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesSearchResultBlockType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesSearchResultBlockType enum.
type OrchestratorMessagesSearchResultTextBlock ¶ added in v0.6.0
type OrchestratorMessagesSearchResultTextBlock struct {
Text string `json:"text"`
Type OrchestratorMessagesSearchResultTextBlockType `json:"type"`
}
OrchestratorMessagesSearchResultTextBlock defines model for OrchestratorMessagesSearchResultTextBlock.
type OrchestratorMessagesSearchResultTextBlockType ¶ added in v0.6.0
type OrchestratorMessagesSearchResultTextBlockType string
OrchestratorMessagesSearchResultTextBlockType defines model for OrchestratorMessagesSearchResultTextBlock.Type.
const (
OrchestratorMessagesSearchResultTextBlockTypeText OrchestratorMessagesSearchResultTextBlockType = "text"
)
Defines values for OrchestratorMessagesSearchResultTextBlockType.
func (OrchestratorMessagesSearchResultTextBlockType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesSearchResultTextBlockType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesSearchResultTextBlockType enum.
type OrchestratorMessagesTextBlock ¶ added in v0.6.0
type OrchestratorMessagesTextBlock struct {
// CacheControl Ephemeral cache breakpoint. Set `ttl` to `5m` or `1h`. Cache writes with a `1h` TTL are billed at 2x the base input rate.
CacheControl *OrchestratorMessagesCacheControl `json:"cache_control,omitempty"`
Text string `json:"text"`
Type OrchestratorMessagesTextBlockType `json:"type"`
}
OrchestratorMessagesTextBlock defines model for OrchestratorMessagesTextBlock.
type OrchestratorMessagesTextBlockType ¶ added in v0.6.0
type OrchestratorMessagesTextBlockType string
OrchestratorMessagesTextBlockType defines model for OrchestratorMessagesTextBlock.Type.
const (
OrchestratorMessagesTextBlockTypeText OrchestratorMessagesTextBlockType = "text"
)
Defines values for OrchestratorMessagesTextBlockType.
func (OrchestratorMessagesTextBlockType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesTextBlockType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesTextBlockType enum.
type OrchestratorMessagesThinkingBlock ¶ added in v0.6.0
type OrchestratorMessagesThinkingBlock struct {
Signature string `json:"signature"`
Thinking string `json:"thinking"`
Type OrchestratorMessagesThinkingBlockType `json:"type"`
}
OrchestratorMessagesThinkingBlock Extended-thinking output; in requests only as replayed history. Empty thinking text is valid under display "omitted".
type OrchestratorMessagesThinkingBlockType ¶ added in v0.6.0
type OrchestratorMessagesThinkingBlockType string
OrchestratorMessagesThinkingBlockType defines model for OrchestratorMessagesThinkingBlock.Type.
const (
OrchestratorMessagesThinkingBlockTypeThinking OrchestratorMessagesThinkingBlockType = "thinking"
)
Defines values for OrchestratorMessagesThinkingBlockType.
func (OrchestratorMessagesThinkingBlockType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesThinkingBlockType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesThinkingBlockType enum.
type OrchestratorMessagesThinkingConfig ¶ added in v0.6.0
type OrchestratorMessagesThinkingConfig struct {
// contains filtered or unexported fields
}
OrchestratorMessagesThinkingConfig defines model for OrchestratorMessagesThinkingConfig.
func (OrchestratorMessagesThinkingConfig) AsOrchestratorMessagesThinkingConfigAdaptive ¶ added in v0.6.0
func (t OrchestratorMessagesThinkingConfig) AsOrchestratorMessagesThinkingConfigAdaptive() (OrchestratorMessagesThinkingConfigAdaptive, error)
AsOrchestratorMessagesThinkingConfigAdaptive returns the union data inside the OrchestratorMessagesThinkingConfig as a OrchestratorMessagesThinkingConfigAdaptive
func (OrchestratorMessagesThinkingConfig) AsOrchestratorMessagesThinkingConfigDisabled ¶ added in v0.6.0
func (t OrchestratorMessagesThinkingConfig) AsOrchestratorMessagesThinkingConfigDisabled() (OrchestratorMessagesThinkingConfigDisabled, error)
AsOrchestratorMessagesThinkingConfigDisabled returns the union data inside the OrchestratorMessagesThinkingConfig as a OrchestratorMessagesThinkingConfigDisabled
func (OrchestratorMessagesThinkingConfig) AsOrchestratorMessagesThinkingConfigEnabled ¶ added in v0.6.0
func (t OrchestratorMessagesThinkingConfig) AsOrchestratorMessagesThinkingConfigEnabled() (OrchestratorMessagesThinkingConfigEnabled, error)
AsOrchestratorMessagesThinkingConfigEnabled returns the union data inside the OrchestratorMessagesThinkingConfig as a OrchestratorMessagesThinkingConfigEnabled
func (OrchestratorMessagesThinkingConfig) Discriminator ¶ added in v0.6.0
func (t OrchestratorMessagesThinkingConfig) Discriminator() (string, error)
func (*OrchestratorMessagesThinkingConfig) FromOrchestratorMessagesThinkingConfigAdaptive ¶ added in v0.6.0
func (t *OrchestratorMessagesThinkingConfig) FromOrchestratorMessagesThinkingConfigAdaptive(v OrchestratorMessagesThinkingConfigAdaptive) error
FromOrchestratorMessagesThinkingConfigAdaptive overwrites any union data inside the OrchestratorMessagesThinkingConfig as the provided OrchestratorMessagesThinkingConfigAdaptive
func (*OrchestratorMessagesThinkingConfig) FromOrchestratorMessagesThinkingConfigDisabled ¶ added in v0.6.0
func (t *OrchestratorMessagesThinkingConfig) FromOrchestratorMessagesThinkingConfigDisabled(v OrchestratorMessagesThinkingConfigDisabled) error
FromOrchestratorMessagesThinkingConfigDisabled overwrites any union data inside the OrchestratorMessagesThinkingConfig as the provided OrchestratorMessagesThinkingConfigDisabled
func (*OrchestratorMessagesThinkingConfig) FromOrchestratorMessagesThinkingConfigEnabled ¶ added in v0.6.0
func (t *OrchestratorMessagesThinkingConfig) FromOrchestratorMessagesThinkingConfigEnabled(v OrchestratorMessagesThinkingConfigEnabled) error
FromOrchestratorMessagesThinkingConfigEnabled overwrites any union data inside the OrchestratorMessagesThinkingConfig as the provided OrchestratorMessagesThinkingConfigEnabled
func (OrchestratorMessagesThinkingConfig) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesThinkingConfig) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesThinkingConfig) MergeOrchestratorMessagesThinkingConfigAdaptive ¶ added in v0.6.0
func (t *OrchestratorMessagesThinkingConfig) MergeOrchestratorMessagesThinkingConfigAdaptive(v OrchestratorMessagesThinkingConfigAdaptive) error
MergeOrchestratorMessagesThinkingConfigAdaptive performs a merge with any union data inside the OrchestratorMessagesThinkingConfig, using the provided OrchestratorMessagesThinkingConfigAdaptive
func (*OrchestratorMessagesThinkingConfig) MergeOrchestratorMessagesThinkingConfigDisabled ¶ added in v0.6.0
func (t *OrchestratorMessagesThinkingConfig) MergeOrchestratorMessagesThinkingConfigDisabled(v OrchestratorMessagesThinkingConfigDisabled) error
MergeOrchestratorMessagesThinkingConfigDisabled performs a merge with any union data inside the OrchestratorMessagesThinkingConfig, using the provided OrchestratorMessagesThinkingConfigDisabled
func (*OrchestratorMessagesThinkingConfig) MergeOrchestratorMessagesThinkingConfigEnabled ¶ added in v0.6.0
func (t *OrchestratorMessagesThinkingConfig) MergeOrchestratorMessagesThinkingConfigEnabled(v OrchestratorMessagesThinkingConfigEnabled) error
MergeOrchestratorMessagesThinkingConfigEnabled performs a merge with any union data inside the OrchestratorMessagesThinkingConfig, using the provided OrchestratorMessagesThinkingConfigEnabled
func (*OrchestratorMessagesThinkingConfig) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesThinkingConfig) UnmarshalJSON(b []byte) error
func (OrchestratorMessagesThinkingConfig) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorMessagesThinkingConfig) ValueByDiscriminator() (interface{}, error)
type OrchestratorMessagesThinkingConfigAdaptive ¶ added in v0.6.0
type OrchestratorMessagesThinkingConfigAdaptive struct {
Display *OrchestratorMessagesThinkingDisplay `json:"display,omitempty"`
Type OrchestratorMessagesThinkingConfigAdaptiveType `json:"type"`
}
OrchestratorMessagesThinkingConfigAdaptive Model-controlled thinking. Set `output_config.effort` to guide how much the model thinks. Some models reject this type.
type OrchestratorMessagesThinkingConfigAdaptiveType ¶ added in v0.6.0
type OrchestratorMessagesThinkingConfigAdaptiveType string
OrchestratorMessagesThinkingConfigAdaptiveType defines model for OrchestratorMessagesThinkingConfigAdaptive.Type.
const (
OrchestratorMessagesThinkingConfigAdaptiveTypeAdaptive OrchestratorMessagesThinkingConfigAdaptiveType = "adaptive"
)
Defines values for OrchestratorMessagesThinkingConfigAdaptiveType.
func (OrchestratorMessagesThinkingConfigAdaptiveType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesThinkingConfigAdaptiveType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesThinkingConfigAdaptiveType enum.
type OrchestratorMessagesThinkingConfigDisabled ¶ added in v0.6.0
type OrchestratorMessagesThinkingConfigDisabled struct {
Type OrchestratorMessagesThinkingConfigDisabledType `json:"type"`
}
OrchestratorMessagesThinkingConfigDisabled defines model for OrchestratorMessagesThinkingConfigDisabled.
type OrchestratorMessagesThinkingConfigDisabledType ¶ added in v0.6.0
type OrchestratorMessagesThinkingConfigDisabledType string
OrchestratorMessagesThinkingConfigDisabledType defines model for OrchestratorMessagesThinkingConfigDisabled.Type.
const (
OrchestratorMessagesThinkingConfigDisabledTypeDisabled OrchestratorMessagesThinkingConfigDisabledType = "disabled"
)
Defines values for OrchestratorMessagesThinkingConfigDisabledType.
func (OrchestratorMessagesThinkingConfigDisabledType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesThinkingConfigDisabledType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesThinkingConfigDisabledType enum.
type OrchestratorMessagesThinkingConfigEnabled ¶ added in v0.6.0
type OrchestratorMessagesThinkingConfigEnabled struct {
BudgetTokens int `json:"budget_tokens"`
Display *OrchestratorMessagesThinkingDisplay `json:"display,omitempty"`
Type OrchestratorMessagesThinkingConfigEnabledType `json:"type"`
}
OrchestratorMessagesThinkingConfigEnabled Budget-based thinking. `anthropic/` models receive `budget_tokens` as is; other models get a reasoning-effort level derived from it. Some models reject this type and require `adaptive`.
type OrchestratorMessagesThinkingConfigEnabledType ¶ added in v0.6.0
type OrchestratorMessagesThinkingConfigEnabledType string
OrchestratorMessagesThinkingConfigEnabledType defines model for OrchestratorMessagesThinkingConfigEnabled.Type.
const (
OrchestratorMessagesThinkingConfigEnabledTypeEnabled OrchestratorMessagesThinkingConfigEnabledType = "enabled"
)
Defines values for OrchestratorMessagesThinkingConfigEnabledType.
func (OrchestratorMessagesThinkingConfigEnabledType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesThinkingConfigEnabledType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesThinkingConfigEnabledType enum.
type OrchestratorMessagesThinkingDisplay ¶ added in v0.6.0
type OrchestratorMessagesThinkingDisplay string
OrchestratorMessagesThinkingDisplay defines model for OrchestratorMessagesThinkingDisplay.
const ( OrchestratorMessagesThinkingDisplayOmitted OrchestratorMessagesThinkingDisplay = "omitted" OrchestratorMessagesThinkingDisplaySummarized OrchestratorMessagesThinkingDisplay = "summarized" )
Defines values for OrchestratorMessagesThinkingDisplay.
func (OrchestratorMessagesThinkingDisplay) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesThinkingDisplay) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesThinkingDisplay enum.
type OrchestratorMessagesTool ¶ added in v0.6.0
type OrchestratorMessagesTool struct {
// AllowedCallers Accepted and ignored. Code-execution tools are not supported.
AllowedCallers *json.RawMessage `json:"allowed_callers,omitempty"`
// CacheControl Ephemeral cache breakpoint. Set `ttl` to `5m` or `1h`. Cache writes with a `1h` TTL are billed at 2x the base input rate.
CacheControl *OrchestratorMessagesCacheControl `json:"cache_control,omitempty"`
// DeferLoading Forwarded to the provider with deferred tool loading enabled.
DeferLoading *bool `json:"defer_loading,omitempty"`
Description *string `json:"description,omitempty"`
// EagerInputStreaming Accepted and ignored. Fine-grained tool streaming is not enabled.
EagerInputStreaming *bool `json:"eager_input_streaming,omitempty"`
// InputExamples Accepted and ignored.
InputExamples *json.RawMessage `json:"input_examples,omitempty"`
// InputSchema JSON Schema for the tool input, kept as raw JSON and forwarded verbatim.
InputSchema json.RawMessage `json:"input_schema"`
Name string `json:"name"`
// Strict Forwarded to the provider. Where the provider supports it, tool input is constrained to the schema.
Strict *bool `json:"strict,omitempty"`
// Type Optional explicit tool kind; `custom` is the default. Server tool types are rejected by validation.
Type *OrchestratorMessagesToolType `json:"type,omitempty"`
}
OrchestratorMessagesTool defines model for OrchestratorMessagesTool.
type OrchestratorMessagesToolChoice ¶ added in v0.6.0
type OrchestratorMessagesToolChoice struct {
// contains filtered or unexported fields
}
OrchestratorMessagesToolChoice defines model for OrchestratorMessagesToolChoice.
func (OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceAny ¶ added in v0.6.0
func (t OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceAny() (OrchestratorMessagesToolChoiceAny, error)
AsOrchestratorMessagesToolChoiceAny returns the union data inside the OrchestratorMessagesToolChoice as a OrchestratorMessagesToolChoiceAny
func (OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceAuto ¶ added in v0.6.0
func (t OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceAuto() (OrchestratorMessagesToolChoiceAuto, error)
AsOrchestratorMessagesToolChoiceAuto returns the union data inside the OrchestratorMessagesToolChoice as a OrchestratorMessagesToolChoiceAuto
func (OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceNone ¶ added in v0.6.0
func (t OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceNone() (OrchestratorMessagesToolChoiceNone, error)
AsOrchestratorMessagesToolChoiceNone returns the union data inside the OrchestratorMessagesToolChoice as a OrchestratorMessagesToolChoiceNone
func (OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceTool ¶ added in v0.6.0
func (t OrchestratorMessagesToolChoice) AsOrchestratorMessagesToolChoiceTool() (OrchestratorMessagesToolChoiceTool, error)
AsOrchestratorMessagesToolChoiceTool returns the union data inside the OrchestratorMessagesToolChoice as a OrchestratorMessagesToolChoiceTool
func (OrchestratorMessagesToolChoice) Discriminator ¶ added in v0.6.0
func (t OrchestratorMessagesToolChoice) Discriminator() (string, error)
func (*OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceAny ¶ added in v0.6.0
func (t *OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceAny(v OrchestratorMessagesToolChoiceAny) error
FromOrchestratorMessagesToolChoiceAny overwrites any union data inside the OrchestratorMessagesToolChoice as the provided OrchestratorMessagesToolChoiceAny
func (*OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceAuto ¶ added in v0.6.0
func (t *OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceAuto(v OrchestratorMessagesToolChoiceAuto) error
FromOrchestratorMessagesToolChoiceAuto overwrites any union data inside the OrchestratorMessagesToolChoice as the provided OrchestratorMessagesToolChoiceAuto
func (*OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceNone ¶ added in v0.6.0
func (t *OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceNone(v OrchestratorMessagesToolChoiceNone) error
FromOrchestratorMessagesToolChoiceNone overwrites any union data inside the OrchestratorMessagesToolChoice as the provided OrchestratorMessagesToolChoiceNone
func (*OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceTool ¶ added in v0.6.0
func (t *OrchestratorMessagesToolChoice) FromOrchestratorMessagesToolChoiceTool(v OrchestratorMessagesToolChoiceTool) error
FromOrchestratorMessagesToolChoiceTool overwrites any union data inside the OrchestratorMessagesToolChoice as the provided OrchestratorMessagesToolChoiceTool
func (OrchestratorMessagesToolChoice) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesToolChoice) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceAny ¶ added in v0.6.0
func (t *OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceAny(v OrchestratorMessagesToolChoiceAny) error
MergeOrchestratorMessagesToolChoiceAny performs a merge with any union data inside the OrchestratorMessagesToolChoice, using the provided OrchestratorMessagesToolChoiceAny
func (*OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceAuto ¶ added in v0.6.0
func (t *OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceAuto(v OrchestratorMessagesToolChoiceAuto) error
MergeOrchestratorMessagesToolChoiceAuto performs a merge with any union data inside the OrchestratorMessagesToolChoice, using the provided OrchestratorMessagesToolChoiceAuto
func (*OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceNone ¶ added in v0.6.0
func (t *OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceNone(v OrchestratorMessagesToolChoiceNone) error
MergeOrchestratorMessagesToolChoiceNone performs a merge with any union data inside the OrchestratorMessagesToolChoice, using the provided OrchestratorMessagesToolChoiceNone
func (*OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceTool ¶ added in v0.6.0
func (t *OrchestratorMessagesToolChoice) MergeOrchestratorMessagesToolChoiceTool(v OrchestratorMessagesToolChoiceTool) error
MergeOrchestratorMessagesToolChoiceTool performs a merge with any union data inside the OrchestratorMessagesToolChoice, using the provided OrchestratorMessagesToolChoiceTool
func (*OrchestratorMessagesToolChoice) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesToolChoice) UnmarshalJSON(b []byte) error
func (OrchestratorMessagesToolChoice) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorMessagesToolChoice) ValueByDiscriminator() (interface{}, error)
type OrchestratorMessagesToolChoiceAny ¶ added in v0.6.0
type OrchestratorMessagesToolChoiceAny struct {
DisableParallelToolUse *bool `json:"disable_parallel_tool_use,omitempty"`
Type OrchestratorMessagesToolChoiceAnyType `json:"type"`
}
OrchestratorMessagesToolChoiceAny defines model for OrchestratorMessagesToolChoiceAny.
type OrchestratorMessagesToolChoiceAnyType ¶ added in v0.6.0
type OrchestratorMessagesToolChoiceAnyType string
OrchestratorMessagesToolChoiceAnyType defines model for OrchestratorMessagesToolChoiceAny.Type.
const (
OrchestratorMessagesToolChoiceAnyTypeAny OrchestratorMessagesToolChoiceAnyType = "any"
)
Defines values for OrchestratorMessagesToolChoiceAnyType.
func (OrchestratorMessagesToolChoiceAnyType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesToolChoiceAnyType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesToolChoiceAnyType enum.
type OrchestratorMessagesToolChoiceAuto ¶ added in v0.6.0
type OrchestratorMessagesToolChoiceAuto struct {
DisableParallelToolUse *bool `json:"disable_parallel_tool_use,omitempty"`
Type OrchestratorMessagesToolChoiceAutoType `json:"type"`
}
OrchestratorMessagesToolChoiceAuto defines model for OrchestratorMessagesToolChoiceAuto.
type OrchestratorMessagesToolChoiceAutoType ¶ added in v0.6.0
type OrchestratorMessagesToolChoiceAutoType string
OrchestratorMessagesToolChoiceAutoType defines model for OrchestratorMessagesToolChoiceAuto.Type.
const (
OrchestratorMessagesToolChoiceAutoTypeAuto OrchestratorMessagesToolChoiceAutoType = "auto"
)
Defines values for OrchestratorMessagesToolChoiceAutoType.
func (OrchestratorMessagesToolChoiceAutoType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesToolChoiceAutoType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesToolChoiceAutoType enum.
type OrchestratorMessagesToolChoiceNone ¶ added in v0.6.0
type OrchestratorMessagesToolChoiceNone struct {
Type OrchestratorMessagesToolChoiceNoneType `json:"type"`
}
OrchestratorMessagesToolChoiceNone defines model for OrchestratorMessagesToolChoiceNone.
type OrchestratorMessagesToolChoiceNoneType ¶ added in v0.6.0
type OrchestratorMessagesToolChoiceNoneType string
OrchestratorMessagesToolChoiceNoneType defines model for OrchestratorMessagesToolChoiceNone.Type.
const (
OrchestratorMessagesToolChoiceNoneTypeNone OrchestratorMessagesToolChoiceNoneType = "none"
)
Defines values for OrchestratorMessagesToolChoiceNoneType.
func (OrchestratorMessagesToolChoiceNoneType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesToolChoiceNoneType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesToolChoiceNoneType enum.
type OrchestratorMessagesToolChoiceTool ¶ added in v0.6.0
type OrchestratorMessagesToolChoiceTool struct {
DisableParallelToolUse *bool `json:"disable_parallel_tool_use,omitempty"`
Name string `json:"name"`
Type OrchestratorMessagesToolChoiceToolType `json:"type"`
}
OrchestratorMessagesToolChoiceTool defines model for OrchestratorMessagesToolChoiceTool.
type OrchestratorMessagesToolChoiceToolType ¶ added in v0.6.0
type OrchestratorMessagesToolChoiceToolType string
OrchestratorMessagesToolChoiceToolType defines model for OrchestratorMessagesToolChoiceTool.Type.
const (
OrchestratorMessagesToolChoiceToolTypeTool OrchestratorMessagesToolChoiceToolType = "tool"
)
Defines values for OrchestratorMessagesToolChoiceToolType.
func (OrchestratorMessagesToolChoiceToolType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesToolChoiceToolType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesToolChoiceToolType enum.
type OrchestratorMessagesToolResultBlock ¶ added in v0.6.0
type OrchestratorMessagesToolResultBlock struct {
// CacheControl Ephemeral cache breakpoint. Set `ttl` to `5m` or `1h`. Cache writes with a `1h` TTL are billed at 2x the base input rate.
CacheControl *OrchestratorMessagesCacheControl `json:"cache_control,omitempty"`
// Content Tool output as plain text or an array of content blocks.
Content *OrchestratorMessagesToolResultBlock_Content `json:"content,omitempty"`
IsError *bool `json:"is_error,omitempty"`
ToolUseId string `json:"tool_use_id"`
Type OrchestratorMessagesToolResultBlockType `json:"type"`
}
OrchestratorMessagesToolResultBlock defines model for OrchestratorMessagesToolResultBlock.
type OrchestratorMessagesToolResultBlockContent0 ¶ added in v0.6.0
type OrchestratorMessagesToolResultBlockContent0 = string
OrchestratorMessagesToolResultBlockContent0 defines model for OrchestratorMessagesToolResultBlock.Content.0.
type OrchestratorMessagesToolResultBlockContent1 ¶ added in v0.6.0
type OrchestratorMessagesToolResultBlockContent1 = []OrchestratorMessagesToolResultContentBlock
OrchestratorMessagesToolResultBlockContent1 defines model for OrchestratorMessagesToolResultBlock.Content.1.
type OrchestratorMessagesToolResultBlockType ¶ added in v0.6.0
type OrchestratorMessagesToolResultBlockType string
OrchestratorMessagesToolResultBlockType defines model for OrchestratorMessagesToolResultBlock.Type.
const (
OrchestratorMessagesToolResultBlockTypeToolResult OrchestratorMessagesToolResultBlockType = "tool_result"
)
Defines values for OrchestratorMessagesToolResultBlockType.
func (OrchestratorMessagesToolResultBlockType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesToolResultBlockType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesToolResultBlockType enum.
type OrchestratorMessagesToolResultBlock_Content ¶ added in v0.6.0
type OrchestratorMessagesToolResultBlock_Content struct {
// contains filtered or unexported fields
}
OrchestratorMessagesToolResultBlock_Content Tool output as plain text or an array of content blocks.
func (OrchestratorMessagesToolResultBlock_Content) AsOrchestratorMessagesToolResultBlockContent0 ¶ added in v0.6.0
func (t OrchestratorMessagesToolResultBlock_Content) AsOrchestratorMessagesToolResultBlockContent0() (OrchestratorMessagesToolResultBlockContent0, error)
AsOrchestratorMessagesToolResultBlockContent0 returns the union data inside the OrchestratorMessagesToolResultBlock_Content as a OrchestratorMessagesToolResultBlockContent0
func (OrchestratorMessagesToolResultBlock_Content) AsOrchestratorMessagesToolResultBlockContent1 ¶ added in v0.6.0
func (t OrchestratorMessagesToolResultBlock_Content) AsOrchestratorMessagesToolResultBlockContent1() (OrchestratorMessagesToolResultBlockContent1, error)
AsOrchestratorMessagesToolResultBlockContent1 returns the union data inside the OrchestratorMessagesToolResultBlock_Content as a OrchestratorMessagesToolResultBlockContent1
func (*OrchestratorMessagesToolResultBlock_Content) FromOrchestratorMessagesToolResultBlockContent0 ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultBlock_Content) FromOrchestratorMessagesToolResultBlockContent0(v OrchestratorMessagesToolResultBlockContent0) error
FromOrchestratorMessagesToolResultBlockContent0 overwrites any union data inside the OrchestratorMessagesToolResultBlock_Content as the provided OrchestratorMessagesToolResultBlockContent0
func (*OrchestratorMessagesToolResultBlock_Content) FromOrchestratorMessagesToolResultBlockContent1 ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultBlock_Content) FromOrchestratorMessagesToolResultBlockContent1(v OrchestratorMessagesToolResultBlockContent1) error
FromOrchestratorMessagesToolResultBlockContent1 overwrites any union data inside the OrchestratorMessagesToolResultBlock_Content as the provided OrchestratorMessagesToolResultBlockContent1
func (OrchestratorMessagesToolResultBlock_Content) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesToolResultBlock_Content) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesToolResultBlock_Content) MergeOrchestratorMessagesToolResultBlockContent0 ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultBlock_Content) MergeOrchestratorMessagesToolResultBlockContent0(v OrchestratorMessagesToolResultBlockContent0) error
MergeOrchestratorMessagesToolResultBlockContent0 performs a merge with any union data inside the OrchestratorMessagesToolResultBlock_Content, using the provided OrchestratorMessagesToolResultBlockContent0
func (*OrchestratorMessagesToolResultBlock_Content) MergeOrchestratorMessagesToolResultBlockContent1 ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultBlock_Content) MergeOrchestratorMessagesToolResultBlockContent1(v OrchestratorMessagesToolResultBlockContent1) error
MergeOrchestratorMessagesToolResultBlockContent1 performs a merge with any union data inside the OrchestratorMessagesToolResultBlock_Content, using the provided OrchestratorMessagesToolResultBlockContent1
func (*OrchestratorMessagesToolResultBlock_Content) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultBlock_Content) UnmarshalJSON(b []byte) error
type OrchestratorMessagesToolResultContentBlock ¶ added in v0.6.0
type OrchestratorMessagesToolResultContentBlock struct {
// contains filtered or unexported fields
}
OrchestratorMessagesToolResultContentBlock defines model for OrchestratorMessagesToolResultContentBlock.
func (OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesDocumentBlock ¶ added in v0.6.0
func (t OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesDocumentBlock() (OrchestratorMessagesDocumentBlock, error)
AsOrchestratorMessagesDocumentBlock returns the union data inside the OrchestratorMessagesToolResultContentBlock as a OrchestratorMessagesDocumentBlock
func (OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesImageBlock ¶ added in v0.6.0
func (t OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesImageBlock() (OrchestratorMessagesImageBlock, error)
AsOrchestratorMessagesImageBlock returns the union data inside the OrchestratorMessagesToolResultContentBlock as a OrchestratorMessagesImageBlock
func (OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesSearchResultBlock ¶ added in v0.6.0
func (t OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesSearchResultBlock() (OrchestratorMessagesSearchResultBlock, error)
AsOrchestratorMessagesSearchResultBlock returns the union data inside the OrchestratorMessagesToolResultContentBlock as a OrchestratorMessagesSearchResultBlock
func (OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesTextBlock ¶ added in v0.6.0
func (t OrchestratorMessagesToolResultContentBlock) AsOrchestratorMessagesTextBlock() (OrchestratorMessagesTextBlock, error)
AsOrchestratorMessagesTextBlock returns the union data inside the OrchestratorMessagesToolResultContentBlock as a OrchestratorMessagesTextBlock
func (OrchestratorMessagesToolResultContentBlock) Discriminator ¶ added in v0.6.0
func (t OrchestratorMessagesToolResultContentBlock) Discriminator() (string, error)
func (*OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesDocumentBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesDocumentBlock(v OrchestratorMessagesDocumentBlock) error
FromOrchestratorMessagesDocumentBlock overwrites any union data inside the OrchestratorMessagesToolResultContentBlock as the provided OrchestratorMessagesDocumentBlock
func (*OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesImageBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesImageBlock(v OrchestratorMessagesImageBlock) error
FromOrchestratorMessagesImageBlock overwrites any union data inside the OrchestratorMessagesToolResultContentBlock as the provided OrchestratorMessagesImageBlock
func (*OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesSearchResultBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesSearchResultBlock(v OrchestratorMessagesSearchResultBlock) error
FromOrchestratorMessagesSearchResultBlock overwrites any union data inside the OrchestratorMessagesToolResultContentBlock as the provided OrchestratorMessagesSearchResultBlock
func (*OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesTextBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultContentBlock) FromOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
FromOrchestratorMessagesTextBlock overwrites any union data inside the OrchestratorMessagesToolResultContentBlock as the provided OrchestratorMessagesTextBlock
func (OrchestratorMessagesToolResultContentBlock) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorMessagesToolResultContentBlock) MarshalJSON() ([]byte, error)
func (*OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesDocumentBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesDocumentBlock(v OrchestratorMessagesDocumentBlock) error
MergeOrchestratorMessagesDocumentBlock performs a merge with any union data inside the OrchestratorMessagesToolResultContentBlock, using the provided OrchestratorMessagesDocumentBlock
func (*OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesImageBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesImageBlock(v OrchestratorMessagesImageBlock) error
MergeOrchestratorMessagesImageBlock performs a merge with any union data inside the OrchestratorMessagesToolResultContentBlock, using the provided OrchestratorMessagesImageBlock
func (*OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesSearchResultBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesSearchResultBlock(v OrchestratorMessagesSearchResultBlock) error
MergeOrchestratorMessagesSearchResultBlock performs a merge with any union data inside the OrchestratorMessagesToolResultContentBlock, using the provided OrchestratorMessagesSearchResultBlock
func (*OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesTextBlock ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultContentBlock) MergeOrchestratorMessagesTextBlock(v OrchestratorMessagesTextBlock) error
MergeOrchestratorMessagesTextBlock performs a merge with any union data inside the OrchestratorMessagesToolResultContentBlock, using the provided OrchestratorMessagesTextBlock
func (*OrchestratorMessagesToolResultContentBlock) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorMessagesToolResultContentBlock) UnmarshalJSON(b []byte) error
func (OrchestratorMessagesToolResultContentBlock) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorMessagesToolResultContentBlock) ValueByDiscriminator() (interface{}, error)
type OrchestratorMessagesToolType ¶ added in v0.6.0
type OrchestratorMessagesToolType string
OrchestratorMessagesToolType Optional explicit tool kind; `custom` is the default. Server tool types are rejected by validation.
const (
OrchestratorMessagesToolTypeCustom OrchestratorMessagesToolType = "custom"
)
Defines values for OrchestratorMessagesToolType.
func (OrchestratorMessagesToolType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesToolType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesToolType enum.
type OrchestratorMessagesToolUseBlock ¶ added in v0.6.0
type OrchestratorMessagesToolUseBlock struct {
// CacheControl Ephemeral cache breakpoint. Set `ttl` to `5m` or `1h`. Cache writes with a `1h` TTL are billed at 2x the base input rate.
CacheControl *OrchestratorMessagesCacheControl `json:"cache_control,omitempty"`
Id string `json:"id"`
// Input Kept as raw JSON so caller bytes (e.g. int64 ids) pass through verbatim.
Input json.RawMessage `json:"input"`
Name string `json:"name"`
Type OrchestratorMessagesToolUseBlockType `json:"type"`
}
OrchestratorMessagesToolUseBlock Tool invocation, in assistant history and in responses.
type OrchestratorMessagesToolUseBlockType ¶ added in v0.6.0
type OrchestratorMessagesToolUseBlockType string
OrchestratorMessagesToolUseBlockType defines model for OrchestratorMessagesToolUseBlock.Type.
const (
OrchestratorMessagesToolUseBlockTypeToolUse OrchestratorMessagesToolUseBlockType = "tool_use"
)
Defines values for OrchestratorMessagesToolUseBlockType.
func (OrchestratorMessagesToolUseBlockType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesToolUseBlockType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesToolUseBlockType enum.
type OrchestratorMessagesURLDocumentSource ¶ added in v0.6.0
type OrchestratorMessagesURLDocumentSource struct {
Type OrchestratorMessagesURLDocumentSourceType `json:"type"`
Url string `json:"url"`
}
OrchestratorMessagesURLDocumentSource defines model for OrchestratorMessagesURLDocumentSource.
type OrchestratorMessagesURLDocumentSourceType ¶ added in v0.6.0
type OrchestratorMessagesURLDocumentSourceType string
OrchestratorMessagesURLDocumentSourceType defines model for OrchestratorMessagesURLDocumentSource.Type.
const (
OrchestratorMessagesURLDocumentSourceTypeUrl OrchestratorMessagesURLDocumentSourceType = "url"
)
Defines values for OrchestratorMessagesURLDocumentSourceType.
func (OrchestratorMessagesURLDocumentSourceType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesURLDocumentSourceType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesURLDocumentSourceType enum.
type OrchestratorMessagesURLImageSource ¶ added in v0.6.0
type OrchestratorMessagesURLImageSource struct {
Type OrchestratorMessagesURLImageSourceType `json:"type"`
Url string `json:"url"`
}
OrchestratorMessagesURLImageSource defines model for OrchestratorMessagesURLImageSource.
type OrchestratorMessagesURLImageSourceType ¶ added in v0.6.0
type OrchestratorMessagesURLImageSourceType string
OrchestratorMessagesURLImageSourceType defines model for OrchestratorMessagesURLImageSource.Type.
const (
OrchestratorMessagesURLImageSourceTypeUrl OrchestratorMessagesURLImageSourceType = "url"
)
Defines values for OrchestratorMessagesURLImageSourceType.
func (OrchestratorMessagesURLImageSourceType) Valid ¶ added in v0.6.0
func (e OrchestratorMessagesURLImageSourceType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorMessagesURLImageSourceType enum.
type OrchestratorMessagesUsage ¶ added in v0.6.0
type OrchestratorMessagesUsage struct {
// CacheCreation Cache-write input tokens, broken down by TTL.
CacheCreation *OrchestratorMessagesCacheCreation `json:"cache_creation,omitempty"`
CacheCreationInputTokens *int `json:"cache_creation_input_tokens"`
CacheReadInputTokens *int `json:"cache_read_input_tokens"`
InputTokens int `json:"input_tokens"`
OutputTokens int `json:"output_tokens"`
ServiceTier *string `json:"service_tier,omitempty"`
}
OrchestratorMessagesUsage defines model for OrchestratorMessagesUsage.
type OrchestratorResponsesAdditionalToolsItemParam ¶ added in v0.6.0
type OrchestratorResponsesAdditionalToolsItemParam struct {
// Role The role codex attributes the tool prefix to (always `developer`).
Role *string `json:"role,omitempty"`
// Tools The tools to merge after the top-level tools param.
Tools []OrchestratorResponsesResponsesToolParam `json:"tools"`
// Type The item type. Always `additional_tools`.
Type OrchestratorResponsesAdditionalToolsItemParamType `json:"type"`
}
OrchestratorResponsesAdditionalToolsItemParam A Codex-compatible input item that supplies additional tools for the request.
type OrchestratorResponsesAdditionalToolsItemParamType ¶ added in v0.6.0
type OrchestratorResponsesAdditionalToolsItemParamType string
OrchestratorResponsesAdditionalToolsItemParamType The item type. Always `additional_tools`.
const (
OrchestratorResponsesAdditionalToolsItemParamTypeAdditionalTools OrchestratorResponsesAdditionalToolsItemParamType = "additional_tools"
)
Defines values for OrchestratorResponsesAdditionalToolsItemParamType.
func (OrchestratorResponsesAdditionalToolsItemParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesAdditionalToolsItemParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesAdditionalToolsItemParamType enum.
type OrchestratorResponsesAllowedToolChoice ¶ added in v0.6.0
type OrchestratorResponsesAllowedToolChoice struct {
Mode OrchestratorResponsesToolChoiceValueEnum `json:"mode"`
Tools []OrchestratorResponsesAllowedToolChoice_Tools_Item `json:"tools"`
Type OrchestratorResponsesAllowedToolChoiceType `json:"type"`
}
OrchestratorResponsesAllowedToolChoice defines model for OrchestratorResponsesAllowedToolChoice.
type OrchestratorResponsesAllowedToolChoiceType ¶ added in v0.6.0
type OrchestratorResponsesAllowedToolChoiceType string
OrchestratorResponsesAllowedToolChoiceType defines model for OrchestratorResponsesAllowedToolChoice.Type.
const (
OrchestratorResponsesAllowedToolChoiceTypeAllowedTools OrchestratorResponsesAllowedToolChoiceType = "allowed_tools"
)
Defines values for OrchestratorResponsesAllowedToolChoiceType.
func (OrchestratorResponsesAllowedToolChoiceType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesAllowedToolChoiceType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesAllowedToolChoiceType enum.
type OrchestratorResponsesAllowedToolChoice_Tools_Item ¶ added in v0.6.0
type OrchestratorResponsesAllowedToolChoice_Tools_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesAllowedToolChoice_Tools_Item defines model for OrchestratorResponsesAllowedToolChoice.tools.Item.
func (OrchestratorResponsesAllowedToolChoice_Tools_Item) AsOrchestratorResponsesFunctionToolChoice ¶ added in v0.6.0
func (t OrchestratorResponsesAllowedToolChoice_Tools_Item) AsOrchestratorResponsesFunctionToolChoice() (OrchestratorResponsesFunctionToolChoice, error)
AsOrchestratorResponsesFunctionToolChoice returns the union data inside the OrchestratorResponsesAllowedToolChoice_Tools_Item as a OrchestratorResponsesFunctionToolChoice
func (*OrchestratorResponsesAllowedToolChoice_Tools_Item) FromOrchestratorResponsesFunctionToolChoice ¶ added in v0.6.0
func (t *OrchestratorResponsesAllowedToolChoice_Tools_Item) FromOrchestratorResponsesFunctionToolChoice(v OrchestratorResponsesFunctionToolChoice) error
FromOrchestratorResponsesFunctionToolChoice overwrites any union data inside the OrchestratorResponsesAllowedToolChoice_Tools_Item as the provided OrchestratorResponsesFunctionToolChoice
func (OrchestratorResponsesAllowedToolChoice_Tools_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesAllowedToolChoice_Tools_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesAllowedToolChoice_Tools_Item) MergeOrchestratorResponsesFunctionToolChoice ¶ added in v0.6.0
func (t *OrchestratorResponsesAllowedToolChoice_Tools_Item) MergeOrchestratorResponsesFunctionToolChoice(v OrchestratorResponsesFunctionToolChoice) error
MergeOrchestratorResponsesFunctionToolChoice performs a merge with any union data inside the OrchestratorResponsesAllowedToolChoice_Tools_Item, using the provided OrchestratorResponsesFunctionToolChoice
func (*OrchestratorResponsesAllowedToolChoice_Tools_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesAllowedToolChoice_Tools_Item) UnmarshalJSON(b []byte) error
type OrchestratorResponsesAnnotation ¶ added in v0.6.0
type OrchestratorResponsesAnnotation struct {
// contains filtered or unexported fields
}
OrchestratorResponsesAnnotation An annotation that applies to a span of output text.
func (OrchestratorResponsesAnnotation) AsOrchestratorResponsesUrlCitationBody ¶ added in v0.6.0
func (t OrchestratorResponsesAnnotation) AsOrchestratorResponsesUrlCitationBody() (OrchestratorResponsesUrlCitationBody, error)
AsOrchestratorResponsesUrlCitationBody returns the union data inside the OrchestratorResponsesAnnotation as a OrchestratorResponsesUrlCitationBody
func (OrchestratorResponsesAnnotation) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesAnnotation) Discriminator() (string, error)
func (*OrchestratorResponsesAnnotation) FromOrchestratorResponsesUrlCitationBody ¶ added in v0.6.0
func (t *OrchestratorResponsesAnnotation) FromOrchestratorResponsesUrlCitationBody(v OrchestratorResponsesUrlCitationBody) error
FromOrchestratorResponsesUrlCitationBody overwrites any union data inside the OrchestratorResponsesAnnotation as the provided OrchestratorResponsesUrlCitationBody
func (OrchestratorResponsesAnnotation) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesAnnotation) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesAnnotation) MergeOrchestratorResponsesUrlCitationBody ¶ added in v0.6.0
func (t *OrchestratorResponsesAnnotation) MergeOrchestratorResponsesUrlCitationBody(v OrchestratorResponsesUrlCitationBody) error
MergeOrchestratorResponsesUrlCitationBody performs a merge with any union data inside the OrchestratorResponsesAnnotation, using the provided OrchestratorResponsesUrlCitationBody
func (*OrchestratorResponsesAnnotation) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesAnnotation) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesAnnotation) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesAnnotation) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesAssistantMessageItemParam ¶ added in v0.6.0
type OrchestratorResponsesAssistantMessageItemParam struct {
// Content The message content, as an array of content parts.
Content OrchestratorResponsesAssistantMessageItemParam_Content `json:"content"`
// Id The unique ID of this message item.
Id *string `json:"id,omitempty"`
// Phase Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
Phase *OrchestratorResponsesAssistantMessageItemParamPhase `json:"phase,omitempty"`
// Role The role of the message author. Always `assistant`.
Role OrchestratorResponsesAssistantMessageItemParamRole `json:"role"`
// Status The status of the message item.
Status *string `json:"status,omitempty"`
// Type The item type. Always `message`.
Type OrchestratorResponsesAssistantMessageItemParamType `json:"type"`
}
OrchestratorResponsesAssistantMessageItemParam defines model for OrchestratorResponsesAssistantMessageItemParam.
type OrchestratorResponsesAssistantMessageItemParamContent0 ¶ added in v0.6.0
type OrchestratorResponsesAssistantMessageItemParamContent0 = []OrchestratorResponsesAssistantMessageItemParam_Content_0_Item
OrchestratorResponsesAssistantMessageItemParamContent0 defines model for OrchestratorResponsesAssistantMessageItemParam.Content.0.
type OrchestratorResponsesAssistantMessageItemParamContent1 ¶ added in v0.6.0
type OrchestratorResponsesAssistantMessageItemParamContent1 = string
OrchestratorResponsesAssistantMessageItemParamContent1 The message content, as a single string.
type OrchestratorResponsesAssistantMessageItemParamPhase ¶ added in v0.6.0
type OrchestratorResponsesAssistantMessageItemParamPhase string
OrchestratorResponsesAssistantMessageItemParamPhase Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
const ( OrchestratorResponsesAssistantMessageItemParamPhaseCommentary OrchestratorResponsesAssistantMessageItemParamPhase = "commentary" OrchestratorResponsesAssistantMessageItemParamPhaseFinalAnswer OrchestratorResponsesAssistantMessageItemParamPhase = "final_answer" )
Defines values for OrchestratorResponsesAssistantMessageItemParamPhase.
func (OrchestratorResponsesAssistantMessageItemParamPhase) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesAssistantMessageItemParamPhase) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesAssistantMessageItemParamPhase enum.
type OrchestratorResponsesAssistantMessageItemParamRole ¶ added in v0.6.0
type OrchestratorResponsesAssistantMessageItemParamRole string
OrchestratorResponsesAssistantMessageItemParamRole The role of the message author. Always `assistant`.
const (
OrchestratorResponsesAssistantMessageItemParamRoleAssistant OrchestratorResponsesAssistantMessageItemParamRole = "assistant"
)
Defines values for OrchestratorResponsesAssistantMessageItemParamRole.
func (OrchestratorResponsesAssistantMessageItemParamRole) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesAssistantMessageItemParamRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesAssistantMessageItemParamRole enum.
type OrchestratorResponsesAssistantMessageItemParamType ¶ added in v0.6.0
type OrchestratorResponsesAssistantMessageItemParamType string
OrchestratorResponsesAssistantMessageItemParamType The item type. Always `message`.
const (
OrchestratorResponsesAssistantMessageItemParamTypeMessage OrchestratorResponsesAssistantMessageItemParamType = "message"
)
Defines values for OrchestratorResponsesAssistantMessageItemParamType.
func (OrchestratorResponsesAssistantMessageItemParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesAssistantMessageItemParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesAssistantMessageItemParamType enum.
type OrchestratorResponsesAssistantMessageItemParam_Content ¶ added in v0.6.0
type OrchestratorResponsesAssistantMessageItemParam_Content struct {
// contains filtered or unexported fields
}
OrchestratorResponsesAssistantMessageItemParam_Content The message content, as an array of content parts.
func (OrchestratorResponsesAssistantMessageItemParam_Content) AsOrchestratorResponsesAssistantMessageItemParamContent0 ¶ added in v0.6.0
func (t OrchestratorResponsesAssistantMessageItemParam_Content) AsOrchestratorResponsesAssistantMessageItemParamContent0() (OrchestratorResponsesAssistantMessageItemParamContent0, error)
AsOrchestratorResponsesAssistantMessageItemParamContent0 returns the union data inside the OrchestratorResponsesAssistantMessageItemParam_Content as a OrchestratorResponsesAssistantMessageItemParamContent0
func (OrchestratorResponsesAssistantMessageItemParam_Content) AsOrchestratorResponsesAssistantMessageItemParamContent1 ¶ added in v0.6.0
func (t OrchestratorResponsesAssistantMessageItemParam_Content) AsOrchestratorResponsesAssistantMessageItemParamContent1() (OrchestratorResponsesAssistantMessageItemParamContent1, error)
AsOrchestratorResponsesAssistantMessageItemParamContent1 returns the union data inside the OrchestratorResponsesAssistantMessageItemParam_Content as a OrchestratorResponsesAssistantMessageItemParamContent1
func (*OrchestratorResponsesAssistantMessageItemParam_Content) FromOrchestratorResponsesAssistantMessageItemParamContent0 ¶ added in v0.6.0
func (t *OrchestratorResponsesAssistantMessageItemParam_Content) FromOrchestratorResponsesAssistantMessageItemParamContent0(v OrchestratorResponsesAssistantMessageItemParamContent0) error
FromOrchestratorResponsesAssistantMessageItemParamContent0 overwrites any union data inside the OrchestratorResponsesAssistantMessageItemParam_Content as the provided OrchestratorResponsesAssistantMessageItemParamContent0
func (*OrchestratorResponsesAssistantMessageItemParam_Content) FromOrchestratorResponsesAssistantMessageItemParamContent1 ¶ added in v0.6.0
func (t *OrchestratorResponsesAssistantMessageItemParam_Content) FromOrchestratorResponsesAssistantMessageItemParamContent1(v OrchestratorResponsesAssistantMessageItemParamContent1) error
FromOrchestratorResponsesAssistantMessageItemParamContent1 overwrites any union data inside the OrchestratorResponsesAssistantMessageItemParam_Content as the provided OrchestratorResponsesAssistantMessageItemParamContent1
func (OrchestratorResponsesAssistantMessageItemParam_Content) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesAssistantMessageItemParam_Content) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesAssistantMessageItemParam_Content) MergeOrchestratorResponsesAssistantMessageItemParamContent0 ¶ added in v0.6.0
func (t *OrchestratorResponsesAssistantMessageItemParam_Content) MergeOrchestratorResponsesAssistantMessageItemParamContent0(v OrchestratorResponsesAssistantMessageItemParamContent0) error
MergeOrchestratorResponsesAssistantMessageItemParamContent0 performs a merge with any union data inside the OrchestratorResponsesAssistantMessageItemParam_Content, using the provided OrchestratorResponsesAssistantMessageItemParamContent0
func (*OrchestratorResponsesAssistantMessageItemParam_Content) MergeOrchestratorResponsesAssistantMessageItemParamContent1 ¶ added in v0.6.0
func (t *OrchestratorResponsesAssistantMessageItemParam_Content) MergeOrchestratorResponsesAssistantMessageItemParamContent1(v OrchestratorResponsesAssistantMessageItemParamContent1) error
MergeOrchestratorResponsesAssistantMessageItemParamContent1 performs a merge with any union data inside the OrchestratorResponsesAssistantMessageItemParam_Content, using the provided OrchestratorResponsesAssistantMessageItemParamContent1
func (*OrchestratorResponsesAssistantMessageItemParam_Content) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesAssistantMessageItemParam_Content) UnmarshalJSON(b []byte) error
type OrchestratorResponsesAssistantMessageItemParam_Content_0_Item ¶ added in v0.6.0
type OrchestratorResponsesAssistantMessageItemParam_Content_0_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesAssistantMessageItemParam_Content_0_Item A piece of assistant message content, such as text or a refusal.
func (OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) AsOrchestratorResponsesOutputTextContentParam ¶ added in v0.6.0
func (t OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) AsOrchestratorResponsesOutputTextContentParam() (OrchestratorResponsesOutputTextContentParam, error)
AsOrchestratorResponsesOutputTextContentParam returns the union data inside the OrchestratorResponsesAssistantMessageItemParam_Content_0_Item as a OrchestratorResponsesOutputTextContentParam
func (OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) AsOrchestratorResponsesRefusalContentParam ¶ added in v0.6.0
func (t OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) AsOrchestratorResponsesRefusalContentParam() (OrchestratorResponsesRefusalContentParam, error)
AsOrchestratorResponsesRefusalContentParam returns the union data inside the OrchestratorResponsesAssistantMessageItemParam_Content_0_Item as a OrchestratorResponsesRefusalContentParam
func (OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) Discriminator() (string, error)
func (*OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) FromOrchestratorResponsesOutputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) FromOrchestratorResponsesOutputTextContentParam(v OrchestratorResponsesOutputTextContentParam) error
FromOrchestratorResponsesOutputTextContentParam overwrites any union data inside the OrchestratorResponsesAssistantMessageItemParam_Content_0_Item as the provided OrchestratorResponsesOutputTextContentParam
func (*OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) FromOrchestratorResponsesRefusalContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) FromOrchestratorResponsesRefusalContentParam(v OrchestratorResponsesRefusalContentParam) error
FromOrchestratorResponsesRefusalContentParam overwrites any union data inside the OrchestratorResponsesAssistantMessageItemParam_Content_0_Item as the provided OrchestratorResponsesRefusalContentParam
func (OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) MergeOrchestratorResponsesOutputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) MergeOrchestratorResponsesOutputTextContentParam(v OrchestratorResponsesOutputTextContentParam) error
MergeOrchestratorResponsesOutputTextContentParam performs a merge with any union data inside the OrchestratorResponsesAssistantMessageItemParam_Content_0_Item, using the provided OrchestratorResponsesOutputTextContentParam
func (*OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) MergeOrchestratorResponsesRefusalContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) MergeOrchestratorResponsesRefusalContentParam(v OrchestratorResponsesRefusalContentParam) error
MergeOrchestratorResponsesRefusalContentParam performs a merge with any union data inside the OrchestratorResponsesAssistantMessageItemParam_Content_0_Item, using the provided OrchestratorResponsesRefusalContentParam
func (*OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesAssistantMessageItemParam_Content_0_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesCreateResponseBody ¶ added in v0.6.0
type OrchestratorResponsesCreateResponseBody struct {
Include *[]OrchestratorResponsesIncludeEnum `json:"include,omitempty"`
// Input Context to provide to the model for the scope of this request. May either be a string or an array of input items. If a string is provided, it is interpreted as a user message.
Input OrchestratorResponsesCreateResponseBody_Input `json:"input"`
// Instructions Additional instructions to guide the model for this request.
Instructions *string `json:"instructions,omitempty"`
// MaxOutputTokens The maximum number of tokens the model may generate for this response.
MaxOutputTokens *int `json:"max_output_tokens,omitempty"`
// Metadata Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
// Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
Metadata *OrchestratorResponsesMetadataParam `json:"metadata,omitempty"`
// Model A model id from the Orchestrator catalog, or `perplexity/auto` to select a model for each request. With Auto, omit `routing` to use the default policy or provide an inline routing object.
Model string `json:"model"`
// ParallelToolCalls Whether the model may call multiple tools in parallel.
ParallelToolCalls *bool `json:"parallel_tool_calls,omitempty"`
// PromptCacheKey A key to use when reading from or writing to the prompt cache.
PromptCacheKey *string `json:"prompt_cache_key,omitempty"`
// Reasoning **gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
Reasoning *OrchestratorResponsesReasoningParam `json:"reasoning,omitempty"`
// Routing Inline routing for `model: "perplexity/auto"` only. Omit this field or set it to null to use the default policy. The serialized routing object must be at most 16384 bytes. Models must be available in the Orchestrator catalog. Routes incompatible with the request are excluded; if the default model is incompatible, the first compatible route model becomes the default. The request fails if no model is compatible.
Routing *OrchestratorResponsesCreateResponseBody_Routing `json:"routing,omitempty"`
// SafetyIdentifier A stable identifier used for safety monitoring and abuse detection.
SafetyIdentifier *string `json:"safety_identifier,omitempty"`
ServiceTier *OrchestratorResponsesServiceTierEnum `json:"service_tier,omitempty"`
// Stream Whether to stream response events as server-sent events.
Stream *bool `json:"stream,omitempty"`
// Temperature Sampling temperature to use, between 0 and 2. Higher values make the output more random.
Temperature *float64 `json:"temperature,omitempty"`
Text *OrchestratorResponsesTextParam `json:"text,omitempty"`
// ToolChoice Controls which tool the model should use, if any.
ToolChoice *OrchestratorResponsesToolChoiceParam `json:"tool_choice,omitempty"`
// Tools A list of tools that the model may call while generating the response.
Tools *[]OrchestratorResponsesResponsesToolParam `json:"tools,omitempty"`
// TopP Nucleus sampling parameter, between 0 and 1. The model considers only the tokens with the top cumulative probability.
TopP *float64 `json:"top_p,omitempty"`
Truncation *OrchestratorResponsesTruncationEnum `json:"truncation,omitempty"`
}
OrchestratorResponsesCreateResponseBody defines model for OrchestratorResponsesCreateResponseBody.
type OrchestratorResponsesCreateResponseBodyInput0 ¶ added in v0.6.0
type OrchestratorResponsesCreateResponseBodyInput0 = string
OrchestratorResponsesCreateResponseBodyInput0 defines model for OrchestratorResponsesCreateResponseBody.Input.0.
type OrchestratorResponsesCreateResponseBodyInput1 ¶ added in v0.6.0
type OrchestratorResponsesCreateResponseBodyInput1 = []OrchestratorResponsesItemParam
OrchestratorResponsesCreateResponseBodyInput1 defines model for OrchestratorResponsesCreateResponseBody.Input.1.
type OrchestratorResponsesCreateResponseBodyRouting1 ¶ added in v0.6.0
type OrchestratorResponsesCreateResponseBodyRouting1 = map[string]interface{}
OrchestratorResponsesCreateResponseBodyRouting1 defines model for OrchestratorResponsesCreateResponseBody.Routing.1.
type OrchestratorResponsesCreateResponseBody_Input ¶ added in v0.6.0
type OrchestratorResponsesCreateResponseBody_Input struct {
// contains filtered or unexported fields
}
OrchestratorResponsesCreateResponseBody_Input Context to provide to the model for the scope of this request. May either be a string or an array of input items. If a string is provided, it is interpreted as a user message.
func (OrchestratorResponsesCreateResponseBody_Input) AsOrchestratorResponsesCreateResponseBodyInput0 ¶ added in v0.6.0
func (t OrchestratorResponsesCreateResponseBody_Input) AsOrchestratorResponsesCreateResponseBodyInput0() (OrchestratorResponsesCreateResponseBodyInput0, error)
AsOrchestratorResponsesCreateResponseBodyInput0 returns the union data inside the OrchestratorResponsesCreateResponseBody_Input as a OrchestratorResponsesCreateResponseBodyInput0
func (OrchestratorResponsesCreateResponseBody_Input) AsOrchestratorResponsesCreateResponseBodyInput1 ¶ added in v0.6.0
func (t OrchestratorResponsesCreateResponseBody_Input) AsOrchestratorResponsesCreateResponseBodyInput1() (OrchestratorResponsesCreateResponseBodyInput1, error)
AsOrchestratorResponsesCreateResponseBodyInput1 returns the union data inside the OrchestratorResponsesCreateResponseBody_Input as a OrchestratorResponsesCreateResponseBodyInput1
func (*OrchestratorResponsesCreateResponseBody_Input) FromOrchestratorResponsesCreateResponseBodyInput0 ¶ added in v0.6.0
func (t *OrchestratorResponsesCreateResponseBody_Input) FromOrchestratorResponsesCreateResponseBodyInput0(v OrchestratorResponsesCreateResponseBodyInput0) error
FromOrchestratorResponsesCreateResponseBodyInput0 overwrites any union data inside the OrchestratorResponsesCreateResponseBody_Input as the provided OrchestratorResponsesCreateResponseBodyInput0
func (*OrchestratorResponsesCreateResponseBody_Input) FromOrchestratorResponsesCreateResponseBodyInput1 ¶ added in v0.6.0
func (t *OrchestratorResponsesCreateResponseBody_Input) FromOrchestratorResponsesCreateResponseBodyInput1(v OrchestratorResponsesCreateResponseBodyInput1) error
FromOrchestratorResponsesCreateResponseBodyInput1 overwrites any union data inside the OrchestratorResponsesCreateResponseBody_Input as the provided OrchestratorResponsesCreateResponseBodyInput1
func (OrchestratorResponsesCreateResponseBody_Input) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesCreateResponseBody_Input) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesCreateResponseBody_Input) MergeOrchestratorResponsesCreateResponseBodyInput0 ¶ added in v0.6.0
func (t *OrchestratorResponsesCreateResponseBody_Input) MergeOrchestratorResponsesCreateResponseBodyInput0(v OrchestratorResponsesCreateResponseBodyInput0) error
MergeOrchestratorResponsesCreateResponseBodyInput0 performs a merge with any union data inside the OrchestratorResponsesCreateResponseBody_Input, using the provided OrchestratorResponsesCreateResponseBodyInput0
func (*OrchestratorResponsesCreateResponseBody_Input) MergeOrchestratorResponsesCreateResponseBodyInput1 ¶ added in v0.6.0
func (t *OrchestratorResponsesCreateResponseBody_Input) MergeOrchestratorResponsesCreateResponseBodyInput1(v OrchestratorResponsesCreateResponseBodyInput1) error
MergeOrchestratorResponsesCreateResponseBodyInput1 performs a merge with any union data inside the OrchestratorResponsesCreateResponseBody_Input, using the provided OrchestratorResponsesCreateResponseBodyInput1
func (*OrchestratorResponsesCreateResponseBody_Input) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesCreateResponseBody_Input) UnmarshalJSON(b []byte) error
type OrchestratorResponsesCreateResponseBody_Routing ¶ added in v0.6.0
type OrchestratorResponsesCreateResponseBody_Routing struct {
// contains filtered or unexported fields
}
OrchestratorResponsesCreateResponseBody_Routing Inline routing for `model: "perplexity/auto"` only. Omit this field or set it to null to use the default policy. The serialized routing object must be at most 16384 bytes. Models must be available in the Orchestrator catalog. Routes incompatible with the request are excluded; if the default model is incompatible, the first compatible route model becomes the default. The request fails if no model is compatible.
func (OrchestratorResponsesCreateResponseBody_Routing) AsOrchestratorResponsesCreateResponseBodyRouting1 ¶ added in v0.6.0
func (t OrchestratorResponsesCreateResponseBody_Routing) AsOrchestratorResponsesCreateResponseBodyRouting1() (OrchestratorResponsesCreateResponseBodyRouting1, error)
AsOrchestratorResponsesCreateResponseBodyRouting1 returns the union data inside the OrchestratorResponsesCreateResponseBody_Routing as a OrchestratorResponsesCreateResponseBodyRouting1
func (OrchestratorResponsesCreateResponseBody_Routing) AsOrchestratorRouting ¶ added in v0.6.0
func (t OrchestratorResponsesCreateResponseBody_Routing) AsOrchestratorRouting() (OrchestratorRouting, error)
AsOrchestratorRouting returns the union data inside the OrchestratorResponsesCreateResponseBody_Routing as a OrchestratorRouting
func (*OrchestratorResponsesCreateResponseBody_Routing) FromOrchestratorResponsesCreateResponseBodyRouting1 ¶ added in v0.6.0
func (t *OrchestratorResponsesCreateResponseBody_Routing) FromOrchestratorResponsesCreateResponseBodyRouting1(v OrchestratorResponsesCreateResponseBodyRouting1) error
FromOrchestratorResponsesCreateResponseBodyRouting1 overwrites any union data inside the OrchestratorResponsesCreateResponseBody_Routing as the provided OrchestratorResponsesCreateResponseBodyRouting1
func (*OrchestratorResponsesCreateResponseBody_Routing) FromOrchestratorRouting ¶ added in v0.6.0
func (t *OrchestratorResponsesCreateResponseBody_Routing) FromOrchestratorRouting(v OrchestratorRouting) error
FromOrchestratorRouting overwrites any union data inside the OrchestratorResponsesCreateResponseBody_Routing as the provided OrchestratorRouting
func (OrchestratorResponsesCreateResponseBody_Routing) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesCreateResponseBody_Routing) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesCreateResponseBody_Routing) MergeOrchestratorResponsesCreateResponseBodyRouting1 ¶ added in v0.6.0
func (t *OrchestratorResponsesCreateResponseBody_Routing) MergeOrchestratorResponsesCreateResponseBodyRouting1(v OrchestratorResponsesCreateResponseBodyRouting1) error
MergeOrchestratorResponsesCreateResponseBodyRouting1 performs a merge with any union data inside the OrchestratorResponsesCreateResponseBody_Routing, using the provided OrchestratorResponsesCreateResponseBodyRouting1
func (*OrchestratorResponsesCreateResponseBody_Routing) MergeOrchestratorRouting ¶ added in v0.6.0
func (t *OrchestratorResponsesCreateResponseBody_Routing) MergeOrchestratorRouting(v OrchestratorRouting) error
MergeOrchestratorRouting performs a merge with any union data inside the OrchestratorResponsesCreateResponseBody_Routing, using the provided OrchestratorRouting
func (*OrchestratorResponsesCreateResponseBody_Routing) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesCreateResponseBody_Routing) UnmarshalJSON(b []byte) error
type OrchestratorResponsesCustomToolCall ¶ added in v0.6.0
type OrchestratorResponsesCustomToolCall struct {
// CallId The unique ID of the custom tool call that was generated.
CallId string `json:"call_id"`
// Id The unique ID of the custom tool call item.
Id string `json:"id"`
// Input The raw freeform input string that was generated, never forced through JSON.
Input string `json:"input"`
// Name The name of the custom tool that was called.
Name string `json:"name"`
// Namespace The namespace associated with the custom tool, if any.
Namespace *string `json:"namespace,omitempty"`
Status OrchestratorResponsesFunctionCallStatus `json:"status"`
// Type The type of the item. Always `custom_tool_call`.
Type OrchestratorResponsesCustomToolCallType `json:"type"`
}
OrchestratorResponsesCustomToolCall A custom (freeform) tool call that was generated by the model.
type OrchestratorResponsesCustomToolCallItemParam ¶ added in v0.6.0
type OrchestratorResponsesCustomToolCallItemParam struct {
// CallId The unique ID of the custom tool call generated by the model.
CallId string `json:"call_id"`
// Id The unique ID of this custom tool call.
Id *string `json:"id,omitempty"`
// Input The raw freeform tool input string, forwarded verbatim.
Input string `json:"input"`
// Name The name of the custom tool to call.
Name string `json:"name"`
// Namespace The namespace associated with the custom tool, if any.
Namespace *string `json:"namespace,omitempty"`
Status *OrchestratorResponsesFunctionCallStatus `json:"status,omitempty"`
// Type The item type. Always `custom_tool_call`.
Type OrchestratorResponsesCustomToolCallItemParamType `json:"type"`
}
OrchestratorResponsesCustomToolCallItemParam A custom (freeform) tool call replayed from a prior response.
type OrchestratorResponsesCustomToolCallItemParamType ¶ added in v0.6.0
type OrchestratorResponsesCustomToolCallItemParamType string
OrchestratorResponsesCustomToolCallItemParamType The item type. Always `custom_tool_call`.
const (
OrchestratorResponsesCustomToolCallItemParamTypeCustomToolCall OrchestratorResponsesCustomToolCallItemParamType = "custom_tool_call"
)
Defines values for OrchestratorResponsesCustomToolCallItemParamType.
func (OrchestratorResponsesCustomToolCallItemParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesCustomToolCallItemParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesCustomToolCallItemParamType enum.
type OrchestratorResponsesCustomToolCallOutputItemParam ¶ added in v0.6.0
type OrchestratorResponsesCustomToolCallOutputItemParam struct {
// CallId The unique ID of the custom tool call generated by the model.
CallId string `json:"call_id"`
// Id The unique ID of the custom tool call output.
Id *string `json:"id,omitempty"`
// Output Text or image output of the custom tool call.
Output OrchestratorResponsesCustomToolCallOutputItemParam_Output `json:"output"`
Status *OrchestratorResponsesFunctionCallStatus `json:"status,omitempty"`
// Type The item type. Always `custom_tool_call_output`.
Type OrchestratorResponsesCustomToolCallOutputItemParamType `json:"type"`
}
OrchestratorResponsesCustomToolCallOutputItemParam The output of a custom tool call.
type OrchestratorResponsesCustomToolCallOutputItemParamOutput0 ¶ added in v0.6.0
type OrchestratorResponsesCustomToolCallOutputItemParamOutput0 = string
OrchestratorResponsesCustomToolCallOutputItemParamOutput0 A string output of the custom tool call.
type OrchestratorResponsesCustomToolCallOutputItemParamOutput1 ¶ added in v0.6.0
type OrchestratorResponsesCustomToolCallOutputItemParamOutput1 = []OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item
OrchestratorResponsesCustomToolCallOutputItemParamOutput1 An array of content outputs (text, image) for the custom tool call.
type OrchestratorResponsesCustomToolCallOutputItemParamType ¶ added in v0.6.0
type OrchestratorResponsesCustomToolCallOutputItemParamType string
OrchestratorResponsesCustomToolCallOutputItemParamType The item type. Always `custom_tool_call_output`.
const (
OrchestratorResponsesCustomToolCallOutputItemParamTypeCustomToolCallOutput OrchestratorResponsesCustomToolCallOutputItemParamType = "custom_tool_call_output"
)
Defines values for OrchestratorResponsesCustomToolCallOutputItemParamType.
func (OrchestratorResponsesCustomToolCallOutputItemParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesCustomToolCallOutputItemParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesCustomToolCallOutputItemParamType enum.
type OrchestratorResponsesCustomToolCallOutputItemParam_Output ¶ added in v0.6.0
type OrchestratorResponsesCustomToolCallOutputItemParam_Output struct {
// contains filtered or unexported fields
}
OrchestratorResponsesCustomToolCallOutputItemParam_Output Text or image output of the custom tool call.
func (OrchestratorResponsesCustomToolCallOutputItemParam_Output) AsOrchestratorResponsesCustomToolCallOutputItemParamOutput0 ¶ added in v0.6.0
func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output) AsOrchestratorResponsesCustomToolCallOutputItemParamOutput0() (OrchestratorResponsesCustomToolCallOutputItemParamOutput0, error)
AsOrchestratorResponsesCustomToolCallOutputItemParamOutput0 returns the union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output as a OrchestratorResponsesCustomToolCallOutputItemParamOutput0
func (OrchestratorResponsesCustomToolCallOutputItemParam_Output) AsOrchestratorResponsesCustomToolCallOutputItemParamOutput1 ¶ added in v0.6.0
func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output) AsOrchestratorResponsesCustomToolCallOutputItemParamOutput1() (OrchestratorResponsesCustomToolCallOutputItemParamOutput1, error)
AsOrchestratorResponsesCustomToolCallOutputItemParamOutput1 returns the union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output as a OrchestratorResponsesCustomToolCallOutputItemParamOutput1
func (*OrchestratorResponsesCustomToolCallOutputItemParam_Output) FromOrchestratorResponsesCustomToolCallOutputItemParamOutput0 ¶ added in v0.6.0
func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output) FromOrchestratorResponsesCustomToolCallOutputItemParamOutput0(v OrchestratorResponsesCustomToolCallOutputItemParamOutput0) error
FromOrchestratorResponsesCustomToolCallOutputItemParamOutput0 overwrites any union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output as the provided OrchestratorResponsesCustomToolCallOutputItemParamOutput0
func (*OrchestratorResponsesCustomToolCallOutputItemParam_Output) FromOrchestratorResponsesCustomToolCallOutputItemParamOutput1 ¶ added in v0.6.0
func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output) FromOrchestratorResponsesCustomToolCallOutputItemParamOutput1(v OrchestratorResponsesCustomToolCallOutputItemParamOutput1) error
FromOrchestratorResponsesCustomToolCallOutputItemParamOutput1 overwrites any union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output as the provided OrchestratorResponsesCustomToolCallOutputItemParamOutput1
func (OrchestratorResponsesCustomToolCallOutputItemParam_Output) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesCustomToolCallOutputItemParam_Output) MergeOrchestratorResponsesCustomToolCallOutputItemParamOutput0 ¶ added in v0.6.0
func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output) MergeOrchestratorResponsesCustomToolCallOutputItemParamOutput0(v OrchestratorResponsesCustomToolCallOutputItemParamOutput0) error
MergeOrchestratorResponsesCustomToolCallOutputItemParamOutput0 performs a merge with any union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output, using the provided OrchestratorResponsesCustomToolCallOutputItemParamOutput0
func (*OrchestratorResponsesCustomToolCallOutputItemParam_Output) MergeOrchestratorResponsesCustomToolCallOutputItemParamOutput1 ¶ added in v0.6.0
func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output) MergeOrchestratorResponsesCustomToolCallOutputItemParamOutput1(v OrchestratorResponsesCustomToolCallOutputItemParamOutput1) error
MergeOrchestratorResponsesCustomToolCallOutputItemParamOutput1 performs a merge with any union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output, using the provided OrchestratorResponsesCustomToolCallOutputItemParamOutput1
func (*OrchestratorResponsesCustomToolCallOutputItemParam_Output) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output) UnmarshalJSON(b []byte) error
type OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item ¶ added in v0.6.0
type OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item A piece of message content, such as text or an image.
func (OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputImageContentParamAutoParam ¶ added in v0.6.0
func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputImageContentParamAutoParam() (OrchestratorResponsesInputImageContentParamAutoParam, error)
AsOrchestratorResponsesInputImageContentParamAutoParam returns the union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item as a OrchestratorResponsesInputImageContentParamAutoParam
func (OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputTextContentParam() (OrchestratorResponsesInputTextContentParam, error)
AsOrchestratorResponsesInputTextContentParam returns the union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item as a OrchestratorResponsesInputTextContentParam
func (OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) Discriminator() (string, error)
func (*OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputImageContentParamAutoParam ¶ added in v0.6.0
func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
FromOrchestratorResponsesInputImageContentParamAutoParam overwrites any union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item as the provided OrchestratorResponsesInputImageContentParamAutoParam
func (*OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
FromOrchestratorResponsesInputTextContentParam overwrites any union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item as the provided OrchestratorResponsesInputTextContentParam
func (OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputImageContentParamAutoParam ¶ added in v0.6.0
func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
MergeOrchestratorResponsesInputImageContentParamAutoParam performs a merge with any union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item, using the provided OrchestratorResponsesInputImageContentParamAutoParam
func (*OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
MergeOrchestratorResponsesInputTextContentParam performs a merge with any union data inside the OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item, using the provided OrchestratorResponsesInputTextContentParam
func (*OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesCustomToolCallOutputItemParam_Output_1_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesCustomToolCallType ¶ added in v0.6.0
type OrchestratorResponsesCustomToolCallType string
OrchestratorResponsesCustomToolCallType The type of the item. Always `custom_tool_call`.
const (
OrchestratorResponsesCustomToolCallTypeCustomToolCall OrchestratorResponsesCustomToolCallType = "custom_tool_call"
)
Defines values for OrchestratorResponsesCustomToolCallType.
func (OrchestratorResponsesCustomToolCallType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesCustomToolCallType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesCustomToolCallType enum.
type OrchestratorResponsesCustomToolParam ¶ added in v0.6.0
type OrchestratorResponsesCustomToolParam struct {
Description *string `json:"description,omitempty"`
// Format The freeform input format constraint ({"type":"text"} or {"type":"grammar","syntax":...,"definition":...}), kept as raw JSON and forwarded verbatim.
Format *map[string]interface{} `json:"format,omitempty"`
Name string `json:"name"`
Type OrchestratorResponsesCustomToolParamType `json:"type"`
}
OrchestratorResponsesCustomToolParam A freeform custom tool whose input is a raw string, optionally constrained by a grammar.
type OrchestratorResponsesCustomToolParamType ¶ added in v0.6.0
type OrchestratorResponsesCustomToolParamType string
OrchestratorResponsesCustomToolParamType defines model for OrchestratorResponsesCustomToolParam.Type.
const (
OrchestratorResponsesCustomToolParamTypeCustom OrchestratorResponsesCustomToolParamType = "custom"
)
Defines values for OrchestratorResponsesCustomToolParamType.
func (OrchestratorResponsesCustomToolParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesCustomToolParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesCustomToolParamType enum.
type OrchestratorResponsesDeveloperMessageItemParam ¶ added in v0.6.0
type OrchestratorResponsesDeveloperMessageItemParam struct {
// Content The message content, as an array of content parts.
Content OrchestratorResponsesDeveloperMessageItemParam_Content `json:"content"`
// Id The unique ID of this message item.
Id *string `json:"id,omitempty"`
// Role The message role. Always `developer`.
Role OrchestratorResponsesDeveloperMessageItemParamRole `json:"role"`
// Status The status of the message item.
Status *string `json:"status,omitempty"`
// Type The item type. Always `message`.
Type OrchestratorResponsesDeveloperMessageItemParamType `json:"type"`
}
OrchestratorResponsesDeveloperMessageItemParam defines model for OrchestratorResponsesDeveloperMessageItemParam.
type OrchestratorResponsesDeveloperMessageItemParamContent0 ¶ added in v0.6.0
type OrchestratorResponsesDeveloperMessageItemParamContent0 = []OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item
OrchestratorResponsesDeveloperMessageItemParamContent0 defines model for OrchestratorResponsesDeveloperMessageItemParam.Content.0.
type OrchestratorResponsesDeveloperMessageItemParamContent1 ¶ added in v0.6.0
type OrchestratorResponsesDeveloperMessageItemParamContent1 = string
OrchestratorResponsesDeveloperMessageItemParamContent1 The message content, as a single string.
type OrchestratorResponsesDeveloperMessageItemParamRole ¶ added in v0.6.0
type OrchestratorResponsesDeveloperMessageItemParamRole string
OrchestratorResponsesDeveloperMessageItemParamRole The message role. Always `developer`.
const (
OrchestratorResponsesDeveloperMessageItemParamRoleDeveloper OrchestratorResponsesDeveloperMessageItemParamRole = "developer"
)
Defines values for OrchestratorResponsesDeveloperMessageItemParamRole.
func (OrchestratorResponsesDeveloperMessageItemParamRole) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesDeveloperMessageItemParamRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesDeveloperMessageItemParamRole enum.
type OrchestratorResponsesDeveloperMessageItemParamType ¶ added in v0.6.0
type OrchestratorResponsesDeveloperMessageItemParamType string
OrchestratorResponsesDeveloperMessageItemParamType The item type. Always `message`.
const (
OrchestratorResponsesDeveloperMessageItemParamTypeMessage OrchestratorResponsesDeveloperMessageItemParamType = "message"
)
Defines values for OrchestratorResponsesDeveloperMessageItemParamType.
func (OrchestratorResponsesDeveloperMessageItemParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesDeveloperMessageItemParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesDeveloperMessageItemParamType enum.
type OrchestratorResponsesDeveloperMessageItemParam_Content ¶ added in v0.6.0
type OrchestratorResponsesDeveloperMessageItemParam_Content struct {
// contains filtered or unexported fields
}
OrchestratorResponsesDeveloperMessageItemParam_Content The message content, as an array of content parts.
func (OrchestratorResponsesDeveloperMessageItemParam_Content) AsOrchestratorResponsesDeveloperMessageItemParamContent0 ¶ added in v0.6.0
func (t OrchestratorResponsesDeveloperMessageItemParam_Content) AsOrchestratorResponsesDeveloperMessageItemParamContent0() (OrchestratorResponsesDeveloperMessageItemParamContent0, error)
AsOrchestratorResponsesDeveloperMessageItemParamContent0 returns the union data inside the OrchestratorResponsesDeveloperMessageItemParam_Content as a OrchestratorResponsesDeveloperMessageItemParamContent0
func (OrchestratorResponsesDeveloperMessageItemParam_Content) AsOrchestratorResponsesDeveloperMessageItemParamContent1 ¶ added in v0.6.0
func (t OrchestratorResponsesDeveloperMessageItemParam_Content) AsOrchestratorResponsesDeveloperMessageItemParamContent1() (OrchestratorResponsesDeveloperMessageItemParamContent1, error)
AsOrchestratorResponsesDeveloperMessageItemParamContent1 returns the union data inside the OrchestratorResponsesDeveloperMessageItemParam_Content as a OrchestratorResponsesDeveloperMessageItemParamContent1
func (*OrchestratorResponsesDeveloperMessageItemParam_Content) FromOrchestratorResponsesDeveloperMessageItemParamContent0 ¶ added in v0.6.0
func (t *OrchestratorResponsesDeveloperMessageItemParam_Content) FromOrchestratorResponsesDeveloperMessageItemParamContent0(v OrchestratorResponsesDeveloperMessageItemParamContent0) error
FromOrchestratorResponsesDeveloperMessageItemParamContent0 overwrites any union data inside the OrchestratorResponsesDeveloperMessageItemParam_Content as the provided OrchestratorResponsesDeveloperMessageItemParamContent0
func (*OrchestratorResponsesDeveloperMessageItemParam_Content) FromOrchestratorResponsesDeveloperMessageItemParamContent1 ¶ added in v0.6.0
func (t *OrchestratorResponsesDeveloperMessageItemParam_Content) FromOrchestratorResponsesDeveloperMessageItemParamContent1(v OrchestratorResponsesDeveloperMessageItemParamContent1) error
FromOrchestratorResponsesDeveloperMessageItemParamContent1 overwrites any union data inside the OrchestratorResponsesDeveloperMessageItemParam_Content as the provided OrchestratorResponsesDeveloperMessageItemParamContent1
func (OrchestratorResponsesDeveloperMessageItemParam_Content) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesDeveloperMessageItemParam_Content) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesDeveloperMessageItemParam_Content) MergeOrchestratorResponsesDeveloperMessageItemParamContent0 ¶ added in v0.6.0
func (t *OrchestratorResponsesDeveloperMessageItemParam_Content) MergeOrchestratorResponsesDeveloperMessageItemParamContent0(v OrchestratorResponsesDeveloperMessageItemParamContent0) error
MergeOrchestratorResponsesDeveloperMessageItemParamContent0 performs a merge with any union data inside the OrchestratorResponsesDeveloperMessageItemParam_Content, using the provided OrchestratorResponsesDeveloperMessageItemParamContent0
func (*OrchestratorResponsesDeveloperMessageItemParam_Content) MergeOrchestratorResponsesDeveloperMessageItemParamContent1 ¶ added in v0.6.0
func (t *OrchestratorResponsesDeveloperMessageItemParam_Content) MergeOrchestratorResponsesDeveloperMessageItemParamContent1(v OrchestratorResponsesDeveloperMessageItemParamContent1) error
MergeOrchestratorResponsesDeveloperMessageItemParamContent1 performs a merge with any union data inside the OrchestratorResponsesDeveloperMessageItemParam_Content, using the provided OrchestratorResponsesDeveloperMessageItemParamContent1
func (*OrchestratorResponsesDeveloperMessageItemParam_Content) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesDeveloperMessageItemParam_Content) UnmarshalJSON(b []byte) error
type OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item ¶ added in v0.6.0
type OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item defines model for OrchestratorResponsesDeveloperMessageItemParam.Content.0.Item.
func (OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputTextContentParam() (OrchestratorResponsesInputTextContentParam, error)
AsOrchestratorResponsesInputTextContentParam returns the union data inside the OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item as a OrchestratorResponsesInputTextContentParam
func (OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) Discriminator() (string, error)
func (*OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
FromOrchestratorResponsesInputTextContentParam overwrites any union data inside the OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item as the provided OrchestratorResponsesInputTextContentParam
func (OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
MergeOrchestratorResponsesInputTextContentParam performs a merge with any union data inside the OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item, using the provided OrchestratorResponsesInputTextContentParam
func (*OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesDeveloperMessageItemParam_Content_0_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesError ¶ added in v0.6.0
type OrchestratorResponsesError struct {
// Code A machine-readable error code that was returned.
Code string `json:"code"`
// Message A human-readable description of the error that was returned.
Message string `json:"message"`
}
OrchestratorResponsesError An error that occurred while generating the response.
type OrchestratorResponsesErrorPayload ¶ added in v0.6.0
type OrchestratorResponsesErrorPayload struct {
// Code The error code that was emitted, if any.
Code *string `json:"code"`
// Headers The response headers that were emitted with the error, if any.
Headers *map[string]string `json:"headers,omitempty"`
// Message The human-readable error message that was emitted.
Message string `json:"message"`
// Param The parameter name that was associated with the error, if any.
Param *string `json:"param"`
// Type The error type that was emitted.
Type string `json:"type"`
}
OrchestratorResponsesErrorPayload An error payload that was emitted for a streaming error event.
type OrchestratorResponsesErrorResponse ¶ added in v0.6.0
type OrchestratorResponsesErrorResponse struct {
// Error An error payload that was emitted for a streaming error event.
Error OrchestratorResponsesErrorPayload `json:"error"`
}
OrchestratorResponsesErrorResponse An error returned before streaming begins.
type OrchestratorResponsesErrorStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesErrorStreamingEvent struct {
// Error An error payload that was emitted for a streaming error event.
Error OrchestratorResponsesErrorPayload `json:"error"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `error`.
Type OrchestratorResponsesErrorStreamingEventType `json:"type"`
}
OrchestratorResponsesErrorStreamingEvent A streaming event that indicated an error was emitted.
type OrchestratorResponsesErrorStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesErrorStreamingEventType string
OrchestratorResponsesErrorStreamingEventType The type of the event, always `error`.
const (
OrchestratorResponsesErrorStreamingEventTypeError OrchestratorResponsesErrorStreamingEventType = "error"
)
Defines values for OrchestratorResponsesErrorStreamingEventType.
func (OrchestratorResponsesErrorStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesErrorStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesErrorStreamingEventType enum.
type OrchestratorResponsesFunctionCall ¶ added in v0.6.0
type OrchestratorResponsesFunctionCall struct {
// Arguments The arguments JSON string that was generated.
Arguments string `json:"arguments"`
// CallId The unique ID of the function tool call that was generated.
CallId string `json:"call_id"`
// Id The unique ID of the function call item.
Id string `json:"id"`
// Name The name of the function that was called.
Name string `json:"name"`
// Namespace The namespace associated with the function tool, if any.
Namespace *string `json:"namespace,omitempty"`
Status OrchestratorResponsesFunctionCallStatus `json:"status"`
// Type The type of the item. Always `function_call`.
Type OrchestratorResponsesFunctionCallType `json:"type"`
}
OrchestratorResponsesFunctionCall A function tool call that was generated by the model.
type OrchestratorResponsesFunctionCallItemParam ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallItemParam struct {
// Arguments The function arguments as a JSON string.
Arguments string `json:"arguments"`
// CallId The unique ID of the function tool call generated by the model.
CallId string `json:"call_id"`
// Id The unique ID of this function tool call.
Id *string `json:"id,omitempty"`
// Name The name of the function to call.
Name string `json:"name"`
// Namespace The namespace associated with the function tool, if any.
Namespace *string `json:"namespace,omitempty"`
Status *OrchestratorResponsesFunctionCallStatus `json:"status,omitempty"`
// Type The item type. Always `function_call`.
Type OrchestratorResponsesFunctionCallItemParamType `json:"type"`
}
OrchestratorResponsesFunctionCallItemParam defines model for OrchestratorResponsesFunctionCallItemParam.
type OrchestratorResponsesFunctionCallItemParamType ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallItemParamType string
OrchestratorResponsesFunctionCallItemParamType The item type. Always `function_call`.
const (
OrchestratorResponsesFunctionCallItemParamTypeFunctionCall OrchestratorResponsesFunctionCallItemParamType = "function_call"
)
Defines values for OrchestratorResponsesFunctionCallItemParamType.
func (OrchestratorResponsesFunctionCallItemParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesFunctionCallItemParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesFunctionCallItemParamType enum.
type OrchestratorResponsesFunctionCallOutput ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutput struct {
// CallId The unique ID of the function tool call generated by the model.
CallId string `json:"call_id"`
// Id The unique ID of the function tool call output. Populated when this item is returned via API.
Id string `json:"id"`
Output OrchestratorResponsesFunctionCallOutput_Output `json:"output"`
// Status Similar to `FunctionCallStatus`. All three options are allowed here for compatibility, but because in practice these items will be provided by developers, only `completed` should be used.
Status OrchestratorResponsesFunctionCallOutputStatusEnum `json:"status"`
// Type The type of the function tool call output. Always `function_call_output`.
Type OrchestratorResponsesFunctionCallOutputType `json:"type"`
}
OrchestratorResponsesFunctionCallOutput A function tool call output that was returned by the tool.
type OrchestratorResponsesFunctionCallOutputItemParam ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutputItemParam struct {
// CallId The unique ID of the function tool call generated by the model.
CallId string `json:"call_id"`
// Id The unique ID of the function tool call output. Populated when this item is returned via API.
Id *string `json:"id,omitempty"`
// Output Text, image, or file output of the function tool call.
Output OrchestratorResponsesFunctionCallOutputItemParam_Output `json:"output"`
Status *OrchestratorResponsesFunctionCallStatus `json:"status,omitempty"`
// Type The type of the function tool call output. Always `function_call_output`.
Type OrchestratorResponsesFunctionCallOutputItemParamType `json:"type"`
}
OrchestratorResponsesFunctionCallOutputItemParam The output of a function tool call.
type OrchestratorResponsesFunctionCallOutputItemParamOutput0 ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutputItemParamOutput0 = string
OrchestratorResponsesFunctionCallOutputItemParamOutput0 A JSON string of the output of the function tool call.
type OrchestratorResponsesFunctionCallOutputItemParamOutput1 ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutputItemParamOutput1 = []OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item
OrchestratorResponsesFunctionCallOutputItemParamOutput1 An array of content outputs (text, image, file) for the function tool call.
type OrchestratorResponsesFunctionCallOutputItemParamType ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutputItemParamType string
OrchestratorResponsesFunctionCallOutputItemParamType The type of the function tool call output. Always `function_call_output`.
const (
OrchestratorResponsesFunctionCallOutputItemParamTypeFunctionCallOutput OrchestratorResponsesFunctionCallOutputItemParamType = "function_call_output"
)
Defines values for OrchestratorResponsesFunctionCallOutputItemParamType.
func (OrchestratorResponsesFunctionCallOutputItemParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesFunctionCallOutputItemParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesFunctionCallOutputItemParamType enum.
type OrchestratorResponsesFunctionCallOutputItemParam_Output ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutputItemParam_Output struct {
// contains filtered or unexported fields
}
OrchestratorResponsesFunctionCallOutputItemParam_Output Text, image, or file output of the function tool call.
func (OrchestratorResponsesFunctionCallOutputItemParam_Output) AsOrchestratorResponsesFunctionCallOutputItemParamOutput0 ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutputItemParam_Output) AsOrchestratorResponsesFunctionCallOutputItemParamOutput0() (OrchestratorResponsesFunctionCallOutputItemParamOutput0, error)
AsOrchestratorResponsesFunctionCallOutputItemParamOutput0 returns the union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output as a OrchestratorResponsesFunctionCallOutputItemParamOutput0
func (OrchestratorResponsesFunctionCallOutputItemParam_Output) AsOrchestratorResponsesFunctionCallOutputItemParamOutput1 ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutputItemParam_Output) AsOrchestratorResponsesFunctionCallOutputItemParamOutput1() (OrchestratorResponsesFunctionCallOutputItemParamOutput1, error)
AsOrchestratorResponsesFunctionCallOutputItemParamOutput1 returns the union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output as a OrchestratorResponsesFunctionCallOutputItemParamOutput1
func (*OrchestratorResponsesFunctionCallOutputItemParam_Output) FromOrchestratorResponsesFunctionCallOutputItemParamOutput0 ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output) FromOrchestratorResponsesFunctionCallOutputItemParamOutput0(v OrchestratorResponsesFunctionCallOutputItemParamOutput0) error
FromOrchestratorResponsesFunctionCallOutputItemParamOutput0 overwrites any union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output as the provided OrchestratorResponsesFunctionCallOutputItemParamOutput0
func (*OrchestratorResponsesFunctionCallOutputItemParam_Output) FromOrchestratorResponsesFunctionCallOutputItemParamOutput1 ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output) FromOrchestratorResponsesFunctionCallOutputItemParamOutput1(v OrchestratorResponsesFunctionCallOutputItemParamOutput1) error
FromOrchestratorResponsesFunctionCallOutputItemParamOutput1 overwrites any union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output as the provided OrchestratorResponsesFunctionCallOutputItemParamOutput1
func (OrchestratorResponsesFunctionCallOutputItemParam_Output) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutputItemParam_Output) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesFunctionCallOutputItemParam_Output) MergeOrchestratorResponsesFunctionCallOutputItemParamOutput0 ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output) MergeOrchestratorResponsesFunctionCallOutputItemParamOutput0(v OrchestratorResponsesFunctionCallOutputItemParamOutput0) error
MergeOrchestratorResponsesFunctionCallOutputItemParamOutput0 performs a merge with any union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output, using the provided OrchestratorResponsesFunctionCallOutputItemParamOutput0
func (*OrchestratorResponsesFunctionCallOutputItemParam_Output) MergeOrchestratorResponsesFunctionCallOutputItemParamOutput1 ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output) MergeOrchestratorResponsesFunctionCallOutputItemParamOutput1(v OrchestratorResponsesFunctionCallOutputItemParamOutput1) error
MergeOrchestratorResponsesFunctionCallOutputItemParamOutput1 performs a merge with any union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output, using the provided OrchestratorResponsesFunctionCallOutputItemParamOutput1
func (*OrchestratorResponsesFunctionCallOutputItemParam_Output) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output) UnmarshalJSON(b []byte) error
type OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item A piece of message content, such as text, an image, or a file.
func (OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputImageContentParamAutoParam ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputImageContentParamAutoParam() (OrchestratorResponsesInputImageContentParamAutoParam, error)
AsOrchestratorResponsesInputImageContentParamAutoParam returns the union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item as a OrchestratorResponsesInputImageContentParamAutoParam
func (OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) AsOrchestratorResponsesInputTextContentParam() (OrchestratorResponsesInputTextContentParam, error)
AsOrchestratorResponsesInputTextContentParam returns the union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item as a OrchestratorResponsesInputTextContentParam
func (OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) Discriminator() (string, error)
func (*OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputImageContentParamAutoParam ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
FromOrchestratorResponsesInputImageContentParamAutoParam overwrites any union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item as the provided OrchestratorResponsesInputImageContentParamAutoParam
func (*OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) FromOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
FromOrchestratorResponsesInputTextContentParam overwrites any union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item as the provided OrchestratorResponsesInputTextContentParam
func (OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputImageContentParamAutoParam ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
MergeOrchestratorResponsesInputImageContentParamAutoParam performs a merge with any union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item, using the provided OrchestratorResponsesInputImageContentParamAutoParam
func (*OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) MergeOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
MergeOrchestratorResponsesInputTextContentParam performs a merge with any union data inside the OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item, using the provided OrchestratorResponsesInputTextContentParam
func (*OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutputItemParam_Output_1_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesFunctionCallOutputOutput0 ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutputOutput0 = string
OrchestratorResponsesFunctionCallOutputOutput0 A JSON string of the output of the function tool call.
type OrchestratorResponsesFunctionCallOutputOutput1 ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutputOutput1 = []OrchestratorResponsesFunctionCallOutput_Output_1_Item
OrchestratorResponsesFunctionCallOutputOutput1 An array of output contents (images, files, text) for the function tool call.
type OrchestratorResponsesFunctionCallOutputStatusEnum ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutputStatusEnum string
OrchestratorResponsesFunctionCallOutputStatusEnum Similar to `FunctionCallStatus`. All three options are allowed here for compatibility, but because in practice these items will be provided by developers, only `completed` should be used.
const ( OrchestratorResponsesFunctionCallOutputStatusEnumCompleted OrchestratorResponsesFunctionCallOutputStatusEnum = "completed" OrchestratorResponsesFunctionCallOutputStatusEnumInProgress OrchestratorResponsesFunctionCallOutputStatusEnum = "in_progress" OrchestratorResponsesFunctionCallOutputStatusEnumIncomplete OrchestratorResponsesFunctionCallOutputStatusEnum = "incomplete" )
Defines values for OrchestratorResponsesFunctionCallOutputStatusEnum.
func (OrchestratorResponsesFunctionCallOutputStatusEnum) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesFunctionCallOutputStatusEnum) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesFunctionCallOutputStatusEnum enum.
type OrchestratorResponsesFunctionCallOutputType ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutputType string
OrchestratorResponsesFunctionCallOutputType The type of the function tool call output. Always `function_call_output`.
const (
OrchestratorResponsesFunctionCallOutputTypeFunctionCallOutput OrchestratorResponsesFunctionCallOutputType = "function_call_output"
)
Defines values for OrchestratorResponsesFunctionCallOutputType.
func (OrchestratorResponsesFunctionCallOutputType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesFunctionCallOutputType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesFunctionCallOutputType enum.
type OrchestratorResponsesFunctionCallOutput_Output ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutput_Output struct {
// contains filtered or unexported fields
}
OrchestratorResponsesFunctionCallOutput_Output defines model for OrchestratorResponsesFunctionCallOutput.Output.
func (OrchestratorResponsesFunctionCallOutput_Output) AsOrchestratorResponsesFunctionCallOutputOutput0 ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutput_Output) AsOrchestratorResponsesFunctionCallOutputOutput0() (OrchestratorResponsesFunctionCallOutputOutput0, error)
AsOrchestratorResponsesFunctionCallOutputOutput0 returns the union data inside the OrchestratorResponsesFunctionCallOutput_Output as a OrchestratorResponsesFunctionCallOutputOutput0
func (OrchestratorResponsesFunctionCallOutput_Output) AsOrchestratorResponsesFunctionCallOutputOutput1 ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutput_Output) AsOrchestratorResponsesFunctionCallOutputOutput1() (OrchestratorResponsesFunctionCallOutputOutput1, error)
AsOrchestratorResponsesFunctionCallOutputOutput1 returns the union data inside the OrchestratorResponsesFunctionCallOutput_Output as a OrchestratorResponsesFunctionCallOutputOutput1
func (*OrchestratorResponsesFunctionCallOutput_Output) FromOrchestratorResponsesFunctionCallOutputOutput0 ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output) FromOrchestratorResponsesFunctionCallOutputOutput0(v OrchestratorResponsesFunctionCallOutputOutput0) error
FromOrchestratorResponsesFunctionCallOutputOutput0 overwrites any union data inside the OrchestratorResponsesFunctionCallOutput_Output as the provided OrchestratorResponsesFunctionCallOutputOutput0
func (*OrchestratorResponsesFunctionCallOutput_Output) FromOrchestratorResponsesFunctionCallOutputOutput1 ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output) FromOrchestratorResponsesFunctionCallOutputOutput1(v OrchestratorResponsesFunctionCallOutputOutput1) error
FromOrchestratorResponsesFunctionCallOutputOutput1 overwrites any union data inside the OrchestratorResponsesFunctionCallOutput_Output as the provided OrchestratorResponsesFunctionCallOutputOutput1
func (OrchestratorResponsesFunctionCallOutput_Output) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutput_Output) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesFunctionCallOutput_Output) MergeOrchestratorResponsesFunctionCallOutputOutput0 ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output) MergeOrchestratorResponsesFunctionCallOutputOutput0(v OrchestratorResponsesFunctionCallOutputOutput0) error
MergeOrchestratorResponsesFunctionCallOutputOutput0 performs a merge with any union data inside the OrchestratorResponsesFunctionCallOutput_Output, using the provided OrchestratorResponsesFunctionCallOutputOutput0
func (*OrchestratorResponsesFunctionCallOutput_Output) MergeOrchestratorResponsesFunctionCallOutputOutput1 ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output) MergeOrchestratorResponsesFunctionCallOutputOutput1(v OrchestratorResponsesFunctionCallOutputOutput1) error
MergeOrchestratorResponsesFunctionCallOutputOutput1 performs a merge with any union data inside the OrchestratorResponsesFunctionCallOutput_Output, using the provided OrchestratorResponsesFunctionCallOutputOutput1
func (*OrchestratorResponsesFunctionCallOutput_Output) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output) UnmarshalJSON(b []byte) error
type OrchestratorResponsesFunctionCallOutput_Output_1_Item ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallOutput_Output_1_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesFunctionCallOutput_Output_1_Item A content part that makes up an input or output item.
func (OrchestratorResponsesFunctionCallOutput_Output_1_Item) AsOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
AsOrchestratorResponsesInputFileContent returns the union data inside the OrchestratorResponsesFunctionCallOutput_Output_1_Item as a OrchestratorResponsesInputFileContent
func (OrchestratorResponsesFunctionCallOutput_Output_1_Item) AsOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
AsOrchestratorResponsesInputImageContent returns the union data inside the OrchestratorResponsesFunctionCallOutput_Output_1_Item as a OrchestratorResponsesInputImageContent
func (OrchestratorResponsesFunctionCallOutput_Output_1_Item) AsOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
AsOrchestratorResponsesInputTextContent returns the union data inside the OrchestratorResponsesFunctionCallOutput_Output_1_Item as a OrchestratorResponsesInputTextContent
func (OrchestratorResponsesFunctionCallOutput_Output_1_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) Discriminator() (string, error)
func (*OrchestratorResponsesFunctionCallOutput_Output_1_Item) FromOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
FromOrchestratorResponsesInputFileContent overwrites any union data inside the OrchestratorResponsesFunctionCallOutput_Output_1_Item as the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesFunctionCallOutput_Output_1_Item) FromOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
FromOrchestratorResponsesInputImageContent overwrites any union data inside the OrchestratorResponsesFunctionCallOutput_Output_1_Item as the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesFunctionCallOutput_Output_1_Item) FromOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
FromOrchestratorResponsesInputTextContent overwrites any union data inside the OrchestratorResponsesFunctionCallOutput_Output_1_Item as the provided OrchestratorResponsesInputTextContent
func (OrchestratorResponsesFunctionCallOutput_Output_1_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesFunctionCallOutput_Output_1_Item) MergeOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
MergeOrchestratorResponsesInputFileContent performs a merge with any union data inside the OrchestratorResponsesFunctionCallOutput_Output_1_Item, using the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesFunctionCallOutput_Output_1_Item) MergeOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
MergeOrchestratorResponsesInputImageContent performs a merge with any union data inside the OrchestratorResponsesFunctionCallOutput_Output_1_Item, using the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesFunctionCallOutput_Output_1_Item) MergeOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
MergeOrchestratorResponsesInputTextContent performs a merge with any union data inside the OrchestratorResponsesFunctionCallOutput_Output_1_Item, using the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesFunctionCallOutput_Output_1_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesFunctionCallOutput_Output_1_Item) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesFunctionCallOutput_Output_1_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesFunctionCallOutput_Output_1_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesFunctionCallStatus ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallStatus string
OrchestratorResponsesFunctionCallStatus defines model for OrchestratorResponsesFunctionCallStatus.
const ( OrchestratorResponsesFunctionCallStatusCompleted OrchestratorResponsesFunctionCallStatus = "completed" OrchestratorResponsesFunctionCallStatusInProgress OrchestratorResponsesFunctionCallStatus = "in_progress" OrchestratorResponsesFunctionCallStatusIncomplete OrchestratorResponsesFunctionCallStatus = "incomplete" )
Defines values for OrchestratorResponsesFunctionCallStatus.
func (OrchestratorResponsesFunctionCallStatus) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesFunctionCallStatus) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesFunctionCallStatus enum.
type OrchestratorResponsesFunctionCallType ¶ added in v0.6.0
type OrchestratorResponsesFunctionCallType string
OrchestratorResponsesFunctionCallType The type of the item. Always `function_call`.
const (
OrchestratorResponsesFunctionCallTypeFunctionCall OrchestratorResponsesFunctionCallType = "function_call"
)
Defines values for OrchestratorResponsesFunctionCallType.
func (OrchestratorResponsesFunctionCallType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesFunctionCallType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesFunctionCallType enum.
type OrchestratorResponsesFunctionTool ¶ added in v0.6.0
type OrchestratorResponsesFunctionTool struct {
// Description A description of the function. Used by the model to determine whether or not to call the function.
Description *string `json:"description"`
// Name The name of the function to call.
Name string `json:"name"`
// Parameters A JSON schema object describing the parameters of the function.
Parameters *map[string]interface{} `json:"parameters"`
// Strict Whether to enforce strict parameter validation. Default `true`.
Strict *bool `json:"strict"`
// Type The type of the function tool. Always `function`.
Type OrchestratorResponsesFunctionToolType `json:"type"`
}
OrchestratorResponsesFunctionTool Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).
type OrchestratorResponsesFunctionToolChoice ¶ added in v0.6.0
type OrchestratorResponsesFunctionToolChoice struct {
Name *string `json:"name,omitempty"`
Type OrchestratorResponsesFunctionToolChoiceType `json:"type"`
}
OrchestratorResponsesFunctionToolChoice defines model for OrchestratorResponsesFunctionToolChoice.
type OrchestratorResponsesFunctionToolChoiceType ¶ added in v0.6.0
type OrchestratorResponsesFunctionToolChoiceType string
OrchestratorResponsesFunctionToolChoiceType defines model for OrchestratorResponsesFunctionToolChoice.Type.
const (
OrchestratorResponsesFunctionToolChoiceTypeFunction OrchestratorResponsesFunctionToolChoiceType = "function"
)
Defines values for OrchestratorResponsesFunctionToolChoiceType.
func (OrchestratorResponsesFunctionToolChoiceType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesFunctionToolChoiceType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesFunctionToolChoiceType enum.
type OrchestratorResponsesFunctionToolParam ¶ added in v0.6.0
type OrchestratorResponsesFunctionToolParam struct {
Description string `json:"description"`
Name string `json:"name"`
// Parameters JSON Schema for the function parameters, kept as raw JSON and forwarded verbatim.
Parameters *map[string]interface{} `json:"parameters,omitempty"`
Strict *bool `json:"strict,omitempty"`
Type OrchestratorResponsesFunctionToolParamType `json:"type"`
}
OrchestratorResponsesFunctionToolParam defines model for OrchestratorResponsesFunctionToolParam.
type OrchestratorResponsesFunctionToolParamType ¶ added in v0.6.0
type OrchestratorResponsesFunctionToolParamType string
OrchestratorResponsesFunctionToolParamType defines model for OrchestratorResponsesFunctionToolParam.Type.
const (
OrchestratorResponsesFunctionToolParamTypeFunction OrchestratorResponsesFunctionToolParamType = "function"
)
Defines values for OrchestratorResponsesFunctionToolParamType.
func (OrchestratorResponsesFunctionToolParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesFunctionToolParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesFunctionToolParamType enum.
type OrchestratorResponsesFunctionToolType ¶ added in v0.6.0
type OrchestratorResponsesFunctionToolType string
OrchestratorResponsesFunctionToolType The type of the function tool. Always `function`.
const (
OrchestratorResponsesFunctionToolTypeFunction OrchestratorResponsesFunctionToolType = "function"
)
Defines values for OrchestratorResponsesFunctionToolType.
func (OrchestratorResponsesFunctionToolType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesFunctionToolType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesFunctionToolType enum.
type OrchestratorResponsesImageDetail ¶ added in v0.6.0
type OrchestratorResponsesImageDetail string
OrchestratorResponsesImageDetail defines model for OrchestratorResponsesImageDetail.
const ( OrchestratorResponsesImageDetailAuto OrchestratorResponsesImageDetail = "auto" OrchestratorResponsesImageDetailHigh OrchestratorResponsesImageDetail = "high" OrchestratorResponsesImageDetailLow OrchestratorResponsesImageDetail = "low" )
Defines values for OrchestratorResponsesImageDetail.
func (OrchestratorResponsesImageDetail) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesImageDetail) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesImageDetail enum.
type OrchestratorResponsesIncludeEnum ¶ added in v0.6.0
type OrchestratorResponsesIncludeEnum string
OrchestratorResponsesIncludeEnum defines model for OrchestratorResponsesIncludeEnum.
const (
OrchestratorResponsesIncludeEnumReasoningEncryptedContent OrchestratorResponsesIncludeEnum = "reasoning.encrypted_content"
)
Defines values for OrchestratorResponsesIncludeEnum.
func (OrchestratorResponsesIncludeEnum) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesIncludeEnum) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesIncludeEnum enum.
type OrchestratorResponsesIncompleteDetails ¶ added in v0.6.0
type OrchestratorResponsesIncompleteDetails struct {
// Reason The reason the response could not be completed.
Reason string `json:"reason"`
}
OrchestratorResponsesIncompleteDetails Details about why the response was incomplete.
type OrchestratorResponsesInputFileContent ¶ added in v0.6.0
type OrchestratorResponsesInputFileContent struct {
// FileUrl The URL of the file to be sent to the model.
FileUrl *string `json:"file_url,omitempty"`
// Filename The name of the file to be sent to the model.
Filename *string `json:"filename,omitempty"`
// Type The type of the input item. Always `input_file`.
Type OrchestratorResponsesInputFileContentType `json:"type"`
}
OrchestratorResponsesInputFileContent A file input to the model.
type OrchestratorResponsesInputFileContentType ¶ added in v0.6.0
type OrchestratorResponsesInputFileContentType string
OrchestratorResponsesInputFileContentType The type of the input item. Always `input_file`.
const (
OrchestratorResponsesInputFileContentTypeInputFile OrchestratorResponsesInputFileContentType = "input_file"
)
Defines values for OrchestratorResponsesInputFileContentType.
func (OrchestratorResponsesInputFileContentType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesInputFileContentType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesInputFileContentType enum.
type OrchestratorResponsesInputImageContent ¶ added in v0.6.0
type OrchestratorResponsesInputImageContent struct {
Detail OrchestratorResponsesImageDetail `json:"detail"`
// ImageUrl The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.
ImageUrl *string `json:"image_url"`
// Type The type of the input item. Always `input_image`.
Type OrchestratorResponsesInputImageContentType `json:"type"`
}
OrchestratorResponsesInputImageContent An image input to the model. Learn about [image inputs](/docs/guides/vision).
type OrchestratorResponsesInputImageContentParamAutoParam ¶ added in v0.6.0
type OrchestratorResponsesInputImageContentParamAutoParam struct {
Detail *OrchestratorResponsesImageDetail `json:"detail,omitempty"`
// ImageUrl The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.
ImageUrl *string `json:"image_url,omitempty"`
// Type The type of the input item. Always `input_image`.
Type OrchestratorResponsesInputImageContentParamAutoParamType `json:"type"`
}
OrchestratorResponsesInputImageContentParamAutoParam An image input to the model. Learn about [image inputs](/docs/guides/vision)
type OrchestratorResponsesInputImageContentParamAutoParamType ¶ added in v0.6.0
type OrchestratorResponsesInputImageContentParamAutoParamType string
OrchestratorResponsesInputImageContentParamAutoParamType The type of the input item. Always `input_image`.
const (
OrchestratorResponsesInputImageContentParamAutoParamTypeInputImage OrchestratorResponsesInputImageContentParamAutoParamType = "input_image"
)
Defines values for OrchestratorResponsesInputImageContentParamAutoParamType.
func (OrchestratorResponsesInputImageContentParamAutoParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesInputImageContentParamAutoParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesInputImageContentParamAutoParamType enum.
type OrchestratorResponsesInputImageContentType ¶ added in v0.6.0
type OrchestratorResponsesInputImageContentType string
OrchestratorResponsesInputImageContentType The type of the input item. Always `input_image`.
const (
OrchestratorResponsesInputImageContentTypeInputImage OrchestratorResponsesInputImageContentType = "input_image"
)
Defines values for OrchestratorResponsesInputImageContentType.
func (OrchestratorResponsesInputImageContentType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesInputImageContentType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesInputImageContentType enum.
type OrchestratorResponsesInputTextContent ¶ added in v0.6.0
type OrchestratorResponsesInputTextContent struct {
// Text The text input to the model.
Text string `json:"text"`
// Type The type of the input item. Always `input_text`.
Type OrchestratorResponsesInputTextContentType `json:"type"`
}
OrchestratorResponsesInputTextContent A text input to the model.
type OrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
type OrchestratorResponsesInputTextContentParam struct {
// Text The text input to the model.
Text string `json:"text"`
// Type The type of the input item. Always `input_text`.
Type OrchestratorResponsesInputTextContentParamType `json:"type"`
}
OrchestratorResponsesInputTextContentParam A text input to the model.
type OrchestratorResponsesInputTextContentParamType ¶ added in v0.6.0
type OrchestratorResponsesInputTextContentParamType string
OrchestratorResponsesInputTextContentParamType The type of the input item. Always `input_text`.
const (
OrchestratorResponsesInputTextContentParamTypeInputText OrchestratorResponsesInputTextContentParamType = "input_text"
)
Defines values for OrchestratorResponsesInputTextContentParamType.
func (OrchestratorResponsesInputTextContentParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesInputTextContentParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesInputTextContentParamType enum.
type OrchestratorResponsesInputTextContentType ¶ added in v0.6.0
type OrchestratorResponsesInputTextContentType string
OrchestratorResponsesInputTextContentType The type of the input item. Always `input_text`.
const (
OrchestratorResponsesInputTextContentTypeInputText OrchestratorResponsesInputTextContentType = "input_text"
)
Defines values for OrchestratorResponsesInputTextContentType.
func (OrchestratorResponsesInputTextContentType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesInputTextContentType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesInputTextContentType enum.
type OrchestratorResponsesInputTokensDetails ¶ added in v0.6.0
type OrchestratorResponsesInputTokensDetails struct {
// CacheWriteTokens The number of input tokens written to the prompt cache. Present only when cache writes occur.
CacheWriteTokens *int `json:"cache_write_tokens,omitempty"`
// CachedTokens The number of input tokens that were served from cache.
CachedTokens int `json:"cached_tokens"`
}
OrchestratorResponsesInputTokensDetails A breakdown of input token usage that was recorded.
type OrchestratorResponsesInputVideoContent ¶ added in v0.6.0
type OrchestratorResponsesInputVideoContent struct {
// Type The type of the input content. Always `input_video`.
Type OrchestratorResponsesInputVideoContentType `json:"type"`
// VideoUrl A base64 or remote url that resolves to a video file.
VideoUrl string `json:"video_url"`
}
OrchestratorResponsesInputVideoContent A content block representing a video input to the model.
type OrchestratorResponsesInputVideoContentType ¶ added in v0.6.0
type OrchestratorResponsesInputVideoContentType string
OrchestratorResponsesInputVideoContentType The type of the input content. Always `input_video`.
const (
OrchestratorResponsesInputVideoContentTypeInputVideo OrchestratorResponsesInputVideoContentType = "input_video"
)
Defines values for OrchestratorResponsesInputVideoContentType.
func (OrchestratorResponsesInputVideoContentType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesInputVideoContentType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesInputVideoContentType enum.
type OrchestratorResponsesItemField ¶ added in v0.6.0
type OrchestratorResponsesItemField struct {
// contains filtered or unexported fields
}
OrchestratorResponsesItemField An item representing a message, tool call, tool output, reasoning, or other response element.
func (OrchestratorResponsesItemField) AsOrchestratorResponsesCustomToolCall ¶ added in v0.6.0
func (t OrchestratorResponsesItemField) AsOrchestratorResponsesCustomToolCall() (OrchestratorResponsesCustomToolCall, error)
AsOrchestratorResponsesCustomToolCall returns the union data inside the OrchestratorResponsesItemField as a OrchestratorResponsesCustomToolCall
func (OrchestratorResponsesItemField) AsOrchestratorResponsesFunctionCall ¶ added in v0.6.0
func (t OrchestratorResponsesItemField) AsOrchestratorResponsesFunctionCall() (OrchestratorResponsesFunctionCall, error)
AsOrchestratorResponsesFunctionCall returns the union data inside the OrchestratorResponsesItemField as a OrchestratorResponsesFunctionCall
func (OrchestratorResponsesItemField) AsOrchestratorResponsesFunctionCallOutput ¶ added in v0.6.0
func (t OrchestratorResponsesItemField) AsOrchestratorResponsesFunctionCallOutput() (OrchestratorResponsesFunctionCallOutput, error)
AsOrchestratorResponsesFunctionCallOutput returns the union data inside the OrchestratorResponsesItemField as a OrchestratorResponsesFunctionCallOutput
func (OrchestratorResponsesItemField) AsOrchestratorResponsesMessage ¶ added in v0.6.0
func (t OrchestratorResponsesItemField) AsOrchestratorResponsesMessage() (OrchestratorResponsesMessage, error)
AsOrchestratorResponsesMessage returns the union data inside the OrchestratorResponsesItemField as a OrchestratorResponsesMessage
func (OrchestratorResponsesItemField) AsOrchestratorResponsesReasoningBody ¶ added in v0.6.0
func (t OrchestratorResponsesItemField) AsOrchestratorResponsesReasoningBody() (OrchestratorResponsesReasoningBody, error)
AsOrchestratorResponsesReasoningBody returns the union data inside the OrchestratorResponsesItemField as a OrchestratorResponsesReasoningBody
func (OrchestratorResponsesItemField) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesItemField) Discriminator() (string, error)
func (*OrchestratorResponsesItemField) FromOrchestratorResponsesCustomToolCall ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) FromOrchestratorResponsesCustomToolCall(v OrchestratorResponsesCustomToolCall) error
FromOrchestratorResponsesCustomToolCall overwrites any union data inside the OrchestratorResponsesItemField as the provided OrchestratorResponsesCustomToolCall
func (*OrchestratorResponsesItemField) FromOrchestratorResponsesFunctionCall ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) FromOrchestratorResponsesFunctionCall(v OrchestratorResponsesFunctionCall) error
FromOrchestratorResponsesFunctionCall overwrites any union data inside the OrchestratorResponsesItemField as the provided OrchestratorResponsesFunctionCall
func (*OrchestratorResponsesItemField) FromOrchestratorResponsesFunctionCallOutput ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) FromOrchestratorResponsesFunctionCallOutput(v OrchestratorResponsesFunctionCallOutput) error
FromOrchestratorResponsesFunctionCallOutput overwrites any union data inside the OrchestratorResponsesItemField as the provided OrchestratorResponsesFunctionCallOutput
func (*OrchestratorResponsesItemField) FromOrchestratorResponsesMessage ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) FromOrchestratorResponsesMessage(v OrchestratorResponsesMessage) error
FromOrchestratorResponsesMessage overwrites any union data inside the OrchestratorResponsesItemField as the provided OrchestratorResponsesMessage
func (*OrchestratorResponsesItemField) FromOrchestratorResponsesReasoningBody ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) FromOrchestratorResponsesReasoningBody(v OrchestratorResponsesReasoningBody) error
FromOrchestratorResponsesReasoningBody overwrites any union data inside the OrchestratorResponsesItemField as the provided OrchestratorResponsesReasoningBody
func (OrchestratorResponsesItemField) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesItemField) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesItemField) MergeOrchestratorResponsesCustomToolCall ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) MergeOrchestratorResponsesCustomToolCall(v OrchestratorResponsesCustomToolCall) error
MergeOrchestratorResponsesCustomToolCall performs a merge with any union data inside the OrchestratorResponsesItemField, using the provided OrchestratorResponsesCustomToolCall
func (*OrchestratorResponsesItemField) MergeOrchestratorResponsesFunctionCall ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) MergeOrchestratorResponsesFunctionCall(v OrchestratorResponsesFunctionCall) error
MergeOrchestratorResponsesFunctionCall performs a merge with any union data inside the OrchestratorResponsesItemField, using the provided OrchestratorResponsesFunctionCall
func (*OrchestratorResponsesItemField) MergeOrchestratorResponsesFunctionCallOutput ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) MergeOrchestratorResponsesFunctionCallOutput(v OrchestratorResponsesFunctionCallOutput) error
MergeOrchestratorResponsesFunctionCallOutput performs a merge with any union data inside the OrchestratorResponsesItemField, using the provided OrchestratorResponsesFunctionCallOutput
func (*OrchestratorResponsesItemField) MergeOrchestratorResponsesMessage ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) MergeOrchestratorResponsesMessage(v OrchestratorResponsesMessage) error
MergeOrchestratorResponsesMessage performs a merge with any union data inside the OrchestratorResponsesItemField, using the provided OrchestratorResponsesMessage
func (*OrchestratorResponsesItemField) MergeOrchestratorResponsesReasoningBody ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) MergeOrchestratorResponsesReasoningBody(v OrchestratorResponsesReasoningBody) error
MergeOrchestratorResponsesReasoningBody performs a merge with any union data inside the OrchestratorResponsesItemField, using the provided OrchestratorResponsesReasoningBody
func (*OrchestratorResponsesItemField) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesItemField) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesItemField) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesItemField) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesItemParam ¶ added in v0.6.0
type OrchestratorResponsesItemParam struct {
// contains filtered or unexported fields
}
OrchestratorResponsesItemParam defines model for OrchestratorResponsesItemParam.
func (OrchestratorResponsesItemParam) AsOrchestratorResponsesAdditionalToolsItemParam ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesAdditionalToolsItemParam() (OrchestratorResponsesAdditionalToolsItemParam, error)
AsOrchestratorResponsesAdditionalToolsItemParam returns the union data inside the OrchestratorResponsesItemParam as a OrchestratorResponsesAdditionalToolsItemParam
func (OrchestratorResponsesItemParam) AsOrchestratorResponsesAssistantMessageItemParam ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesAssistantMessageItemParam() (OrchestratorResponsesAssistantMessageItemParam, error)
AsOrchestratorResponsesAssistantMessageItemParam returns the union data inside the OrchestratorResponsesItemParam as a OrchestratorResponsesAssistantMessageItemParam
func (OrchestratorResponsesItemParam) AsOrchestratorResponsesCustomToolCallItemParam ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesCustomToolCallItemParam() (OrchestratorResponsesCustomToolCallItemParam, error)
AsOrchestratorResponsesCustomToolCallItemParam returns the union data inside the OrchestratorResponsesItemParam as a OrchestratorResponsesCustomToolCallItemParam
func (OrchestratorResponsesItemParam) AsOrchestratorResponsesCustomToolCallOutputItemParam ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesCustomToolCallOutputItemParam() (OrchestratorResponsesCustomToolCallOutputItemParam, error)
AsOrchestratorResponsesCustomToolCallOutputItemParam returns the union data inside the OrchestratorResponsesItemParam as a OrchestratorResponsesCustomToolCallOutputItemParam
func (OrchestratorResponsesItemParam) AsOrchestratorResponsesDeveloperMessageItemParam ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesDeveloperMessageItemParam() (OrchestratorResponsesDeveloperMessageItemParam, error)
AsOrchestratorResponsesDeveloperMessageItemParam returns the union data inside the OrchestratorResponsesItemParam as a OrchestratorResponsesDeveloperMessageItemParam
func (OrchestratorResponsesItemParam) AsOrchestratorResponsesFunctionCallItemParam ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesFunctionCallItemParam() (OrchestratorResponsesFunctionCallItemParam, error)
AsOrchestratorResponsesFunctionCallItemParam returns the union data inside the OrchestratorResponsesItemParam as a OrchestratorResponsesFunctionCallItemParam
func (OrchestratorResponsesItemParam) AsOrchestratorResponsesFunctionCallOutputItemParam ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesFunctionCallOutputItemParam() (OrchestratorResponsesFunctionCallOutputItemParam, error)
AsOrchestratorResponsesFunctionCallOutputItemParam returns the union data inside the OrchestratorResponsesItemParam as a OrchestratorResponsesFunctionCallOutputItemParam
func (OrchestratorResponsesItemParam) AsOrchestratorResponsesReasoningItemParam ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesReasoningItemParam() (OrchestratorResponsesReasoningItemParam, error)
AsOrchestratorResponsesReasoningItemParam returns the union data inside the OrchestratorResponsesItemParam as a OrchestratorResponsesReasoningItemParam
func (OrchestratorResponsesItemParam) AsOrchestratorResponsesSystemMessageItemParam ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesSystemMessageItemParam() (OrchestratorResponsesSystemMessageItemParam, error)
AsOrchestratorResponsesSystemMessageItemParam returns the union data inside the OrchestratorResponsesItemParam as a OrchestratorResponsesSystemMessageItemParam
func (OrchestratorResponsesItemParam) AsOrchestratorResponsesUserMessageItemParam ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) AsOrchestratorResponsesUserMessageItemParam() (OrchestratorResponsesUserMessageItemParam, error)
AsOrchestratorResponsesUserMessageItemParam returns the union data inside the OrchestratorResponsesItemParam as a OrchestratorResponsesUserMessageItemParam
func (OrchestratorResponsesItemParam) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) Discriminator() (string, error)
func (*OrchestratorResponsesItemParam) FromOrchestratorResponsesAdditionalToolsItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesAdditionalToolsItemParam(v OrchestratorResponsesAdditionalToolsItemParam) error
FromOrchestratorResponsesAdditionalToolsItemParam overwrites any union data inside the OrchestratorResponsesItemParam as the provided OrchestratorResponsesAdditionalToolsItemParam
func (*OrchestratorResponsesItemParam) FromOrchestratorResponsesAssistantMessageItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesAssistantMessageItemParam(v OrchestratorResponsesAssistantMessageItemParam) error
FromOrchestratorResponsesAssistantMessageItemParam overwrites any union data inside the OrchestratorResponsesItemParam as the provided OrchestratorResponsesAssistantMessageItemParam
func (*OrchestratorResponsesItemParam) FromOrchestratorResponsesCustomToolCallItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesCustomToolCallItemParam(v OrchestratorResponsesCustomToolCallItemParam) error
FromOrchestratorResponsesCustomToolCallItemParam overwrites any union data inside the OrchestratorResponsesItemParam as the provided OrchestratorResponsesCustomToolCallItemParam
func (*OrchestratorResponsesItemParam) FromOrchestratorResponsesCustomToolCallOutputItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesCustomToolCallOutputItemParam(v OrchestratorResponsesCustomToolCallOutputItemParam) error
FromOrchestratorResponsesCustomToolCallOutputItemParam overwrites any union data inside the OrchestratorResponsesItemParam as the provided OrchestratorResponsesCustomToolCallOutputItemParam
func (*OrchestratorResponsesItemParam) FromOrchestratorResponsesDeveloperMessageItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesDeveloperMessageItemParam(v OrchestratorResponsesDeveloperMessageItemParam) error
FromOrchestratorResponsesDeveloperMessageItemParam overwrites any union data inside the OrchestratorResponsesItemParam as the provided OrchestratorResponsesDeveloperMessageItemParam
func (*OrchestratorResponsesItemParam) FromOrchestratorResponsesFunctionCallItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesFunctionCallItemParam(v OrchestratorResponsesFunctionCallItemParam) error
FromOrchestratorResponsesFunctionCallItemParam overwrites any union data inside the OrchestratorResponsesItemParam as the provided OrchestratorResponsesFunctionCallItemParam
func (*OrchestratorResponsesItemParam) FromOrchestratorResponsesFunctionCallOutputItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesFunctionCallOutputItemParam(v OrchestratorResponsesFunctionCallOutputItemParam) error
FromOrchestratorResponsesFunctionCallOutputItemParam overwrites any union data inside the OrchestratorResponsesItemParam as the provided OrchestratorResponsesFunctionCallOutputItemParam
func (*OrchestratorResponsesItemParam) FromOrchestratorResponsesReasoningItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesReasoningItemParam(v OrchestratorResponsesReasoningItemParam) error
FromOrchestratorResponsesReasoningItemParam overwrites any union data inside the OrchestratorResponsesItemParam as the provided OrchestratorResponsesReasoningItemParam
func (*OrchestratorResponsesItemParam) FromOrchestratorResponsesSystemMessageItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesSystemMessageItemParam(v OrchestratorResponsesSystemMessageItemParam) error
FromOrchestratorResponsesSystemMessageItemParam overwrites any union data inside the OrchestratorResponsesItemParam as the provided OrchestratorResponsesSystemMessageItemParam
func (*OrchestratorResponsesItemParam) FromOrchestratorResponsesUserMessageItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) FromOrchestratorResponsesUserMessageItemParam(v OrchestratorResponsesUserMessageItemParam) error
FromOrchestratorResponsesUserMessageItemParam overwrites any union data inside the OrchestratorResponsesItemParam as the provided OrchestratorResponsesUserMessageItemParam
func (OrchestratorResponsesItemParam) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesItemParam) MergeOrchestratorResponsesAdditionalToolsItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesAdditionalToolsItemParam(v OrchestratorResponsesAdditionalToolsItemParam) error
MergeOrchestratorResponsesAdditionalToolsItemParam performs a merge with any union data inside the OrchestratorResponsesItemParam, using the provided OrchestratorResponsesAdditionalToolsItemParam
func (*OrchestratorResponsesItemParam) MergeOrchestratorResponsesAssistantMessageItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesAssistantMessageItemParam(v OrchestratorResponsesAssistantMessageItemParam) error
MergeOrchestratorResponsesAssistantMessageItemParam performs a merge with any union data inside the OrchestratorResponsesItemParam, using the provided OrchestratorResponsesAssistantMessageItemParam
func (*OrchestratorResponsesItemParam) MergeOrchestratorResponsesCustomToolCallItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesCustomToolCallItemParam(v OrchestratorResponsesCustomToolCallItemParam) error
MergeOrchestratorResponsesCustomToolCallItemParam performs a merge with any union data inside the OrchestratorResponsesItemParam, using the provided OrchestratorResponsesCustomToolCallItemParam
func (*OrchestratorResponsesItemParam) MergeOrchestratorResponsesCustomToolCallOutputItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesCustomToolCallOutputItemParam(v OrchestratorResponsesCustomToolCallOutputItemParam) error
MergeOrchestratorResponsesCustomToolCallOutputItemParam performs a merge with any union data inside the OrchestratorResponsesItemParam, using the provided OrchestratorResponsesCustomToolCallOutputItemParam
func (*OrchestratorResponsesItemParam) MergeOrchestratorResponsesDeveloperMessageItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesDeveloperMessageItemParam(v OrchestratorResponsesDeveloperMessageItemParam) error
MergeOrchestratorResponsesDeveloperMessageItemParam performs a merge with any union data inside the OrchestratorResponsesItemParam, using the provided OrchestratorResponsesDeveloperMessageItemParam
func (*OrchestratorResponsesItemParam) MergeOrchestratorResponsesFunctionCallItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesFunctionCallItemParam(v OrchestratorResponsesFunctionCallItemParam) error
MergeOrchestratorResponsesFunctionCallItemParam performs a merge with any union data inside the OrchestratorResponsesItemParam, using the provided OrchestratorResponsesFunctionCallItemParam
func (*OrchestratorResponsesItemParam) MergeOrchestratorResponsesFunctionCallOutputItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesFunctionCallOutputItemParam(v OrchestratorResponsesFunctionCallOutputItemParam) error
MergeOrchestratorResponsesFunctionCallOutputItemParam performs a merge with any union data inside the OrchestratorResponsesItemParam, using the provided OrchestratorResponsesFunctionCallOutputItemParam
func (*OrchestratorResponsesItemParam) MergeOrchestratorResponsesReasoningItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesReasoningItemParam(v OrchestratorResponsesReasoningItemParam) error
MergeOrchestratorResponsesReasoningItemParam performs a merge with any union data inside the OrchestratorResponsesItemParam, using the provided OrchestratorResponsesReasoningItemParam
func (*OrchestratorResponsesItemParam) MergeOrchestratorResponsesSystemMessageItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesSystemMessageItemParam(v OrchestratorResponsesSystemMessageItemParam) error
MergeOrchestratorResponsesSystemMessageItemParam performs a merge with any union data inside the OrchestratorResponsesItemParam, using the provided OrchestratorResponsesSystemMessageItemParam
func (*OrchestratorResponsesItemParam) MergeOrchestratorResponsesUserMessageItemParam ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) MergeOrchestratorResponsesUserMessageItemParam(v OrchestratorResponsesUserMessageItemParam) error
MergeOrchestratorResponsesUserMessageItemParam performs a merge with any union data inside the OrchestratorResponsesItemParam, using the provided OrchestratorResponsesUserMessageItemParam
func (*OrchestratorResponsesItemParam) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesItemParam) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesItemParam) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesItemParam) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesJsonSchemaResponseFormatParam ¶ added in v0.6.0
type OrchestratorResponsesJsonSchemaResponseFormatParam struct {
// Description A description of what the response format is for, used by the model to
// determine how to respond in the format.
Description *string `json:"description,omitempty"`
// Name The name of the response format. Must be a-z, A-Z, 0-9, or contain
// underscores and dashes, with a maximum length of 64.
Name string `json:"name"`
// Schema The schema for the response format, described as a JSON Schema object.
Schema map[string]interface{} `json:"schema"`
// Strict Whether to enable strict schema adherence when generating the output.
// If set to true, the model will always follow the exact schema defined
// in the `schema` field. Only a subset of JSON Schema is supported when
// `strict` is `true`.
Strict *OrchestratorResponsesJsonSchemaResponseFormatParamStrict `json:"strict,omitempty"`
// Type The type of response format being defined. Always `json_schema`.
Type OrchestratorResponsesJsonSchemaResponseFormatParamType `json:"type"`
}
OrchestratorResponsesJsonSchemaResponseFormatParam defines model for OrchestratorResponsesJsonSchemaResponseFormatParam.
type OrchestratorResponsesJsonSchemaResponseFormatParamStrict ¶ added in v0.6.0
type OrchestratorResponsesJsonSchemaResponseFormatParamStrict bool
OrchestratorResponsesJsonSchemaResponseFormatParamStrict defines model for OrchestratorResponsesJsonSchemaResponseFormatParam.Strict.
const (
OrchestratorResponsesJsonSchemaResponseFormatParamStrictTrue OrchestratorResponsesJsonSchemaResponseFormatParamStrict = true
)
Defines values for OrchestratorResponsesJsonSchemaResponseFormatParamStrict.
func (OrchestratorResponsesJsonSchemaResponseFormatParamStrict) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesJsonSchemaResponseFormatParamStrict) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesJsonSchemaResponseFormatParamStrict enum.
type OrchestratorResponsesJsonSchemaResponseFormatParamType ¶ added in v0.6.0
type OrchestratorResponsesJsonSchemaResponseFormatParamType string
OrchestratorResponsesJsonSchemaResponseFormatParamType The type of response format being defined. Always `json_schema`.
const (
OrchestratorResponsesJsonSchemaResponseFormatParamTypeJsonSchema OrchestratorResponsesJsonSchemaResponseFormatParamType = "json_schema"
)
Defines values for OrchestratorResponsesJsonSchemaResponseFormatParamType.
func (OrchestratorResponsesJsonSchemaResponseFormatParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesJsonSchemaResponseFormatParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesJsonSchemaResponseFormatParamType enum.
type OrchestratorResponsesLogProb ¶ added in v0.6.0
type OrchestratorResponsesLogProb struct {
Bytes []int `json:"bytes"`
Logprob float64 `json:"logprob"`
Token string `json:"token"`
TopLogprobs []OrchestratorResponsesTopLogProb `json:"top_logprobs"`
}
OrchestratorResponsesLogProb The log probability of a token.
type OrchestratorResponsesMessage ¶ added in v0.6.0
type OrchestratorResponsesMessage struct {
// Content The content of the message
Content []OrchestratorResponsesMessage_Content_Item `json:"content"`
// Id The unique ID of the message.
Id string `json:"id"`
// Phase Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
Phase *OrchestratorResponsesMessagePhase `json:"phase,omitempty"`
Role OrchestratorResponsesMessageRole `json:"role"`
Status OrchestratorResponsesMessageStatus `json:"status"`
// Type The type of the message. Always set to `message`.
Type OrchestratorResponsesMessageType `json:"type"`
}
OrchestratorResponsesMessage A message to or from the model.
type OrchestratorResponsesMessagePhase ¶ added in v0.6.0
type OrchestratorResponsesMessagePhase string
OrchestratorResponsesMessagePhase Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
const ( OrchestratorResponsesMessagePhaseCommentary OrchestratorResponsesMessagePhase = "commentary" OrchestratorResponsesMessagePhaseFinalAnswer OrchestratorResponsesMessagePhase = "final_answer" )
Defines values for OrchestratorResponsesMessagePhase.
func (OrchestratorResponsesMessagePhase) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesMessagePhase) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesMessagePhase enum.
type OrchestratorResponsesMessageRole ¶ added in v0.6.0
type OrchestratorResponsesMessageRole string
OrchestratorResponsesMessageRole defines model for OrchestratorResponsesMessageRole.
const ( OrchestratorResponsesMessageRoleAssistant OrchestratorResponsesMessageRole = "assistant" OrchestratorResponsesMessageRoleDeveloper OrchestratorResponsesMessageRole = "developer" OrchestratorResponsesMessageRoleSystem OrchestratorResponsesMessageRole = "system" OrchestratorResponsesMessageRoleUser OrchestratorResponsesMessageRole = "user" )
Defines values for OrchestratorResponsesMessageRole.
func (OrchestratorResponsesMessageRole) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesMessageRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesMessageRole enum.
type OrchestratorResponsesMessageStatus ¶ added in v0.6.0
type OrchestratorResponsesMessageStatus string
OrchestratorResponsesMessageStatus defines model for OrchestratorResponsesMessageStatus.
const ( OrchestratorResponsesMessageStatusCompleted OrchestratorResponsesMessageStatus = "completed" OrchestratorResponsesMessageStatusInProgress OrchestratorResponsesMessageStatus = "in_progress" OrchestratorResponsesMessageStatusIncomplete OrchestratorResponsesMessageStatus = "incomplete" )
Defines values for OrchestratorResponsesMessageStatus.
func (OrchestratorResponsesMessageStatus) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesMessageStatus) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesMessageStatus enum.
type OrchestratorResponsesMessageType ¶ added in v0.6.0
type OrchestratorResponsesMessageType string
OrchestratorResponsesMessageType The type of the message. Always set to `message`.
const (
OrchestratorResponsesMessageTypeMessage OrchestratorResponsesMessageType = "message"
)
Defines values for OrchestratorResponsesMessageType.
func (OrchestratorResponsesMessageType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesMessageType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesMessageType enum.
type OrchestratorResponsesMessage_Content_Item ¶ added in v0.6.0
type OrchestratorResponsesMessage_Content_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesMessage_Content_Item A content part that makes up an input or output item.
func (OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
AsOrchestratorResponsesInputFileContent returns the union data inside the OrchestratorResponsesMessage_Content_Item as a OrchestratorResponsesInputFileContent
func (OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
AsOrchestratorResponsesInputImageContent returns the union data inside the OrchestratorResponsesMessage_Content_Item as a OrchestratorResponsesInputImageContent
func (OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
AsOrchestratorResponsesInputTextContent returns the union data inside the OrchestratorResponsesMessage_Content_Item as a OrchestratorResponsesInputTextContent
func (OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputVideoContent ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesInputVideoContent() (OrchestratorResponsesInputVideoContent, error)
AsOrchestratorResponsesInputVideoContent returns the union data inside the OrchestratorResponsesMessage_Content_Item as a OrchestratorResponsesInputVideoContent
func (OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
AsOrchestratorResponsesOutputTextContent returns the union data inside the OrchestratorResponsesMessage_Content_Item as a OrchestratorResponsesOutputTextContent
func (OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
AsOrchestratorResponsesReasoningTextContent returns the union data inside the OrchestratorResponsesMessage_Content_Item as a OrchestratorResponsesReasoningTextContent
func (OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
AsOrchestratorResponsesRefusalContent returns the union data inside the OrchestratorResponsesMessage_Content_Item as a OrchestratorResponsesRefusalContent
func (OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
AsOrchestratorResponsesSummaryTextContent returns the union data inside the OrchestratorResponsesMessage_Content_Item as a OrchestratorResponsesSummaryTextContent
func (OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
AsOrchestratorResponsesTextContent returns the union data inside the OrchestratorResponsesMessage_Content_Item as a OrchestratorResponsesTextContent
func (OrchestratorResponsesMessage_Content_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) Discriminator() (string, error)
func (*OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
FromOrchestratorResponsesInputFileContent overwrites any union data inside the OrchestratorResponsesMessage_Content_Item as the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
FromOrchestratorResponsesInputImageContent overwrites any union data inside the OrchestratorResponsesMessage_Content_Item as the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
FromOrchestratorResponsesInputTextContent overwrites any union data inside the OrchestratorResponsesMessage_Content_Item as the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputVideoContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesInputVideoContent(v OrchestratorResponsesInputVideoContent) error
FromOrchestratorResponsesInputVideoContent overwrites any union data inside the OrchestratorResponsesMessage_Content_Item as the provided OrchestratorResponsesInputVideoContent
func (*OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
FromOrchestratorResponsesOutputTextContent overwrites any union data inside the OrchestratorResponsesMessage_Content_Item as the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
FromOrchestratorResponsesReasoningTextContent overwrites any union data inside the OrchestratorResponsesMessage_Content_Item as the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
FromOrchestratorResponsesRefusalContent overwrites any union data inside the OrchestratorResponsesMessage_Content_Item as the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
FromOrchestratorResponsesSummaryTextContent overwrites any union data inside the OrchestratorResponsesMessage_Content_Item as the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
FromOrchestratorResponsesTextContent overwrites any union data inside the OrchestratorResponsesMessage_Content_Item as the provided OrchestratorResponsesTextContent
func (OrchestratorResponsesMessage_Content_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
MergeOrchestratorResponsesInputFileContent performs a merge with any union data inside the OrchestratorResponsesMessage_Content_Item, using the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
MergeOrchestratorResponsesInputImageContent performs a merge with any union data inside the OrchestratorResponsesMessage_Content_Item, using the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
MergeOrchestratorResponsesInputTextContent performs a merge with any union data inside the OrchestratorResponsesMessage_Content_Item, using the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputVideoContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesInputVideoContent(v OrchestratorResponsesInputVideoContent) error
MergeOrchestratorResponsesInputVideoContent performs a merge with any union data inside the OrchestratorResponsesMessage_Content_Item, using the provided OrchestratorResponsesInputVideoContent
func (*OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
MergeOrchestratorResponsesOutputTextContent performs a merge with any union data inside the OrchestratorResponsesMessage_Content_Item, using the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
MergeOrchestratorResponsesReasoningTextContent performs a merge with any union data inside the OrchestratorResponsesMessage_Content_Item, using the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
MergeOrchestratorResponsesRefusalContent performs a merge with any union data inside the OrchestratorResponsesMessage_Content_Item, using the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
MergeOrchestratorResponsesSummaryTextContent performs a merge with any union data inside the OrchestratorResponsesMessage_Content_Item, using the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
MergeOrchestratorResponsesTextContent performs a merge with any union data inside the OrchestratorResponsesMessage_Content_Item, using the provided OrchestratorResponsesTextContent
func (*OrchestratorResponsesMessage_Content_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesMessage_Content_Item) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesMessage_Content_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesMessage_Content_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesMetadataParam ¶ added in v0.6.0
OrchestratorResponsesMetadataParam Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
type OrchestratorResponsesNamespaceToolParam ¶ added in v0.6.0
type OrchestratorResponsesNamespaceToolParam struct {
Description *string `json:"description,omitempty"`
Name string `json:"name"`
// Tools The function tools grouped under this namespace.
Tools []OrchestratorResponsesFunctionToolParam `json:"tools"`
Type OrchestratorResponsesNamespaceToolParamType `json:"type"`
}
OrchestratorResponsesNamespaceToolParam A namespace that groups related function tools.
type OrchestratorResponsesNamespaceToolParamType ¶ added in v0.6.0
type OrchestratorResponsesNamespaceToolParamType string
OrchestratorResponsesNamespaceToolParamType defines model for OrchestratorResponsesNamespaceToolParam.Type.
const (
OrchestratorResponsesNamespaceToolParamTypeNamespace OrchestratorResponsesNamespaceToolParamType = "namespace"
)
Defines values for OrchestratorResponsesNamespaceToolParamType.
func (OrchestratorResponsesNamespaceToolParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesNamespaceToolParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesNamespaceToolParamType enum.
type OrchestratorResponsesOutputTextContent ¶ added in v0.6.0
type OrchestratorResponsesOutputTextContent struct {
// Annotations The annotations of the text output.
Annotations []OrchestratorResponsesAnnotation `json:"annotations"`
Logprobs *[]OrchestratorResponsesLogProb `json:"logprobs,omitempty"`
// Text The text output from the model.
Text string `json:"text"`
// Type The type of the output text. Always `output_text`.
Type OrchestratorResponsesOutputTextContentType `json:"type"`
}
OrchestratorResponsesOutputTextContent A text output from the model.
type OrchestratorResponsesOutputTextContentParam ¶ added in v0.6.0
type OrchestratorResponsesOutputTextContentParam struct {
// Annotations Citations associated with the text content.
Annotations *OrchestratorResponsesOutputTextContentParam_Annotations `json:"annotations,omitempty"`
// Text The text content.
Text string `json:"text"`
// Type The content type. Always `output_text`.
Type OrchestratorResponsesOutputTextContentParamType `json:"type"`
}
OrchestratorResponsesOutputTextContentParam defines model for OrchestratorResponsesOutputTextContentParam.
type OrchestratorResponsesOutputTextContentParamAnnotations0 ¶ added in v0.6.0
type OrchestratorResponsesOutputTextContentParamAnnotations0 = []OrchestratorResponsesUrlCitationParam
OrchestratorResponsesOutputTextContentParamAnnotations0 defines model for OrchestratorResponsesOutputTextContentParam.Annotations.0.
type OrchestratorResponsesOutputTextContentParamType ¶ added in v0.6.0
type OrchestratorResponsesOutputTextContentParamType string
OrchestratorResponsesOutputTextContentParamType The content type. Always `output_text`.
const (
OrchestratorResponsesOutputTextContentParamTypeOutputText OrchestratorResponsesOutputTextContentParamType = "output_text"
)
Defines values for OrchestratorResponsesOutputTextContentParamType.
func (OrchestratorResponsesOutputTextContentParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesOutputTextContentParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesOutputTextContentParamType enum.
type OrchestratorResponsesOutputTextContentParam_Annotations ¶ added in v0.6.0
type OrchestratorResponsesOutputTextContentParam_Annotations struct {
// contains filtered or unexported fields
}
OrchestratorResponsesOutputTextContentParam_Annotations Citations associated with the text content.
func (OrchestratorResponsesOutputTextContentParam_Annotations) AsOrchestratorResponsesOutputTextContentParamAnnotations0 ¶ added in v0.6.0
func (t OrchestratorResponsesOutputTextContentParam_Annotations) AsOrchestratorResponsesOutputTextContentParamAnnotations0() (OrchestratorResponsesOutputTextContentParamAnnotations0, error)
AsOrchestratorResponsesOutputTextContentParamAnnotations0 returns the union data inside the OrchestratorResponsesOutputTextContentParam_Annotations as a OrchestratorResponsesOutputTextContentParamAnnotations0
func (*OrchestratorResponsesOutputTextContentParam_Annotations) FromOrchestratorResponsesOutputTextContentParamAnnotations0 ¶ added in v0.6.0
func (t *OrchestratorResponsesOutputTextContentParam_Annotations) FromOrchestratorResponsesOutputTextContentParamAnnotations0(v OrchestratorResponsesOutputTextContentParamAnnotations0) error
FromOrchestratorResponsesOutputTextContentParamAnnotations0 overwrites any union data inside the OrchestratorResponsesOutputTextContentParam_Annotations as the provided OrchestratorResponsesOutputTextContentParamAnnotations0
func (OrchestratorResponsesOutputTextContentParam_Annotations) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesOutputTextContentParam_Annotations) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesOutputTextContentParam_Annotations) MergeOrchestratorResponsesOutputTextContentParamAnnotations0 ¶ added in v0.6.0
func (t *OrchestratorResponsesOutputTextContentParam_Annotations) MergeOrchestratorResponsesOutputTextContentParamAnnotations0(v OrchestratorResponsesOutputTextContentParamAnnotations0) error
MergeOrchestratorResponsesOutputTextContentParamAnnotations0 performs a merge with any union data inside the OrchestratorResponsesOutputTextContentParam_Annotations, using the provided OrchestratorResponsesOutputTextContentParamAnnotations0
func (*OrchestratorResponsesOutputTextContentParam_Annotations) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesOutputTextContentParam_Annotations) UnmarshalJSON(b []byte) error
type OrchestratorResponsesOutputTextContentType ¶ added in v0.6.0
type OrchestratorResponsesOutputTextContentType string
OrchestratorResponsesOutputTextContentType The type of the output text. Always `output_text`.
const (
OrchestratorResponsesOutputTextContentTypeOutputText OrchestratorResponsesOutputTextContentType = "output_text"
)
Defines values for OrchestratorResponsesOutputTextContentType.
func (OrchestratorResponsesOutputTextContentType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesOutputTextContentType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesOutputTextContentType enum.
type OrchestratorResponsesOutputTokensDetails ¶ added in v0.6.0
type OrchestratorResponsesOutputTokensDetails struct {
// ReasoningTokens The number of output tokens that were attributed to reasoning.
ReasoningTokens int `json:"reasoning_tokens"`
}
OrchestratorResponsesOutputTokensDetails A breakdown of output token usage that was recorded.
type OrchestratorResponsesReasoningBody ¶ added in v0.6.0
type OrchestratorResponsesReasoningBody struct {
// Content The reasoning content that was generated.
Content *[]OrchestratorResponsesReasoningBody_Content_Item `json:"content,omitempty"`
// EncryptedContent The encrypted reasoning content that was generated.
EncryptedContent *string `json:"encrypted_content,omitempty"`
// Id The unique ID of the reasoning item.
Id string `json:"id"`
Status *OrchestratorResponsesMessageStatus `json:"status,omitempty"`
// Summary The reasoning summary content that was generated.
Summary []OrchestratorResponsesReasoningBody_Summary_Item `json:"summary"`
// Type The type of the item. Always `reasoning`.
Type OrchestratorResponsesReasoningBodyType `json:"type"`
}
OrchestratorResponsesReasoningBody A reasoning item that was generated by the model.
type OrchestratorResponsesReasoningBodyType ¶ added in v0.6.0
type OrchestratorResponsesReasoningBodyType string
OrchestratorResponsesReasoningBodyType The type of the item. Always `reasoning`.
const (
OrchestratorResponsesReasoningBodyTypeReasoning OrchestratorResponsesReasoningBodyType = "reasoning"
)
Defines values for OrchestratorResponsesReasoningBodyType.
func (OrchestratorResponsesReasoningBodyType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesReasoningBodyType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesReasoningBodyType enum.
type OrchestratorResponsesReasoningBody_Content_Item ¶ added in v0.6.0
type OrchestratorResponsesReasoningBody_Content_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesReasoningBody_Content_Item A content part that makes up an input or output item.
func (OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
AsOrchestratorResponsesInputFileContent returns the union data inside the OrchestratorResponsesReasoningBody_Content_Item as a OrchestratorResponsesInputFileContent
func (OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
AsOrchestratorResponsesInputImageContent returns the union data inside the OrchestratorResponsesReasoningBody_Content_Item as a OrchestratorResponsesInputImageContent
func (OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
AsOrchestratorResponsesInputTextContent returns the union data inside the OrchestratorResponsesReasoningBody_Content_Item as a OrchestratorResponsesInputTextContent
func (OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
AsOrchestratorResponsesOutputTextContent returns the union data inside the OrchestratorResponsesReasoningBody_Content_Item as a OrchestratorResponsesOutputTextContent
func (OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
AsOrchestratorResponsesReasoningTextContent returns the union data inside the OrchestratorResponsesReasoningBody_Content_Item as a OrchestratorResponsesReasoningTextContent
func (OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
AsOrchestratorResponsesRefusalContent returns the union data inside the OrchestratorResponsesReasoningBody_Content_Item as a OrchestratorResponsesRefusalContent
func (OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
AsOrchestratorResponsesSummaryTextContent returns the union data inside the OrchestratorResponsesReasoningBody_Content_Item as a OrchestratorResponsesSummaryTextContent
func (OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
AsOrchestratorResponsesTextContent returns the union data inside the OrchestratorResponsesReasoningBody_Content_Item as a OrchestratorResponsesTextContent
func (OrchestratorResponsesReasoningBody_Content_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) Discriminator() (string, error)
func (*OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
FromOrchestratorResponsesInputFileContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Content_Item as the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
FromOrchestratorResponsesInputImageContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Content_Item as the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
FromOrchestratorResponsesInputTextContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Content_Item as the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
FromOrchestratorResponsesOutputTextContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Content_Item as the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
FromOrchestratorResponsesReasoningTextContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Content_Item as the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
FromOrchestratorResponsesRefusalContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Content_Item as the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
FromOrchestratorResponsesSummaryTextContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Content_Item as the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
FromOrchestratorResponsesTextContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Content_Item as the provided OrchestratorResponsesTextContent
func (OrchestratorResponsesReasoningBody_Content_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
MergeOrchestratorResponsesInputFileContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Content_Item, using the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
MergeOrchestratorResponsesInputImageContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Content_Item, using the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
MergeOrchestratorResponsesInputTextContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Content_Item, using the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
MergeOrchestratorResponsesOutputTextContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Content_Item, using the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
MergeOrchestratorResponsesReasoningTextContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Content_Item, using the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
MergeOrchestratorResponsesRefusalContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Content_Item, using the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
MergeOrchestratorResponsesSummaryTextContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Content_Item, using the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
MergeOrchestratorResponsesTextContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Content_Item, using the provided OrchestratorResponsesTextContent
func (*OrchestratorResponsesReasoningBody_Content_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Content_Item) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesReasoningBody_Content_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Content_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesReasoningBody_Summary_Item ¶ added in v0.6.0
type OrchestratorResponsesReasoningBody_Summary_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesReasoningBody_Summary_Item A content part that makes up an input or output item.
func (OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
AsOrchestratorResponsesInputFileContent returns the union data inside the OrchestratorResponsesReasoningBody_Summary_Item as a OrchestratorResponsesInputFileContent
func (OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
AsOrchestratorResponsesInputImageContent returns the union data inside the OrchestratorResponsesReasoningBody_Summary_Item as a OrchestratorResponsesInputImageContent
func (OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
AsOrchestratorResponsesInputTextContent returns the union data inside the OrchestratorResponsesReasoningBody_Summary_Item as a OrchestratorResponsesInputTextContent
func (OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
AsOrchestratorResponsesOutputTextContent returns the union data inside the OrchestratorResponsesReasoningBody_Summary_Item as a OrchestratorResponsesOutputTextContent
func (OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
AsOrchestratorResponsesReasoningTextContent returns the union data inside the OrchestratorResponsesReasoningBody_Summary_Item as a OrchestratorResponsesReasoningTextContent
func (OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
AsOrchestratorResponsesRefusalContent returns the union data inside the OrchestratorResponsesReasoningBody_Summary_Item as a OrchestratorResponsesRefusalContent
func (OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
AsOrchestratorResponsesSummaryTextContent returns the union data inside the OrchestratorResponsesReasoningBody_Summary_Item as a OrchestratorResponsesSummaryTextContent
func (OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
AsOrchestratorResponsesTextContent returns the union data inside the OrchestratorResponsesReasoningBody_Summary_Item as a OrchestratorResponsesTextContent
func (OrchestratorResponsesReasoningBody_Summary_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) Discriminator() (string, error)
func (*OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
FromOrchestratorResponsesInputFileContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Summary_Item as the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
FromOrchestratorResponsesInputImageContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Summary_Item as the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
FromOrchestratorResponsesInputTextContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Summary_Item as the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
FromOrchestratorResponsesOutputTextContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Summary_Item as the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
FromOrchestratorResponsesReasoningTextContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Summary_Item as the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
FromOrchestratorResponsesRefusalContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Summary_Item as the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
FromOrchestratorResponsesSummaryTextContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Summary_Item as the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
FromOrchestratorResponsesTextContent overwrites any union data inside the OrchestratorResponsesReasoningBody_Summary_Item as the provided OrchestratorResponsesTextContent
func (OrchestratorResponsesReasoningBody_Summary_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
MergeOrchestratorResponsesInputFileContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Summary_Item, using the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
MergeOrchestratorResponsesInputImageContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Summary_Item, using the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
MergeOrchestratorResponsesInputTextContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Summary_Item, using the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
MergeOrchestratorResponsesOutputTextContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Summary_Item, using the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
MergeOrchestratorResponsesReasoningTextContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Summary_Item, using the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
MergeOrchestratorResponsesRefusalContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Summary_Item, using the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
MergeOrchestratorResponsesSummaryTextContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Summary_Item, using the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
MergeOrchestratorResponsesTextContent performs a merge with any union data inside the OrchestratorResponsesReasoningBody_Summary_Item, using the provided OrchestratorResponsesTextContent
func (*OrchestratorResponsesReasoningBody_Summary_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesReasoningBody_Summary_Item) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesReasoningBody_Summary_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesReasoningBody_Summary_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesReasoningEffortEnum ¶ added in v0.6.0
type OrchestratorResponsesReasoningEffortEnum string
OrchestratorResponsesReasoningEffortEnum defines model for OrchestratorResponsesReasoningEffortEnum.
const ( OrchestratorResponsesReasoningEffortEnumHigh OrchestratorResponsesReasoningEffortEnum = "high" OrchestratorResponsesReasoningEffortEnumLow OrchestratorResponsesReasoningEffortEnum = "low" OrchestratorResponsesReasoningEffortEnumMedium OrchestratorResponsesReasoningEffortEnum = "medium" OrchestratorResponsesReasoningEffortEnumNone OrchestratorResponsesReasoningEffortEnum = "none" OrchestratorResponsesReasoningEffortEnumXhigh OrchestratorResponsesReasoningEffortEnum = "xhigh" )
Defines values for OrchestratorResponsesReasoningEffortEnum.
func (OrchestratorResponsesReasoningEffortEnum) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesReasoningEffortEnum) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesReasoningEffortEnum enum.
type OrchestratorResponsesReasoningItemParam ¶ added in v0.6.0
type OrchestratorResponsesReasoningItemParam struct {
Content interface{} `json:"content,omitempty"`
// EncryptedContent An encrypted representation of the reasoning content.
EncryptedContent *string `json:"encrypted_content,omitempty"`
// Id The unique ID of this reasoning item.
Id *string `json:"id,omitempty"`
// Summary Reasoning summary content associated with this item.
Summary []OrchestratorResponsesReasoningSummaryContentParam `json:"summary"`
// Type The item type. Always `reasoning`.
Type OrchestratorResponsesReasoningItemParamType `json:"type"`
}
OrchestratorResponsesReasoningItemParam defines model for OrchestratorResponsesReasoningItemParam.
type OrchestratorResponsesReasoningItemParamType ¶ added in v0.6.0
type OrchestratorResponsesReasoningItemParamType string
OrchestratorResponsesReasoningItemParamType The item type. Always `reasoning`.
const (
OrchestratorResponsesReasoningItemParamTypeReasoning OrchestratorResponsesReasoningItemParamType = "reasoning"
)
Defines values for OrchestratorResponsesReasoningItemParamType.
func (OrchestratorResponsesReasoningItemParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesReasoningItemParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesReasoningItemParamType enum.
type OrchestratorResponsesReasoningParam ¶ added in v0.6.0
type OrchestratorResponsesReasoningParam struct {
// Effort Controls the level of reasoning effort the model should apply. Higher effort may increase latency and cost.
Effort *struct {
// contains filtered or unexported fields
} `json:"effort,omitempty"`
Summary *OrchestratorResponsesReasoningSummaryEnum `json:"summary,omitempty"`
}
OrchestratorResponsesReasoningParam **gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
type OrchestratorResponsesReasoningSummaryContentParam ¶ added in v0.6.0
type OrchestratorResponsesReasoningSummaryContentParam struct {
// Text The reasoning summary text.
Text string `json:"text"`
// Type The content type. Always `summary_text`.
Type OrchestratorResponsesReasoningSummaryContentParamType `json:"type"`
}
OrchestratorResponsesReasoningSummaryContentParam defines model for OrchestratorResponsesReasoningSummaryContentParam.
type OrchestratorResponsesReasoningSummaryContentParamType ¶ added in v0.6.0
type OrchestratorResponsesReasoningSummaryContentParamType string
OrchestratorResponsesReasoningSummaryContentParamType The content type. Always `summary_text`.
const (
OrchestratorResponsesReasoningSummaryContentParamTypeSummaryText OrchestratorResponsesReasoningSummaryContentParamType = "summary_text"
)
Defines values for OrchestratorResponsesReasoningSummaryContentParamType.
func (OrchestratorResponsesReasoningSummaryContentParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesReasoningSummaryContentParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesReasoningSummaryContentParamType enum.
type OrchestratorResponsesReasoningSummaryEnum ¶ added in v0.6.0
type OrchestratorResponsesReasoningSummaryEnum string
OrchestratorResponsesReasoningSummaryEnum defines model for OrchestratorResponsesReasoningSummaryEnum.
const ( OrchestratorResponsesReasoningSummaryEnumAuto OrchestratorResponsesReasoningSummaryEnum = "auto" OrchestratorResponsesReasoningSummaryEnumConcise OrchestratorResponsesReasoningSummaryEnum = "concise" OrchestratorResponsesReasoningSummaryEnumDetailed OrchestratorResponsesReasoningSummaryEnum = "detailed" )
Defines values for OrchestratorResponsesReasoningSummaryEnum.
func (OrchestratorResponsesReasoningSummaryEnum) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesReasoningSummaryEnum) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesReasoningSummaryEnum enum.
type OrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
type OrchestratorResponsesReasoningTextContent struct {
// Text The reasoning text from the model.
Text string `json:"text"`
// Type The type of the reasoning text. Always `reasoning_text`.
Type OrchestratorResponsesReasoningTextContentType `json:"type"`
}
OrchestratorResponsesReasoningTextContent Reasoning text from the model.
type OrchestratorResponsesReasoningTextContentType ¶ added in v0.6.0
type OrchestratorResponsesReasoningTextContentType string
OrchestratorResponsesReasoningTextContentType The type of the reasoning text. Always `reasoning_text`.
const (
OrchestratorResponsesReasoningTextContentTypeReasoningText OrchestratorResponsesReasoningTextContentType = "reasoning_text"
)
Defines values for OrchestratorResponsesReasoningTextContentType.
func (OrchestratorResponsesReasoningTextContentType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesReasoningTextContentType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesReasoningTextContentType enum.
type OrchestratorResponsesRefusalContent ¶ added in v0.6.0
type OrchestratorResponsesRefusalContent struct {
// Refusal The refusal explanation from the model.
Refusal string `json:"refusal"`
// Type The type of the refusal. Always `refusal`.
Type OrchestratorResponsesRefusalContentType `json:"type"`
}
OrchestratorResponsesRefusalContent A refusal from the model.
type OrchestratorResponsesRefusalContentParam ¶ added in v0.6.0
type OrchestratorResponsesRefusalContentParam struct {
// Refusal The refusal text.
Refusal string `json:"refusal"`
// Type The content type. Always `refusal`.
Type OrchestratorResponsesRefusalContentParamType `json:"type"`
}
OrchestratorResponsesRefusalContentParam defines model for OrchestratorResponsesRefusalContentParam.
type OrchestratorResponsesRefusalContentParamType ¶ added in v0.6.0
type OrchestratorResponsesRefusalContentParamType string
OrchestratorResponsesRefusalContentParamType The content type. Always `refusal`.
const (
OrchestratorResponsesRefusalContentParamTypeRefusal OrchestratorResponsesRefusalContentParamType = "refusal"
)
Defines values for OrchestratorResponsesRefusalContentParamType.
func (OrchestratorResponsesRefusalContentParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesRefusalContentParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesRefusalContentParamType enum.
type OrchestratorResponsesRefusalContentType ¶ added in v0.6.0
type OrchestratorResponsesRefusalContentType string
OrchestratorResponsesRefusalContentType The type of the refusal. Always `refusal`.
const (
OrchestratorResponsesRefusalContentTypeRefusal OrchestratorResponsesRefusalContentType = "refusal"
)
Defines values for OrchestratorResponsesRefusalContentType.
func (OrchestratorResponsesRefusalContentType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesRefusalContentType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesRefusalContentType enum.
type OrchestratorResponsesResponseCompletedStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseCompletedStreamingEvent struct {
// Response The complete response object that was returned by the Responses API.
Response OrchestratorResponsesResponseResource `json:"response"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.completed`.
Type OrchestratorResponsesResponseCompletedStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseCompletedStreamingEvent A streaming event that indicated the response was completed.
type OrchestratorResponsesResponseCompletedStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseCompletedStreamingEventType string
OrchestratorResponsesResponseCompletedStreamingEventType The type of the event, always `response.completed`.
const (
OrchestratorResponsesResponseCompletedStreamingEventTypeResponseCompleted OrchestratorResponsesResponseCompletedStreamingEventType = "response.completed"
)
Defines values for OrchestratorResponsesResponseCompletedStreamingEventType.
func (OrchestratorResponsesResponseCompletedStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseCompletedStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseCompletedStreamingEventType enum.
type OrchestratorResponsesResponseContentPartAddedStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseContentPartAddedStreamingEvent struct {
// ContentIndex The index of the content part that was added.
ContentIndex int `json:"content_index"`
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// Part A content part that makes up an input or output item.
Part OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part `json:"part"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.content_part.added`.
Type OrchestratorResponsesResponseContentPartAddedStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseContentPartAddedStreamingEvent A streaming event that indicated a content part was added.
type OrchestratorResponsesResponseContentPartAddedStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseContentPartAddedStreamingEventType string
OrchestratorResponsesResponseContentPartAddedStreamingEventType The type of the event, always `response.content_part.added`.
const (
OrchestratorResponsesResponseContentPartAddedStreamingEventTypeResponseContentPartAdded OrchestratorResponsesResponseContentPartAddedStreamingEventType = "response.content_part.added"
)
Defines values for OrchestratorResponsesResponseContentPartAddedStreamingEventType.
func (OrchestratorResponsesResponseContentPartAddedStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseContentPartAddedStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseContentPartAddedStreamingEventType enum.
type OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part ¶ added in v0.6.0
type OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part struct {
// contains filtered or unexported fields
}
OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part A content part that makes up an input or output item.
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
AsOrchestratorResponsesInputFileContent returns the union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as a OrchestratorResponsesInputFileContent
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
AsOrchestratorResponsesInputImageContent returns the union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as a OrchestratorResponsesInputImageContent
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
AsOrchestratorResponsesInputTextContent returns the union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as a OrchestratorResponsesInputTextContent
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
AsOrchestratorResponsesOutputTextContent returns the union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as a OrchestratorResponsesOutputTextContent
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
AsOrchestratorResponsesReasoningTextContent returns the union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as a OrchestratorResponsesReasoningTextContent
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
AsOrchestratorResponsesRefusalContent returns the union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as a OrchestratorResponsesRefusalContent
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
AsOrchestratorResponsesSummaryTextContent returns the union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as a OrchestratorResponsesSummaryTextContent
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
AsOrchestratorResponsesTextContent returns the union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as a OrchestratorResponsesTextContent
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) Discriminator() (string, error)
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
FromOrchestratorResponsesInputFileContent overwrites any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
FromOrchestratorResponsesInputImageContent overwrites any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
FromOrchestratorResponsesInputTextContent overwrites any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
FromOrchestratorResponsesOutputTextContent overwrites any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
FromOrchestratorResponsesReasoningTextContent overwrites any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
FromOrchestratorResponsesRefusalContent overwrites any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
FromOrchestratorResponsesSummaryTextContent overwrites any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
FromOrchestratorResponsesTextContent overwrites any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part as the provided OrchestratorResponsesTextContent
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
MergeOrchestratorResponsesInputFileContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
MergeOrchestratorResponsesInputImageContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
MergeOrchestratorResponsesInputTextContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
MergeOrchestratorResponsesOutputTextContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
MergeOrchestratorResponsesReasoningTextContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
MergeOrchestratorResponsesRefusalContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
MergeOrchestratorResponsesSummaryTextContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
MergeOrchestratorResponsesTextContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesTextContent
func (*OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartAddedStreamingEvent_Part) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesResponseContentPartDoneStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseContentPartDoneStreamingEvent struct {
// ContentIndex The index of the content part that was completed.
ContentIndex int `json:"content_index"`
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// Part A content part that makes up an input or output item.
Part OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part `json:"part"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.content_part.done`.
Type OrchestratorResponsesResponseContentPartDoneStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseContentPartDoneStreamingEvent A streaming event that indicated a content part was completed.
type OrchestratorResponsesResponseContentPartDoneStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseContentPartDoneStreamingEventType string
OrchestratorResponsesResponseContentPartDoneStreamingEventType The type of the event, always `response.content_part.done`.
const (
OrchestratorResponsesResponseContentPartDoneStreamingEventTypeResponseContentPartDone OrchestratorResponsesResponseContentPartDoneStreamingEventType = "response.content_part.done"
)
Defines values for OrchestratorResponsesResponseContentPartDoneStreamingEventType.
func (OrchestratorResponsesResponseContentPartDoneStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseContentPartDoneStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseContentPartDoneStreamingEventType enum.
type OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part ¶ added in v0.6.0
type OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part struct {
// contains filtered or unexported fields
}
OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part A content part that makes up an input or output item.
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
AsOrchestratorResponsesInputFileContent returns the union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as a OrchestratorResponsesInputFileContent
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
AsOrchestratorResponsesInputImageContent returns the union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as a OrchestratorResponsesInputImageContent
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
AsOrchestratorResponsesInputTextContent returns the union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as a OrchestratorResponsesInputTextContent
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
AsOrchestratorResponsesOutputTextContent returns the union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as a OrchestratorResponsesOutputTextContent
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
AsOrchestratorResponsesReasoningTextContent returns the union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as a OrchestratorResponsesReasoningTextContent
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
AsOrchestratorResponsesRefusalContent returns the union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as a OrchestratorResponsesRefusalContent
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
AsOrchestratorResponsesSummaryTextContent returns the union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as a OrchestratorResponsesSummaryTextContent
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
AsOrchestratorResponsesTextContent returns the union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as a OrchestratorResponsesTextContent
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) Discriminator() (string, error)
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
FromOrchestratorResponsesInputFileContent overwrites any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
FromOrchestratorResponsesInputImageContent overwrites any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
FromOrchestratorResponsesInputTextContent overwrites any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
FromOrchestratorResponsesOutputTextContent overwrites any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
FromOrchestratorResponsesReasoningTextContent overwrites any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
FromOrchestratorResponsesRefusalContent overwrites any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
FromOrchestratorResponsesSummaryTextContent overwrites any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
FromOrchestratorResponsesTextContent overwrites any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part as the provided OrchestratorResponsesTextContent
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
MergeOrchestratorResponsesInputFileContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
MergeOrchestratorResponsesInputImageContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
MergeOrchestratorResponsesInputTextContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
MergeOrchestratorResponsesOutputTextContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
MergeOrchestratorResponsesReasoningTextContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
MergeOrchestratorResponsesRefusalContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
MergeOrchestratorResponsesSummaryTextContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
MergeOrchestratorResponsesTextContent performs a merge with any union data inside the OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesTextContent
func (*OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesResponseContentPartDoneStreamingEvent_Part) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesResponseCreatedStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseCreatedStreamingEvent struct {
// Response The complete response object that was returned by the Responses API.
Response OrchestratorResponsesResponseResource `json:"response"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.created`.
Type OrchestratorResponsesResponseCreatedStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseCreatedStreamingEvent A streaming event that indicated the response was created.
type OrchestratorResponsesResponseCreatedStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseCreatedStreamingEventType string
OrchestratorResponsesResponseCreatedStreamingEventType The type of the event, always `response.created`.
const (
OrchestratorResponsesResponseCreatedStreamingEventTypeResponseCreated OrchestratorResponsesResponseCreatedStreamingEventType = "response.created"
)
Defines values for OrchestratorResponsesResponseCreatedStreamingEventType.
func (OrchestratorResponsesResponseCreatedStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseCreatedStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseCreatedStreamingEventType enum.
type OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent struct {
// Delta The input delta that was appended.
Delta string `json:"delta"`
// ItemId The ID of the custom tool call item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.custom_tool_call_input.delta`.
Type OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent A streaming event that indicated custom tool call input was incrementally added.
type OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEventType string
OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEventType The type of the event, always `response.custom_tool_call_input.delta`.
const (
OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEventTypeResponseCustomToolCallInputDelta OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEventType = "response.custom_tool_call_input.delta"
)
Defines values for OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEventType.
type OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent struct {
// Input The final input string that was emitted.
Input string `json:"input"`
// ItemId The ID of the custom tool call item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.custom_tool_call_input.done`.
Type OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent A streaming event that indicated custom tool call input was completed.
type OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEventType string
OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEventType The type of the event, always `response.custom_tool_call_input.done`.
const (
OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEventTypeResponseCustomToolCallInputDone OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEventType = "response.custom_tool_call_input.done"
)
Defines values for OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEventType.
type OrchestratorResponsesResponseFailedStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseFailedStreamingEvent struct {
// Response The complete response object that was returned by the Responses API.
Response OrchestratorResponsesResponseResource `json:"response"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.failed`.
Type OrchestratorResponsesResponseFailedStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseFailedStreamingEvent A streaming event that indicated the response had failed.
type OrchestratorResponsesResponseFailedStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseFailedStreamingEventType string
OrchestratorResponsesResponseFailedStreamingEventType The type of the event, always `response.failed`.
const (
OrchestratorResponsesResponseFailedStreamingEventTypeResponseFailed OrchestratorResponsesResponseFailedStreamingEventType = "response.failed"
)
Defines values for OrchestratorResponsesResponseFailedStreamingEventType.
func (OrchestratorResponsesResponseFailedStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseFailedStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseFailedStreamingEventType enum.
type OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent struct {
// Delta The arguments delta that was appended.
Delta string `json:"delta"`
// ItemId The ID of the tool call item that was updated.
ItemId string `json:"item_id"`
// Obfuscation An obfuscation string that was added to pad the event payload.
Obfuscation *string `json:"obfuscation,omitempty"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.function_call_arguments.delta`.
Type OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent A streaming event that indicated function call arguments were incrementally added.
type OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEventType string
OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEventType The type of the event, always `response.function_call_arguments.delta`.
const (
OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEventTypeResponseFunctionCallArgumentsDelta OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEventType = "response.function_call_arguments.delta"
)
Defines values for OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEventType.
type OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent struct {
// Arguments The final arguments string that was emitted.
Arguments string `json:"arguments"`
// ItemId The ID of the tool call item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.function_call_arguments.done`.
Type OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent A streaming event that indicated function call arguments were completed.
type OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEventType string
OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEventType The type of the event, always `response.function_call_arguments.done`.
const (
OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEventTypeResponseFunctionCallArgumentsDone OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEventType = "response.function_call_arguments.done"
)
Defines values for OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEventType.
type OrchestratorResponsesResponseInProgressStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseInProgressStreamingEvent struct {
// Response The complete response object that was returned by the Responses API.
Response OrchestratorResponsesResponseResource `json:"response"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.in_progress`.
Type OrchestratorResponsesResponseInProgressStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseInProgressStreamingEvent A streaming event that indicated the response was in progress.
type OrchestratorResponsesResponseInProgressStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseInProgressStreamingEventType string
OrchestratorResponsesResponseInProgressStreamingEventType The type of the event, always `response.in_progress`.
const (
OrchestratorResponsesResponseInProgressStreamingEventTypeResponseInProgress OrchestratorResponsesResponseInProgressStreamingEventType = "response.in_progress"
)
Defines values for OrchestratorResponsesResponseInProgressStreamingEventType.
func (OrchestratorResponsesResponseInProgressStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseInProgressStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseInProgressStreamingEventType enum.
type OrchestratorResponsesResponseIncompleteStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseIncompleteStreamingEvent struct {
// Response The complete response object that was returned by the Responses API.
Response OrchestratorResponsesResponseResource `json:"response"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.incomplete`.
Type OrchestratorResponsesResponseIncompleteStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseIncompleteStreamingEvent A streaming event that indicated the response was incomplete.
type OrchestratorResponsesResponseIncompleteStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseIncompleteStreamingEventType string
OrchestratorResponsesResponseIncompleteStreamingEventType The type of the event, always `response.incomplete`.
const (
OrchestratorResponsesResponseIncompleteStreamingEventTypeResponseIncomplete OrchestratorResponsesResponseIncompleteStreamingEventType = "response.incomplete"
)
Defines values for OrchestratorResponsesResponseIncompleteStreamingEventType.
func (OrchestratorResponsesResponseIncompleteStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseIncompleteStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseIncompleteStreamingEventType enum.
type OrchestratorResponsesResponseOutputItemAddedStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseOutputItemAddedStreamingEvent struct {
// Item An item representing a message, tool call, tool output, reasoning, or other response element.
Item OrchestratorResponsesItemField `json:"item"`
// OutputIndex The index of the output item that was added.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.output_item.added`.
Type OrchestratorResponsesResponseOutputItemAddedStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseOutputItemAddedStreamingEvent A streaming event that indicated an output item was added to the response.
type OrchestratorResponsesResponseOutputItemAddedStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseOutputItemAddedStreamingEventType string
OrchestratorResponsesResponseOutputItemAddedStreamingEventType The type of the event, always `response.output_item.added`.
const (
OrchestratorResponsesResponseOutputItemAddedStreamingEventTypeResponseOutputItemAdded OrchestratorResponsesResponseOutputItemAddedStreamingEventType = "response.output_item.added"
)
Defines values for OrchestratorResponsesResponseOutputItemAddedStreamingEventType.
func (OrchestratorResponsesResponseOutputItemAddedStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseOutputItemAddedStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseOutputItemAddedStreamingEventType enum.
type OrchestratorResponsesResponseOutputItemDoneStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseOutputItemDoneStreamingEvent struct {
// Item An item representing a message, tool call, tool output, reasoning, or other response element.
Item OrchestratorResponsesItemField `json:"item"`
// OutputIndex The index of the output item that was completed.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.output_item.done`.
Type OrchestratorResponsesResponseOutputItemDoneStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseOutputItemDoneStreamingEvent A streaming event that indicated an output item was completed.
type OrchestratorResponsesResponseOutputItemDoneStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseOutputItemDoneStreamingEventType string
OrchestratorResponsesResponseOutputItemDoneStreamingEventType The type of the event, always `response.output_item.done`.
const (
OrchestratorResponsesResponseOutputItemDoneStreamingEventTypeResponseOutputItemDone OrchestratorResponsesResponseOutputItemDoneStreamingEventType = "response.output_item.done"
)
Defines values for OrchestratorResponsesResponseOutputItemDoneStreamingEventType.
func (OrchestratorResponsesResponseOutputItemDoneStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseOutputItemDoneStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseOutputItemDoneStreamingEventType enum.
type OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent struct {
// Annotation An annotation that applies to a span of output text.
Annotation OrchestratorResponsesAnnotation `json:"annotation"`
// AnnotationIndex The index of the annotation that was added.
AnnotationIndex int `json:"annotation_index"`
// ContentIndex The index of the output text content that was updated.
ContentIndex int `json:"content_index"`
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.output_text.annotation.added`.
Type OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent A streaming event that indicated an output text annotation was added.
type OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEventType string
OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEventType The type of the event, always `response.output_text.annotation.added`.
const (
OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEventTypeResponseOutputTextAnnotationAdded OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEventType = "response.output_text.annotation.added"
)
Defines values for OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEventType.
type OrchestratorResponsesResponseOutputTextDeltaStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseOutputTextDeltaStreamingEvent struct {
// ContentIndex The index of the content part that was updated.
ContentIndex int `json:"content_index"`
// Delta The text delta that was appended.
Delta string `json:"delta"`
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// Logprobs The token log probabilities that were emitted with the delta, if any.
Logprobs *[]OrchestratorResponsesLogProb `json:"logprobs,omitempty"`
// Obfuscation An obfuscation string that was added to pad the event payload.
Obfuscation *string `json:"obfuscation,omitempty"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.output_text.delta`.
Type OrchestratorResponsesResponseOutputTextDeltaStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseOutputTextDeltaStreamingEvent A streaming event that indicated output text was incrementally added.
type OrchestratorResponsesResponseOutputTextDeltaStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseOutputTextDeltaStreamingEventType string
OrchestratorResponsesResponseOutputTextDeltaStreamingEventType The type of the event, always `response.output_text.delta`.
const (
OrchestratorResponsesResponseOutputTextDeltaStreamingEventTypeResponseOutputTextDelta OrchestratorResponsesResponseOutputTextDeltaStreamingEventType = "response.output_text.delta"
)
Defines values for OrchestratorResponsesResponseOutputTextDeltaStreamingEventType.
func (OrchestratorResponsesResponseOutputTextDeltaStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseOutputTextDeltaStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseOutputTextDeltaStreamingEventType enum.
type OrchestratorResponsesResponseOutputTextDoneStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseOutputTextDoneStreamingEvent struct {
// ContentIndex The index of the content part that was completed.
ContentIndex int `json:"content_index"`
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// Logprobs The token log probabilities that were emitted with the final text, if any.
Logprobs *[]OrchestratorResponsesLogProb `json:"logprobs,omitempty"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Text The final text that was emitted.
Text string `json:"text"`
// Type The type of the event, always `response.output_text.done`.
Type OrchestratorResponsesResponseOutputTextDoneStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseOutputTextDoneStreamingEvent A streaming event that indicated output text was completed.
type OrchestratorResponsesResponseOutputTextDoneStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseOutputTextDoneStreamingEventType string
OrchestratorResponsesResponseOutputTextDoneStreamingEventType The type of the event, always `response.output_text.done`.
const (
OrchestratorResponsesResponseOutputTextDoneStreamingEventTypeResponseOutputTextDone OrchestratorResponsesResponseOutputTextDoneStreamingEventType = "response.output_text.done"
)
Defines values for OrchestratorResponsesResponseOutputTextDoneStreamingEventType.
func (OrchestratorResponsesResponseOutputTextDoneStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseOutputTextDoneStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseOutputTextDoneStreamingEventType enum.
type OrchestratorResponsesResponseQueuedStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseQueuedStreamingEvent struct {
// Response The complete response object that was returned by the Responses API.
Response OrchestratorResponsesResponseResource `json:"response"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.queued`.
Type OrchestratorResponsesResponseQueuedStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseQueuedStreamingEvent A streaming event that indicated the response was queued.
type OrchestratorResponsesResponseQueuedStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseQueuedStreamingEventType string
OrchestratorResponsesResponseQueuedStreamingEventType The type of the event, always `response.queued`.
const (
OrchestratorResponsesResponseQueuedStreamingEventTypeResponseQueued OrchestratorResponsesResponseQueuedStreamingEventType = "response.queued"
)
Defines values for OrchestratorResponsesResponseQueuedStreamingEventType.
func (OrchestratorResponsesResponseQueuedStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseQueuedStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseQueuedStreamingEventType enum.
type OrchestratorResponsesResponseReasoningDeltaStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningDeltaStreamingEvent struct {
// ContentIndex The index of the reasoning content that was updated.
ContentIndex int `json:"content_index"`
// Delta The reasoning text delta that was appended.
Delta string `json:"delta"`
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// Obfuscation An obfuscation string that was added to pad the event payload.
Obfuscation *string `json:"obfuscation,omitempty"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.reasoning.delta`.
Type OrchestratorResponsesResponseReasoningDeltaStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseReasoningDeltaStreamingEvent A streaming event that indicated reasoning text was incrementally added.
type OrchestratorResponsesResponseReasoningDeltaStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningDeltaStreamingEventType string
OrchestratorResponsesResponseReasoningDeltaStreamingEventType The type of the event, always `response.reasoning.delta`.
const (
OrchestratorResponsesResponseReasoningDeltaStreamingEventTypeResponseReasoningDelta OrchestratorResponsesResponseReasoningDeltaStreamingEventType = "response.reasoning.delta"
)
Defines values for OrchestratorResponsesResponseReasoningDeltaStreamingEventType.
func (OrchestratorResponsesResponseReasoningDeltaStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseReasoningDeltaStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseReasoningDeltaStreamingEventType enum.
type OrchestratorResponsesResponseReasoningDoneStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningDoneStreamingEvent struct {
// ContentIndex The index of the reasoning content that was completed.
ContentIndex int `json:"content_index"`
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Text The final reasoning text that was emitted.
Text string `json:"text"`
// Type The type of the event, always `response.reasoning.done`.
Type OrchestratorResponsesResponseReasoningDoneStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseReasoningDoneStreamingEvent A streaming event that indicated reasoning text was completed.
type OrchestratorResponsesResponseReasoningDoneStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningDoneStreamingEventType string
OrchestratorResponsesResponseReasoningDoneStreamingEventType The type of the event, always `response.reasoning.done`.
const (
OrchestratorResponsesResponseReasoningDoneStreamingEventTypeResponseReasoningDone OrchestratorResponsesResponseReasoningDoneStreamingEventType = "response.reasoning.done"
)
Defines values for OrchestratorResponsesResponseReasoningDoneStreamingEventType.
func (OrchestratorResponsesResponseReasoningDoneStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseReasoningDoneStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseReasoningDoneStreamingEventType enum.
type OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent struct {
// Delta The summary text delta that was appended.
Delta string `json:"delta"`
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// Obfuscation An obfuscation string that was added to pad the event payload.
Obfuscation *string `json:"obfuscation,omitempty"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// SummaryIndex The index of the summary content that was updated.
SummaryIndex int `json:"summary_index"`
// Type The type of the event, always `response.reasoning_summary.delta`.
Type OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent A streaming event that indicated a reasoning summary was incrementally added.
type OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventType string
OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventType The type of the event, always `response.reasoning_summary.delta`.
const (
OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventTypeResponseReasoningSummaryTextDelta OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventType = "response.reasoning_summary_text.delta"
)
Defines values for OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventType.
func (OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEventType enum.
type OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent struct {
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// SummaryIndex The index of the summary content that was completed.
SummaryIndex int `json:"summary_index"`
// Text The final summary text that was emitted.
Text string `json:"text"`
// Type The type of the event, always `response.reasoning_summary.done`.
Type OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent A streaming event that indicated a reasoning summary was completed.
type OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventType string
OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventType The type of the event, always `response.reasoning_summary.done`.
const (
OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventTypeResponseReasoningSummaryTextDone OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventType = "response.reasoning_summary_text.done"
)
Defines values for OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventType.
func (OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseReasoningSummaryDoneStreamingEventType enum.
type OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent struct {
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// Part A content part that makes up an input or output item.
Part OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part `json:"part"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// SummaryIndex The index of the summary part that was added.
SummaryIndex int `json:"summary_index"`
// Type The type of the event, always `response.reasoning_summary_part.added`.
Type OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent A streaming event that indicated a reasoning summary part was added.
type OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEventType string
OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEventType The type of the event, always `response.reasoning_summary_part.added`.
const (
OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEventTypeResponseReasoningSummaryPartAdded OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEventType = "response.reasoning_summary_part.added"
)
Defines values for OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEventType.
type OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part struct {
// contains filtered or unexported fields
}
OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part A content part that makes up an input or output item.
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
AsOrchestratorResponsesInputFileContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as a OrchestratorResponsesInputFileContent
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
AsOrchestratorResponsesInputImageContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as a OrchestratorResponsesInputImageContent
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
AsOrchestratorResponsesInputTextContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as a OrchestratorResponsesInputTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
AsOrchestratorResponsesOutputTextContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as a OrchestratorResponsesOutputTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
AsOrchestratorResponsesReasoningTextContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as a OrchestratorResponsesReasoningTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
AsOrchestratorResponsesRefusalContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as a OrchestratorResponsesRefusalContent
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
AsOrchestratorResponsesSummaryTextContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as a OrchestratorResponsesSummaryTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
AsOrchestratorResponsesTextContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as a OrchestratorResponsesTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) Discriminator() (string, error)
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
FromOrchestratorResponsesInputFileContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
FromOrchestratorResponsesInputImageContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
FromOrchestratorResponsesInputTextContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
FromOrchestratorResponsesOutputTextContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
FromOrchestratorResponsesReasoningTextContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
FromOrchestratorResponsesRefusalContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
FromOrchestratorResponsesSummaryTextContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
FromOrchestratorResponsesTextContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part as the provided OrchestratorResponsesTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
MergeOrchestratorResponsesInputFileContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
MergeOrchestratorResponsesInputImageContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
MergeOrchestratorResponsesInputTextContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
MergeOrchestratorResponsesOutputTextContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
MergeOrchestratorResponsesReasoningTextContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
MergeOrchestratorResponsesRefusalContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
MergeOrchestratorResponsesSummaryTextContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
MergeOrchestratorResponsesTextContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part, using the provided OrchestratorResponsesTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent_Part) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent struct {
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// Part A content part that makes up an input or output item.
Part OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part `json:"part"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// SummaryIndex The index of the summary part that was completed.
SummaryIndex int `json:"summary_index"`
// Type The type of the event, always `response.reasoning_summary_part.done`.
Type OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent A streaming event that indicated a reasoning summary part was completed.
type OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEventType string
OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEventType The type of the event, always `response.reasoning_summary_part.done`.
const (
OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEventTypeResponseReasoningSummaryPartDone OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEventType = "response.reasoning_summary_part.done"
)
Defines values for OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEventType.
type OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part ¶ added in v0.6.0
type OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part struct {
// contains filtered or unexported fields
}
OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part A content part that makes up an input or output item.
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputFileContent() (OrchestratorResponsesInputFileContent, error)
AsOrchestratorResponsesInputFileContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as a OrchestratorResponsesInputFileContent
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputImageContent() (OrchestratorResponsesInputImageContent, error)
AsOrchestratorResponsesInputImageContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as a OrchestratorResponsesInputImageContent
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesInputTextContent() (OrchestratorResponsesInputTextContent, error)
AsOrchestratorResponsesInputTextContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as a OrchestratorResponsesInputTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesOutputTextContent() (OrchestratorResponsesOutputTextContent, error)
AsOrchestratorResponsesOutputTextContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as a OrchestratorResponsesOutputTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesReasoningTextContent() (OrchestratorResponsesReasoningTextContent, error)
AsOrchestratorResponsesReasoningTextContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as a OrchestratorResponsesReasoningTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesRefusalContent() (OrchestratorResponsesRefusalContent, error)
AsOrchestratorResponsesRefusalContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as a OrchestratorResponsesRefusalContent
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesSummaryTextContent() (OrchestratorResponsesSummaryTextContent, error)
AsOrchestratorResponsesSummaryTextContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as a OrchestratorResponsesSummaryTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) AsOrchestratorResponsesTextContent() (OrchestratorResponsesTextContent, error)
AsOrchestratorResponsesTextContent returns the union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as a OrchestratorResponsesTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) Discriminator() (string, error)
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
FromOrchestratorResponsesInputFileContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
FromOrchestratorResponsesInputImageContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
FromOrchestratorResponsesInputTextContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
FromOrchestratorResponsesOutputTextContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
FromOrchestratorResponsesReasoningTextContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
FromOrchestratorResponsesRefusalContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
FromOrchestratorResponsesSummaryTextContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) FromOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
FromOrchestratorResponsesTextContent overwrites any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part as the provided OrchestratorResponsesTextContent
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputFileContent(v OrchestratorResponsesInputFileContent) error
MergeOrchestratorResponsesInputFileContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesInputFileContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputImageContent(v OrchestratorResponsesInputImageContent) error
MergeOrchestratorResponsesInputImageContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesInputImageContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesInputTextContent(v OrchestratorResponsesInputTextContent) error
MergeOrchestratorResponsesInputTextContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesInputTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesOutputTextContent(v OrchestratorResponsesOutputTextContent) error
MergeOrchestratorResponsesOutputTextContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesOutputTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesReasoningTextContent(v OrchestratorResponsesReasoningTextContent) error
MergeOrchestratorResponsesReasoningTextContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesReasoningTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesRefusalContent(v OrchestratorResponsesRefusalContent) error
MergeOrchestratorResponsesRefusalContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesRefusalContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesSummaryTextContent(v OrchestratorResponsesSummaryTextContent) error
MergeOrchestratorResponsesSummaryTextContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesSummaryTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesTextContent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) MergeOrchestratorResponsesTextContent(v OrchestratorResponsesTextContent) error
MergeOrchestratorResponsesTextContent performs a merge with any union data inside the OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part, using the provided OrchestratorResponsesTextContent
func (*OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent_Part) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesResponseRefusalDeltaStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseRefusalDeltaStreamingEvent struct {
// ContentIndex The index of the refusal content that was updated.
ContentIndex int `json:"content_index"`
// Delta The refusal text delta that was appended.
Delta string `json:"delta"`
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.refusal.delta`.
Type OrchestratorResponsesResponseRefusalDeltaStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseRefusalDeltaStreamingEvent A streaming event that indicated refusal text was incrementally added.
type OrchestratorResponsesResponseRefusalDeltaStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseRefusalDeltaStreamingEventType string
OrchestratorResponsesResponseRefusalDeltaStreamingEventType The type of the event, always `response.refusal.delta`.
const (
OrchestratorResponsesResponseRefusalDeltaStreamingEventTypeResponseRefusalDelta OrchestratorResponsesResponseRefusalDeltaStreamingEventType = "response.refusal.delta"
)
Defines values for OrchestratorResponsesResponseRefusalDeltaStreamingEventType.
func (OrchestratorResponsesResponseRefusalDeltaStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseRefusalDeltaStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseRefusalDeltaStreamingEventType enum.
type OrchestratorResponsesResponseRefusalDoneStreamingEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseRefusalDoneStreamingEvent struct {
// ContentIndex The index of the refusal content that was completed.
ContentIndex int `json:"content_index"`
// ItemId The ID of the item that was updated.
ItemId string `json:"item_id"`
// OutputIndex The index of the output item that was updated.
OutputIndex int `json:"output_index"`
// Refusal The final refusal text that was emitted.
Refusal string `json:"refusal"`
// SequenceNumber The sequence number of the event that was emitted.
SequenceNumber int `json:"sequence_number"`
// Type The type of the event, always `response.refusal.done`.
Type OrchestratorResponsesResponseRefusalDoneStreamingEventType `json:"type"`
}
OrchestratorResponsesResponseRefusalDoneStreamingEvent A streaming event that indicated refusal text was completed.
type OrchestratorResponsesResponseRefusalDoneStreamingEventType ¶ added in v0.6.0
type OrchestratorResponsesResponseRefusalDoneStreamingEventType string
OrchestratorResponsesResponseRefusalDoneStreamingEventType The type of the event, always `response.refusal.done`.
const (
OrchestratorResponsesResponseRefusalDoneStreamingEventTypeResponseRefusalDone OrchestratorResponsesResponseRefusalDoneStreamingEventType = "response.refusal.done"
)
Defines values for OrchestratorResponsesResponseRefusalDoneStreamingEventType.
func (OrchestratorResponsesResponseRefusalDoneStreamingEventType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseRefusalDoneStreamingEventType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseRefusalDoneStreamingEventType enum.
type OrchestratorResponsesResponseResource ¶ added in v0.6.0
type OrchestratorResponsesResponseResource struct {
// Background Whether this request was run in the background.
Background bool `json:"background"`
// CompletedAt The Unix timestamp (in seconds) for when the response was completed, if it was completed.
CompletedAt *int `json:"completed_at"`
// CreatedAt The Unix timestamp (in seconds) for when the response was created.
CreatedAt int `json:"created_at"`
// Error The error that occurred, if the response failed.
Error *OrchestratorResponsesError `json:"error"`
// FrequencyPenalty The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.
FrequencyPenalty float64 `json:"frequency_penalty"`
// Id The unique ID of the response that was created.
Id string `json:"id"`
// IncompleteDetails Details about why the response was incomplete, if applicable.
IncompleteDetails *OrchestratorResponsesIncompleteDetails `json:"incomplete_details"`
// Instructions Additional instructions that were used to guide the model for this response.
Instructions *struct {
// contains filtered or unexported fields
} `json:"instructions"`
// MaxOutputTokens The maximum number of tokens the model was allowed to generate for this response.
MaxOutputTokens *int `json:"max_output_tokens"`
// MaxToolCalls The maximum number of tool calls the model was allowed to make while generating the response.
MaxToolCalls *int `json:"max_tool_calls"`
// Metadata Developer-defined metadata associated with the response.
Metadata interface{} `json:"metadata"`
// Model The model that served the request. With `perplexity/auto`, this is the selected model, not `perplexity/auto`. Billing uses the served model's rates.
Model string `json:"model"`
// Object The object type, which was always `response`.
Object OrchestratorResponsesResponseResourceObject `json:"object"`
// Output The output items that were generated by the model.
Output []OrchestratorResponsesItemField `json:"output"`
// ParallelToolCalls Whether the model was allowed to call multiple tools in parallel.
ParallelToolCalls bool `json:"parallel_tool_calls"`
// PresencePenalty The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.
PresencePenalty float64 `json:"presence_penalty"`
// PreviousResponseId The ID of the previous response in the chain that was referenced, if any.
PreviousResponseId *string `json:"previous_response_id"`
// PromptCacheKey A key that was used to read from or write to the prompt cache.
PromptCacheKey *string `json:"prompt_cache_key"`
// Reasoning The reasoning configuration used for this response.
Reasoning *map[string]interface{} `json:"reasoning"`
// SafetyIdentifier A stable identifier that was used for safety monitoring and abuse detection.
SafetyIdentifier *string `json:"safety_identifier"`
// ServiceTier The service tier that was used for this response.
ServiceTier string `json:"service_tier"`
// Status The status that was set for the response.
Status string `json:"status"`
// Store Whether this response was stored so it can be retrieved later.
Store bool `json:"store"`
// Temperature The sampling temperature that was used for this response.
Temperature float64 `json:"temperature"`
// Text The text output configuration used for this response.
Text map[string]interface{} `json:"text"`
ToolChoice OrchestratorResponsesResponseResource_ToolChoice `json:"tool_choice"`
// Tools The tools that were available to the model during response generation.
Tools []OrchestratorResponsesTool `json:"tools"`
// TopLogprobs The number of most likely tokens that were returned at each position, along with their log probabilities.
TopLogprobs int `json:"top_logprobs"`
// TopP The nucleus sampling parameter that was used for this response.
TopP float64 `json:"top_p"`
Truncation OrchestratorResponsesTruncationEnum `json:"truncation"`
// Usage Token usage statistics that were recorded for the response, if available.
Usage *OrchestratorResponsesUsage `json:"usage"`
}
OrchestratorResponsesResponseResource The complete response object that was returned by the Responses API.
type OrchestratorResponsesResponseResourceInstructions0 ¶ added in v0.6.0
type OrchestratorResponsesResponseResourceInstructions0 = string
OrchestratorResponsesResponseResourceInstructions0 defines model for OrchestratorResponsesResponseResource.Instructions.0.
type OrchestratorResponsesResponseResourceObject ¶ added in v0.6.0
type OrchestratorResponsesResponseResourceObject string
OrchestratorResponsesResponseResourceObject The object type, which was always `response`.
const (
OrchestratorResponsesResponseResourceObjectResponse OrchestratorResponsesResponseResourceObject = "response"
)
Defines values for OrchestratorResponsesResponseResourceObject.
func (OrchestratorResponsesResponseResourceObject) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesResponseResourceObject) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesResponseResourceObject enum.
type OrchestratorResponsesResponseResource_ToolChoice ¶ added in v0.6.0
type OrchestratorResponsesResponseResource_ToolChoice struct {
// contains filtered or unexported fields
}
OrchestratorResponsesResponseResource_ToolChoice defines model for OrchestratorResponsesResponseResource.ToolChoice.
func (OrchestratorResponsesResponseResource_ToolChoice) AsOrchestratorResponsesAllowedToolChoice ¶ added in v0.6.0
func (t OrchestratorResponsesResponseResource_ToolChoice) AsOrchestratorResponsesAllowedToolChoice() (OrchestratorResponsesAllowedToolChoice, error)
AsOrchestratorResponsesAllowedToolChoice returns the union data inside the OrchestratorResponsesResponseResource_ToolChoice as a OrchestratorResponsesAllowedToolChoice
func (OrchestratorResponsesResponseResource_ToolChoice) AsOrchestratorResponsesFunctionToolChoice ¶ added in v0.6.0
func (t OrchestratorResponsesResponseResource_ToolChoice) AsOrchestratorResponsesFunctionToolChoice() (OrchestratorResponsesFunctionToolChoice, error)
AsOrchestratorResponsesFunctionToolChoice returns the union data inside the OrchestratorResponsesResponseResource_ToolChoice as a OrchestratorResponsesFunctionToolChoice
func (OrchestratorResponsesResponseResource_ToolChoice) AsOrchestratorResponsesToolChoiceValueEnum ¶ added in v0.6.0
func (t OrchestratorResponsesResponseResource_ToolChoice) AsOrchestratorResponsesToolChoiceValueEnum() (OrchestratorResponsesToolChoiceValueEnum, error)
AsOrchestratorResponsesToolChoiceValueEnum returns the union data inside the OrchestratorResponsesResponseResource_ToolChoice as a OrchestratorResponsesToolChoiceValueEnum
func (*OrchestratorResponsesResponseResource_ToolChoice) FromOrchestratorResponsesAllowedToolChoice ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseResource_ToolChoice) FromOrchestratorResponsesAllowedToolChoice(v OrchestratorResponsesAllowedToolChoice) error
FromOrchestratorResponsesAllowedToolChoice overwrites any union data inside the OrchestratorResponsesResponseResource_ToolChoice as the provided OrchestratorResponsesAllowedToolChoice
func (*OrchestratorResponsesResponseResource_ToolChoice) FromOrchestratorResponsesFunctionToolChoice ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseResource_ToolChoice) FromOrchestratorResponsesFunctionToolChoice(v OrchestratorResponsesFunctionToolChoice) error
FromOrchestratorResponsesFunctionToolChoice overwrites any union data inside the OrchestratorResponsesResponseResource_ToolChoice as the provided OrchestratorResponsesFunctionToolChoice
func (*OrchestratorResponsesResponseResource_ToolChoice) FromOrchestratorResponsesToolChoiceValueEnum ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseResource_ToolChoice) FromOrchestratorResponsesToolChoiceValueEnum(v OrchestratorResponsesToolChoiceValueEnum) error
FromOrchestratorResponsesToolChoiceValueEnum overwrites any union data inside the OrchestratorResponsesResponseResource_ToolChoice as the provided OrchestratorResponsesToolChoiceValueEnum
func (OrchestratorResponsesResponseResource_ToolChoice) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesResponseResource_ToolChoice) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesResponseResource_ToolChoice) MergeOrchestratorResponsesAllowedToolChoice ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseResource_ToolChoice) MergeOrchestratorResponsesAllowedToolChoice(v OrchestratorResponsesAllowedToolChoice) error
MergeOrchestratorResponsesAllowedToolChoice performs a merge with any union data inside the OrchestratorResponsesResponseResource_ToolChoice, using the provided OrchestratorResponsesAllowedToolChoice
func (*OrchestratorResponsesResponseResource_ToolChoice) MergeOrchestratorResponsesFunctionToolChoice ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseResource_ToolChoice) MergeOrchestratorResponsesFunctionToolChoice(v OrchestratorResponsesFunctionToolChoice) error
MergeOrchestratorResponsesFunctionToolChoice performs a merge with any union data inside the OrchestratorResponsesResponseResource_ToolChoice, using the provided OrchestratorResponsesFunctionToolChoice
func (*OrchestratorResponsesResponseResource_ToolChoice) MergeOrchestratorResponsesToolChoiceValueEnum ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseResource_ToolChoice) MergeOrchestratorResponsesToolChoiceValueEnum(v OrchestratorResponsesToolChoiceValueEnum) error
MergeOrchestratorResponsesToolChoiceValueEnum performs a merge with any union data inside the OrchestratorResponsesResponseResource_ToolChoice, using the provided OrchestratorResponsesToolChoiceValueEnum
func (*OrchestratorResponsesResponseResource_ToolChoice) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseResource_ToolChoice) UnmarshalJSON(b []byte) error
type OrchestratorResponsesResponseStreamEvent ¶ added in v0.6.0
type OrchestratorResponsesResponseStreamEvent struct {
// contains filtered or unexported fields
}
OrchestratorResponsesResponseStreamEvent One event in a streamed response.
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesErrorStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesErrorStreamingEvent() (OrchestratorResponsesErrorStreamingEvent, error)
AsOrchestratorResponsesErrorStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesErrorStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCompletedStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCompletedStreamingEvent() (OrchestratorResponsesResponseCompletedStreamingEvent, error)
AsOrchestratorResponsesResponseCompletedStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseCompletedStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseContentPartAddedStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseContentPartAddedStreamingEvent() (OrchestratorResponsesResponseContentPartAddedStreamingEvent, error)
AsOrchestratorResponsesResponseContentPartAddedStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseContentPartAddedStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseContentPartDoneStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseContentPartDoneStreamingEvent() (OrchestratorResponsesResponseContentPartDoneStreamingEvent, error)
AsOrchestratorResponsesResponseContentPartDoneStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseContentPartDoneStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCreatedStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCreatedStreamingEvent() (OrchestratorResponsesResponseCreatedStreamingEvent, error)
AsOrchestratorResponsesResponseCreatedStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseCreatedStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent() (OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent, error)
AsOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent() (OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent, error)
AsOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseFailedStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseFailedStreamingEvent() (OrchestratorResponsesResponseFailedStreamingEvent, error)
AsOrchestratorResponsesResponseFailedStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseFailedStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent() (OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent, error)
AsOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent() (OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent, error)
AsOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseInProgressStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseInProgressStreamingEvent() (OrchestratorResponsesResponseInProgressStreamingEvent, error)
AsOrchestratorResponsesResponseInProgressStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseInProgressStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseIncompleteStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseIncompleteStreamingEvent() (OrchestratorResponsesResponseIncompleteStreamingEvent, error)
AsOrchestratorResponsesResponseIncompleteStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseIncompleteStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputItemAddedStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputItemAddedStreamingEvent() (OrchestratorResponsesResponseOutputItemAddedStreamingEvent, error)
AsOrchestratorResponsesResponseOutputItemAddedStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseOutputItemAddedStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputItemDoneStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputItemDoneStreamingEvent() (OrchestratorResponsesResponseOutputItemDoneStreamingEvent, error)
AsOrchestratorResponsesResponseOutputItemDoneStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseOutputItemDoneStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent() (OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent, error)
AsOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputTextDeltaStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputTextDeltaStreamingEvent() (OrchestratorResponsesResponseOutputTextDeltaStreamingEvent, error)
AsOrchestratorResponsesResponseOutputTextDeltaStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseOutputTextDeltaStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputTextDoneStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseOutputTextDoneStreamingEvent() (OrchestratorResponsesResponseOutputTextDoneStreamingEvent, error)
AsOrchestratorResponsesResponseOutputTextDoneStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseOutputTextDoneStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseQueuedStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseQueuedStreamingEvent() (OrchestratorResponsesResponseQueuedStreamingEvent, error)
AsOrchestratorResponsesResponseQueuedStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseQueuedStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningDeltaStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningDeltaStreamingEvent() (OrchestratorResponsesResponseReasoningDeltaStreamingEvent, error)
AsOrchestratorResponsesResponseReasoningDeltaStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseReasoningDeltaStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningDoneStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningDoneStreamingEvent() (OrchestratorResponsesResponseReasoningDoneStreamingEvent, error)
AsOrchestratorResponsesResponseReasoningDoneStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseReasoningDoneStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent() (OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent, error)
AsOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent() (OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent, error)
AsOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent() (OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent, error)
AsOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent() (OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent, error)
AsOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseRefusalDeltaStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseRefusalDeltaStreamingEvent() (OrchestratorResponsesResponseRefusalDeltaStreamingEvent, error)
AsOrchestratorResponsesResponseRefusalDeltaStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseRefusalDeltaStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseRefusalDoneStreamingEvent ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) AsOrchestratorResponsesResponseRefusalDoneStreamingEvent() (OrchestratorResponsesResponseRefusalDoneStreamingEvent, error)
AsOrchestratorResponsesResponseRefusalDoneStreamingEvent returns the union data inside the OrchestratorResponsesResponseStreamEvent as a OrchestratorResponsesResponseRefusalDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesErrorStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesErrorStreamingEvent(v OrchestratorResponsesErrorStreamingEvent) error
FromOrchestratorResponsesErrorStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesErrorStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCompletedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCompletedStreamingEvent(v OrchestratorResponsesResponseCompletedStreamingEvent) error
FromOrchestratorResponsesResponseCompletedStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseCompletedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseContentPartAddedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseContentPartAddedStreamingEvent(v OrchestratorResponsesResponseContentPartAddedStreamingEvent) error
FromOrchestratorResponsesResponseContentPartAddedStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseContentPartAddedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseContentPartDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseContentPartDoneStreamingEvent(v OrchestratorResponsesResponseContentPartDoneStreamingEvent) error
FromOrchestratorResponsesResponseContentPartDoneStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseContentPartDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCreatedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCreatedStreamingEvent(v OrchestratorResponsesResponseCreatedStreamingEvent) error
FromOrchestratorResponsesResponseCreatedStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseCreatedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent(v OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent) error
FromOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent(v OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent) error
FromOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseFailedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseFailedStreamingEvent(v OrchestratorResponsesResponseFailedStreamingEvent) error
FromOrchestratorResponsesResponseFailedStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseFailedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent(v OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent) error
FromOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent(v OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent) error
FromOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseInProgressStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseInProgressStreamingEvent(v OrchestratorResponsesResponseInProgressStreamingEvent) error
FromOrchestratorResponsesResponseInProgressStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseInProgressStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseIncompleteStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseIncompleteStreamingEvent(v OrchestratorResponsesResponseIncompleteStreamingEvent) error
FromOrchestratorResponsesResponseIncompleteStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseIncompleteStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputItemAddedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputItemAddedStreamingEvent(v OrchestratorResponsesResponseOutputItemAddedStreamingEvent) error
FromOrchestratorResponsesResponseOutputItemAddedStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseOutputItemAddedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputItemDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputItemDoneStreamingEvent(v OrchestratorResponsesResponseOutputItemDoneStreamingEvent) error
FromOrchestratorResponsesResponseOutputItemDoneStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseOutputItemDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent(v OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent) error
FromOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputTextDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputTextDeltaStreamingEvent(v OrchestratorResponsesResponseOutputTextDeltaStreamingEvent) error
FromOrchestratorResponsesResponseOutputTextDeltaStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseOutputTextDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputTextDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseOutputTextDoneStreamingEvent(v OrchestratorResponsesResponseOutputTextDoneStreamingEvent) error
FromOrchestratorResponsesResponseOutputTextDoneStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseOutputTextDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseQueuedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseQueuedStreamingEvent(v OrchestratorResponsesResponseQueuedStreamingEvent) error
FromOrchestratorResponsesResponseQueuedStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseQueuedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningDeltaStreamingEvent(v OrchestratorResponsesResponseReasoningDeltaStreamingEvent) error
FromOrchestratorResponsesResponseReasoningDeltaStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseReasoningDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningDoneStreamingEvent(v OrchestratorResponsesResponseReasoningDoneStreamingEvent) error
FromOrchestratorResponsesResponseReasoningDoneStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseReasoningDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent) error
FromOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent) error
FromOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent) error
FromOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent) error
FromOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseRefusalDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseRefusalDeltaStreamingEvent(v OrchestratorResponsesResponseRefusalDeltaStreamingEvent) error
FromOrchestratorResponsesResponseRefusalDeltaStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseRefusalDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseRefusalDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) FromOrchestratorResponsesResponseRefusalDoneStreamingEvent(v OrchestratorResponsesResponseRefusalDoneStreamingEvent) error
FromOrchestratorResponsesResponseRefusalDoneStreamingEvent overwrites any union data inside the OrchestratorResponsesResponseStreamEvent as the provided OrchestratorResponsesResponseRefusalDoneStreamingEvent
func (OrchestratorResponsesResponseStreamEvent) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesResponseStreamEvent) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesErrorStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesErrorStreamingEvent(v OrchestratorResponsesErrorStreamingEvent) error
MergeOrchestratorResponsesErrorStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesErrorStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCompletedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCompletedStreamingEvent(v OrchestratorResponsesResponseCompletedStreamingEvent) error
MergeOrchestratorResponsesResponseCompletedStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseCompletedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseContentPartAddedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseContentPartAddedStreamingEvent(v OrchestratorResponsesResponseContentPartAddedStreamingEvent) error
MergeOrchestratorResponsesResponseContentPartAddedStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseContentPartAddedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseContentPartDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseContentPartDoneStreamingEvent(v OrchestratorResponsesResponseContentPartDoneStreamingEvent) error
MergeOrchestratorResponsesResponseContentPartDoneStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseContentPartDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCreatedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCreatedStreamingEvent(v OrchestratorResponsesResponseCreatedStreamingEvent) error
MergeOrchestratorResponsesResponseCreatedStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseCreatedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent(v OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent) error
MergeOrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseCustomToolCallInputDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent(v OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent) error
MergeOrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseCustomToolCallInputDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseFailedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseFailedStreamingEvent(v OrchestratorResponsesResponseFailedStreamingEvent) error
MergeOrchestratorResponsesResponseFailedStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseFailedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent(v OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent) error
MergeOrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseFunctionCallArgumentsDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent(v OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent) error
MergeOrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseFunctionCallArgumentsDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseInProgressStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseInProgressStreamingEvent(v OrchestratorResponsesResponseInProgressStreamingEvent) error
MergeOrchestratorResponsesResponseInProgressStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseInProgressStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseIncompleteStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseIncompleteStreamingEvent(v OrchestratorResponsesResponseIncompleteStreamingEvent) error
MergeOrchestratorResponsesResponseIncompleteStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseIncompleteStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputItemAddedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputItemAddedStreamingEvent(v OrchestratorResponsesResponseOutputItemAddedStreamingEvent) error
MergeOrchestratorResponsesResponseOutputItemAddedStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseOutputItemAddedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputItemDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputItemDoneStreamingEvent(v OrchestratorResponsesResponseOutputItemDoneStreamingEvent) error
MergeOrchestratorResponsesResponseOutputItemDoneStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseOutputItemDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent(v OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent) error
MergeOrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseOutputTextAnnotationAddedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputTextDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputTextDeltaStreamingEvent(v OrchestratorResponsesResponseOutputTextDeltaStreamingEvent) error
MergeOrchestratorResponsesResponseOutputTextDeltaStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseOutputTextDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputTextDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseOutputTextDoneStreamingEvent(v OrchestratorResponsesResponseOutputTextDoneStreamingEvent) error
MergeOrchestratorResponsesResponseOutputTextDoneStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseOutputTextDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseQueuedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseQueuedStreamingEvent(v OrchestratorResponsesResponseQueuedStreamingEvent) error
MergeOrchestratorResponsesResponseQueuedStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseQueuedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningDeltaStreamingEvent(v OrchestratorResponsesResponseReasoningDeltaStreamingEvent) error
MergeOrchestratorResponsesResponseReasoningDeltaStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseReasoningDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningDoneStreamingEvent(v OrchestratorResponsesResponseReasoningDoneStreamingEvent) error
MergeOrchestratorResponsesResponseReasoningDoneStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseReasoningDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent) error
MergeOrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseReasoningSummaryDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent) error
MergeOrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseReasoningSummaryDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent) error
MergeOrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseReasoningSummaryPartAddedStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent(v OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent) error
MergeOrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseReasoningSummaryPartDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseRefusalDeltaStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseRefusalDeltaStreamingEvent(v OrchestratorResponsesResponseRefusalDeltaStreamingEvent) error
MergeOrchestratorResponsesResponseRefusalDeltaStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseRefusalDeltaStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseRefusalDoneStreamingEvent ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) MergeOrchestratorResponsesResponseRefusalDoneStreamingEvent(v OrchestratorResponsesResponseRefusalDoneStreamingEvent) error
MergeOrchestratorResponsesResponseRefusalDoneStreamingEvent performs a merge with any union data inside the OrchestratorResponsesResponseStreamEvent, using the provided OrchestratorResponsesResponseRefusalDoneStreamingEvent
func (*OrchestratorResponsesResponseStreamEvent) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesResponseStreamEvent) UnmarshalJSON(b []byte) error
type OrchestratorResponsesResponsesToolParam ¶ added in v0.6.0
type OrchestratorResponsesResponsesToolParam struct {
// contains filtered or unexported fields
}
OrchestratorResponsesResponsesToolParam defines model for OrchestratorResponsesResponsesToolParam.
func (OrchestratorResponsesResponsesToolParam) AsOrchestratorResponsesCustomToolParam ¶ added in v0.6.0
func (t OrchestratorResponsesResponsesToolParam) AsOrchestratorResponsesCustomToolParam() (OrchestratorResponsesCustomToolParam, error)
AsOrchestratorResponsesCustomToolParam returns the union data inside the OrchestratorResponsesResponsesToolParam as a OrchestratorResponsesCustomToolParam
func (OrchestratorResponsesResponsesToolParam) AsOrchestratorResponsesFunctionToolParam ¶ added in v0.6.0
func (t OrchestratorResponsesResponsesToolParam) AsOrchestratorResponsesFunctionToolParam() (OrchestratorResponsesFunctionToolParam, error)
AsOrchestratorResponsesFunctionToolParam returns the union data inside the OrchestratorResponsesResponsesToolParam as a OrchestratorResponsesFunctionToolParam
func (OrchestratorResponsesResponsesToolParam) AsOrchestratorResponsesNamespaceToolParam ¶ added in v0.6.0
func (t OrchestratorResponsesResponsesToolParam) AsOrchestratorResponsesNamespaceToolParam() (OrchestratorResponsesNamespaceToolParam, error)
AsOrchestratorResponsesNamespaceToolParam returns the union data inside the OrchestratorResponsesResponsesToolParam as a OrchestratorResponsesNamespaceToolParam
func (OrchestratorResponsesResponsesToolParam) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesResponsesToolParam) Discriminator() (string, error)
func (*OrchestratorResponsesResponsesToolParam) FromOrchestratorResponsesCustomToolParam ¶ added in v0.6.0
func (t *OrchestratorResponsesResponsesToolParam) FromOrchestratorResponsesCustomToolParam(v OrchestratorResponsesCustomToolParam) error
FromOrchestratorResponsesCustomToolParam overwrites any union data inside the OrchestratorResponsesResponsesToolParam as the provided OrchestratorResponsesCustomToolParam
func (*OrchestratorResponsesResponsesToolParam) FromOrchestratorResponsesFunctionToolParam ¶ added in v0.6.0
func (t *OrchestratorResponsesResponsesToolParam) FromOrchestratorResponsesFunctionToolParam(v OrchestratorResponsesFunctionToolParam) error
FromOrchestratorResponsesFunctionToolParam overwrites any union data inside the OrchestratorResponsesResponsesToolParam as the provided OrchestratorResponsesFunctionToolParam
func (*OrchestratorResponsesResponsesToolParam) FromOrchestratorResponsesNamespaceToolParam ¶ added in v0.6.0
func (t *OrchestratorResponsesResponsesToolParam) FromOrchestratorResponsesNamespaceToolParam(v OrchestratorResponsesNamespaceToolParam) error
FromOrchestratorResponsesNamespaceToolParam overwrites any union data inside the OrchestratorResponsesResponsesToolParam as the provided OrchestratorResponsesNamespaceToolParam
func (OrchestratorResponsesResponsesToolParam) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesResponsesToolParam) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesResponsesToolParam) MergeOrchestratorResponsesCustomToolParam ¶ added in v0.6.0
func (t *OrchestratorResponsesResponsesToolParam) MergeOrchestratorResponsesCustomToolParam(v OrchestratorResponsesCustomToolParam) error
MergeOrchestratorResponsesCustomToolParam performs a merge with any union data inside the OrchestratorResponsesResponsesToolParam, using the provided OrchestratorResponsesCustomToolParam
func (*OrchestratorResponsesResponsesToolParam) MergeOrchestratorResponsesFunctionToolParam ¶ added in v0.6.0
func (t *OrchestratorResponsesResponsesToolParam) MergeOrchestratorResponsesFunctionToolParam(v OrchestratorResponsesFunctionToolParam) error
MergeOrchestratorResponsesFunctionToolParam performs a merge with any union data inside the OrchestratorResponsesResponsesToolParam, using the provided OrchestratorResponsesFunctionToolParam
func (*OrchestratorResponsesResponsesToolParam) MergeOrchestratorResponsesNamespaceToolParam ¶ added in v0.6.0
func (t *OrchestratorResponsesResponsesToolParam) MergeOrchestratorResponsesNamespaceToolParam(v OrchestratorResponsesNamespaceToolParam) error
MergeOrchestratorResponsesNamespaceToolParam performs a merge with any union data inside the OrchestratorResponsesResponsesToolParam, using the provided OrchestratorResponsesNamespaceToolParam
func (*OrchestratorResponsesResponsesToolParam) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesResponsesToolParam) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesResponsesToolParam) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesResponsesToolParam) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesServiceTierEnum ¶ added in v0.6.0
type OrchestratorResponsesServiceTierEnum string
OrchestratorResponsesServiceTierEnum defines model for OrchestratorResponsesServiceTierEnum.
const ( OrchestratorResponsesServiceTierEnumAuto OrchestratorResponsesServiceTierEnum = "auto" OrchestratorResponsesServiceTierEnumDefault OrchestratorResponsesServiceTierEnum = "default" OrchestratorResponsesServiceTierEnumFlex OrchestratorResponsesServiceTierEnum = "flex" OrchestratorResponsesServiceTierEnumPriority OrchestratorResponsesServiceTierEnum = "priority" )
Defines values for OrchestratorResponsesServiceTierEnum.
func (OrchestratorResponsesServiceTierEnum) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesServiceTierEnum) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesServiceTierEnum enum.
type OrchestratorResponsesSpecificFunctionParam ¶ added in v0.6.0
type OrchestratorResponsesSpecificFunctionParam struct {
// Name The name of the function tool to call.
Name string `json:"name"`
// Type The tool to call. Always `function`.
Type OrchestratorResponsesSpecificFunctionParamType `json:"type"`
}
OrchestratorResponsesSpecificFunctionParam defines model for OrchestratorResponsesSpecificFunctionParam.
type OrchestratorResponsesSpecificFunctionParamType ¶ added in v0.6.0
type OrchestratorResponsesSpecificFunctionParamType string
OrchestratorResponsesSpecificFunctionParamType The tool to call. Always `function`.
const (
OrchestratorResponsesSpecificFunctionParamTypeFunction OrchestratorResponsesSpecificFunctionParamType = "function"
)
Defines values for OrchestratorResponsesSpecificFunctionParamType.
func (OrchestratorResponsesSpecificFunctionParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesSpecificFunctionParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesSpecificFunctionParamType enum.
type OrchestratorResponsesSpecificToolChoiceParam ¶ added in v0.6.0
type OrchestratorResponsesSpecificToolChoiceParam struct {
// contains filtered or unexported fields
}
OrchestratorResponsesSpecificToolChoiceParam defines model for OrchestratorResponsesSpecificToolChoiceParam.
func (OrchestratorResponsesSpecificToolChoiceParam) AsOrchestratorResponsesSpecificFunctionParam ¶ added in v0.6.0
func (t OrchestratorResponsesSpecificToolChoiceParam) AsOrchestratorResponsesSpecificFunctionParam() (OrchestratorResponsesSpecificFunctionParam, error)
AsOrchestratorResponsesSpecificFunctionParam returns the union data inside the OrchestratorResponsesSpecificToolChoiceParam as a OrchestratorResponsesSpecificFunctionParam
func (*OrchestratorResponsesSpecificToolChoiceParam) FromOrchestratorResponsesSpecificFunctionParam ¶ added in v0.6.0
func (t *OrchestratorResponsesSpecificToolChoiceParam) FromOrchestratorResponsesSpecificFunctionParam(v OrchestratorResponsesSpecificFunctionParam) error
FromOrchestratorResponsesSpecificFunctionParam overwrites any union data inside the OrchestratorResponsesSpecificToolChoiceParam as the provided OrchestratorResponsesSpecificFunctionParam
func (OrchestratorResponsesSpecificToolChoiceParam) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesSpecificToolChoiceParam) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesSpecificToolChoiceParam) MergeOrchestratorResponsesSpecificFunctionParam ¶ added in v0.6.0
func (t *OrchestratorResponsesSpecificToolChoiceParam) MergeOrchestratorResponsesSpecificFunctionParam(v OrchestratorResponsesSpecificFunctionParam) error
MergeOrchestratorResponsesSpecificFunctionParam performs a merge with any union data inside the OrchestratorResponsesSpecificToolChoiceParam, using the provided OrchestratorResponsesSpecificFunctionParam
func (*OrchestratorResponsesSpecificToolChoiceParam) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesSpecificToolChoiceParam) UnmarshalJSON(b []byte) error
type OrchestratorResponsesSummaryTextContent ¶ added in v0.6.0
type OrchestratorResponsesSummaryTextContent struct {
// Text A summary of the reasoning output from the model so far.
Text string `json:"text"`
// Type The type of the object. Always `summary_text`.
Type OrchestratorResponsesSummaryTextContentType `json:"type"`
}
OrchestratorResponsesSummaryTextContent A summary text from the model.
type OrchestratorResponsesSummaryTextContentType ¶ added in v0.6.0
type OrchestratorResponsesSummaryTextContentType string
OrchestratorResponsesSummaryTextContentType The type of the object. Always `summary_text`.
const (
OrchestratorResponsesSummaryTextContentTypeSummaryText OrchestratorResponsesSummaryTextContentType = "summary_text"
)
Defines values for OrchestratorResponsesSummaryTextContentType.
func (OrchestratorResponsesSummaryTextContentType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesSummaryTextContentType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesSummaryTextContentType enum.
type OrchestratorResponsesSystemMessageItemParam ¶ added in v0.6.0
type OrchestratorResponsesSystemMessageItemParam struct {
// Content The message content, as an array of content parts.
Content OrchestratorResponsesSystemMessageItemParam_Content `json:"content"`
// Id The unique ID of this message item.
Id *string `json:"id,omitempty"`
// Role The message role. Always `system`.
Role OrchestratorResponsesSystemMessageItemParamRole `json:"role"`
// Status The status of the message item.
Status *string `json:"status,omitempty"`
// Type The item type. Always `message`.
Type OrchestratorResponsesSystemMessageItemParamType `json:"type"`
}
OrchestratorResponsesSystemMessageItemParam defines model for OrchestratorResponsesSystemMessageItemParam.
type OrchestratorResponsesSystemMessageItemParamContent0 ¶ added in v0.6.0
type OrchestratorResponsesSystemMessageItemParamContent0 = []OrchestratorResponsesSystemMessageItemParam_Content_0_Item
OrchestratorResponsesSystemMessageItemParamContent0 defines model for OrchestratorResponsesSystemMessageItemParam.Content.0.
type OrchestratorResponsesSystemMessageItemParamContent1 ¶ added in v0.6.0
type OrchestratorResponsesSystemMessageItemParamContent1 = string
OrchestratorResponsesSystemMessageItemParamContent1 The message content, as a single string.
type OrchestratorResponsesSystemMessageItemParamRole ¶ added in v0.6.0
type OrchestratorResponsesSystemMessageItemParamRole string
OrchestratorResponsesSystemMessageItemParamRole The message role. Always `system`.
const (
OrchestratorResponsesSystemMessageItemParamRoleSystem OrchestratorResponsesSystemMessageItemParamRole = "system"
)
Defines values for OrchestratorResponsesSystemMessageItemParamRole.
func (OrchestratorResponsesSystemMessageItemParamRole) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesSystemMessageItemParamRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesSystemMessageItemParamRole enum.
type OrchestratorResponsesSystemMessageItemParamType ¶ added in v0.6.0
type OrchestratorResponsesSystemMessageItemParamType string
OrchestratorResponsesSystemMessageItemParamType The item type. Always `message`.
const (
OrchestratorResponsesSystemMessageItemParamTypeMessage OrchestratorResponsesSystemMessageItemParamType = "message"
)
Defines values for OrchestratorResponsesSystemMessageItemParamType.
func (OrchestratorResponsesSystemMessageItemParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesSystemMessageItemParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesSystemMessageItemParamType enum.
type OrchestratorResponsesSystemMessageItemParam_Content ¶ added in v0.6.0
type OrchestratorResponsesSystemMessageItemParam_Content struct {
// contains filtered or unexported fields
}
OrchestratorResponsesSystemMessageItemParam_Content The message content, as an array of content parts.
func (OrchestratorResponsesSystemMessageItemParam_Content) AsOrchestratorResponsesSystemMessageItemParamContent0 ¶ added in v0.6.0
func (t OrchestratorResponsesSystemMessageItemParam_Content) AsOrchestratorResponsesSystemMessageItemParamContent0() (OrchestratorResponsesSystemMessageItemParamContent0, error)
AsOrchestratorResponsesSystemMessageItemParamContent0 returns the union data inside the OrchestratorResponsesSystemMessageItemParam_Content as a OrchestratorResponsesSystemMessageItemParamContent0
func (OrchestratorResponsesSystemMessageItemParam_Content) AsOrchestratorResponsesSystemMessageItemParamContent1 ¶ added in v0.6.0
func (t OrchestratorResponsesSystemMessageItemParam_Content) AsOrchestratorResponsesSystemMessageItemParamContent1() (OrchestratorResponsesSystemMessageItemParamContent1, error)
AsOrchestratorResponsesSystemMessageItemParamContent1 returns the union data inside the OrchestratorResponsesSystemMessageItemParam_Content as a OrchestratorResponsesSystemMessageItemParamContent1
func (*OrchestratorResponsesSystemMessageItemParam_Content) FromOrchestratorResponsesSystemMessageItemParamContent0 ¶ added in v0.6.0
func (t *OrchestratorResponsesSystemMessageItemParam_Content) FromOrchestratorResponsesSystemMessageItemParamContent0(v OrchestratorResponsesSystemMessageItemParamContent0) error
FromOrchestratorResponsesSystemMessageItemParamContent0 overwrites any union data inside the OrchestratorResponsesSystemMessageItemParam_Content as the provided OrchestratorResponsesSystemMessageItemParamContent0
func (*OrchestratorResponsesSystemMessageItemParam_Content) FromOrchestratorResponsesSystemMessageItemParamContent1 ¶ added in v0.6.0
func (t *OrchestratorResponsesSystemMessageItemParam_Content) FromOrchestratorResponsesSystemMessageItemParamContent1(v OrchestratorResponsesSystemMessageItemParamContent1) error
FromOrchestratorResponsesSystemMessageItemParamContent1 overwrites any union data inside the OrchestratorResponsesSystemMessageItemParam_Content as the provided OrchestratorResponsesSystemMessageItemParamContent1
func (OrchestratorResponsesSystemMessageItemParam_Content) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesSystemMessageItemParam_Content) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesSystemMessageItemParam_Content) MergeOrchestratorResponsesSystemMessageItemParamContent0 ¶ added in v0.6.0
func (t *OrchestratorResponsesSystemMessageItemParam_Content) MergeOrchestratorResponsesSystemMessageItemParamContent0(v OrchestratorResponsesSystemMessageItemParamContent0) error
MergeOrchestratorResponsesSystemMessageItemParamContent0 performs a merge with any union data inside the OrchestratorResponsesSystemMessageItemParam_Content, using the provided OrchestratorResponsesSystemMessageItemParamContent0
func (*OrchestratorResponsesSystemMessageItemParam_Content) MergeOrchestratorResponsesSystemMessageItemParamContent1 ¶ added in v0.6.0
func (t *OrchestratorResponsesSystemMessageItemParam_Content) MergeOrchestratorResponsesSystemMessageItemParamContent1(v OrchestratorResponsesSystemMessageItemParamContent1) error
MergeOrchestratorResponsesSystemMessageItemParamContent1 performs a merge with any union data inside the OrchestratorResponsesSystemMessageItemParam_Content, using the provided OrchestratorResponsesSystemMessageItemParamContent1
func (*OrchestratorResponsesSystemMessageItemParam_Content) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesSystemMessageItemParam_Content) UnmarshalJSON(b []byte) error
type OrchestratorResponsesSystemMessageItemParam_Content_0_Item ¶ added in v0.6.0
type OrchestratorResponsesSystemMessageItemParam_Content_0_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesSystemMessageItemParam_Content_0_Item defines model for OrchestratorResponsesSystemMessageItemParam.Content.0.Item.
func (OrchestratorResponsesSystemMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t OrchestratorResponsesSystemMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputTextContentParam() (OrchestratorResponsesInputTextContentParam, error)
AsOrchestratorResponsesInputTextContentParam returns the union data inside the OrchestratorResponsesSystemMessageItemParam_Content_0_Item as a OrchestratorResponsesInputTextContentParam
func (OrchestratorResponsesSystemMessageItemParam_Content_0_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesSystemMessageItemParam_Content_0_Item) Discriminator() (string, error)
func (*OrchestratorResponsesSystemMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesSystemMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
FromOrchestratorResponsesInputTextContentParam overwrites any union data inside the OrchestratorResponsesSystemMessageItemParam_Content_0_Item as the provided OrchestratorResponsesInputTextContentParam
func (OrchestratorResponsesSystemMessageItemParam_Content_0_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesSystemMessageItemParam_Content_0_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesSystemMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesSystemMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
MergeOrchestratorResponsesInputTextContentParam performs a merge with any union data inside the OrchestratorResponsesSystemMessageItemParam_Content_0_Item, using the provided OrchestratorResponsesInputTextContentParam
func (*OrchestratorResponsesSystemMessageItemParam_Content_0_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesSystemMessageItemParam_Content_0_Item) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesSystemMessageItemParam_Content_0_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesSystemMessageItemParam_Content_0_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesTextContent ¶ added in v0.6.0
type OrchestratorResponsesTextContent struct {
Text string `json:"text"`
Type OrchestratorResponsesTextContentType `json:"type"`
}
OrchestratorResponsesTextContent A text content.
type OrchestratorResponsesTextContentType ¶ added in v0.6.0
type OrchestratorResponsesTextContentType string
OrchestratorResponsesTextContentType defines model for OrchestratorResponsesTextContent.Type.
const (
OrchestratorResponsesTextContentTypeText OrchestratorResponsesTextContentType = "text"
)
Defines values for OrchestratorResponsesTextContentType.
func (OrchestratorResponsesTextContentType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesTextContentType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesTextContentType enum.
type OrchestratorResponsesTextFormatParam ¶ added in v0.6.0
type OrchestratorResponsesTextFormatParam struct {
// contains filtered or unexported fields
}
OrchestratorResponsesTextFormatParam defines model for OrchestratorResponsesTextFormatParam.
func (OrchestratorResponsesTextFormatParam) AsOrchestratorResponsesJsonSchemaResponseFormatParam ¶ added in v0.6.0
func (t OrchestratorResponsesTextFormatParam) AsOrchestratorResponsesJsonSchemaResponseFormatParam() (OrchestratorResponsesJsonSchemaResponseFormatParam, error)
AsOrchestratorResponsesJsonSchemaResponseFormatParam returns the union data inside the OrchestratorResponsesTextFormatParam as a OrchestratorResponsesJsonSchemaResponseFormatParam
func (OrchestratorResponsesTextFormatParam) AsOrchestratorResponsesTextResponseFormat ¶ added in v0.6.0
func (t OrchestratorResponsesTextFormatParam) AsOrchestratorResponsesTextResponseFormat() (OrchestratorResponsesTextResponseFormat, error)
AsOrchestratorResponsesTextResponseFormat returns the union data inside the OrchestratorResponsesTextFormatParam as a OrchestratorResponsesTextResponseFormat
func (*OrchestratorResponsesTextFormatParam) FromOrchestratorResponsesJsonSchemaResponseFormatParam ¶ added in v0.6.0
func (t *OrchestratorResponsesTextFormatParam) FromOrchestratorResponsesJsonSchemaResponseFormatParam(v OrchestratorResponsesJsonSchemaResponseFormatParam) error
FromOrchestratorResponsesJsonSchemaResponseFormatParam overwrites any union data inside the OrchestratorResponsesTextFormatParam as the provided OrchestratorResponsesJsonSchemaResponseFormatParam
func (*OrchestratorResponsesTextFormatParam) FromOrchestratorResponsesTextResponseFormat ¶ added in v0.6.0
func (t *OrchestratorResponsesTextFormatParam) FromOrchestratorResponsesTextResponseFormat(v OrchestratorResponsesTextResponseFormat) error
FromOrchestratorResponsesTextResponseFormat overwrites any union data inside the OrchestratorResponsesTextFormatParam as the provided OrchestratorResponsesTextResponseFormat
func (OrchestratorResponsesTextFormatParam) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesTextFormatParam) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesTextFormatParam) MergeOrchestratorResponsesJsonSchemaResponseFormatParam ¶ added in v0.6.0
func (t *OrchestratorResponsesTextFormatParam) MergeOrchestratorResponsesJsonSchemaResponseFormatParam(v OrchestratorResponsesJsonSchemaResponseFormatParam) error
MergeOrchestratorResponsesJsonSchemaResponseFormatParam performs a merge with any union data inside the OrchestratorResponsesTextFormatParam, using the provided OrchestratorResponsesJsonSchemaResponseFormatParam
func (*OrchestratorResponsesTextFormatParam) MergeOrchestratorResponsesTextResponseFormat ¶ added in v0.6.0
func (t *OrchestratorResponsesTextFormatParam) MergeOrchestratorResponsesTextResponseFormat(v OrchestratorResponsesTextResponseFormat) error
MergeOrchestratorResponsesTextResponseFormat performs a merge with any union data inside the OrchestratorResponsesTextFormatParam, using the provided OrchestratorResponsesTextResponseFormat
func (*OrchestratorResponsesTextFormatParam) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesTextFormatParam) UnmarshalJSON(b []byte) error
type OrchestratorResponsesTextParam ¶ added in v0.6.0
type OrchestratorResponsesTextParam struct {
Format *OrchestratorResponsesTextFormatParam `json:"format,omitempty"`
Verbosity *OrchestratorResponsesVerbosityEnum `json:"verbosity,omitempty"`
}
OrchestratorResponsesTextParam defines model for OrchestratorResponsesTextParam.
type OrchestratorResponsesTextResponseFormat ¶ added in v0.6.0
type OrchestratorResponsesTextResponseFormat struct {
Type OrchestratorResponsesTextResponseFormatType `json:"type"`
}
OrchestratorResponsesTextResponseFormat defines model for OrchestratorResponsesTextResponseFormat.
type OrchestratorResponsesTextResponseFormatType ¶ added in v0.6.0
type OrchestratorResponsesTextResponseFormatType string
OrchestratorResponsesTextResponseFormatType defines model for OrchestratorResponsesTextResponseFormat.Type.
const (
OrchestratorResponsesTextResponseFormatTypeText OrchestratorResponsesTextResponseFormatType = "text"
)
Defines values for OrchestratorResponsesTextResponseFormatType.
func (OrchestratorResponsesTextResponseFormatType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesTextResponseFormatType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesTextResponseFormatType enum.
type OrchestratorResponsesTool ¶ added in v0.6.0
type OrchestratorResponsesTool struct {
// contains filtered or unexported fields
}
OrchestratorResponsesTool A tool that can be used to generate a response.
func (OrchestratorResponsesTool) AsOrchestratorResponsesFunctionTool ¶ added in v0.6.0
func (t OrchestratorResponsesTool) AsOrchestratorResponsesFunctionTool() (OrchestratorResponsesFunctionTool, error)
AsOrchestratorResponsesFunctionTool returns the union data inside the OrchestratorResponsesTool as a OrchestratorResponsesFunctionTool
func (OrchestratorResponsesTool) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesTool) Discriminator() (string, error)
func (*OrchestratorResponsesTool) FromOrchestratorResponsesFunctionTool ¶ added in v0.6.0
func (t *OrchestratorResponsesTool) FromOrchestratorResponsesFunctionTool(v OrchestratorResponsesFunctionTool) error
FromOrchestratorResponsesFunctionTool overwrites any union data inside the OrchestratorResponsesTool as the provided OrchestratorResponsesFunctionTool
func (OrchestratorResponsesTool) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesTool) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesTool) MergeOrchestratorResponsesFunctionTool ¶ added in v0.6.0
func (t *OrchestratorResponsesTool) MergeOrchestratorResponsesFunctionTool(v OrchestratorResponsesFunctionTool) error
MergeOrchestratorResponsesFunctionTool performs a merge with any union data inside the OrchestratorResponsesTool, using the provided OrchestratorResponsesFunctionTool
func (*OrchestratorResponsesTool) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesTool) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesTool) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesTool) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesToolChoiceParam ¶ added in v0.6.0
type OrchestratorResponsesToolChoiceParam struct {
// contains filtered or unexported fields
}
OrchestratorResponsesToolChoiceParam Controls which tool the model should use, if any.
func (OrchestratorResponsesToolChoiceParam) AsOrchestratorResponsesSpecificToolChoiceParam ¶ added in v0.6.0
func (t OrchestratorResponsesToolChoiceParam) AsOrchestratorResponsesSpecificToolChoiceParam() (OrchestratorResponsesSpecificToolChoiceParam, error)
AsOrchestratorResponsesSpecificToolChoiceParam returns the union data inside the OrchestratorResponsesToolChoiceParam as a OrchestratorResponsesSpecificToolChoiceParam
func (OrchestratorResponsesToolChoiceParam) AsOrchestratorResponsesToolChoiceValueEnum ¶ added in v0.6.0
func (t OrchestratorResponsesToolChoiceParam) AsOrchestratorResponsesToolChoiceValueEnum() (OrchestratorResponsesToolChoiceValueEnum, error)
AsOrchestratorResponsesToolChoiceValueEnum returns the union data inside the OrchestratorResponsesToolChoiceParam as a OrchestratorResponsesToolChoiceValueEnum
func (*OrchestratorResponsesToolChoiceParam) FromOrchestratorResponsesSpecificToolChoiceParam ¶ added in v0.6.0
func (t *OrchestratorResponsesToolChoiceParam) FromOrchestratorResponsesSpecificToolChoiceParam(v OrchestratorResponsesSpecificToolChoiceParam) error
FromOrchestratorResponsesSpecificToolChoiceParam overwrites any union data inside the OrchestratorResponsesToolChoiceParam as the provided OrchestratorResponsesSpecificToolChoiceParam
func (*OrchestratorResponsesToolChoiceParam) FromOrchestratorResponsesToolChoiceValueEnum ¶ added in v0.6.0
func (t *OrchestratorResponsesToolChoiceParam) FromOrchestratorResponsesToolChoiceValueEnum(v OrchestratorResponsesToolChoiceValueEnum) error
FromOrchestratorResponsesToolChoiceValueEnum overwrites any union data inside the OrchestratorResponsesToolChoiceParam as the provided OrchestratorResponsesToolChoiceValueEnum
func (OrchestratorResponsesToolChoiceParam) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesToolChoiceParam) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesToolChoiceParam) MergeOrchestratorResponsesSpecificToolChoiceParam ¶ added in v0.6.0
func (t *OrchestratorResponsesToolChoiceParam) MergeOrchestratorResponsesSpecificToolChoiceParam(v OrchestratorResponsesSpecificToolChoiceParam) error
MergeOrchestratorResponsesSpecificToolChoiceParam performs a merge with any union data inside the OrchestratorResponsesToolChoiceParam, using the provided OrchestratorResponsesSpecificToolChoiceParam
func (*OrchestratorResponsesToolChoiceParam) MergeOrchestratorResponsesToolChoiceValueEnum ¶ added in v0.6.0
func (t *OrchestratorResponsesToolChoiceParam) MergeOrchestratorResponsesToolChoiceValueEnum(v OrchestratorResponsesToolChoiceValueEnum) error
MergeOrchestratorResponsesToolChoiceValueEnum performs a merge with any union data inside the OrchestratorResponsesToolChoiceParam, using the provided OrchestratorResponsesToolChoiceValueEnum
func (*OrchestratorResponsesToolChoiceParam) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesToolChoiceParam) UnmarshalJSON(b []byte) error
type OrchestratorResponsesToolChoiceValueEnum ¶ added in v0.6.0
type OrchestratorResponsesToolChoiceValueEnum string
OrchestratorResponsesToolChoiceValueEnum defines model for OrchestratorResponsesToolChoiceValueEnum.
const ( OrchestratorResponsesToolChoiceValueEnumAuto OrchestratorResponsesToolChoiceValueEnum = "auto" OrchestratorResponsesToolChoiceValueEnumNone OrchestratorResponsesToolChoiceValueEnum = "none" OrchestratorResponsesToolChoiceValueEnumRequired OrchestratorResponsesToolChoiceValueEnum = "required" )
Defines values for OrchestratorResponsesToolChoiceValueEnum.
func (OrchestratorResponsesToolChoiceValueEnum) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesToolChoiceValueEnum) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesToolChoiceValueEnum enum.
type OrchestratorResponsesTopLogProb ¶ added in v0.6.0
type OrchestratorResponsesTopLogProb struct {
Bytes []int `json:"bytes"`
Logprob float64 `json:"logprob"`
Token string `json:"token"`
}
OrchestratorResponsesTopLogProb The top log probability of a token.
type OrchestratorResponsesTruncationEnum ¶ added in v0.6.0
type OrchestratorResponsesTruncationEnum string
OrchestratorResponsesTruncationEnum defines model for OrchestratorResponsesTruncationEnum.
const (
OrchestratorResponsesTruncationEnumDisabled OrchestratorResponsesTruncationEnum = "disabled"
)
Defines values for OrchestratorResponsesTruncationEnum.
func (OrchestratorResponsesTruncationEnum) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesTruncationEnum) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesTruncationEnum enum.
type OrchestratorResponsesUrlCitationBody ¶ added in v0.6.0
type OrchestratorResponsesUrlCitationBody struct {
// EndIndex The index of the last character of the URL citation in the message.
EndIndex int `json:"end_index"`
// StartIndex The index of the first character of the URL citation in the message.
StartIndex int `json:"start_index"`
// Title The title of the web resource.
Title string `json:"title"`
// Type The type of the URL citation. Always `url_citation`.
Type OrchestratorResponsesUrlCitationBodyType `json:"type"`
// Url The URL of the web resource.
Url string `json:"url"`
}
OrchestratorResponsesUrlCitationBody A citation for a web resource used to generate a model response.
type OrchestratorResponsesUrlCitationBodyType ¶ added in v0.6.0
type OrchestratorResponsesUrlCitationBodyType string
OrchestratorResponsesUrlCitationBodyType The type of the URL citation. Always `url_citation`.
const (
OrchestratorResponsesUrlCitationBodyTypeUrlCitation OrchestratorResponsesUrlCitationBodyType = "url_citation"
)
Defines values for OrchestratorResponsesUrlCitationBodyType.
func (OrchestratorResponsesUrlCitationBodyType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesUrlCitationBodyType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesUrlCitationBodyType enum.
type OrchestratorResponsesUrlCitationParam ¶ added in v0.6.0
type OrchestratorResponsesUrlCitationParam struct {
// EndIndex The index of the last character of the citation in the message.
EndIndex int `json:"end_index"`
// StartIndex The index of the first character of the citation in the message.
StartIndex int `json:"start_index"`
// Title The title of the cited resource.
Title string `json:"title"`
// Type The citation type. Always `url_citation`.
Type OrchestratorResponsesUrlCitationParamType `json:"type"`
// Url The URL of the cited resource.
Url string `json:"url"`
}
OrchestratorResponsesUrlCitationParam defines model for OrchestratorResponsesUrlCitationParam.
type OrchestratorResponsesUrlCitationParamType ¶ added in v0.6.0
type OrchestratorResponsesUrlCitationParamType string
OrchestratorResponsesUrlCitationParamType The citation type. Always `url_citation`.
const (
OrchestratorResponsesUrlCitationParamTypeUrlCitation OrchestratorResponsesUrlCitationParamType = "url_citation"
)
Defines values for OrchestratorResponsesUrlCitationParamType.
func (OrchestratorResponsesUrlCitationParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesUrlCitationParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesUrlCitationParamType enum.
type OrchestratorResponsesUsage ¶ added in v0.6.0
type OrchestratorResponsesUsage struct {
// InputTokens The number of input tokens that were used to generate the response.
InputTokens int `json:"input_tokens"`
// InputTokensDetails A breakdown of input token usage that was recorded.
InputTokensDetails OrchestratorResponsesInputTokensDetails `json:"input_tokens_details"`
// OutputTokens The number of output tokens that were generated by the model.
OutputTokens int `json:"output_tokens"`
// OutputTokensDetails A breakdown of output token usage that was recorded.
OutputTokensDetails OrchestratorResponsesOutputTokensDetails `json:"output_tokens_details"`
// TotalTokens The total number of tokens that were used.
TotalTokens int `json:"total_tokens"`
}
OrchestratorResponsesUsage Token usage statistics that were recorded for the response.
type OrchestratorResponsesUserMessageItemParam ¶ added in v0.6.0
type OrchestratorResponsesUserMessageItemParam struct {
// Content The message content, as an array of content parts.
Content OrchestratorResponsesUserMessageItemParam_Content `json:"content"`
// Id The unique ID of this message item.
Id *string `json:"id,omitempty"`
// Role The message role. Always `user`.
Role OrchestratorResponsesUserMessageItemParamRole `json:"role"`
// Status The status of the message item.
Status *string `json:"status,omitempty"`
// Type The item type. Always `message`.
Type OrchestratorResponsesUserMessageItemParamType `json:"type"`
}
OrchestratorResponsesUserMessageItemParam defines model for OrchestratorResponsesUserMessageItemParam.
type OrchestratorResponsesUserMessageItemParamContent0 ¶ added in v0.6.0
type OrchestratorResponsesUserMessageItemParamContent0 = []OrchestratorResponsesUserMessageItemParam_Content_0_Item
OrchestratorResponsesUserMessageItemParamContent0 defines model for OrchestratorResponsesUserMessageItemParam.Content.0.
type OrchestratorResponsesUserMessageItemParamContent1 ¶ added in v0.6.0
type OrchestratorResponsesUserMessageItemParamContent1 = string
OrchestratorResponsesUserMessageItemParamContent1 The message content, as a single string.
type OrchestratorResponsesUserMessageItemParamRole ¶ added in v0.6.0
type OrchestratorResponsesUserMessageItemParamRole string
OrchestratorResponsesUserMessageItemParamRole The message role. Always `user`.
const (
OrchestratorResponsesUserMessageItemParamRoleUser OrchestratorResponsesUserMessageItemParamRole = "user"
)
Defines values for OrchestratorResponsesUserMessageItemParamRole.
func (OrchestratorResponsesUserMessageItemParamRole) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesUserMessageItemParamRole) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesUserMessageItemParamRole enum.
type OrchestratorResponsesUserMessageItemParamType ¶ added in v0.6.0
type OrchestratorResponsesUserMessageItemParamType string
OrchestratorResponsesUserMessageItemParamType The item type. Always `message`.
const (
OrchestratorResponsesUserMessageItemParamTypeMessage OrchestratorResponsesUserMessageItemParamType = "message"
)
Defines values for OrchestratorResponsesUserMessageItemParamType.
func (OrchestratorResponsesUserMessageItemParamType) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesUserMessageItemParamType) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesUserMessageItemParamType enum.
type OrchestratorResponsesUserMessageItemParam_Content ¶ added in v0.6.0
type OrchestratorResponsesUserMessageItemParam_Content struct {
// contains filtered or unexported fields
}
OrchestratorResponsesUserMessageItemParam_Content The message content, as an array of content parts.
func (OrchestratorResponsesUserMessageItemParam_Content) AsOrchestratorResponsesUserMessageItemParamContent0 ¶ added in v0.6.0
func (t OrchestratorResponsesUserMessageItemParam_Content) AsOrchestratorResponsesUserMessageItemParamContent0() (OrchestratorResponsesUserMessageItemParamContent0, error)
AsOrchestratorResponsesUserMessageItemParamContent0 returns the union data inside the OrchestratorResponsesUserMessageItemParam_Content as a OrchestratorResponsesUserMessageItemParamContent0
func (OrchestratorResponsesUserMessageItemParam_Content) AsOrchestratorResponsesUserMessageItemParamContent1 ¶ added in v0.6.0
func (t OrchestratorResponsesUserMessageItemParam_Content) AsOrchestratorResponsesUserMessageItemParamContent1() (OrchestratorResponsesUserMessageItemParamContent1, error)
AsOrchestratorResponsesUserMessageItemParamContent1 returns the union data inside the OrchestratorResponsesUserMessageItemParam_Content as a OrchestratorResponsesUserMessageItemParamContent1
func (*OrchestratorResponsesUserMessageItemParam_Content) FromOrchestratorResponsesUserMessageItemParamContent0 ¶ added in v0.6.0
func (t *OrchestratorResponsesUserMessageItemParam_Content) FromOrchestratorResponsesUserMessageItemParamContent0(v OrchestratorResponsesUserMessageItemParamContent0) error
FromOrchestratorResponsesUserMessageItemParamContent0 overwrites any union data inside the OrchestratorResponsesUserMessageItemParam_Content as the provided OrchestratorResponsesUserMessageItemParamContent0
func (*OrchestratorResponsesUserMessageItemParam_Content) FromOrchestratorResponsesUserMessageItemParamContent1 ¶ added in v0.6.0
func (t *OrchestratorResponsesUserMessageItemParam_Content) FromOrchestratorResponsesUserMessageItemParamContent1(v OrchestratorResponsesUserMessageItemParamContent1) error
FromOrchestratorResponsesUserMessageItemParamContent1 overwrites any union data inside the OrchestratorResponsesUserMessageItemParam_Content as the provided OrchestratorResponsesUserMessageItemParamContent1
func (OrchestratorResponsesUserMessageItemParam_Content) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesUserMessageItemParam_Content) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesUserMessageItemParam_Content) MergeOrchestratorResponsesUserMessageItemParamContent0 ¶ added in v0.6.0
func (t *OrchestratorResponsesUserMessageItemParam_Content) MergeOrchestratorResponsesUserMessageItemParamContent0(v OrchestratorResponsesUserMessageItemParamContent0) error
MergeOrchestratorResponsesUserMessageItemParamContent0 performs a merge with any union data inside the OrchestratorResponsesUserMessageItemParam_Content, using the provided OrchestratorResponsesUserMessageItemParamContent0
func (*OrchestratorResponsesUserMessageItemParam_Content) MergeOrchestratorResponsesUserMessageItemParamContent1 ¶ added in v0.6.0
func (t *OrchestratorResponsesUserMessageItemParam_Content) MergeOrchestratorResponsesUserMessageItemParamContent1(v OrchestratorResponsesUserMessageItemParamContent1) error
MergeOrchestratorResponsesUserMessageItemParamContent1 performs a merge with any union data inside the OrchestratorResponsesUserMessageItemParam_Content, using the provided OrchestratorResponsesUserMessageItemParamContent1
func (*OrchestratorResponsesUserMessageItemParam_Content) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesUserMessageItemParam_Content) UnmarshalJSON(b []byte) error
type OrchestratorResponsesUserMessageItemParam_Content_0_Item ¶ added in v0.6.0
type OrchestratorResponsesUserMessageItemParam_Content_0_Item struct {
// contains filtered or unexported fields
}
OrchestratorResponsesUserMessageItemParam_Content_0_Item A piece of message content, such as text, an image, or a file.
func (OrchestratorResponsesUserMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputImageContentParamAutoParam ¶ added in v0.6.0
func (t OrchestratorResponsesUserMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputImageContentParamAutoParam() (OrchestratorResponsesInputImageContentParamAutoParam, error)
AsOrchestratorResponsesInputImageContentParamAutoParam returns the union data inside the OrchestratorResponsesUserMessageItemParam_Content_0_Item as a OrchestratorResponsesInputImageContentParamAutoParam
func (OrchestratorResponsesUserMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t OrchestratorResponsesUserMessageItemParam_Content_0_Item) AsOrchestratorResponsesInputTextContentParam() (OrchestratorResponsesInputTextContentParam, error)
AsOrchestratorResponsesInputTextContentParam returns the union data inside the OrchestratorResponsesUserMessageItemParam_Content_0_Item as a OrchestratorResponsesInputTextContentParam
func (OrchestratorResponsesUserMessageItemParam_Content_0_Item) Discriminator ¶ added in v0.6.0
func (t OrchestratorResponsesUserMessageItemParam_Content_0_Item) Discriminator() (string, error)
func (*OrchestratorResponsesUserMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputImageContentParamAutoParam ¶ added in v0.6.0
func (t *OrchestratorResponsesUserMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
FromOrchestratorResponsesInputImageContentParamAutoParam overwrites any union data inside the OrchestratorResponsesUserMessageItemParam_Content_0_Item as the provided OrchestratorResponsesInputImageContentParamAutoParam
func (*OrchestratorResponsesUserMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesUserMessageItemParam_Content_0_Item) FromOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
FromOrchestratorResponsesInputTextContentParam overwrites any union data inside the OrchestratorResponsesUserMessageItemParam_Content_0_Item as the provided OrchestratorResponsesInputTextContentParam
func (OrchestratorResponsesUserMessageItemParam_Content_0_Item) MarshalJSON ¶ added in v0.6.0
func (t OrchestratorResponsesUserMessageItemParam_Content_0_Item) MarshalJSON() ([]byte, error)
func (*OrchestratorResponsesUserMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputImageContentParamAutoParam ¶ added in v0.6.0
func (t *OrchestratorResponsesUserMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputImageContentParamAutoParam(v OrchestratorResponsesInputImageContentParamAutoParam) error
MergeOrchestratorResponsesInputImageContentParamAutoParam performs a merge with any union data inside the OrchestratorResponsesUserMessageItemParam_Content_0_Item, using the provided OrchestratorResponsesInputImageContentParamAutoParam
func (*OrchestratorResponsesUserMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputTextContentParam ¶ added in v0.6.0
func (t *OrchestratorResponsesUserMessageItemParam_Content_0_Item) MergeOrchestratorResponsesInputTextContentParam(v OrchestratorResponsesInputTextContentParam) error
MergeOrchestratorResponsesInputTextContentParam performs a merge with any union data inside the OrchestratorResponsesUserMessageItemParam_Content_0_Item, using the provided OrchestratorResponsesInputTextContentParam
func (*OrchestratorResponsesUserMessageItemParam_Content_0_Item) UnmarshalJSON ¶ added in v0.6.0
func (t *OrchestratorResponsesUserMessageItemParam_Content_0_Item) UnmarshalJSON(b []byte) error
func (OrchestratorResponsesUserMessageItemParam_Content_0_Item) ValueByDiscriminator ¶ added in v0.6.0
func (t OrchestratorResponsesUserMessageItemParam_Content_0_Item) ValueByDiscriminator() (interface{}, error)
type OrchestratorResponsesVerbosityEnum ¶ added in v0.6.0
type OrchestratorResponsesVerbosityEnum string
OrchestratorResponsesVerbosityEnum defines model for OrchestratorResponsesVerbosityEnum.
const ( OrchestratorResponsesVerbosityEnumHigh OrchestratorResponsesVerbosityEnum = "high" OrchestratorResponsesVerbosityEnumLow OrchestratorResponsesVerbosityEnum = "low" OrchestratorResponsesVerbosityEnumMedium OrchestratorResponsesVerbosityEnum = "medium" )
Defines values for OrchestratorResponsesVerbosityEnum.
func (OrchestratorResponsesVerbosityEnum) Valid ¶ added in v0.6.0
func (e OrchestratorResponsesVerbosityEnum) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorResponsesVerbosityEnum enum.
type OrchestratorRoute ¶ added in v0.6.0
type OrchestratorRoute struct {
// Description Describe the requests this route should handle. Must contain non-whitespace text and be at most 1000 UTF-8 bytes, not characters.
Description string `json:"description"`
// Model An available Orchestrator model id. Cannot be `perplexity/auto`.
Model string `json:"model"`
// Name A unique route name within this request. `none` is reserved.
Name string `json:"name"`
}
OrchestratorRoute defines model for OrchestratorRoute.
type OrchestratorRouting ¶ added in v0.6.0
type OrchestratorRouting struct {
// DefaultModel The available model to use when no route fits. Cannot be `perplexity/auto`.
DefaultModel string `json:"default_model"`
// ReasoningEffort Let the router select reasoning effort as well as the model. Cannot be combined with caller-set reasoning effort or thinking. When omitted, the request's effort or the served model's default applies.
ReasoningEffort *OrchestratorRoutingReasoningEffort `json:"reasoning_effort,omitempty"`
// Routes One to five routes. Names must be unique within the array; multiple routes may use the same model. The server enforces name uniqueness and UTF-8 byte limits.
Routes []OrchestratorRoute `json:"routes"`
}
OrchestratorRouting Inline routing for `model: "perplexity/auto"` only. Omit this field or set it to null to use the default policy. The serialized routing object must be at most 16384 bytes. Models must be available in the Orchestrator catalog. Routes incompatible with the request are excluded; if the default model is incompatible, the first compatible route model becomes the default. The request fails if no model is compatible.
type OrchestratorRoutingReasoningEffort ¶ added in v0.6.0
type OrchestratorRoutingReasoningEffort string
OrchestratorRoutingReasoningEffort Let the router select reasoning effort as well as the model. Cannot be combined with caller-set reasoning effort or thinking. When omitted, the request's effort or the served model's default applies.
const (
OrchestratorRoutingReasoningEffortAuto OrchestratorRoutingReasoningEffort = "auto"
)
Defines values for OrchestratorRoutingReasoningEffort.
func (OrchestratorRoutingReasoningEffort) Valid ¶ added in v0.6.0
func (e OrchestratorRoutingReasoningEffort) Valid() bool
Valid indicates whether the value is a known member of the OrchestratorRoutingReasoningEffort enum.
type OutputItem ¶
type OutputItem struct {
// contains filtered or unexported fields
}
OutputItem defines model for OutputItem.
func (OutputItem) AsFetchUrlResultsOutputItem ¶
func (t OutputItem) AsFetchUrlResultsOutputItem() (FetchUrlResultsOutputItem, error)
AsFetchUrlResultsOutputItem returns the union data inside the OutputItem as a FetchUrlResultsOutputItem
func (OutputItem) AsFinanceResultsOutputItem ¶
func (t OutputItem) AsFinanceResultsOutputItem() (FinanceResultsOutputItem, error)
AsFinanceResultsOutputItem returns the union data inside the OutputItem as a FinanceResultsOutputItem
func (OutputItem) AsFunctionCallOutputItem ¶
func (t OutputItem) AsFunctionCallOutputItem() (FunctionCallOutputItem, error)
AsFunctionCallOutputItem returns the union data inside the OutputItem as a FunctionCallOutputItem
func (OutputItem) AsImageSearchResultsOutputItem ¶
func (t OutputItem) AsImageSearchResultsOutputItem() (ImageSearchResultsOutputItem, error)
AsImageSearchResultsOutputItem returns the union data inside the OutputItem as a ImageSearchResultsOutputItem
func (OutputItem) AsMcpApprovalRequestOutputItem ¶
func (t OutputItem) AsMcpApprovalRequestOutputItem() (McpApprovalRequestOutputItem, error)
AsMcpApprovalRequestOutputItem returns the union data inside the OutputItem as a McpApprovalRequestOutputItem
func (OutputItem) AsMcpCallOutputItem ¶
func (t OutputItem) AsMcpCallOutputItem() (McpCallOutputItem, error)
AsMcpCallOutputItem returns the union data inside the OutputItem as a McpCallOutputItem
func (OutputItem) AsMcpListToolsOutputItem ¶
func (t OutputItem) AsMcpListToolsOutputItem() (McpListToolsOutputItem, error)
AsMcpListToolsOutputItem returns the union data inside the OutputItem as a McpListToolsOutputItem
func (OutputItem) AsMessageOutputItem ¶
func (t OutputItem) AsMessageOutputItem() (MessageOutputItem, error)
AsMessageOutputItem returns the union data inside the OutputItem as a MessageOutputItem
func (OutputItem) AsPeopleSearchResultsOutputItem ¶
func (t OutputItem) AsPeopleSearchResultsOutputItem() (PeopleSearchResultsOutputItem, error)
AsPeopleSearchResultsOutputItem returns the union data inside the OutputItem as a PeopleSearchResultsOutputItem
func (OutputItem) AsSandboxReadFileOutputItem ¶ added in v0.5.0
func (t OutputItem) AsSandboxReadFileOutputItem() (SandboxReadFileOutputItem, error)
AsSandboxReadFileOutputItem returns the union data inside the OutputItem as a SandboxReadFileOutputItem
func (OutputItem) AsSandboxResultsOutputItem ¶
func (t OutputItem) AsSandboxResultsOutputItem() (SandboxResultsOutputItem, error)
AsSandboxResultsOutputItem returns the union data inside the OutputItem as a SandboxResultsOutputItem
func (OutputItem) AsSandboxWriteFileOutputItem ¶ added in v0.5.0
func (t OutputItem) AsSandboxWriteFileOutputItem() (SandboxWriteFileOutputItem, error)
AsSandboxWriteFileOutputItem returns the union data inside the OutputItem as a SandboxWriteFileOutputItem
func (OutputItem) AsSearchResultsOutputItem ¶
func (t OutputItem) AsSearchResultsOutputItem() (SearchResultsOutputItem, error)
AsSearchResultsOutputItem returns the union data inside the OutputItem as a SearchResultsOutputItem
func (OutputItem) AsShareFileOutputItem ¶ added in v0.5.0
func (t OutputItem) AsShareFileOutputItem() (ShareFileOutputItem, error)
AsShareFileOutputItem returns the union data inside the OutputItem as a ShareFileOutputItem
func (OutputItem) AsSkillLoadedOutputItem ¶ added in v0.5.0
func (t OutputItem) AsSkillLoadedOutputItem() (SkillLoadedOutputItem, error)
AsSkillLoadedOutputItem returns the union data inside the OutputItem as a SkillLoadedOutputItem
func (OutputItem) AsToolSearchOutputItem ¶
func (t OutputItem) AsToolSearchOutputItem() (ToolSearchOutputItem, error)
AsToolSearchOutputItem returns the union data inside the OutputItem as a ToolSearchOutputItem
func (OutputItem) Discriminator ¶
func (t OutputItem) Discriminator() (string, error)
func (*OutputItem) FromFetchUrlResultsOutputItem ¶
func (t *OutputItem) FromFetchUrlResultsOutputItem(v FetchUrlResultsOutputItem) error
FromFetchUrlResultsOutputItem overwrites any union data inside the OutputItem as the provided FetchUrlResultsOutputItem
func (*OutputItem) FromFinanceResultsOutputItem ¶
func (t *OutputItem) FromFinanceResultsOutputItem(v FinanceResultsOutputItem) error
FromFinanceResultsOutputItem overwrites any union data inside the OutputItem as the provided FinanceResultsOutputItem
func (*OutputItem) FromFunctionCallOutputItem ¶
func (t *OutputItem) FromFunctionCallOutputItem(v FunctionCallOutputItem) error
FromFunctionCallOutputItem overwrites any union data inside the OutputItem as the provided FunctionCallOutputItem
func (*OutputItem) FromImageSearchResultsOutputItem ¶
func (t *OutputItem) FromImageSearchResultsOutputItem(v ImageSearchResultsOutputItem) error
FromImageSearchResultsOutputItem overwrites any union data inside the OutputItem as the provided ImageSearchResultsOutputItem
func (*OutputItem) FromMcpApprovalRequestOutputItem ¶
func (t *OutputItem) FromMcpApprovalRequestOutputItem(v McpApprovalRequestOutputItem) error
FromMcpApprovalRequestOutputItem overwrites any union data inside the OutputItem as the provided McpApprovalRequestOutputItem
func (*OutputItem) FromMcpCallOutputItem ¶
func (t *OutputItem) FromMcpCallOutputItem(v McpCallOutputItem) error
FromMcpCallOutputItem overwrites any union data inside the OutputItem as the provided McpCallOutputItem
func (*OutputItem) FromMcpListToolsOutputItem ¶
func (t *OutputItem) FromMcpListToolsOutputItem(v McpListToolsOutputItem) error
FromMcpListToolsOutputItem overwrites any union data inside the OutputItem as the provided McpListToolsOutputItem
func (*OutputItem) FromMessageOutputItem ¶
func (t *OutputItem) FromMessageOutputItem(v MessageOutputItem) error
FromMessageOutputItem overwrites any union data inside the OutputItem as the provided MessageOutputItem
func (*OutputItem) FromPeopleSearchResultsOutputItem ¶
func (t *OutputItem) FromPeopleSearchResultsOutputItem(v PeopleSearchResultsOutputItem) error
FromPeopleSearchResultsOutputItem overwrites any union data inside the OutputItem as the provided PeopleSearchResultsOutputItem
func (*OutputItem) FromSandboxReadFileOutputItem ¶ added in v0.5.0
func (t *OutputItem) FromSandboxReadFileOutputItem(v SandboxReadFileOutputItem) error
FromSandboxReadFileOutputItem overwrites any union data inside the OutputItem as the provided SandboxReadFileOutputItem
func (*OutputItem) FromSandboxResultsOutputItem ¶
func (t *OutputItem) FromSandboxResultsOutputItem(v SandboxResultsOutputItem) error
FromSandboxResultsOutputItem overwrites any union data inside the OutputItem as the provided SandboxResultsOutputItem
func (*OutputItem) FromSandboxWriteFileOutputItem ¶ added in v0.5.0
func (t *OutputItem) FromSandboxWriteFileOutputItem(v SandboxWriteFileOutputItem) error
FromSandboxWriteFileOutputItem overwrites any union data inside the OutputItem as the provided SandboxWriteFileOutputItem
func (*OutputItem) FromSearchResultsOutputItem ¶
func (t *OutputItem) FromSearchResultsOutputItem(v SearchResultsOutputItem) error
FromSearchResultsOutputItem overwrites any union data inside the OutputItem as the provided SearchResultsOutputItem
func (*OutputItem) FromShareFileOutputItem ¶ added in v0.5.0
func (t *OutputItem) FromShareFileOutputItem(v ShareFileOutputItem) error
FromShareFileOutputItem overwrites any union data inside the OutputItem as the provided ShareFileOutputItem
func (*OutputItem) FromSkillLoadedOutputItem ¶ added in v0.5.0
func (t *OutputItem) FromSkillLoadedOutputItem(v SkillLoadedOutputItem) error
FromSkillLoadedOutputItem overwrites any union data inside the OutputItem as the provided SkillLoadedOutputItem
func (*OutputItem) FromToolSearchOutputItem ¶
func (t *OutputItem) FromToolSearchOutputItem(v ToolSearchOutputItem) error
FromToolSearchOutputItem overwrites any union data inside the OutputItem as the provided ToolSearchOutputItem
func (OutputItem) MarshalJSON ¶
func (t OutputItem) MarshalJSON() ([]byte, error)
func (*OutputItem) MergeFetchUrlResultsOutputItem ¶
func (t *OutputItem) MergeFetchUrlResultsOutputItem(v FetchUrlResultsOutputItem) error
MergeFetchUrlResultsOutputItem performs a merge with any union data inside the OutputItem, using the provided FetchUrlResultsOutputItem
func (*OutputItem) MergeFinanceResultsOutputItem ¶
func (t *OutputItem) MergeFinanceResultsOutputItem(v FinanceResultsOutputItem) error
MergeFinanceResultsOutputItem performs a merge with any union data inside the OutputItem, using the provided FinanceResultsOutputItem
func (*OutputItem) MergeFunctionCallOutputItem ¶
func (t *OutputItem) MergeFunctionCallOutputItem(v FunctionCallOutputItem) error
MergeFunctionCallOutputItem performs a merge with any union data inside the OutputItem, using the provided FunctionCallOutputItem
func (*OutputItem) MergeImageSearchResultsOutputItem ¶
func (t *OutputItem) MergeImageSearchResultsOutputItem(v ImageSearchResultsOutputItem) error
MergeImageSearchResultsOutputItem performs a merge with any union data inside the OutputItem, using the provided ImageSearchResultsOutputItem
func (*OutputItem) MergeMcpApprovalRequestOutputItem ¶
func (t *OutputItem) MergeMcpApprovalRequestOutputItem(v McpApprovalRequestOutputItem) error
MergeMcpApprovalRequestOutputItem performs a merge with any union data inside the OutputItem, using the provided McpApprovalRequestOutputItem
func (*OutputItem) MergeMcpCallOutputItem ¶
func (t *OutputItem) MergeMcpCallOutputItem(v McpCallOutputItem) error
MergeMcpCallOutputItem performs a merge with any union data inside the OutputItem, using the provided McpCallOutputItem
func (*OutputItem) MergeMcpListToolsOutputItem ¶
func (t *OutputItem) MergeMcpListToolsOutputItem(v McpListToolsOutputItem) error
MergeMcpListToolsOutputItem performs a merge with any union data inside the OutputItem, using the provided McpListToolsOutputItem
func (*OutputItem) MergeMessageOutputItem ¶
func (t *OutputItem) MergeMessageOutputItem(v MessageOutputItem) error
MergeMessageOutputItem performs a merge with any union data inside the OutputItem, using the provided MessageOutputItem
func (*OutputItem) MergePeopleSearchResultsOutputItem ¶
func (t *OutputItem) MergePeopleSearchResultsOutputItem(v PeopleSearchResultsOutputItem) error
MergePeopleSearchResultsOutputItem performs a merge with any union data inside the OutputItem, using the provided PeopleSearchResultsOutputItem
func (*OutputItem) MergeSandboxReadFileOutputItem ¶ added in v0.5.0
func (t *OutputItem) MergeSandboxReadFileOutputItem(v SandboxReadFileOutputItem) error
MergeSandboxReadFileOutputItem performs a merge with any union data inside the OutputItem, using the provided SandboxReadFileOutputItem
func (*OutputItem) MergeSandboxResultsOutputItem ¶
func (t *OutputItem) MergeSandboxResultsOutputItem(v SandboxResultsOutputItem) error
MergeSandboxResultsOutputItem performs a merge with any union data inside the OutputItem, using the provided SandboxResultsOutputItem
func (*OutputItem) MergeSandboxWriteFileOutputItem ¶ added in v0.5.0
func (t *OutputItem) MergeSandboxWriteFileOutputItem(v SandboxWriteFileOutputItem) error
MergeSandboxWriteFileOutputItem performs a merge with any union data inside the OutputItem, using the provided SandboxWriteFileOutputItem
func (*OutputItem) MergeSearchResultsOutputItem ¶
func (t *OutputItem) MergeSearchResultsOutputItem(v SearchResultsOutputItem) error
MergeSearchResultsOutputItem performs a merge with any union data inside the OutputItem, using the provided SearchResultsOutputItem
func (*OutputItem) MergeShareFileOutputItem ¶ added in v0.5.0
func (t *OutputItem) MergeShareFileOutputItem(v ShareFileOutputItem) error
MergeShareFileOutputItem performs a merge with any union data inside the OutputItem, using the provided ShareFileOutputItem
func (*OutputItem) MergeSkillLoadedOutputItem ¶ added in v0.5.0
func (t *OutputItem) MergeSkillLoadedOutputItem(v SkillLoadedOutputItem) error
MergeSkillLoadedOutputItem performs a merge with any union data inside the OutputItem, using the provided SkillLoadedOutputItem
func (*OutputItem) MergeToolSearchOutputItem ¶
func (t *OutputItem) MergeToolSearchOutputItem(v ToolSearchOutputItem) error
MergeToolSearchOutputItem performs a merge with any union data inside the OutputItem, using the provided ToolSearchOutputItem
func (*OutputItem) UnmarshalJSON ¶
func (t *OutputItem) UnmarshalJSON(b []byte) error
func (OutputItem) ValueByDiscriminator ¶
func (t OutputItem) ValueByDiscriminator() (interface{}, error)
type OutputItemAddedEvent ¶
type OutputItemAddedEvent struct {
Item OutputItem `json:"item"`
OutputIndex int64 `json:"output_index"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
OutputItemAddedEvent Output item added event (type: "response.output_item.added"). Emitted when a new output item (message or tool call) starts.
type OutputItemDoneEvent ¶
type OutputItemDoneEvent struct {
Item OutputItem `json:"item"`
OutputIndex int64 `json:"output_index"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
OutputItemDoneEvent Output item done event (type: "response.output_item.done"). Emitted when an output item (message or tool call) completes.
type OutputTokensDetails ¶
type OutputTokensDetails struct {
ReasoningTokens int64 `json:"reasoning_tokens"`
}
OutputTokensDetails defines model for OutputTokensDetails.
type PauseMonitorResponse ¶ added in v0.5.0
type PauseMonitorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Monitor
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *MonitorNotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *MonitorConcurrentUpdate
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *PauseMonitorResponse429Headers
}
func ParsePauseMonitorResponse ¶ added in v0.5.0
func ParsePauseMonitorResponse(rsp *http.Response) (*PauseMonitorResponse, error)
ParsePauseMonitorResponse parses an HTTP response from a PauseMonitorWithResponse call
func (PauseMonitorResponse) ContentType ¶ added in v0.5.0
func (r PauseMonitorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PauseMonitorResponse) GetBody ¶ added in v0.5.0
func (r PauseMonitorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PauseMonitorResponse) GetJSON200 ¶ added in v0.5.0
func (r PauseMonitorResponse) GetJSON200() *Monitor
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PauseMonitorResponse) GetJSON401 ¶ added in v0.5.0
func (r PauseMonitorResponse) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PauseMonitorResponse) GetJSON403 ¶ added in v0.5.0
func (r PauseMonitorResponse) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PauseMonitorResponse) GetJSON404 ¶ added in v0.5.0
func (r PauseMonitorResponse) GetJSON404() *MonitorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PauseMonitorResponse) GetJSON409 ¶ added in v0.5.0
func (r PauseMonitorResponse) GetJSON409() *MonitorConcurrentUpdate
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PauseMonitorResponse) GetJSON429 ¶ added in v0.5.0
func (r PauseMonitorResponse) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (PauseMonitorResponse) GetJSON502 ¶ added in v0.5.0
func (r PauseMonitorResponse) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (PauseMonitorResponse) GetJSON503 ¶ added in v0.5.0
func (r PauseMonitorResponse) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (PauseMonitorResponse) GetJSON504 ¶ added in v0.5.0
func (r PauseMonitorResponse) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (PauseMonitorResponse) Status ¶ added in v0.5.0
func (r PauseMonitorResponse) Status() string
Status returns HTTPResponse.Status
func (PauseMonitorResponse) StatusCode ¶ added in v0.5.0
func (r PauseMonitorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PauseMonitorResponse429Headers ¶ added in v0.5.0
type PauseMonitorResponse429Headers struct {
RetryAfter *int
}
PauseMonitorResponse429Headers the declared response headers of an HTTP 429 response for PauseMonitor
type PayloadTooLarge ¶
type PayloadTooLarge = ErrorResponse
PayloadTooLarge The body of an error response.
type PeopleSearchResultsOutputItem ¶
type PeopleSearchResultsOutputItem struct {
// Queries Search queries the agent generated for this people_search invocation.
Queries *[]string `json:"queries,omitempty"`
// Results Per-person result entries. Shape matches SearchResult (id, url, title, snippet, source, last_updated).
Results []SearchResult `json:"results"`
Type PeopleSearchResultsOutputItemType `json:"type"`
}
PeopleSearchResultsOutputItem Intermediate output item emitted when the people_search tool runs. Mirrors the shape of search_results: the agent's generated queries plus a list of per-person result entries.
type PeopleSearchResultsOutputItemType ¶
type PeopleSearchResultsOutputItemType string
PeopleSearchResultsOutputItemType defines model for PeopleSearchResultsOutputItem.Type.
const (
PeopleSearchResultsOutputItemTypePeopleSearchResults PeopleSearchResultsOutputItemType = "people_search_results"
)
Defines values for PeopleSearchResultsOutputItemType.
func (PeopleSearchResultsOutputItemType) Valid ¶
func (e PeopleSearchResultsOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the PeopleSearchResultsOutputItemType enum.
type PeopleSearchTool ¶
type PeopleSearchTool struct {
// MaxTokens Maximum total tokens for search context
MaxTokens *int32 `json:"max_tokens,omitempty"`
// MaxTokensPerPage Maximum tokens to extract per search result page
MaxTokensPerPage *int32 `json:"max_tokens_per_page,omitempty"`
// Type Tool type identifier
Type PeopleSearchToolType `json:"type"`
}
PeopleSearchTool People search tool configuration for the Agent API
type PeopleSearchToolType ¶
type PeopleSearchToolType string
PeopleSearchToolType Tool type identifier
const (
PeopleSearchToolTypePeopleSearch PeopleSearchToolType = "people_search"
)
Defines values for PeopleSearchToolType.
func (PeopleSearchToolType) Valid ¶
func (e PeopleSearchToolType) Valid() bool
Valid indicates whether the value is a known member of the PeopleSearchToolType enum.
type ProfileReference ¶
type ProfileReference struct {
Id string `json:"id"`
Type ProfileReferenceType `json:"type"`
// Version Version to bind to, or "latest". Omitted means "latest".
Version *string `json:"version,omitempty"`
}
ProfileReference defines model for ProfileReference.
type ProfileReferenceType ¶
type ProfileReferenceType string
ProfileReferenceType defines model for ProfileReference.Type.
const (
ProfileReferenceTypeCustom ProfileReferenceType = "custom"
)
Defines values for ProfileReferenceType.
func (ProfileReferenceType) Valid ¶
func (e ProfileReferenceType) Valid() bool
Valid indicates whether the value is a known member of the ProfileReferenceType enum.
type PromptCacheBreakpoint ¶ added in v0.6.0
type PromptCacheBreakpoint struct {
Mode PromptCacheBreakpointMode `json:"mode"`
}
PromptCacheBreakpoint Marks the end of a reusable prompt prefix on an `input_text` part. Marks replace the default cache breakpoints. A request allows up to 4 marks in `explicit` mode and up to 3 in `implicit` mode; more marks, or a mark on another part type, return HTTP 400.
type PromptCacheBreakpointMode ¶ added in v0.6.0
type PromptCacheBreakpointMode string
PromptCacheBreakpointMode defines model for PromptCacheBreakpoint.Mode.
const (
PromptCacheBreakpointModeExplicit PromptCacheBreakpointMode = "explicit"
)
Defines values for PromptCacheBreakpointMode.
func (PromptCacheBreakpointMode) Valid ¶ added in v0.6.0
func (e PromptCacheBreakpointMode) Valid() bool
Valid indicates whether the value is a known member of the PromptCacheBreakpointMode enum.
type PromptCacheOptions ¶ added in v0.6.0
type PromptCacheOptions struct {
// Mode Prompt cache mode. Defaults to `implicit`.
Mode *PromptCacheOptionsMode `json:"mode,omitempty"`
// Ttl Accepted for OpenAI compatibility and ignored. Providers apply their default cache lifetime.
Ttl *string `json:"ttl,omitempty"`
}
PromptCacheOptions Prompt cache options. `implicit` (default) keeps the default cache breakpoints and provider automatic caching. `explicit` turns both off, so only `input_text` parts marked with `prompt_cache_breakpoint` are cached; with no marks, the request makes no cache writes. See [Prompt Caching](/docs/agent-api/prompt-caching).
type PromptCacheOptionsMode ¶ added in v0.6.0
type PromptCacheOptionsMode string
PromptCacheOptionsMode Prompt cache mode. Defaults to `implicit`.
const ( PromptCacheOptionsModeExplicit PromptCacheOptionsMode = "explicit" PromptCacheOptionsModeImplicit PromptCacheOptionsMode = "implicit" )
Defines values for PromptCacheOptionsMode.
func (PromptCacheOptionsMode) Valid ¶ added in v0.6.0
func (e PromptCacheOptionsMode) Valid() bool
Valid indicates whether the value is a known member of the PromptCacheOptionsMode enum.
type Question ¶
type Question struct {
// contains filtered or unexported fields
}
Question A named question about `state`. Discriminated by `type`.
func (Question) AsChoiceQuestion ¶
func (t Question) AsChoiceQuestion() (ChoiceQuestion, error)
AsChoiceQuestion returns the union data inside the Question as a ChoiceQuestion
func (Question) AsLocateQuestion ¶ added in v0.3.6
func (t Question) AsLocateQuestion() (LocateQuestion, error)
AsLocateQuestion returns the union data inside the Question as a LocateQuestion
func (Question) AsNoulQuestion ¶
func (t Question) AsNoulQuestion() (NoulQuestion, error)
AsNoulQuestion returns the union data inside the Question as a NoulQuestion
func (Question) AsScoreQuestion ¶
func (t Question) AsScoreQuestion() (ScoreQuestion, error)
AsScoreQuestion returns the union data inside the Question as a ScoreQuestion
func (Question) Discriminator ¶
func (*Question) FromChoiceQuestion ¶
func (t *Question) FromChoiceQuestion(v ChoiceQuestion) error
FromChoiceQuestion overwrites any union data inside the Question as the provided ChoiceQuestion
func (*Question) FromLocateQuestion ¶ added in v0.3.6
func (t *Question) FromLocateQuestion(v LocateQuestion) error
FromLocateQuestion overwrites any union data inside the Question as the provided LocateQuestion
func (*Question) FromNoulQuestion ¶
func (t *Question) FromNoulQuestion(v NoulQuestion) error
FromNoulQuestion overwrites any union data inside the Question as the provided NoulQuestion
func (*Question) FromScoreQuestion ¶
func (t *Question) FromScoreQuestion(v ScoreQuestion) error
FromScoreQuestion overwrites any union data inside the Question as the provided ScoreQuestion
func (Question) MarshalJSON ¶
func (*Question) MergeChoiceQuestion ¶
func (t *Question) MergeChoiceQuestion(v ChoiceQuestion) error
MergeChoiceQuestion performs a merge with any union data inside the Question, using the provided ChoiceQuestion
func (*Question) MergeLocateQuestion ¶ added in v0.3.6
func (t *Question) MergeLocateQuestion(v LocateQuestion) error
MergeLocateQuestion performs a merge with any union data inside the Question, using the provided LocateQuestion
func (*Question) MergeNoulQuestion ¶
func (t *Question) MergeNoulQuestion(v NoulQuestion) error
MergeNoulQuestion performs a merge with any union data inside the Question, using the provided NoulQuestion
func (*Question) MergeScoreQuestion ¶
func (t *Question) MergeScoreQuestion(v ScoreQuestion) error
MergeScoreQuestion performs a merge with any union data inside the Question, using the provided ScoreQuestion
func (*Question) UnmarshalJSON ¶
func (Question) ValueByDiscriminator ¶
type ReasoningConfig ¶
type ReasoningConfig struct {
// Effort How much effort the model should spend on reasoning
Effort *ReasoningConfigEffort `json:"effort,omitempty"`
}
ReasoningConfig defines model for ReasoningConfig.
type ReasoningConfigEffort ¶
type ReasoningConfigEffort string
ReasoningConfigEffort How much effort the model should spend on reasoning
const ( ReasoningConfigEffortHigh ReasoningConfigEffort = "high" ReasoningConfigEffortLow ReasoningConfigEffort = "low" ReasoningConfigEffortMax ReasoningConfigEffort = "max" ReasoningConfigEffortMedium ReasoningConfigEffort = "medium" ReasoningConfigEffortMinimal ReasoningConfigEffort = "minimal" ReasoningConfigEffortXhigh ReasoningConfigEffort = "xhigh" )
Defines values for ReasoningConfigEffort.
func (ReasoningConfigEffort) Valid ¶
func (e ReasoningConfigEffort) Valid() bool
Valid indicates whether the value is a known member of the ReasoningConfigEffort enum.
type ReasoningStartedEvent ¶
type ReasoningStartedEvent struct {
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
Thought *string `json:"thought,omitempty"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
ReasoningStartedEvent Reasoning started event (type: "response.reasoning.started"). Signals the model has started reasoning/searching.
type ReasoningStoppedEvent ¶
type ReasoningStoppedEvent struct {
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
Thought *string `json:"thought,omitempty"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
ReasoningStoppedEvent Reasoning stopped event (type: "response.reasoning.stopped"). Signals the model has finished reasoning/searching.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequireApproval ¶
type RequireApproval struct {
// contains filtered or unexported fields
}
RequireApproval Approval policy for an MCP server or connector. A call matching `always` requires approval; otherwise a call matching `never` runs automatically; otherwise approval is required. Omitted or null behaves like `"never"`.
func (RequireApproval) AsApprovalFilters ¶
func (t RequireApproval) AsApprovalFilters() (ApprovalFilters, error)
AsApprovalFilters returns the union data inside the RequireApproval as a ApprovalFilters
func (RequireApproval) AsRequireApproval0 ¶
func (t RequireApproval) AsRequireApproval0() (RequireApproval0, error)
AsRequireApproval0 returns the union data inside the RequireApproval as a RequireApproval0
func (*RequireApproval) FromApprovalFilters ¶
func (t *RequireApproval) FromApprovalFilters(v ApprovalFilters) error
FromApprovalFilters overwrites any union data inside the RequireApproval as the provided ApprovalFilters
func (*RequireApproval) FromRequireApproval0 ¶
func (t *RequireApproval) FromRequireApproval0(v RequireApproval0) error
FromRequireApproval0 overwrites any union data inside the RequireApproval as the provided RequireApproval0
func (RequireApproval) MarshalJSON ¶
func (t RequireApproval) MarshalJSON() ([]byte, error)
func (*RequireApproval) MergeApprovalFilters ¶
func (t *RequireApproval) MergeApprovalFilters(v ApprovalFilters) error
MergeApprovalFilters performs a merge with any union data inside the RequireApproval, using the provided ApprovalFilters
func (*RequireApproval) MergeRequireApproval0 ¶
func (t *RequireApproval) MergeRequireApproval0(v RequireApproval0) error
MergeRequireApproval0 performs a merge with any union data inside the RequireApproval, using the provided RequireApproval0
func (*RequireApproval) UnmarshalJSON ¶
func (t *RequireApproval) UnmarshalJSON(b []byte) error
type RequireApproval0 ¶
type RequireApproval0 string
RequireApproval0 defines model for RequireApproval.0.
const ( RequireApproval0Always RequireApproval0 = "always" RequireApproval0Never RequireApproval0 = "never" )
Defines values for RequireApproval0.
func (RequireApproval0) Valid ¶
func (e RequireApproval0) Valid() bool
Valid indicates whether the value is a known member of the RequireApproval0 enum.
type ResponseCompletedEvent ¶
type ResponseCompletedEvent struct {
// Response Non-streaming response returned when stream is false
Response *ResponsesResponse `json:"response,omitempty"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
ResponseCompletedEvent Response event Contains the full or partial response object.
type ResponseCreatedEvent ¶
type ResponseCreatedEvent struct {
// Response Non-streaming response returned when stream is false
Response *ResponsesResponse `json:"response,omitempty"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
ResponseCreatedEvent Response created event (type: "response.created"). Contains the initial response object.
type ResponseFailedEvent ¶
type ResponseFailedEvent struct {
// Error Error information returned when a request fails
Error ErrorInfo `json:"error"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
ResponseFailedEvent Response failed event (type: "response.failed"). Contains error details when streaming fails.
type ResponseFile ¶
type ResponseFile struct {
// Bytes File size in bytes.
Bytes int64 `json:"bytes"`
// CreatedAt Unix timestamp when the file was created.
CreatedAt int64 `json:"created_at"`
// Filename Name the sandbox gave the file.
Filename string `json:"filename"`
// Id File identifier, used to download the file; distinct from the response id.
Id string `json:"id"`
// Object Always `file`.
Object string `json:"object"`
}
ResponseFile One file shared from a response's sandbox via `share_file`.
type ResponseFileList ¶
type ResponseFileList struct {
Data []ResponseFile `json:"data"`
// Object Always `list`.
Object string `json:"object"`
}
ResponseFileList defines model for ResponseFileList.
type ResponseFormat ¶
type ResponseFormat struct {
// JsonSchema Defines a JSON schema for structured output validation
JsonSchema *JSONSchemaFormat `json:"json_schema,omitempty"`
// Type The type of response format
Type ResponseFormatType `json:"type"`
}
ResponseFormat Specifies the desired output format for the model response
type ResponseFormatJSONSchema ¶
type ResponseFormatJSONSchema struct {
JsonSchema JSONSchema `json:"json_schema"`
// Type Must be `json_schema`.
Type ResponseFormatJSONSchemaType `json:"type"`
}
ResponseFormatJSONSchema Constrains the model output to match the provided JSON schema.
type ResponseFormatJSONSchemaType ¶
type ResponseFormatJSONSchemaType string
ResponseFormatJSONSchemaType Must be `json_schema`.
const (
ResponseFormatJSONSchemaTypeJsonSchema ResponseFormatJSONSchemaType = "json_schema"
)
Defines values for ResponseFormatJSONSchemaType.
func (ResponseFormatJSONSchemaType) Valid ¶
func (e ResponseFormatJSONSchemaType) Valid() bool
Valid indicates whether the value is a known member of the ResponseFormatJSONSchemaType enum.
type ResponseFormatText ¶
type ResponseFormatText struct {
// Type Must be `text`.
Type ResponseFormatTextType `json:"type"`
}
ResponseFormatText defines model for ResponseFormatText.
type ResponseFormatTextType ¶
type ResponseFormatTextType string
ResponseFormatTextType Must be `text`.
const (
ResponseFormatTextTypeText ResponseFormatTextType = "text"
)
Defines values for ResponseFormatTextType.
func (ResponseFormatTextType) Valid ¶
func (e ResponseFormatTextType) Valid() bool
Valid indicates whether the value is a known member of the ResponseFormatTextType enum.
type ResponseFormatType ¶
type ResponseFormatType string
ResponseFormatType The type of response format
const (
ResponseFormatTypeJsonSchema ResponseFormatType = "json_schema"
)
Defines values for ResponseFormatType.
func (ResponseFormatType) Valid ¶
func (e ResponseFormatType) Valid() bool
Valid indicates whether the value is a known member of the ResponseFormatType enum.
type ResponseInProgressEvent ¶
type ResponseInProgressEvent struct {
// Response Non-streaming response returned when stream is false
Response *ResponsesResponse `json:"response,omitempty"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
ResponseInProgressEvent Response in progress event (type: "response.in_progress"). Emitted when response processing has started.
type ResponseStreamEvent ¶
type ResponseStreamEvent struct {
// contains filtered or unexported fields
}
ResponseStreamEvent SSE stream event. Discriminate by the `type` field: - `response.created`: Initial response object - `response.in_progress`: Response processing started - `response.completed`: Final response with output - `response.failed`: Error occurred - `response.output_item.added`: New output item started - `response.output_item.done`: Output item completed - `response.output_text.delta`: Streaming text delta - `response.output_text.done`: Final text content - `response.reasoning.started`: Reasoning phase started - `response.reasoning.search_queries`: Search queries issued - `response.reasoning.search_results`: Search results received - `response.reasoning.image_search_queries`: Image queries issued - `response.reasoning.image_search_results`: Image results received - `response.reasoning.fetch_url_queries`: URL fetch queries issued - `response.reasoning.fetch_url_results`: URL fetch results received - `response.reasoning.stopped`: Reasoning phase complete
func (ResponseStreamEvent) AsFetchUrlQueriesEvent ¶
func (t ResponseStreamEvent) AsFetchUrlQueriesEvent() (FetchUrlQueriesEvent, error)
AsFetchUrlQueriesEvent returns the union data inside the ResponseStreamEvent as a FetchUrlQueriesEvent
func (ResponseStreamEvent) AsFetchUrlResultsEvent ¶
func (t ResponseStreamEvent) AsFetchUrlResultsEvent() (FetchUrlResultsEvent, error)
AsFetchUrlResultsEvent returns the union data inside the ResponseStreamEvent as a FetchUrlResultsEvent
func (ResponseStreamEvent) AsImageSearchQueriesEvent ¶
func (t ResponseStreamEvent) AsImageSearchQueriesEvent() (ImageSearchQueriesEvent, error)
AsImageSearchQueriesEvent returns the union data inside the ResponseStreamEvent as a ImageSearchQueriesEvent
func (ResponseStreamEvent) AsImageSearchResultsEvent ¶
func (t ResponseStreamEvent) AsImageSearchResultsEvent() (ImageSearchResultsEvent, error)
AsImageSearchResultsEvent returns the union data inside the ResponseStreamEvent as a ImageSearchResultsEvent
func (ResponseStreamEvent) AsOutputItemAddedEvent ¶
func (t ResponseStreamEvent) AsOutputItemAddedEvent() (OutputItemAddedEvent, error)
AsOutputItemAddedEvent returns the union data inside the ResponseStreamEvent as a OutputItemAddedEvent
func (ResponseStreamEvent) AsOutputItemDoneEvent ¶
func (t ResponseStreamEvent) AsOutputItemDoneEvent() (OutputItemDoneEvent, error)
AsOutputItemDoneEvent returns the union data inside the ResponseStreamEvent as a OutputItemDoneEvent
func (ResponseStreamEvent) AsReasoningStartedEvent ¶
func (t ResponseStreamEvent) AsReasoningStartedEvent() (ReasoningStartedEvent, error)
AsReasoningStartedEvent returns the union data inside the ResponseStreamEvent as a ReasoningStartedEvent
func (ResponseStreamEvent) AsReasoningStoppedEvent ¶
func (t ResponseStreamEvent) AsReasoningStoppedEvent() (ReasoningStoppedEvent, error)
AsReasoningStoppedEvent returns the union data inside the ResponseStreamEvent as a ReasoningStoppedEvent
func (ResponseStreamEvent) AsResponseCompletedEvent ¶
func (t ResponseStreamEvent) AsResponseCompletedEvent() (ResponseCompletedEvent, error)
AsResponseCompletedEvent returns the union data inside the ResponseStreamEvent as a ResponseCompletedEvent
func (ResponseStreamEvent) AsResponseCreatedEvent ¶
func (t ResponseStreamEvent) AsResponseCreatedEvent() (ResponseCreatedEvent, error)
AsResponseCreatedEvent returns the union data inside the ResponseStreamEvent as a ResponseCreatedEvent
func (ResponseStreamEvent) AsResponseFailedEvent ¶
func (t ResponseStreamEvent) AsResponseFailedEvent() (ResponseFailedEvent, error)
AsResponseFailedEvent returns the union data inside the ResponseStreamEvent as a ResponseFailedEvent
func (ResponseStreamEvent) AsResponseInProgressEvent ¶
func (t ResponseStreamEvent) AsResponseInProgressEvent() (ResponseInProgressEvent, error)
AsResponseInProgressEvent returns the union data inside the ResponseStreamEvent as a ResponseInProgressEvent
func (ResponseStreamEvent) AsSearchQueriesEvent ¶
func (t ResponseStreamEvent) AsSearchQueriesEvent() (SearchQueriesEvent, error)
AsSearchQueriesEvent returns the union data inside the ResponseStreamEvent as a SearchQueriesEvent
func (ResponseStreamEvent) AsSearchResultsEvent ¶
func (t ResponseStreamEvent) AsSearchResultsEvent() (SearchResultsEvent, error)
AsSearchResultsEvent returns the union data inside the ResponseStreamEvent as a SearchResultsEvent
func (ResponseStreamEvent) AsTextDeltaEvent ¶
func (t ResponseStreamEvent) AsTextDeltaEvent() (TextDeltaEvent, error)
AsTextDeltaEvent returns the union data inside the ResponseStreamEvent as a TextDeltaEvent
func (ResponseStreamEvent) AsTextDoneEvent ¶
func (t ResponseStreamEvent) AsTextDoneEvent() (TextDoneEvent, error)
AsTextDoneEvent returns the union data inside the ResponseStreamEvent as a TextDoneEvent
func (ResponseStreamEvent) Discriminator ¶
func (t ResponseStreamEvent) Discriminator() (string, error)
func (*ResponseStreamEvent) FromFetchUrlQueriesEvent ¶
func (t *ResponseStreamEvent) FromFetchUrlQueriesEvent(v FetchUrlQueriesEvent) error
FromFetchUrlQueriesEvent overwrites any union data inside the ResponseStreamEvent as the provided FetchUrlQueriesEvent
func (*ResponseStreamEvent) FromFetchUrlResultsEvent ¶
func (t *ResponseStreamEvent) FromFetchUrlResultsEvent(v FetchUrlResultsEvent) error
FromFetchUrlResultsEvent overwrites any union data inside the ResponseStreamEvent as the provided FetchUrlResultsEvent
func (*ResponseStreamEvent) FromImageSearchQueriesEvent ¶
func (t *ResponseStreamEvent) FromImageSearchQueriesEvent(v ImageSearchQueriesEvent) error
FromImageSearchQueriesEvent overwrites any union data inside the ResponseStreamEvent as the provided ImageSearchQueriesEvent
func (*ResponseStreamEvent) FromImageSearchResultsEvent ¶
func (t *ResponseStreamEvent) FromImageSearchResultsEvent(v ImageSearchResultsEvent) error
FromImageSearchResultsEvent overwrites any union data inside the ResponseStreamEvent as the provided ImageSearchResultsEvent
func (*ResponseStreamEvent) FromOutputItemAddedEvent ¶
func (t *ResponseStreamEvent) FromOutputItemAddedEvent(v OutputItemAddedEvent) error
FromOutputItemAddedEvent overwrites any union data inside the ResponseStreamEvent as the provided OutputItemAddedEvent
func (*ResponseStreamEvent) FromOutputItemDoneEvent ¶
func (t *ResponseStreamEvent) FromOutputItemDoneEvent(v OutputItemDoneEvent) error
FromOutputItemDoneEvent overwrites any union data inside the ResponseStreamEvent as the provided OutputItemDoneEvent
func (*ResponseStreamEvent) FromReasoningStartedEvent ¶
func (t *ResponseStreamEvent) FromReasoningStartedEvent(v ReasoningStartedEvent) error
FromReasoningStartedEvent overwrites any union data inside the ResponseStreamEvent as the provided ReasoningStartedEvent
func (*ResponseStreamEvent) FromReasoningStoppedEvent ¶
func (t *ResponseStreamEvent) FromReasoningStoppedEvent(v ReasoningStoppedEvent) error
FromReasoningStoppedEvent overwrites any union data inside the ResponseStreamEvent as the provided ReasoningStoppedEvent
func (*ResponseStreamEvent) FromResponseCompletedEvent ¶
func (t *ResponseStreamEvent) FromResponseCompletedEvent(v ResponseCompletedEvent) error
FromResponseCompletedEvent overwrites any union data inside the ResponseStreamEvent as the provided ResponseCompletedEvent
func (*ResponseStreamEvent) FromResponseCreatedEvent ¶
func (t *ResponseStreamEvent) FromResponseCreatedEvent(v ResponseCreatedEvent) error
FromResponseCreatedEvent overwrites any union data inside the ResponseStreamEvent as the provided ResponseCreatedEvent
func (*ResponseStreamEvent) FromResponseFailedEvent ¶
func (t *ResponseStreamEvent) FromResponseFailedEvent(v ResponseFailedEvent) error
FromResponseFailedEvent overwrites any union data inside the ResponseStreamEvent as the provided ResponseFailedEvent
func (*ResponseStreamEvent) FromResponseInProgressEvent ¶
func (t *ResponseStreamEvent) FromResponseInProgressEvent(v ResponseInProgressEvent) error
FromResponseInProgressEvent overwrites any union data inside the ResponseStreamEvent as the provided ResponseInProgressEvent
func (*ResponseStreamEvent) FromSearchQueriesEvent ¶
func (t *ResponseStreamEvent) FromSearchQueriesEvent(v SearchQueriesEvent) error
FromSearchQueriesEvent overwrites any union data inside the ResponseStreamEvent as the provided SearchQueriesEvent
func (*ResponseStreamEvent) FromSearchResultsEvent ¶
func (t *ResponseStreamEvent) FromSearchResultsEvent(v SearchResultsEvent) error
FromSearchResultsEvent overwrites any union data inside the ResponseStreamEvent as the provided SearchResultsEvent
func (*ResponseStreamEvent) FromTextDeltaEvent ¶
func (t *ResponseStreamEvent) FromTextDeltaEvent(v TextDeltaEvent) error
FromTextDeltaEvent overwrites any union data inside the ResponseStreamEvent as the provided TextDeltaEvent
func (*ResponseStreamEvent) FromTextDoneEvent ¶
func (t *ResponseStreamEvent) FromTextDoneEvent(v TextDoneEvent) error
FromTextDoneEvent overwrites any union data inside the ResponseStreamEvent as the provided TextDoneEvent
func (ResponseStreamEvent) MarshalJSON ¶
func (t ResponseStreamEvent) MarshalJSON() ([]byte, error)
func (*ResponseStreamEvent) MergeFetchUrlQueriesEvent ¶
func (t *ResponseStreamEvent) MergeFetchUrlQueriesEvent(v FetchUrlQueriesEvent) error
MergeFetchUrlQueriesEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided FetchUrlQueriesEvent
func (*ResponseStreamEvent) MergeFetchUrlResultsEvent ¶
func (t *ResponseStreamEvent) MergeFetchUrlResultsEvent(v FetchUrlResultsEvent) error
MergeFetchUrlResultsEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided FetchUrlResultsEvent
func (*ResponseStreamEvent) MergeImageSearchQueriesEvent ¶
func (t *ResponseStreamEvent) MergeImageSearchQueriesEvent(v ImageSearchQueriesEvent) error
MergeImageSearchQueriesEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided ImageSearchQueriesEvent
func (*ResponseStreamEvent) MergeImageSearchResultsEvent ¶
func (t *ResponseStreamEvent) MergeImageSearchResultsEvent(v ImageSearchResultsEvent) error
MergeImageSearchResultsEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided ImageSearchResultsEvent
func (*ResponseStreamEvent) MergeOutputItemAddedEvent ¶
func (t *ResponseStreamEvent) MergeOutputItemAddedEvent(v OutputItemAddedEvent) error
MergeOutputItemAddedEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided OutputItemAddedEvent
func (*ResponseStreamEvent) MergeOutputItemDoneEvent ¶
func (t *ResponseStreamEvent) MergeOutputItemDoneEvent(v OutputItemDoneEvent) error
MergeOutputItemDoneEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided OutputItemDoneEvent
func (*ResponseStreamEvent) MergeReasoningStartedEvent ¶
func (t *ResponseStreamEvent) MergeReasoningStartedEvent(v ReasoningStartedEvent) error
MergeReasoningStartedEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided ReasoningStartedEvent
func (*ResponseStreamEvent) MergeReasoningStoppedEvent ¶
func (t *ResponseStreamEvent) MergeReasoningStoppedEvent(v ReasoningStoppedEvent) error
MergeReasoningStoppedEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided ReasoningStoppedEvent
func (*ResponseStreamEvent) MergeResponseCompletedEvent ¶
func (t *ResponseStreamEvent) MergeResponseCompletedEvent(v ResponseCompletedEvent) error
MergeResponseCompletedEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided ResponseCompletedEvent
func (*ResponseStreamEvent) MergeResponseCreatedEvent ¶
func (t *ResponseStreamEvent) MergeResponseCreatedEvent(v ResponseCreatedEvent) error
MergeResponseCreatedEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided ResponseCreatedEvent
func (*ResponseStreamEvent) MergeResponseFailedEvent ¶
func (t *ResponseStreamEvent) MergeResponseFailedEvent(v ResponseFailedEvent) error
MergeResponseFailedEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided ResponseFailedEvent
func (*ResponseStreamEvent) MergeResponseInProgressEvent ¶
func (t *ResponseStreamEvent) MergeResponseInProgressEvent(v ResponseInProgressEvent) error
MergeResponseInProgressEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided ResponseInProgressEvent
func (*ResponseStreamEvent) MergeSearchQueriesEvent ¶
func (t *ResponseStreamEvent) MergeSearchQueriesEvent(v SearchQueriesEvent) error
MergeSearchQueriesEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided SearchQueriesEvent
func (*ResponseStreamEvent) MergeSearchResultsEvent ¶
func (t *ResponseStreamEvent) MergeSearchResultsEvent(v SearchResultsEvent) error
MergeSearchResultsEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided SearchResultsEvent
func (*ResponseStreamEvent) MergeTextDeltaEvent ¶
func (t *ResponseStreamEvent) MergeTextDeltaEvent(v TextDeltaEvent) error
MergeTextDeltaEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided TextDeltaEvent
func (*ResponseStreamEvent) MergeTextDoneEvent ¶
func (t *ResponseStreamEvent) MergeTextDoneEvent(v TextDoneEvent) error
MergeTextDoneEvent performs a merge with any union data inside the ResponseStreamEvent, using the provided TextDoneEvent
func (*ResponseStreamEvent) UnmarshalJSON ¶
func (t *ResponseStreamEvent) UnmarshalJSON(b []byte) error
func (ResponseStreamEvent) ValueByDiscriminator ¶
func (t ResponseStreamEvent) ValueByDiscriminator() (interface{}, error)
type ResponsesCost ¶
type ResponsesCost struct {
// CacheCreationCost Cost for cache creation in USD
CacheCreationCost *float64 `json:"cache_creation_cost,omitempty"`
// CacheReadCost Cost for cache reads in USD
CacheReadCost *float64 `json:"cache_read_cost,omitempty"`
// Currency Currency of the cost values
Currency Currency `json:"currency"`
// InputCost Cost for input tokens in USD
InputCost float64 `json:"input_cost"`
// OutputCost Cost for output tokens in USD
OutputCost float64 `json:"output_cost"`
// ToolCallsCost Cost for tool call invocations in USD
ToolCallsCost *float64 `json:"tool_calls_cost,omitempty"`
// ToolCallsCostDetails USD cost attributed to each reported tool by tool name.
// Unpriced reported tools are included with a value of 0.
ToolCallsCostDetails *map[string]float64 `json:"tool_calls_cost_details,omitempty"`
// TotalCost Total cost for the request in USD
TotalCost float64 `json:"total_cost"`
}
ResponsesCost Cost breakdown for a Responses API request
type ResponsesObjectType ¶
type ResponsesObjectType string
ResponsesObjectType Object type in API responses
const (
ResponsesObjectTypeResponse ResponsesObjectType = "response"
)
Defines values for ResponsesObjectType.
func (ResponsesObjectType) Valid ¶
func (e ResponsesObjectType) Valid() bool
Valid indicates whether the value is a known member of the ResponsesObjectType enum.
type ResponsesRequest ¶
type ResponsesRequest struct {
// Background Run the response asynchronously. With `stream: false`, the request returns immediately with `status: "queued"`; poll `GET /v1/responses/{id}` until the response reaches a terminal status. Background runs are durable, so you can also stream them and reconnect after a drop.
Background *bool `json:"background,omitempty"`
// Effort Effort to run, as `name`, `name@latest`, or `name@<version>` (e.g., "fast", "low", "fast@2026-09-29.0").
// An effort level is a pre-configured model with system prompt and search parameters.
// `name` and `name@latest` run the active version. `name@<version>` runs that exact version.
// An `effort` value returned on a response pins that configuration only when it carries a version.
// A returned value without a version runs the active version.
// Versions are opaque: do not parse, order, or calculate them.
// Required if model is not provided.
Effort *string `json:"effort,omitempty"`
// Input Input content - either a string or array of input items
Input Input `json:"input"`
// Instructions System instructions for the model
Instructions *string `json:"instructions,omitempty"`
// LanguagePreference ISO 639-1 language code for response language
LanguagePreference *string `json:"language_preference,omitempty"`
// MaxOutputTokens Optional total output-token budget across the run, including for Anthropic models. When neither the request nor its effort level or saved profile supplies a budget, each generation can produce up to 128,000 output tokens, capped by the model's supported limit.
MaxOutputTokens *int32 `json:"max_output_tokens,omitempty"`
// MaxSteps Maximum number of research loop steps.
// If provided, overrides the effort level's max_steps value. For requests that specify model or models without an effort level, the default is 1.
// Set max_steps to at least 3 when using finance_search with a direct model so the agent has enough steps to initialize and run the tool.
// Must be >= 1 if specified. Maximum allowed is 500.
MaxSteps *int32 `json:"max_steps,omitempty"`
// Model Model ID in provider/model format (e.g., "openai/gpt-5.6-terra", "anthropic/claude-sonnet-5-5").
// If models is also provided, models takes precedence.
// Required if neither models nor effort is provided.
Model *string `json:"model,omitempty"`
// Models Model fallback chain. Each model is in provider/model format.
// Models are tried in order until one succeeds.
// Max 5 models allowed. If set, takes precedence over single model field.
// The response.model will reflect the model that actually succeeded.
Models *[]string `json:"models,omitempty"`
// PreviousResponseId OpenAI-compatible previous response id for multi-turn response chains. When set, the new response continues from the completed prior response's saved state. The prior response must belong to the same account and have completed.
PreviousResponseId *string `json:"previous_response_id,omitempty"`
// Profile Saved, versioned configuration to run with. The version is resolved when the request is admitted. Cannot be combined with effort.
Profile *ProfileReference `json:"profile,omitempty"`
// PromptCacheKey Stable key for prompt cache affinity. Send the same key on requests that share a prompt prefix, including retries and multi-turn conversations, so later requests can read the cached prefix. The key is scoped to your account and does not affect model routing. See [Prompt Caching](/docs/agent-api/prompt-caching).
PromptCacheKey *string `json:"prompt_cache_key,omitempty"`
// PromptCacheOptions Prompt cache options. `implicit` (default) keeps the default cache breakpoints and provider automatic caching. `explicit` turns both off, so only `input_text` parts marked with `prompt_cache_breakpoint` are cached; with no marks, the request makes no cache writes. See [Prompt Caching](/docs/agent-api/prompt-caching).
PromptCacheOptions *PromptCacheOptions `json:"prompt_cache_options,omitempty"`
Reasoning *ReasoningConfig `json:"reasoning,omitempty"`
// ResponseFormat Specifies the desired output format for the model response
ResponseFormat *ResponseFormat `json:"response_format,omitempty"`
// Skills Built-in, request-scoped inline, and organization-owned custom skills available to the model. Skill metadata is disclosed to the model up front; full instructions are loaded on demand through the load_skill tool. Selecting any skill enables the sandbox tool for the request. Requests with skills run on the durable backend and skills are not echoed back on Response objects.
Skills *[]Skill `json:"skills,omitempty"`
// Store OpenAI-compatible storage toggle. When false, the response is hidden from later retrieve calls, and the echoed response reports `store: false`. It can still be used as a `previous_response_id` continuation source.
Store *bool `json:"store,omitempty"`
// Stream If true, returns SSE stream instead of JSON
Stream *bool `json:"stream,omitempty"`
// Temperature OpenAI-compatible sampling temperature forwarded to generation.
Temperature *float64 `json:"temperature,omitempty"`
// ToolChoice Tool choice strategy. Use `{"type":"image_search"}` to force image search.
ToolChoice *ToolChoice `json:"tool_choice,omitempty"`
// Tools Tools available to the model
Tools *[]Tool `json:"tools,omitempty"`
// TopP OpenAI-compatible nucleus sampling parameter forwarded to generation.
TopP *float64 `json:"top_p,omitempty"`
}
ResponsesRequest defines model for ResponsesRequest.
type ResponsesResponse ¶
type ResponsesResponse struct {
// CreatedAt Unix timestamp when the response was created
CreatedAt int64 `json:"created_at"`
// Effort Effort and version that ran this response, as `name@<version>` (e.g., "fast@2026-09-29.0").
// Present only when the request used an effort level. Streams resumed with `starting_after` omit it.
// For an alias, this is the effort and version that the alias selects.
// Send a value with a version as the request `effort` to run that configuration again.
// A released version can receive bug-fix patches, so sending it back runs that version as currently patched.
// A value without a version is the bare effort name: the run was created before effort versions, or was served without versions.
// Sending it runs the active version.
Effort *string `json:"effort,omitempty"`
// Error Error details if the response failed
Error *ErrorInfo `json:"error,omitempty"`
// Id Unique identifier for the response
Id string `json:"id"`
// Model Model used for generation
Model string `json:"model"`
// Object Object type identifier
Object ResponsesObjectType `json:"object"`
// Output Array of output items (messages, search results, tool calls)
Output []OutputItem `json:"output"`
// Status Status of the response
Status Status `json:"status"`
// Usage Token usage and cost information
Usage *ResponsesUsage `json:"usage,omitempty"`
}
ResponsesResponse Non-streaming response returned when stream is false
type ResponsesUsage ¶
type ResponsesUsage struct {
// Cost Cost breakdown for the request
Cost *ResponsesCost `json:"cost,omitempty"`
// InputTokens Number of input tokens used
InputTokens int64 `json:"input_tokens"`
InputTokensDetails *struct {
// CacheCreationInputTokens Tokens used for cache creation
CacheCreationInputTokens *int64 `json:"cache_creation_input_tokens,omitempty"`
// CacheReadInputTokens Tokens read from cache
CacheReadInputTokens *int64 `json:"cache_read_input_tokens,omitempty"`
} `json:"input_tokens_details,omitempty"`
// OutputTokens Number of output tokens generated
OutputTokens int64 `json:"output_tokens"`
// ToolCallsDetails Details about tool call invocations
ToolCallsDetails *map[string]ToolCallDetails `json:"tool_calls_details,omitempty"`
// TotalTokens Total tokens used (input + output)
TotalTokens int64 `json:"total_tokens"`
}
ResponsesUsage Token usage and cost information for a Responses API request
type ResumeMonitorResponse ¶ added in v0.5.0
type ResumeMonitorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Monitor
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *MonitorNotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *MonitorApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ResumeMonitorResponse429Headers
}
func ParseResumeMonitorResponse ¶ added in v0.5.0
func ParseResumeMonitorResponse(rsp *http.Response) (*ResumeMonitorResponse, error)
ParseResumeMonitorResponse parses an HTTP response from a ResumeMonitorWithResponse call
func (ResumeMonitorResponse) ContentType ¶ added in v0.5.0
func (r ResumeMonitorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ResumeMonitorResponse) GetBody ¶ added in v0.5.0
func (r ResumeMonitorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ResumeMonitorResponse) GetJSON200 ¶ added in v0.5.0
func (r ResumeMonitorResponse) GetJSON200() *Monitor
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ResumeMonitorResponse) GetJSON401 ¶ added in v0.5.0
func (r ResumeMonitorResponse) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ResumeMonitorResponse) GetJSON403 ¶ added in v0.5.0
func (r ResumeMonitorResponse) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ResumeMonitorResponse) GetJSON404 ¶ added in v0.5.0
func (r ResumeMonitorResponse) GetJSON404() *MonitorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ResumeMonitorResponse) GetJSON409 ¶ added in v0.5.0
func (r ResumeMonitorResponse) GetJSON409() *MonitorApiError
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (ResumeMonitorResponse) GetJSON429 ¶ added in v0.5.0
func (r ResumeMonitorResponse) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ResumeMonitorResponse) GetJSON502 ¶ added in v0.5.0
func (r ResumeMonitorResponse) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (ResumeMonitorResponse) GetJSON503 ¶ added in v0.5.0
func (r ResumeMonitorResponse) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ResumeMonitorResponse) GetJSON504 ¶ added in v0.5.0
func (r ResumeMonitorResponse) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (ResumeMonitorResponse) Status ¶ added in v0.5.0
func (r ResumeMonitorResponse) Status() string
Status returns HTTPResponse.Status
func (ResumeMonitorResponse) StatusCode ¶ added in v0.5.0
func (r ResumeMonitorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResumeMonitorResponse429Headers ¶ added in v0.5.0
type ResumeMonitorResponse429Headers struct {
RetryAfter *int
}
ResumeMonitorResponse429Headers the declared response headers of an HTTP 429 response for ResumeMonitor
type RetrieveAgentResponse ¶
type RetrieveAgentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ResponsesResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
// Error Error information returned when a request fails
Error *ErrorInfo `json:"error,omitempty"`
}
}
func ParseRetrieveAgentResponse ¶
func ParseRetrieveAgentResponse(rsp *http.Response) (*RetrieveAgentResponse, error)
ParseRetrieveAgentResponse parses an HTTP response from a RetrieveAgentWithResponse call
func (RetrieveAgentResponse) ContentType ¶
func (r RetrieveAgentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RetrieveAgentResponse) GetBody ¶
func (r RetrieveAgentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RetrieveAgentResponse) GetJSON200 ¶
func (r RetrieveAgentResponse) GetJSON200() *ResponsesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RetrieveAgentResponse) GetJSON404 ¶
func (r RetrieveAgentResponse) GetJSON404() *struct { // Error Error information returned when a request fails Error *ErrorInfo `json:"error,omitempty"` }
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (RetrieveAgentResponse) Status ¶
func (r RetrieveAgentResponse) Status() string
Status returns HTTPResponse.Status
func (RetrieveAgentResponse) StatusCode ¶
func (r RetrieveAgentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RoleType ¶
type RoleType string
RoleType Role in a message
const (
RoleTypeAssistant RoleType = "assistant"
)
Defines values for RoleType.
type RunMonitor409JSONResponseBody ¶ added in v0.5.0
type RunMonitor409JSONResponseBody struct {
// contains filtered or unexported fields
}
RunMonitor409JSONResponseBody defines parameters for RunMonitor.
func (RunMonitor409JSONResponseBody) AsMonitorApiError ¶ added in v0.5.0
func (t RunMonitor409JSONResponseBody) AsMonitorApiError() (MonitorApiError, error)
AsMonitorApiError returns the union data inside the RunMonitor409JSONResponseBody as a MonitorApiError
func (RunMonitor409JSONResponseBody) AsMonitorRunInProgressError ¶ added in v0.5.0
func (t RunMonitor409JSONResponseBody) AsMonitorRunInProgressError() (MonitorRunInProgressError, error)
AsMonitorRunInProgressError returns the union data inside the RunMonitor409JSONResponseBody as a MonitorRunInProgressError
func (*RunMonitor409JSONResponseBody) FromMonitorApiError ¶ added in v0.5.0
func (t *RunMonitor409JSONResponseBody) FromMonitorApiError(v MonitorApiError) error
FromMonitorApiError overwrites any union data inside the RunMonitor409JSONResponseBody as the provided MonitorApiError
func (*RunMonitor409JSONResponseBody) FromMonitorRunInProgressError ¶ added in v0.5.0
func (t *RunMonitor409JSONResponseBody) FromMonitorRunInProgressError(v MonitorRunInProgressError) error
FromMonitorRunInProgressError overwrites any union data inside the RunMonitor409JSONResponseBody as the provided MonitorRunInProgressError
func (RunMonitor409JSONResponseBody) MarshalJSON ¶ added in v0.5.0
func (t RunMonitor409JSONResponseBody) MarshalJSON() ([]byte, error)
func (*RunMonitor409JSONResponseBody) MergeMonitorApiError ¶ added in v0.5.0
func (t *RunMonitor409JSONResponseBody) MergeMonitorApiError(v MonitorApiError) error
MergeMonitorApiError performs a merge with any union data inside the RunMonitor409JSONResponseBody, using the provided MonitorApiError
func (*RunMonitor409JSONResponseBody) MergeMonitorRunInProgressError ¶ added in v0.5.0
func (t *RunMonitor409JSONResponseBody) MergeMonitorRunInProgressError(v MonitorRunInProgressError) error
MergeMonitorRunInProgressError performs a merge with any union data inside the RunMonitor409JSONResponseBody, using the provided MonitorRunInProgressError
func (*RunMonitor409JSONResponseBody) UnmarshalJSON ¶ added in v0.5.0
func (t *RunMonitor409JSONResponseBody) UnmarshalJSON(b []byte) error
type RunMonitorResponse ¶ added in v0.5.0
type RunMonitorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *MonitorRun
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON402 the response for an HTTP 402 `application/json` response
JSON402 *MonitorPaymentRequired
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *MonitorNotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RunMonitor409JSONResponseBody
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *RunMonitorResponse429Headers
}
func ParseRunMonitorResponse ¶ added in v0.5.0
func ParseRunMonitorResponse(rsp *http.Response) (*RunMonitorResponse, error)
ParseRunMonitorResponse parses an HTTP response from a RunMonitorWithResponse call
func (RunMonitorResponse) ContentType ¶ added in v0.5.0
func (r RunMonitorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RunMonitorResponse) GetBody ¶ added in v0.5.0
func (r RunMonitorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RunMonitorResponse) GetJSON202 ¶ added in v0.5.0
func (r RunMonitorResponse) GetJSON202() *MonitorRun
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (RunMonitorResponse) GetJSON401 ¶ added in v0.5.0
func (r RunMonitorResponse) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RunMonitorResponse) GetJSON402 ¶ added in v0.5.0
func (r RunMonitorResponse) GetJSON402() *MonitorPaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
func (RunMonitorResponse) GetJSON403 ¶ added in v0.5.0
func (r RunMonitorResponse) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (RunMonitorResponse) GetJSON404 ¶ added in v0.5.0
func (r RunMonitorResponse) GetJSON404() *MonitorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (RunMonitorResponse) GetJSON409 ¶ added in v0.5.0
func (r RunMonitorResponse) GetJSON409() *RunMonitor409JSONResponseBody
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (RunMonitorResponse) GetJSON429 ¶ added in v0.5.0
func (r RunMonitorResponse) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (RunMonitorResponse) GetJSON502 ¶ added in v0.5.0
func (r RunMonitorResponse) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (RunMonitorResponse) GetJSON503 ¶ added in v0.5.0
func (r RunMonitorResponse) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (RunMonitorResponse) GetJSON504 ¶ added in v0.5.0
func (r RunMonitorResponse) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (RunMonitorResponse) Status ¶ added in v0.5.0
func (r RunMonitorResponse) Status() string
Status returns HTTPResponse.Status
func (RunMonitorResponse) StatusCode ¶ added in v0.5.0
func (r RunMonitorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RunMonitorResponse429Headers ¶ added in v0.5.0
type RunMonitorResponse429Headers struct {
RetryAfter *int
}
RunMonitorResponse429Headers the declared response headers of an HTTP 429 response for RunMonitor
type SandboxReadFileOutputItem ¶ added in v0.5.0
type SandboxReadFileOutputItem struct {
// CallId Identifier of the tool call that produced this item.
CallId string `json:"call_id"`
// Content Text read from the file.
Content *string `json:"content,omitempty"`
// Error Error message if the read failed.
Error *string `json:"error,omitempty"`
// FilePath Path of the file the sandbox read.
FilePath string `json:"file_path"`
// StartLine Line number where `content` starts. Present only when the read covered part of the file.
StartLine *int32 `json:"start_line,omitempty"`
// TotalLines Number of lines in the file. Present only when the read covered part of the file.
TotalLines *int32 `json:"total_lines,omitempty"`
Type SandboxReadFileOutputItemType `json:"type"`
}
SandboxReadFileOutputItem Result of a file read inside the sandbox.
type SandboxReadFileOutputItemType ¶ added in v0.5.0
type SandboxReadFileOutputItemType string
SandboxReadFileOutputItemType defines model for SandboxReadFileOutputItem.Type.
const (
SandboxReadFileOutputItemTypeSandboxReadFile SandboxReadFileOutputItemType = "sandbox_read_file"
)
Defines values for SandboxReadFileOutputItemType.
func (SandboxReadFileOutputItemType) Valid ¶ added in v0.5.0
func (e SandboxReadFileOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the SandboxReadFileOutputItemType enum.
type SandboxResultsOutputItem ¶
type SandboxResultsOutputItem struct {
// Code The code that was executed inside the sandbox.
Code *string `json:"code,omitempty"`
// DurationMs Wall-clock duration of the sandbox execution, in milliseconds.
DurationMs *int64 `json:"duration_ms,omitempty"`
// ExitCode Process exit code. Non-zero indicates a runtime error.
ExitCode *int32 `json:"exit_code,omitempty"`
// Status Execution status. One of `completed`, `timed_out`, `failed`.
Status SandboxResultsOutputItemStatus `json:"status"`
// Stderr Standard error captured from the sandbox execution.
Stderr *string `json:"stderr,omitempty"`
// Stdout Standard output captured from the sandbox execution.
Stdout *string `json:"stdout,omitempty"`
Type SandboxResultsOutputItemType `json:"type"`
}
SandboxResultsOutputItem Result of a sandbox tool invocation. Contains the executed code and its output.
type SandboxResultsOutputItemStatus ¶
type SandboxResultsOutputItemStatus string
SandboxResultsOutputItemStatus Execution status. One of `completed`, `timed_out`, `failed`.
const ( SandboxResultsOutputItemStatusCompleted SandboxResultsOutputItemStatus = "completed" SandboxResultsOutputItemStatusFailed SandboxResultsOutputItemStatus = "failed" SandboxResultsOutputItemStatusTimedOut SandboxResultsOutputItemStatus = "timed_out" )
Defines values for SandboxResultsOutputItemStatus.
func (SandboxResultsOutputItemStatus) Valid ¶
func (e SandboxResultsOutputItemStatus) Valid() bool
Valid indicates whether the value is a known member of the SandboxResultsOutputItemStatus enum.
type SandboxResultsOutputItemType ¶
type SandboxResultsOutputItemType string
SandboxResultsOutputItemType defines model for SandboxResultsOutputItem.Type.
const (
SandboxResultsOutputItemTypeSandboxResults SandboxResultsOutputItemType = "sandbox_results"
)
Defines values for SandboxResultsOutputItemType.
func (SandboxResultsOutputItemType) Valid ¶
func (e SandboxResultsOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the SandboxResultsOutputItemType enum.
type SandboxTool ¶
type SandboxTool struct {
// Type Tool type identifier
Type SandboxToolType `json:"type"`
}
SandboxTool Sandbox tool configuration for the Responses API. Executes code in an isolated container during an Agent API request.
type SandboxToolType ¶
type SandboxToolType string
SandboxToolType Tool type identifier
const (
SandboxToolTypeSandbox SandboxToolType = "sandbox"
)
Defines values for SandboxToolType.
func (SandboxToolType) Valid ¶
func (e SandboxToolType) Valid() bool
Valid indicates whether the value is a known member of the SandboxToolType enum.
type SandboxWriteFileOutputItem ¶ added in v0.5.0
type SandboxWriteFileOutputItem struct {
// CallId Identifier of the tool call that produced this item.
CallId string `json:"call_id"`
// Error Error message if the write failed.
Error *string `json:"error,omitempty"`
// FilePath Path of the file the sandbox wrote.
FilePath string `json:"file_path"`
// SizeBytes Size of the written file, in bytes.
SizeBytes *int64 `json:"size_bytes,omitempty"`
Type SandboxWriteFileOutputItemType `json:"type"`
}
SandboxWriteFileOutputItem Result of a file write inside the sandbox.
type SandboxWriteFileOutputItemType ¶ added in v0.5.0
type SandboxWriteFileOutputItemType string
SandboxWriteFileOutputItemType defines model for SandboxWriteFileOutputItem.Type.
const (
SandboxWriteFileOutputItemTypeSandboxWriteFile SandboxWriteFileOutputItemType = "sandbox_write_file"
)
Defines values for SandboxWriteFileOutputItemType.
func (SandboxWriteFileOutputItemType) Valid ¶ added in v0.5.0
func (e SandboxWriteFileOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the SandboxWriteFileOutputItemType enum.
type ScoreAnswer ¶
type ScoreAnswer struct {
// Confidence Computed from `probabilities` as `1 - spread / baseline`, with a floor of 0. `spread` is the sum of `p_i × |i - top|`, where `top` is the most likely level; `baseline` is the unweighted average of `|i - top|` over all levels. 1 for a single level.
Confidence float64 `json:"confidence"`
// Legend Level index, as a string, mapped back to the `criteria` entry it stands for.
Legend map[string]ScoreAnswer_Legend_AdditionalProperties `json:"legend"`
// Probabilities Probability of each level, keyed like `legend`. Values sum to approximately 1.
Probabilities map[string]float64 `json:"probabilities"`
// Score Probability-weighted average of the level indices. Can fall between two levels.
Score float64 `json:"score"`
// Type Always `score`.
Type ScoreAnswerType `json:"type"`
}
ScoreAnswer Answer to a `score` question: the expected score, the rubric, a confidence value, and the probability of each level.
type ScoreAnswerLegend0 ¶
type ScoreAnswerLegend0 = string
ScoreAnswerLegend0 defines model for ScoreAnswer.Legend.0.
type ScoreAnswerLegend1 ¶
type ScoreAnswerLegend1 map[string]interface{}
ScoreAnswerLegend1 defines model for ScoreAnswer.Legend.1.
type ScoreAnswerLegend2 ¶
type ScoreAnswerLegend2 = []interface{}
ScoreAnswerLegend2 defines model for ScoreAnswer.Legend.2.
type ScoreAnswerType ¶
type ScoreAnswerType string
ScoreAnswerType Always `score`.
const (
ScoreAnswerTypeScore ScoreAnswerType = "score"
)
Defines values for ScoreAnswerType.
func (ScoreAnswerType) Valid ¶
func (e ScoreAnswerType) Valid() bool
Valid indicates whether the value is a known member of the ScoreAnswerType enum.
type ScoreAnswer_Legend_AdditionalProperties ¶
type ScoreAnswer_Legend_AdditionalProperties struct {
// contains filtered or unexported fields
}
ScoreAnswer_Legend_AdditionalProperties defines model for ScoreAnswer.legend.AdditionalProperties.
func (ScoreAnswer_Legend_AdditionalProperties) AsScoreAnswerLegend0 ¶
func (t ScoreAnswer_Legend_AdditionalProperties) AsScoreAnswerLegend0() (ScoreAnswerLegend0, error)
AsScoreAnswerLegend0 returns the union data inside the ScoreAnswer_Legend_AdditionalProperties as a ScoreAnswerLegend0
func (ScoreAnswer_Legend_AdditionalProperties) AsScoreAnswerLegend1 ¶
func (t ScoreAnswer_Legend_AdditionalProperties) AsScoreAnswerLegend1() (ScoreAnswerLegend1, error)
AsScoreAnswerLegend1 returns the union data inside the ScoreAnswer_Legend_AdditionalProperties as a ScoreAnswerLegend1
func (ScoreAnswer_Legend_AdditionalProperties) AsScoreAnswerLegend2 ¶
func (t ScoreAnswer_Legend_AdditionalProperties) AsScoreAnswerLegend2() (ScoreAnswerLegend2, error)
AsScoreAnswerLegend2 returns the union data inside the ScoreAnswer_Legend_AdditionalProperties as a ScoreAnswerLegend2
func (*ScoreAnswer_Legend_AdditionalProperties) FromScoreAnswerLegend0 ¶
func (t *ScoreAnswer_Legend_AdditionalProperties) FromScoreAnswerLegend0(v ScoreAnswerLegend0) error
FromScoreAnswerLegend0 overwrites any union data inside the ScoreAnswer_Legend_AdditionalProperties as the provided ScoreAnswerLegend0
func (*ScoreAnswer_Legend_AdditionalProperties) FromScoreAnswerLegend1 ¶
func (t *ScoreAnswer_Legend_AdditionalProperties) FromScoreAnswerLegend1(v ScoreAnswerLegend1) error
FromScoreAnswerLegend1 overwrites any union data inside the ScoreAnswer_Legend_AdditionalProperties as the provided ScoreAnswerLegend1
func (*ScoreAnswer_Legend_AdditionalProperties) FromScoreAnswerLegend2 ¶
func (t *ScoreAnswer_Legend_AdditionalProperties) FromScoreAnswerLegend2(v ScoreAnswerLegend2) error
FromScoreAnswerLegend2 overwrites any union data inside the ScoreAnswer_Legend_AdditionalProperties as the provided ScoreAnswerLegend2
func (ScoreAnswer_Legend_AdditionalProperties) MarshalJSON ¶
func (t ScoreAnswer_Legend_AdditionalProperties) MarshalJSON() ([]byte, error)
func (*ScoreAnswer_Legend_AdditionalProperties) MergeScoreAnswerLegend0 ¶
func (t *ScoreAnswer_Legend_AdditionalProperties) MergeScoreAnswerLegend0(v ScoreAnswerLegend0) error
MergeScoreAnswerLegend0 performs a merge with any union data inside the ScoreAnswer_Legend_AdditionalProperties, using the provided ScoreAnswerLegend0
func (*ScoreAnswer_Legend_AdditionalProperties) MergeScoreAnswerLegend1 ¶
func (t *ScoreAnswer_Legend_AdditionalProperties) MergeScoreAnswerLegend1(v ScoreAnswerLegend1) error
MergeScoreAnswerLegend1 performs a merge with any union data inside the ScoreAnswer_Legend_AdditionalProperties, using the provided ScoreAnswerLegend1
func (*ScoreAnswer_Legend_AdditionalProperties) MergeScoreAnswerLegend2 ¶
func (t *ScoreAnswer_Legend_AdditionalProperties) MergeScoreAnswerLegend2(v ScoreAnswerLegend2) error
MergeScoreAnswerLegend2 performs a merge with any union data inside the ScoreAnswer_Legend_AdditionalProperties, using the provided ScoreAnswerLegend2
func (*ScoreAnswer_Legend_AdditionalProperties) UnmarshalJSON ¶
func (t *ScoreAnswer_Legend_AdditionalProperties) UnmarshalJSON(b []byte) error
type ScoreQuestion ¶
type ScoreQuestion struct {
// Criteria Ordered level descriptions. The index in this array is the level's score, starting at 0. 1 to 10 levels; use at least two.
Criteria []ScoreQuestion_Criteria_Item `json:"criteria"`
// Instructions What to rate.
Instructions *ScoreQuestion_Instructions `json:"instructions,omitempty"`
// Type Always `score`.
Type ScoreQuestionType `json:"type"`
}
ScoreQuestion A question that rates the content on an ordered rubric.
type ScoreQuestionCriteria0 ¶
type ScoreQuestionCriteria0 = string
ScoreQuestionCriteria0 defines model for ScoreQuestion.Criteria.0.
type ScoreQuestionCriteria1 ¶
type ScoreQuestionCriteria1 map[string]interface{}
ScoreQuestionCriteria1 defines model for ScoreQuestion.Criteria.1.
type ScoreQuestionCriteria2 ¶
type ScoreQuestionCriteria2 = []interface{}
ScoreQuestionCriteria2 defines model for ScoreQuestion.Criteria.2.
type ScoreQuestionInstructions0 ¶
type ScoreQuestionInstructions0 = string
ScoreQuestionInstructions0 defines model for ScoreQuestion.Instructions.0.
type ScoreQuestionInstructions1 ¶
type ScoreQuestionInstructions1 map[string]interface{}
ScoreQuestionInstructions1 defines model for ScoreQuestion.Instructions.1.
type ScoreQuestionInstructions2 ¶
type ScoreQuestionInstructions2 = []interface{}
ScoreQuestionInstructions2 defines model for ScoreQuestion.Instructions.2.
type ScoreQuestionType ¶
type ScoreQuestionType string
ScoreQuestionType Always `score`.
const (
ScoreQuestionTypeScore ScoreQuestionType = "score"
)
Defines values for ScoreQuestionType.
func (ScoreQuestionType) Valid ¶
func (e ScoreQuestionType) Valid() bool
Valid indicates whether the value is a known member of the ScoreQuestionType enum.
type ScoreQuestion_Criteria_Item ¶
type ScoreQuestion_Criteria_Item struct {
// contains filtered or unexported fields
}
ScoreQuestion_Criteria_Item defines model for ScoreQuestion.criteria.Item.
func (ScoreQuestion_Criteria_Item) AsScoreQuestionCriteria0 ¶
func (t ScoreQuestion_Criteria_Item) AsScoreQuestionCriteria0() (ScoreQuestionCriteria0, error)
AsScoreQuestionCriteria0 returns the union data inside the ScoreQuestion_Criteria_Item as a ScoreQuestionCriteria0
func (ScoreQuestion_Criteria_Item) AsScoreQuestionCriteria1 ¶
func (t ScoreQuestion_Criteria_Item) AsScoreQuestionCriteria1() (ScoreQuestionCriteria1, error)
AsScoreQuestionCriteria1 returns the union data inside the ScoreQuestion_Criteria_Item as a ScoreQuestionCriteria1
func (ScoreQuestion_Criteria_Item) AsScoreQuestionCriteria2 ¶
func (t ScoreQuestion_Criteria_Item) AsScoreQuestionCriteria2() (ScoreQuestionCriteria2, error)
AsScoreQuestionCriteria2 returns the union data inside the ScoreQuestion_Criteria_Item as a ScoreQuestionCriteria2
func (*ScoreQuestion_Criteria_Item) FromScoreQuestionCriteria0 ¶
func (t *ScoreQuestion_Criteria_Item) FromScoreQuestionCriteria0(v ScoreQuestionCriteria0) error
FromScoreQuestionCriteria0 overwrites any union data inside the ScoreQuestion_Criteria_Item as the provided ScoreQuestionCriteria0
func (*ScoreQuestion_Criteria_Item) FromScoreQuestionCriteria1 ¶
func (t *ScoreQuestion_Criteria_Item) FromScoreQuestionCriteria1(v ScoreQuestionCriteria1) error
FromScoreQuestionCriteria1 overwrites any union data inside the ScoreQuestion_Criteria_Item as the provided ScoreQuestionCriteria1
func (*ScoreQuestion_Criteria_Item) FromScoreQuestionCriteria2 ¶
func (t *ScoreQuestion_Criteria_Item) FromScoreQuestionCriteria2(v ScoreQuestionCriteria2) error
FromScoreQuestionCriteria2 overwrites any union data inside the ScoreQuestion_Criteria_Item as the provided ScoreQuestionCriteria2
func (ScoreQuestion_Criteria_Item) MarshalJSON ¶
func (t ScoreQuestion_Criteria_Item) MarshalJSON() ([]byte, error)
func (*ScoreQuestion_Criteria_Item) MergeScoreQuestionCriteria0 ¶
func (t *ScoreQuestion_Criteria_Item) MergeScoreQuestionCriteria0(v ScoreQuestionCriteria0) error
MergeScoreQuestionCriteria0 performs a merge with any union data inside the ScoreQuestion_Criteria_Item, using the provided ScoreQuestionCriteria0
func (*ScoreQuestion_Criteria_Item) MergeScoreQuestionCriteria1 ¶
func (t *ScoreQuestion_Criteria_Item) MergeScoreQuestionCriteria1(v ScoreQuestionCriteria1) error
MergeScoreQuestionCriteria1 performs a merge with any union data inside the ScoreQuestion_Criteria_Item, using the provided ScoreQuestionCriteria1
func (*ScoreQuestion_Criteria_Item) MergeScoreQuestionCriteria2 ¶
func (t *ScoreQuestion_Criteria_Item) MergeScoreQuestionCriteria2(v ScoreQuestionCriteria2) error
MergeScoreQuestionCriteria2 performs a merge with any union data inside the ScoreQuestion_Criteria_Item, using the provided ScoreQuestionCriteria2
func (*ScoreQuestion_Criteria_Item) UnmarshalJSON ¶
func (t *ScoreQuestion_Criteria_Item) UnmarshalJSON(b []byte) error
type ScoreQuestion_Instructions ¶
type ScoreQuestion_Instructions struct {
// contains filtered or unexported fields
}
ScoreQuestion_Instructions What to rate.
func (ScoreQuestion_Instructions) AsScoreQuestionInstructions0 ¶
func (t ScoreQuestion_Instructions) AsScoreQuestionInstructions0() (ScoreQuestionInstructions0, error)
AsScoreQuestionInstructions0 returns the union data inside the ScoreQuestion_Instructions as a ScoreQuestionInstructions0
func (ScoreQuestion_Instructions) AsScoreQuestionInstructions1 ¶
func (t ScoreQuestion_Instructions) AsScoreQuestionInstructions1() (ScoreQuestionInstructions1, error)
AsScoreQuestionInstructions1 returns the union data inside the ScoreQuestion_Instructions as a ScoreQuestionInstructions1
func (ScoreQuestion_Instructions) AsScoreQuestionInstructions2 ¶
func (t ScoreQuestion_Instructions) AsScoreQuestionInstructions2() (ScoreQuestionInstructions2, error)
AsScoreQuestionInstructions2 returns the union data inside the ScoreQuestion_Instructions as a ScoreQuestionInstructions2
func (*ScoreQuestion_Instructions) FromScoreQuestionInstructions0 ¶
func (t *ScoreQuestion_Instructions) FromScoreQuestionInstructions0(v ScoreQuestionInstructions0) error
FromScoreQuestionInstructions0 overwrites any union data inside the ScoreQuestion_Instructions as the provided ScoreQuestionInstructions0
func (*ScoreQuestion_Instructions) FromScoreQuestionInstructions1 ¶
func (t *ScoreQuestion_Instructions) FromScoreQuestionInstructions1(v ScoreQuestionInstructions1) error
FromScoreQuestionInstructions1 overwrites any union data inside the ScoreQuestion_Instructions as the provided ScoreQuestionInstructions1
func (*ScoreQuestion_Instructions) FromScoreQuestionInstructions2 ¶
func (t *ScoreQuestion_Instructions) FromScoreQuestionInstructions2(v ScoreQuestionInstructions2) error
FromScoreQuestionInstructions2 overwrites any union data inside the ScoreQuestion_Instructions as the provided ScoreQuestionInstructions2
func (ScoreQuestion_Instructions) MarshalJSON ¶
func (t ScoreQuestion_Instructions) MarshalJSON() ([]byte, error)
func (*ScoreQuestion_Instructions) MergeScoreQuestionInstructions0 ¶
func (t *ScoreQuestion_Instructions) MergeScoreQuestionInstructions0(v ScoreQuestionInstructions0) error
MergeScoreQuestionInstructions0 performs a merge with any union data inside the ScoreQuestion_Instructions, using the provided ScoreQuestionInstructions0
func (*ScoreQuestion_Instructions) MergeScoreQuestionInstructions1 ¶
func (t *ScoreQuestion_Instructions) MergeScoreQuestionInstructions1(v ScoreQuestionInstructions1) error
MergeScoreQuestionInstructions1 performs a merge with any union data inside the ScoreQuestion_Instructions, using the provided ScoreQuestionInstructions1
func (*ScoreQuestion_Instructions) MergeScoreQuestionInstructions2 ¶
func (t *ScoreQuestion_Instructions) MergeScoreQuestionInstructions2(v ScoreQuestionInstructions2) error
MergeScoreQuestionInstructions2 performs a merge with any union data inside the ScoreQuestion_Instructions, using the provided ScoreQuestionInstructions2
func (*ScoreQuestion_Instructions) UnmarshalJSON ¶
func (t *ScoreQuestion_Instructions) UnmarshalJSON(b []byte) error
type SearchDomainFilter ¶
type SearchDomainFilter struct {
// SearchDomainFilter Include or exclude up to 200 domains or URLs, each up to 253 characters. Prefix an entry with `-` to exclude it.
SearchDomainFilter *[]string `json:"search_domain_filter,omitempty"`
}
SearchDomainFilter defines model for SearchDomainFilter.
type SearchQueriesEvent ¶
type SearchQueriesEvent struct {
Queries []string `json:"queries"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
Thought *string `json:"thought,omitempty"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
SearchQueriesEvent Search queries event (type: "response.reasoning.search_queries"). Contains search queries being executed.
type SearchRecencyFilter ¶
type SearchRecencyFilter string
SearchRecencyFilter Time-based recency filter for search results
const ( SearchRecencyFilterDay SearchRecencyFilter = "day" SearchRecencyFilterHour SearchRecencyFilter = "hour" SearchRecencyFilterMonth SearchRecencyFilter = "month" SearchRecencyFilterWeek SearchRecencyFilter = "week" SearchRecencyFilterYear SearchRecencyFilter = "year" )
Defines values for SearchRecencyFilter.
func (SearchRecencyFilter) Valid ¶
func (e SearchRecencyFilter) Valid() bool
Valid indicates whether the value is a known member of the SearchRecencyFilter enum.
type SearchResult ¶
type SearchResult struct {
// Date Publication date of the result
Date *string `json:"date,omitempty"`
// Id Unique numeric identifier for the result
Id int64 `json:"id"`
// LastUpdated Date the result was last updated
LastUpdated *string `json:"last_updated,omitempty"`
// Snippet Text snippet from the search result
Snippet string `json:"snippet"`
// Source Source type of the result
Source *SearchSource `json:"source,omitempty"`
// Title Title of the search result page
Title string `json:"title"`
// Url URL of the search result page
Url string `json:"url"`
}
SearchResult A single search result used in LLM responses
type SearchResultsEvent ¶
type SearchResultsEvent struct {
Results []SearchResult `json:"results"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
Thought *string `json:"thought,omitempty"`
// Type SSE event type discriminator
Type EventType `json:"type"`
// Usage Token usage and cost information for a Responses API request
Usage *ResponsesUsage `json:"usage,omitempty"`
}
SearchResultsEvent Search results event (type: "response.reasoning.search_results"). Contains search results returned.
type SearchResultsOutputItem ¶
type SearchResultsOutputItem struct {
Queries *[]string `json:"queries,omitempty"`
Results []SearchResult `json:"results"`
Type SearchResultsOutputItemType `json:"type"`
}
SearchResultsOutputItem defines model for SearchResultsOutputItem.
type SearchResultsOutputItemType ¶
type SearchResultsOutputItemType string
SearchResultsOutputItemType defines model for SearchResultsOutputItem.Type.
const (
SearchResultsOutputItemTypeSearchResults SearchResultsOutputItemType = "search_results"
)
Defines values for SearchResultsOutputItemType.
func (SearchResultsOutputItemType) Valid ¶
func (e SearchResultsOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the SearchResultsOutputItemType enum.
type SearchSearchPostJSONRequestBody ¶
type SearchSearchPostJSONRequestBody = ApiSearchRequest
SearchSearchPostJSONRequestBody defines body for SearchSearchPost for application/json ContentType.
type SearchSearchPostResponse ¶
type SearchSearchPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ApiSearchResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiSearchErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ApiSearchErrorResponse
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiSearchErrorResponse
}
func ParseSearchSearchPostResponse ¶
func ParseSearchSearchPostResponse(rsp *http.Response) (*SearchSearchPostResponse, error)
ParseSearchSearchPostResponse parses an HTTP response from a SearchSearchPostWithResponse call
func (SearchSearchPostResponse) ContentType ¶
func (r SearchSearchPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SearchSearchPostResponse) GetBody ¶
func (r SearchSearchPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SearchSearchPostResponse) GetJSON200 ¶
func (r SearchSearchPostResponse) GetJSON200() *ApiSearchResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SearchSearchPostResponse) GetJSON400 ¶ added in v0.6.0
func (r SearchSearchPostResponse) GetJSON400() *ApiSearchErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (SearchSearchPostResponse) GetJSON401 ¶ added in v0.6.0
func (r SearchSearchPostResponse) GetJSON401() *ApiSearchErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (SearchSearchPostResponse) GetJSON429 ¶ added in v0.6.0
func (r SearchSearchPostResponse) GetJSON429() *ApiSearchErrorResponse
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (SearchSearchPostResponse) Status ¶
func (r SearchSearchPostResponse) Status() string
Status returns HTTPResponse.Status
func (SearchSearchPostResponse) StatusCode ¶
func (r SearchSearchPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SearchSource ¶
type SearchSource string
SearchSource Source of search results
const (
SearchSourceWeb SearchSource = "web"
)
Defines values for SearchSource.
func (SearchSource) Valid ¶
func (e SearchSource) Valid() bool
Valid indicates whether the value is a known member of the SearchSource enum.
type ShareFileOutputItem ¶ added in v0.5.0
type ShareFileOutputItem struct {
CallId string `json:"call_id"`
Error *string `json:"error,omitempty"`
FileId *string `json:"file_id,omitempty"`
Filename *string `json:"filename,omitempty"`
// SizeBytes Size of the shared file, in bytes.
Url *string `json:"url,omitempty"`
}
ShareFileOutputItem Result of a `share_file` tool call. On success, `file_id` and `filename` identify a sandbox file you can download with the response files endpoints.
type ShareFileOutputItemType ¶ added in v0.5.0
type ShareFileOutputItemType string
ShareFileOutputItemType defines model for ShareFileOutputItem.Type.
const (
)
Defines values for ShareFileOutputItemType.
func (ShareFileOutputItemType) Valid ¶ added in v0.5.0
func (e ShareFileOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the ShareFileOutputItemType enum.
type Skill ¶
type Skill struct {
// contains filtered or unexported fields
}
Skill defines model for Skill.
func (Skill) AsBuiltinSkill ¶
func (t Skill) AsBuiltinSkill() (BuiltinSkill, error)
AsBuiltinSkill returns the union data inside the Skill as a BuiltinSkill
func (Skill) AsCustomSkill ¶
func (t Skill) AsCustomSkill() (CustomSkill, error)
AsCustomSkill returns the union data inside the Skill as a CustomSkill
func (Skill) AsInlineSkill ¶
func (t Skill) AsInlineSkill() (InlineSkill, error)
AsInlineSkill returns the union data inside the Skill as a InlineSkill
func (Skill) Discriminator ¶
func (*Skill) FromBuiltinSkill ¶
func (t *Skill) FromBuiltinSkill(v BuiltinSkill) error
FromBuiltinSkill overwrites any union data inside the Skill as the provided BuiltinSkill
func (*Skill) FromCustomSkill ¶
func (t *Skill) FromCustomSkill(v CustomSkill) error
FromCustomSkill overwrites any union data inside the Skill as the provided CustomSkill
func (*Skill) FromInlineSkill ¶
func (t *Skill) FromInlineSkill(v InlineSkill) error
FromInlineSkill overwrites any union data inside the Skill as the provided InlineSkill
func (Skill) MarshalJSON ¶
func (*Skill) MergeBuiltinSkill ¶
func (t *Skill) MergeBuiltinSkill(v BuiltinSkill) error
MergeBuiltinSkill performs a merge with any union data inside the Skill, using the provided BuiltinSkill
func (*Skill) MergeCustomSkill ¶
func (t *Skill) MergeCustomSkill(v CustomSkill) error
MergeCustomSkill performs a merge with any union data inside the Skill, using the provided CustomSkill
func (*Skill) MergeInlineSkill ¶
func (t *Skill) MergeInlineSkill(v InlineSkill) error
MergeInlineSkill performs a merge with any union data inside the Skill, using the provided InlineSkill
func (*Skill) UnmarshalJSON ¶
func (Skill) ValueByDiscriminator ¶
type SkillDownload ¶
type SkillDownload struct {
// DownloadUrl Short-lived URL to download the zip bundle
DownloadUrl string `json:"download_url"`
// Name Skill name at this revision
Name *string `json:"name,omitempty"`
// Revision Opaque token of the downloaded revision
Revision *string `json:"revision,omitempty"`
}
SkillDownload defines model for SkillDownload.
type SkillList ¶
type SkillList struct {
// NextPageToken Opaque token for the next page; omitted on the last page
NextPageToken *string `json:"next_page_token,omitempty"`
Skills []SkillSummary `json:"skills"`
}
SkillList defines model for SkillList.
type SkillLoadedOutputItem ¶ added in v0.5.0
type SkillLoadedOutputItem struct {
// Name Name of the loaded skill.
Name string `json:"name"`
Type SkillLoadedOutputItemType `json:"type"`
}
SkillLoadedOutputItem Records that the model loaded a skill during the run.
type SkillLoadedOutputItemType ¶ added in v0.5.0
type SkillLoadedOutputItemType string
SkillLoadedOutputItemType defines model for SkillLoadedOutputItem.Type.
const (
SkillLoadedOutputItemTypeSkillLoaded SkillLoadedOutputItemType = "skill_loaded"
)
Defines values for SkillLoadedOutputItemType.
func (SkillLoadedOutputItemType) Valid ¶ added in v0.5.0
func (e SkillLoadedOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the SkillLoadedOutputItemType enum.
type SkillRevision ¶
type SkillRevision struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
// Name Skill name at this revision
Name *string `json:"name,omitempty"`
// Revision Opaque revision token
Revision string `json:"revision"`
}
SkillRevision defines model for SkillRevision.
type SkillRevisionList ¶
type SkillRevisionList struct {
// NextPageToken Opaque token for the next page; omitted on the last page
NextPageToken *string `json:"next_page_token,omitempty"`
Revisions []SkillRevision `json:"revisions"`
}
SkillRevisionList defines model for SkillRevisionList.
type SkillSummary ¶
type SkillSummary struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
// Name Skill name, read from the bundle's `SKILL.md`
Name *string `json:"name,omitempty"`
// Revision Opaque revision token of the skill; pass as expected_revision to update or delete
Revision *string `json:"revision,omitempty"`
// SkillId Skill identifier
SkillId string `json:"skill_id"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
SkillSummary defines model for SkillSummary.
type Status ¶
type Status string
Status Status of a response or output item
type TestMonitorWebhookResponse ¶ added in v0.5.0
type TestMonitorWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MonitorWebhookTest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *MonitorNotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *MonitorInvalidState
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *TestMonitorWebhookResponse429Headers
}
func ParseTestMonitorWebhookResponse ¶ added in v0.5.0
func ParseTestMonitorWebhookResponse(rsp *http.Response) (*TestMonitorWebhookResponse, error)
ParseTestMonitorWebhookResponse parses an HTTP response from a TestMonitorWebhookWithResponse call
func (TestMonitorWebhookResponse) ContentType ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TestMonitorWebhookResponse) GetBody ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TestMonitorWebhookResponse) GetJSON200 ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) GetJSON200() *MonitorWebhookTest
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TestMonitorWebhookResponse) GetJSON401 ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (TestMonitorWebhookResponse) GetJSON403 ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (TestMonitorWebhookResponse) GetJSON404 ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) GetJSON404() *MonitorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (TestMonitorWebhookResponse) GetJSON409 ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) GetJSON409() *MonitorInvalidState
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (TestMonitorWebhookResponse) GetJSON429 ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (TestMonitorWebhookResponse) GetJSON502 ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (TestMonitorWebhookResponse) GetJSON503 ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (TestMonitorWebhookResponse) GetJSON504 ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (TestMonitorWebhookResponse) Status ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) Status() string
Status returns HTTPResponse.Status
func (TestMonitorWebhookResponse) StatusCode ¶ added in v0.5.0
func (r TestMonitorWebhookResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TestMonitorWebhookResponse429Headers ¶ added in v0.5.0
type TestMonitorWebhookResponse429Headers struct {
RetryAfter *int
}
TestMonitorWebhookResponse429Headers the declared response headers of an HTTP 429 response for TestMonitorWebhook
type TextDeltaEvent ¶
type TextDeltaEvent struct {
ContentIndex int64 `json:"content_index"`
Delta string `json:"delta"`
ItemId string `json:"item_id"`
OutputIndex int64 `json:"output_index"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
TextDeltaEvent Text delta event (type: "response.output_text.delta"). Contains incremental text content.
type TextDoneEvent ¶
type TextDoneEvent struct {
ContentIndex int64 `json:"content_index"`
ItemId string `json:"item_id"`
OutputIndex int64 `json:"output_index"`
// SequenceNumber Monotonically increasing sequence number for event ordering
SequenceNumber int64 `json:"sequence_number"`
Text string `json:"text"`
// Type SSE event type discriminator
Type EventType `json:"type"`
}
TextDoneEvent Text done event (type: "response.output_text.done"). Contains the final text content.
type TooManyRequests ¶
type TooManyRequests = ErrorResponse
TooManyRequests The body of an error response.
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
Tool defines model for Tool.
func (Tool) AsConnectorTool ¶
func (t Tool) AsConnectorTool() (ConnectorTool, error)
AsConnectorTool returns the union data inside the Tool as a ConnectorTool
func (Tool) AsFetchUrlTool ¶
func (t Tool) AsFetchUrlTool() (FetchUrlTool, error)
AsFetchUrlTool returns the union data inside the Tool as a FetchUrlTool
func (Tool) AsFinanceSearchTool ¶
func (t Tool) AsFinanceSearchTool() (FinanceSearchTool, error)
AsFinanceSearchTool returns the union data inside the Tool as a FinanceSearchTool
func (Tool) AsFunctionTool ¶
func (t Tool) AsFunctionTool() (FunctionTool, error)
AsFunctionTool returns the union data inside the Tool as a FunctionTool
func (Tool) AsImageSearchTool ¶
func (t Tool) AsImageSearchTool() (ImageSearchTool, error)
AsImageSearchTool returns the union data inside the Tool as a ImageSearchTool
func (Tool) AsPeopleSearchTool ¶
func (t Tool) AsPeopleSearchTool() (PeopleSearchTool, error)
AsPeopleSearchTool returns the union data inside the Tool as a PeopleSearchTool
func (Tool) AsSandboxTool ¶
func (t Tool) AsSandboxTool() (SandboxTool, error)
AsSandboxTool returns the union data inside the Tool as a SandboxTool
func (Tool) AsWebSearchTool ¶
func (t Tool) AsWebSearchTool() (WebSearchTool, error)
AsWebSearchTool returns the union data inside the Tool as a WebSearchTool
func (Tool) Discriminator ¶
func (*Tool) FromConnectorTool ¶
func (t *Tool) FromConnectorTool(v ConnectorTool) error
FromConnectorTool overwrites any union data inside the Tool as the provided ConnectorTool
func (*Tool) FromFetchUrlTool ¶
func (t *Tool) FromFetchUrlTool(v FetchUrlTool) error
FromFetchUrlTool overwrites any union data inside the Tool as the provided FetchUrlTool
func (*Tool) FromFinanceSearchTool ¶
func (t *Tool) FromFinanceSearchTool(v FinanceSearchTool) error
FromFinanceSearchTool overwrites any union data inside the Tool as the provided FinanceSearchTool
func (*Tool) FromFunctionTool ¶
func (t *Tool) FromFunctionTool(v FunctionTool) error
FromFunctionTool overwrites any union data inside the Tool as the provided FunctionTool
func (*Tool) FromImageSearchTool ¶
func (t *Tool) FromImageSearchTool(v ImageSearchTool) error
FromImageSearchTool overwrites any union data inside the Tool as the provided ImageSearchTool
func (*Tool) FromMcpTool ¶
FromMcpTool overwrites any union data inside the Tool as the provided McpTool
func (*Tool) FromPeopleSearchTool ¶
func (t *Tool) FromPeopleSearchTool(v PeopleSearchTool) error
FromPeopleSearchTool overwrites any union data inside the Tool as the provided PeopleSearchTool
func (*Tool) FromSandboxTool ¶
func (t *Tool) FromSandboxTool(v SandboxTool) error
FromSandboxTool overwrites any union data inside the Tool as the provided SandboxTool
func (*Tool) FromWebSearchTool ¶
func (t *Tool) FromWebSearchTool(v WebSearchTool) error
FromWebSearchTool overwrites any union data inside the Tool as the provided WebSearchTool
func (Tool) MarshalJSON ¶
func (*Tool) MergeConnectorTool ¶
func (t *Tool) MergeConnectorTool(v ConnectorTool) error
MergeConnectorTool performs a merge with any union data inside the Tool, using the provided ConnectorTool
func (*Tool) MergeFetchUrlTool ¶
func (t *Tool) MergeFetchUrlTool(v FetchUrlTool) error
MergeFetchUrlTool performs a merge with any union data inside the Tool, using the provided FetchUrlTool
func (*Tool) MergeFinanceSearchTool ¶
func (t *Tool) MergeFinanceSearchTool(v FinanceSearchTool) error
MergeFinanceSearchTool performs a merge with any union data inside the Tool, using the provided FinanceSearchTool
func (*Tool) MergeFunctionTool ¶
func (t *Tool) MergeFunctionTool(v FunctionTool) error
MergeFunctionTool performs a merge with any union data inside the Tool, using the provided FunctionTool
func (*Tool) MergeImageSearchTool ¶
func (t *Tool) MergeImageSearchTool(v ImageSearchTool) error
MergeImageSearchTool performs a merge with any union data inside the Tool, using the provided ImageSearchTool
func (*Tool) MergeMcpTool ¶
MergeMcpTool performs a merge with any union data inside the Tool, using the provided McpTool
func (*Tool) MergePeopleSearchTool ¶
func (t *Tool) MergePeopleSearchTool(v PeopleSearchTool) error
MergePeopleSearchTool performs a merge with any union data inside the Tool, using the provided PeopleSearchTool
func (*Tool) MergeSandboxTool ¶
func (t *Tool) MergeSandboxTool(v SandboxTool) error
MergeSandboxTool performs a merge with any union data inside the Tool, using the provided SandboxTool
func (*Tool) MergeWebSearchTool ¶
func (t *Tool) MergeWebSearchTool(v WebSearchTool) error
MergeWebSearchTool performs a merge with any union data inside the Tool, using the provided WebSearchTool
func (*Tool) UnmarshalJSON ¶
func (Tool) ValueByDiscriminator ¶
type ToolCallDetails ¶
type ToolCallDetails struct {
// CostUsd Accumulated customer charge in USD for this tool when the API can attribute one directly.
CostUsd *float64 `json:"cost_usd,omitempty"`
// Invocation Number of times this tool was invoked
Invocation *int64 `json:"invocation,omitempty"`
// TokenUsage Model token usage for tools backed by internal LLM calls. Sandbox SDK usage is aggregated by model.
TokenUsage *[]ToolCallTokenUsage `json:"token_usage,omitempty"`
}
ToolCallDetails Details about a tool call invocation
type ToolCallTokenUsage ¶
type ToolCallTokenUsage struct {
// InputTokens Total input tokens, including uncached, cache write, and cache read tokens.
InputTokens int64 `json:"input_tokens"`
InputTokensDetails InputTokensDetails `json:"input_tokens_details"`
// Model Model identifier reported by the internal LLM call.
Model *string `json:"model,omitempty"`
// OutputTokens Output tokens returned by the internal LLM call.
OutputTokens int64 `json:"output_tokens"`
OutputTokensDetails OutputTokensDetails `json:"output_tokens_details"`
}
ToolCallTokenUsage defines model for ToolCallTokenUsage.
type ToolChoice ¶
type ToolChoice struct {
// contains filtered or unexported fields
}
ToolChoice defines model for ToolChoice.
func (ToolChoice) AsToolChoice0 ¶
func (t ToolChoice) AsToolChoice0() (ToolChoice0, error)
AsToolChoice0 returns the union data inside the ToolChoice as a ToolChoice0
func (ToolChoice) AsToolChoice1 ¶
func (t ToolChoice) AsToolChoice1() (ToolChoice1, error)
AsToolChoice1 returns the union data inside the ToolChoice as a ToolChoice1
func (*ToolChoice) FromToolChoice0 ¶
func (t *ToolChoice) FromToolChoice0(v ToolChoice0) error
FromToolChoice0 overwrites any union data inside the ToolChoice as the provided ToolChoice0
func (*ToolChoice) FromToolChoice1 ¶
func (t *ToolChoice) FromToolChoice1(v ToolChoice1) error
FromToolChoice1 overwrites any union data inside the ToolChoice as the provided ToolChoice1
func (ToolChoice) MarshalJSON ¶
func (t ToolChoice) MarshalJSON() ([]byte, error)
func (*ToolChoice) MergeToolChoice0 ¶
func (t *ToolChoice) MergeToolChoice0(v ToolChoice0) error
MergeToolChoice0 performs a merge with any union data inside the ToolChoice, using the provided ToolChoice0
func (*ToolChoice) MergeToolChoice1 ¶
func (t *ToolChoice) MergeToolChoice1(v ToolChoice1) error
MergeToolChoice1 performs a merge with any union data inside the ToolChoice, using the provided ToolChoice1
func (*ToolChoice) UnmarshalJSON ¶
func (t *ToolChoice) UnmarshalJSON(b []byte) error
type ToolChoice0 ¶
type ToolChoice0 string
ToolChoice0 defines model for ToolChoice.0.
const ( ToolChoice0Auto ToolChoice0 = "auto" ToolChoice0None ToolChoice0 = "none" ToolChoice0Required ToolChoice0 = "required" )
Defines values for ToolChoice0.
func (ToolChoice0) Valid ¶
func (e ToolChoice0) Valid() bool
Valid indicates whether the value is a known member of the ToolChoice0 enum.
type ToolChoice1 ¶
type ToolChoice1 map[string]interface{}
ToolChoice1 defines model for ToolChoice.1.
type ToolSearchOutputItem ¶
type ToolSearchOutputItem struct {
// Arguments Exact argument text authored by the model for hosted search.
Arguments *string `json:"arguments,omitempty"`
// CallId Always null for hosted search.
CallId *string `json:"call_id"`
// Execution Execution location. Currently `server`. Clients must tolerate unknown values.
Execution string `json:"execution"`
Id string `json:"id"`
// Status Current execution status. Known values are `in_progress`, `completed`, and `incomplete`. Clients must tolerate unknown values.
Status string `json:"status"`
Tools []NamespaceTool `json:"tools"`
Type ToolSearchOutputItemType `json:"type"`
}
ToolSearchOutputItem Complete public definitions matched by one hosted external-tool search.
type ToolSearchOutputItemType ¶
type ToolSearchOutputItemType string
ToolSearchOutputItemType defines model for ToolSearchOutputItem.Type.
const (
ToolSearchOutputItemTypeToolSearchOutput ToolSearchOutputItemType = "tool_search_output"
)
Defines values for ToolSearchOutputItemType.
func (ToolSearchOutputItemType) Valid ¶
func (e ToolSearchOutputItemType) Valid() bool
Valid indicates whether the value is a known member of the ToolSearchOutputItemType enum.
type ToolUserLocation ¶
type ToolUserLocation struct {
// City City name
City *string `json:"city,omitempty"`
// Country ISO 3166-1 alpha-2 country code
Country *string `json:"country,omitempty"`
// Latitude Latitude coordinate
Latitude *float64 `json:"latitude,omitempty"`
// Longitude Longitude coordinate
Longitude *float64 `json:"longitude,omitempty"`
// Region State or region name
Region *string `json:"region,omitempty"`
}
ToolUserLocation User's geographic location for search personalization
type UpdateMonitorJSONRequestBody ¶ added in v0.5.0
type UpdateMonitorJSONRequestBody = UpdateMonitorRequest
UpdateMonitorJSONRequestBody defines body for UpdateMonitor for application/json ContentType.
type UpdateMonitorRequest ¶ added in v0.5.0
type UpdateMonitorRequest struct {
// Goal Replace the goal without changing the Search query or Agent task. The service returns an empty string after you clear the goal.
Goal *string `json:"goal,omitempty"`
Metadata *map[string]string `json:"metadata,omitempty"`
Name *string `json:"name,omitempty"`
Schedule *MonitorScheduleRequest `json:"schedule,omitempty"`
// Targets Use one of these target configurations:
//
// - One Search target.
// - One Agent target.
// - One to 10 Page targets with distinct URLs.
//
// Do not mix target types.
Targets *MonitorTargets `json:"targets,omitempty"`
Webhook *MonitorWebhookRequest `json:"webhook,omitempty"`
}
UpdateMonitorRequest Send only the fields you want to replace. The service keeps the fields you omit. Send `null` to clear `goal`, `metadata`, or `webhook`. When you replace an Agent target, repeat the task and the options you want to keep.
type UpdateMonitorResponse ¶ added in v0.5.0
type UpdateMonitorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Monitor
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *MonitorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *MonitorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *MonitorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *MonitorNotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *MonitorConcurrentUpdate
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *MonitorTooManyRequests
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *MonitorBadGateway
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *MonitorUnavailable
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *MonitorGatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateMonitorResponse429Headers
}
func ParseUpdateMonitorResponse ¶ added in v0.5.0
func ParseUpdateMonitorResponse(rsp *http.Response) (*UpdateMonitorResponse, error)
ParseUpdateMonitorResponse parses an HTTP response from a UpdateMonitorWithResponse call
func (UpdateMonitorResponse) ContentType ¶ added in v0.5.0
func (r UpdateMonitorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateMonitorResponse) GetBody ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateMonitorResponse) GetJSON200 ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetJSON200() *Monitor
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateMonitorResponse) GetJSON400 ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetJSON400() *MonitorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UpdateMonitorResponse) GetJSON401 ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetJSON401() *MonitorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (UpdateMonitorResponse) GetJSON403 ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetJSON403() *MonitorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (UpdateMonitorResponse) GetJSON404 ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetJSON404() *MonitorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateMonitorResponse) GetJSON409 ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetJSON409() *MonitorConcurrentUpdate
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (UpdateMonitorResponse) GetJSON429 ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetJSON429() *MonitorTooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (UpdateMonitorResponse) GetJSON502 ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetJSON502() *MonitorBadGateway
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (UpdateMonitorResponse) GetJSON503 ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetJSON503() *MonitorUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (UpdateMonitorResponse) GetJSON504 ¶ added in v0.5.0
func (r UpdateMonitorResponse) GetJSON504() *MonitorGatewayTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (UpdateMonitorResponse) Status ¶ added in v0.5.0
func (r UpdateMonitorResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateMonitorResponse) StatusCode ¶ added in v0.5.0
func (r UpdateMonitorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateMonitorResponse429Headers ¶ added in v0.5.0
type UpdateMonitorResponse429Headers struct {
RetryAfter *int
}
UpdateMonitorResponse429Headers the declared response headers of an HTTP 429 response for UpdateMonitor
type UpdateSkillMultipartBody ¶
type UpdateSkillMultipartBody struct {
// File The skill bundle, a zip archive containing `SKILL.md`
File openapi_types.File `json:"file"`
}
UpdateSkillMultipartBody defines parameters for UpdateSkill.
type UpdateSkillMultipartRequestBody ¶
type UpdateSkillMultipartRequestBody UpdateSkillMultipartBody
UpdateSkillMultipartRequestBody defines body for UpdateSkill for multipart/form-data ContentType.
type UpdateSkillParams ¶
type UpdateSkillParams struct {
// ExpectedRevision Opaque revision token the skill must currently be at. The write applies
// only if it matches, so it cannot race a concurrent update.
ExpectedRevision ExpectedRevisionRequired `form:"expected_revision" json:"expected_revision"`
}
UpdateSkillParams defines parameters for UpdateSkill.
type UpdateSkillResponse ¶
type UpdateSkillResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ManagedSkill
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ApiError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ApiError
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ApiError
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ApiError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *ApiError
// JSON502 the response for an HTTP 502 `application/json` response
JSON502 *ApiError
}
func ParseUpdateSkillResponse ¶
func ParseUpdateSkillResponse(rsp *http.Response) (*UpdateSkillResponse, error)
ParseUpdateSkillResponse parses an HTTP response from a UpdateSkillWithResponse call
func (UpdateSkillResponse) ContentType ¶
func (r UpdateSkillResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateSkillResponse) GetBody ¶
func (r UpdateSkillResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateSkillResponse) GetJSON200 ¶
func (r UpdateSkillResponse) GetJSON200() *ManagedSkill
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateSkillResponse) GetJSON400 ¶
func (r UpdateSkillResponse) GetJSON400() *ApiError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UpdateSkillResponse) GetJSON404 ¶
func (r UpdateSkillResponse) GetJSON404() *ApiError
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateSkillResponse) GetJSON409 ¶
func (r UpdateSkillResponse) GetJSON409() *ApiError
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (UpdateSkillResponse) GetJSON413 ¶
func (r UpdateSkillResponse) GetJSON413() *ApiError
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (UpdateSkillResponse) GetJSON429 ¶
func (r UpdateSkillResponse) GetJSON429() *ApiError
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (UpdateSkillResponse) GetJSON502 ¶
func (r UpdateSkillResponse) GetJSON502() *ApiError
GetJSON502 returns the response for an HTTP 502 `application/json` response
func (UpdateSkillResponse) Status ¶
func (r UpdateSkillResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSkillResponse) StatusCode ¶
func (r UpdateSkillResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UrlContent ¶
type UrlContent struct {
// Snippet The fetched content snippet
Snippet string `json:"snippet"`
// Title The title of the page
Title string `json:"title"`
// Url The URL from which content was fetched
Url string `json:"url"`
}
UrlContent Content fetched from a URL
type Usage ¶
type Usage struct {
// InputTokens Input tokens processed for the request.
InputTokens int `json:"input_tokens"`
// OutputTokens Output tokens generated for the answers.
OutputTokens int `json:"output_tokens"`
// ToolCallsDetails Only with `mode: "web_grounding"`: billable grounding operations keyed by tool name. `search_web.invocation` counts the distinct searches that returned, including searches with no results. `fetch_url.invocation` counts the URL fetches that returned, including fetches with no page text. Failed, timed-out, and unstarted operations are not counted, and a tool with no billable operations is omitted. The object is omitted when no tool has a billable operation, and without `mode`. Counts are not charges.
ToolCallsDetails *map[string]DecisionToolCallDetails `json:"tool_calls_details,omitempty"`
}
Usage Token counts for the request and, with `mode: "web_grounding"`, billable grounding operations. Input tokens are billed per million at the rate of the selected model: $0.02 for `pplx-decider-v1.3` and `pplx-decider-v1.2`, and $0.01 for `pplx-decider-flash-v1.3` and `pplx-decider-flash-v1.2`. Output tokens are free.
type UsageInfo ¶
type UsageInfo struct {
// CitationTokens Number of tokens used for citations
CitationTokens *int `json:"citation_tokens,omitempty"`
// CompletionTokens Number of tokens in the completion/output
CompletionTokens int `json:"completion_tokens"`
// Cost Cost breakdown for the request
Cost Cost `json:"cost"`
// NumSearchQueries Number of search queries executed
NumSearchQueries *int `json:"num_search_queries,omitempty"`
// PromptTokens Number of tokens in the prompt/input
PromptTokens int `json:"prompt_tokens"`
// ReasoningTokens Number of tokens used for reasoning
ReasoningTokens *int `json:"reasoning_tokens,omitempty"`
// SearchContextSize Size of search context used
SearchContextSize *string `json:"search_context_size,omitempty"`
// TotalTokens Total tokens used (prompt + completion)
TotalTokens int `json:"total_tokens"`
}
UsageInfo Token usage and cost information for a request
type UserLocation ¶
type UserLocation struct {
// City City name
City *string `json:"city,omitempty"`
// Country ISO 3166-1 alpha-2 country code
Country *string `json:"country,omitempty"`
// Latitude Latitude coordinate
Latitude *float64 `json:"latitude,omitempty"`
// Longitude Longitude coordinate
Longitude *float64 `json:"longitude,omitempty"`
// Region State or region name
Region *string `json:"region,omitempty"`
}
UserLocation User's geographic location for search personalization
type ValidationError ¶
type ValidationError struct {
Loc []ValidationError_Loc_Item `json:"loc"`
Msg string `json:"msg"`
Type string `json:"type"`
}
ValidationError defines model for ValidationError.
type ValidationErrorLoc0 ¶
type ValidationErrorLoc0 = string
ValidationErrorLoc0 defines model for ValidationError.Loc.0.
type ValidationErrorLoc1 ¶
type ValidationErrorLoc1 = int
ValidationErrorLoc1 defines model for ValidationError.Loc.1.
type ValidationError_Loc_Item ¶
type ValidationError_Loc_Item struct {
// contains filtered or unexported fields
}
ValidationError_Loc_Item defines model for ValidationError.loc.Item.
func (ValidationError_Loc_Item) AsValidationErrorLoc0 ¶
func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error)
AsValidationErrorLoc0 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc0
func (ValidationError_Loc_Item) AsValidationErrorLoc1 ¶
func (t ValidationError_Loc_Item) AsValidationErrorLoc1() (ValidationErrorLoc1, error)
AsValidationErrorLoc1 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc1
func (*ValidationError_Loc_Item) FromValidationErrorLoc0 ¶
func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error
FromValidationErrorLoc0 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc0
func (*ValidationError_Loc_Item) FromValidationErrorLoc1 ¶
func (t *ValidationError_Loc_Item) FromValidationErrorLoc1(v ValidationErrorLoc1) error
FromValidationErrorLoc1 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc1
func (ValidationError_Loc_Item) MarshalJSON ¶
func (t ValidationError_Loc_Item) MarshalJSON() ([]byte, error)
func (*ValidationError_Loc_Item) MergeValidationErrorLoc0 ¶
func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error
MergeValidationErrorLoc0 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc0
func (*ValidationError_Loc_Item) MergeValidationErrorLoc1 ¶
func (t *ValidationError_Loc_Item) MergeValidationErrorLoc1(v ValidationErrorLoc1) error
MergeValidationErrorLoc1 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc1
func (*ValidationError_Loc_Item) UnmarshalJSON ¶
func (t *ValidationError_Loc_Item) UnmarshalJSON(b []byte) error
type VideoURL ¶
type VideoURL struct {
FrameInterval *VideoURL_FrameInterval `json:"frame_interval,omitempty"`
Url string `json:"url"`
}
VideoURL defines model for VideoURL.
type VideoURLFrameInterval0 ¶
type VideoURLFrameInterval0 = string
VideoURLFrameInterval0 defines model for VideoURL.FrameInterval.0.
type VideoURLFrameInterval1 ¶
type VideoURLFrameInterval1 = int
VideoURLFrameInterval1 defines model for VideoURL.FrameInterval.1.
type VideoURL_FrameInterval ¶
type VideoURL_FrameInterval struct {
// contains filtered or unexported fields
}
VideoURL_FrameInterval defines model for VideoURL.FrameInterval.
func (VideoURL_FrameInterval) AsVideoURLFrameInterval0 ¶
func (t VideoURL_FrameInterval) AsVideoURLFrameInterval0() (VideoURLFrameInterval0, error)
AsVideoURLFrameInterval0 returns the union data inside the VideoURL_FrameInterval as a VideoURLFrameInterval0
func (VideoURL_FrameInterval) AsVideoURLFrameInterval1 ¶
func (t VideoURL_FrameInterval) AsVideoURLFrameInterval1() (VideoURLFrameInterval1, error)
AsVideoURLFrameInterval1 returns the union data inside the VideoURL_FrameInterval as a VideoURLFrameInterval1
func (*VideoURL_FrameInterval) FromVideoURLFrameInterval0 ¶
func (t *VideoURL_FrameInterval) FromVideoURLFrameInterval0(v VideoURLFrameInterval0) error
FromVideoURLFrameInterval0 overwrites any union data inside the VideoURL_FrameInterval as the provided VideoURLFrameInterval0
func (*VideoURL_FrameInterval) FromVideoURLFrameInterval1 ¶
func (t *VideoURL_FrameInterval) FromVideoURLFrameInterval1(v VideoURLFrameInterval1) error
FromVideoURLFrameInterval1 overwrites any union data inside the VideoURL_FrameInterval as the provided VideoURLFrameInterval1
func (VideoURL_FrameInterval) MarshalJSON ¶
func (t VideoURL_FrameInterval) MarshalJSON() ([]byte, error)
func (*VideoURL_FrameInterval) MergeVideoURLFrameInterval0 ¶
func (t *VideoURL_FrameInterval) MergeVideoURLFrameInterval0(v VideoURLFrameInterval0) error
MergeVideoURLFrameInterval0 performs a merge with any union data inside the VideoURL_FrameInterval, using the provided VideoURLFrameInterval0
func (*VideoURL_FrameInterval) MergeVideoURLFrameInterval1 ¶
func (t *VideoURL_FrameInterval) MergeVideoURLFrameInterval1(v VideoURLFrameInterval1) error
MergeVideoURLFrameInterval1 performs a merge with any union data inside the VideoURL_FrameInterval, using the provided VideoURLFrameInterval1
func (*VideoURL_FrameInterval) UnmarshalJSON ¶
func (t *VideoURL_FrameInterval) UnmarshalJSON(b []byte) error
type WebSearchFilters ¶
type WebSearchFilters struct {
// LastUpdatedAfterFilter Return results updated after this date (MM/DD/YYYY)
LastUpdatedAfterFilter *Date `json:"last_updated_after_filter,omitempty"`
// LastUpdatedBeforeFilter Return results updated before this date (MM/DD/YYYY)
LastUpdatedBeforeFilter *Date `json:"last_updated_before_filter,omitempty"`
// SearchAfterDateFilter Return results published after this date (MM/DD/YYYY)
SearchAfterDateFilter *Date `json:"search_after_date_filter,omitempty"`
// SearchBeforeDateFilter Return results published before this date (MM/DD/YYYY)
SearchBeforeDateFilter *Date `json:"search_before_date_filter,omitempty"`
// SearchDomainFilter Include or exclude up to 200 domains or URLs, each up to 253 characters. Prefix an entry with `-` to exclude it.
SearchDomainFilter *[]string `json:"search_domain_filter,omitempty"`
// SearchRecencyFilter Filter by publication recency (hour/day/week/month/year)
SearchRecencyFilter *SearchRecencyFilter `json:"search_recency_filter,omitempty"`
// SnapshotAsOf Search the web as of this RFC 3339 time with a time zone, such as 2026-11-01T00:00:00Z. It must not be in the future or more than 365 days ago. Cannot be combined with search_recency_filter, the publication date filters, or the last updated filters.
SnapshotAsOf *string `json:"snapshot_as_of,omitempty"`
}
WebSearchFilters defines model for WebSearchFilters.
type WebSearchOptions ¶
type WebSearchOptions struct {
// ImageResultsEnhancedRelevance When true, applies enhanced relevance filtering to image results
ImageResultsEnhancedRelevance *bool `json:"image_results_enhanced_relevance,omitempty"`
// SearchContextSize Amount of search context to include (low, medium, or high)
SearchContextSize *WebSearchOptionsSearchContextSize `json:"search_context_size,omitempty"`
// SearchType Search type (fast for speed, pro for quality, auto to let the model decide)
SearchType *WebSearchOptionsSearchType `json:"search_type,omitempty"`
UserLocation *UserLocation `json:"user_location,omitempty"`
}
WebSearchOptions Configuration options for web search behavior
type WebSearchOptionsSearchContextSize ¶
type WebSearchOptionsSearchContextSize string
WebSearchOptionsSearchContextSize Amount of search context to include (low, medium, or high)
const ( WebSearchOptionsSearchContextSizeHigh WebSearchOptionsSearchContextSize = "high" WebSearchOptionsSearchContextSizeLow WebSearchOptionsSearchContextSize = "low" WebSearchOptionsSearchContextSizeMedium WebSearchOptionsSearchContextSize = "medium" )
Defines values for WebSearchOptionsSearchContextSize.
func (WebSearchOptionsSearchContextSize) Valid ¶
func (e WebSearchOptionsSearchContextSize) Valid() bool
Valid indicates whether the value is a known member of the WebSearchOptionsSearchContextSize enum.
type WebSearchOptionsSearchType ¶
type WebSearchOptionsSearchType string
WebSearchOptionsSearchType defines model for WebSearchOptions.SearchType.
const ( WebSearchOptionsSearchTypeAuto WebSearchOptionsSearchType = "auto" WebSearchOptionsSearchTypeFast WebSearchOptionsSearchType = "fast" WebSearchOptionsSearchTypePro WebSearchOptionsSearchType = "pro" )
Defines values for WebSearchOptionsSearchType.
func (WebSearchOptionsSearchType) Valid ¶
func (e WebSearchOptionsSearchType) Valid() bool
Valid indicates whether the value is a known member of the WebSearchOptionsSearchType enum.
type WebSearchTool ¶
type WebSearchTool struct {
// Filters Domain and date filters for search results
Filters *WebSearchFilters `json:"filters,omitempty"`
// MaxResults Upper bound on the number of search results collected per call. Must be between 1 and 50; values outside that range are rejected with a 400 error.
MaxResults *int32 `json:"max_results,omitempty"`
// MaxTokens Maximum total tokens for search context
MaxTokens *int32 `json:"max_tokens,omitempty"`
// MaxTokensPerPage Maximum tokens to extract per search result page
MaxTokensPerPage *int32 `json:"max_tokens_per_page,omitempty"`
// SearchType Search type for this tool. `web` uses standard web search. `fast` uses the lower-latency Fast Search path, billed at $1.00 per 1,000 invocations plus model tokens. When omitted, inherits the effort's search type if configured; otherwise uses `web`.
SearchType *WebSearchToolSearchType `json:"search_type,omitempty"`
// Type Tool type identifier
Type WebSearchToolType `json:"type"`
// UserLocation User's location for search personalization
UserLocation *ToolUserLocation `json:"user_location,omitempty"`
}
WebSearchTool Web search tool configuration for the Responses API
type WebSearchToolSearchType ¶
type WebSearchToolSearchType string
WebSearchToolSearchType Search type for this tool. `web` uses standard web search. `fast` uses the lower-latency Fast Search path, billed at $1.00 per 1,000 invocations plus model tokens. When omitted, inherits the effort's search type if configured; otherwise uses `web`.
const ( WebSearchToolSearchTypeFast WebSearchToolSearchType = "fast" WebSearchToolSearchTypeWeb WebSearchToolSearchType = "web" )
Defines values for WebSearchToolSearchType.
func (WebSearchToolSearchType) Valid ¶
func (e WebSearchToolSearchType) Valid() bool
Valid indicates whether the value is a known member of the WebSearchToolSearchType enum.
type WebSearchToolType ¶
type WebSearchToolType string
WebSearchToolType Tool type identifier
const (
WebSearchToolTypeWebSearch WebSearchToolType = "web_search"
)
Defines values for WebSearchToolType.
func (WebSearchToolType) Valid ¶
func (e WebSearchToolType) Valid() bool
Valid indicates whether the value is a known member of the WebSearchToolType enum.