@openrouter/sdk 0.9.11 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +2 -1
- package/_speakeasy/.github/action-inputs-config.json +4 -0
- package/esm/funcs/analyticsGetUserActivity.js +2 -1
- package/esm/funcs/apiKeysCreate.js +2 -1
- package/esm/funcs/apiKeysDelete.js +2 -1
- package/esm/funcs/apiKeysGet.js +2 -1
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -1
- package/esm/funcs/apiKeysList.js +2 -1
- package/esm/funcs/apiKeysUpdate.js +2 -1
- package/esm/funcs/betaResponsesSend.js +2 -1
- package/esm/funcs/call-model.d.ts +19 -70
- package/esm/funcs/call-model.js +29 -71
- package/esm/funcs/chatSend.js +2 -1
- package/esm/funcs/creditsCreateCoinbaseCharge.js +2 -1
- package/esm/funcs/creditsGetCredits.js +2 -1
- package/esm/funcs/embeddingsGenerate.js +2 -1
- package/esm/funcs/embeddingsListModels.js +2 -1
- package/esm/funcs/endpointsList.js +2 -1
- package/esm/funcs/endpointsListZdrEndpoints.js +2 -1
- package/esm/funcs/generationsGetGeneration.js +2 -1
- package/esm/funcs/guardrailsBulkAssignKeys.js +2 -1
- package/esm/funcs/guardrailsBulkAssignMembers.js +2 -1
- package/esm/funcs/guardrailsBulkUnassignKeys.js +2 -1
- package/esm/funcs/guardrailsBulkUnassignMembers.js +2 -1
- package/esm/funcs/guardrailsCreate.js +2 -1
- package/esm/funcs/guardrailsDelete.js +2 -1
- package/esm/funcs/guardrailsGet.js +2 -1
- package/esm/funcs/guardrailsList.js +2 -1
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +2 -1
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +2 -1
- package/esm/funcs/guardrailsListKeyAssignments.js +2 -1
- package/esm/funcs/guardrailsListMemberAssignments.js +2 -1
- package/esm/funcs/guardrailsUpdate.js +2 -1
- package/esm/funcs/modelsCount.d.ts +1 -1
- package/esm/funcs/modelsCount.js +9 -4
- package/esm/funcs/modelsList.js +3 -1
- package/esm/funcs/modelsListForUser.js +2 -1
- package/esm/funcs/oAuthCreateAuthCode.d.ts +1 -1
- package/esm/funcs/oAuthCreateAuthCode.js +4 -3
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +2 -1
- package/esm/funcs/providersList.js +2 -1
- package/esm/index.d.ts +22 -23
- package/esm/index.js +20 -17
- package/esm/lib/anthropic-compat.d.ts +2 -1
- package/esm/lib/anthropic-compat.js +1 -2
- package/esm/lib/async-params.d.ts +19 -5
- package/esm/lib/async-params.js +5 -1
- package/esm/lib/chat-compat.d.ts +1 -1
- package/esm/lib/chat-compat.js +1 -2
- package/esm/lib/claude-type-guards.d.ts +2 -2
- package/esm/lib/config.d.ts +8 -10
- package/esm/lib/config.js +2 -2
- package/esm/lib/conversation-state.d.ts +1 -1
- package/esm/lib/conversation-state.js +35 -32
- package/esm/lib/env.d.ts +6 -2
- package/esm/lib/env.js +7 -3
- package/esm/lib/model-result.d.ts +73 -17
- package/esm/lib/model-result.js +329 -125
- package/esm/lib/sdks.d.ts +1 -1
- package/esm/lib/sdks.js +8 -28
- package/esm/lib/stream-transformers.d.ts +5 -4
- package/esm/lib/stream-transformers.js +24 -29
- package/esm/lib/stream-type-guards.js +8 -32
- package/esm/lib/tool-context.d.ts +68 -0
- package/esm/lib/tool-context.js +175 -0
- package/esm/lib/tool-executor.d.ts +9 -5
- package/esm/lib/tool-executor.js +26 -16
- package/esm/lib/tool-orchestrator.d.ts +2 -2
- package/esm/lib/tool-types.d.ts +101 -14
- package/esm/lib/tool-types.js +17 -0
- package/esm/lib/tool.d.ts +49 -60
- package/esm/lib/tool.js +15 -19
- package/esm/lib/turn-context.d.ts +1 -1
- package/esm/models/assistantmessage.d.ts +6 -0
- package/esm/models/assistantmessage.js +3 -0
- package/esm/models/chatcompletionaudiooutput.d.ts +38 -0
- package/esm/models/chatcompletionaudiooutput.js +36 -0
- package/esm/models/chatgenerationparams.d.ts +75 -6
- package/esm/models/chatgenerationparams.js +42 -0
- package/esm/models/chatmessagecontentitem.d.ts +3 -2
- package/esm/models/chatmessagecontentitem.js +3 -0
- package/esm/models/chatmessagecontentitemcachecontrol.d.ts +5 -5
- package/esm/models/chatmessagecontentitemcachecontrol.js +5 -7
- package/esm/models/chatmessagecontentitemfile.d.ts +57 -0
- package/esm/models/chatmessagecontentitemfile.js +59 -0
- package/esm/models/chatmessagetokenlogprobs.d.ts +1 -1
- package/esm/models/chatmessagetokenlogprobs.js +2 -1
- package/esm/models/chatresponse.d.ts +1 -1
- package/esm/models/chatresponse.js +1 -1
- package/esm/models/chatstreamingmessagechunk.d.ts +2 -0
- package/esm/models/chatstreamingmessagechunk.js +2 -0
- package/esm/models/chatstreamingresponsechunk.d.ts +1 -1
- package/esm/models/chatstreamingresponsechunk.js +1 -1
- package/esm/models/compoundfilter.d.ts +36 -0
- package/esm/models/compoundfilter.js +32 -0
- package/esm/models/conflictresponseerrordata.d.ts +17 -0
- package/esm/models/conflictresponseerrordata.js +16 -0
- package/esm/models/contextcompressionengine.d.ts +15 -0
- package/esm/models/contextcompressionengine.js +14 -0
- package/esm/models/datetimeservertool.d.ts +30 -0
- package/esm/models/datetimeservertool.js +22 -0
- package/esm/models/defaultparameters.d.ts +3 -0
- package/esm/models/defaultparameters.js +6 -0
- package/esm/models/errors/conflictresponseerror.d.ts +33 -0
- package/esm/models/errors/conflictresponseerror.js +42 -0
- package/esm/models/errors/index.d.ts +1 -0
- package/esm/models/errors/index.js +1 -0
- package/esm/models/index.d.ts +23 -4
- package/esm/models/index.js +23 -4
- package/esm/models/openairesponsesinputunion.d.ts +32 -1
- package/esm/models/openairesponsesinputunion.js +53 -1
- package/esm/models/openresponsesapplypatchtool.d.ts +20 -0
- package/esm/models/openresponsesapplypatchtool.js +21 -0
- package/esm/models/openresponsescodeinterpretertool.d.ts +68 -0
- package/esm/models/openresponsescodeinterpretertool.js +85 -0
- package/esm/models/openresponsescomputertool.d.ts +39 -0
- package/esm/models/openresponsescomputertool.js +50 -0
- package/esm/models/openresponsescustomtool.d.ts +75 -0
- package/esm/models/openresponsescustomtool.js +95 -0
- package/esm/models/openresponseseasyinputmessage.d.ts +30 -4
- package/esm/models/openresponseseasyinputmessage.js +28 -2
- package/esm/models/openresponsesfilesearchtool.d.ts +111 -0
- package/esm/models/openresponsesfilesearchtool.js +180 -0
- package/esm/models/openresponsesfunctioncalloutput.d.ts +46 -7
- package/esm/models/openresponsesfunctioncalloutput.js +56 -4
- package/esm/models/openresponsesfunctionshelltool.d.ts +20 -0
- package/esm/models/openresponsesfunctionshelltool.js +21 -0
- package/esm/models/openresponsesimagegenerationtool.d.ts +125 -0
- package/esm/models/openresponsesimagegenerationtool.js +153 -0
- package/esm/models/openresponsesinputmessageitem.d.ts +2 -2
- package/esm/models/openresponsesinputmessageitem.js +2 -2
- package/esm/models/openresponsesinputunion.d.ts +207 -0
- package/esm/models/openresponsesinputunion.js +225 -0
- package/esm/models/openresponseslocalshelltool.d.ts +20 -0
- package/esm/models/openresponseslocalshelltool.js +21 -0
- package/esm/models/openresponsesmcptool.d.ts +128 -0
- package/esm/models/openresponsesmcptool.js +173 -0
- package/esm/models/openresponsesnonstreamingresponse.d.ts +11 -2
- package/esm/models/openresponsesnonstreamingresponse.js +27 -0
- package/esm/models/openresponsesrequest.d.ts +53 -11
- package/esm/models/openresponsesrequest.js +51 -2
- package/esm/models/openresponsesstreamevent.d.ts +52 -4
- package/esm/models/openresponsesstreamevent.js +54 -3
- package/esm/models/openresponseswebsearch20250826tool.d.ts +29 -0
- package/esm/models/openresponseswebsearch20250826tool.js +23 -0
- package/esm/models/openresponseswebsearchcallcompleted.d.ts +16 -0
- package/esm/models/openresponseswebsearchcallcompleted.js +24 -0
- package/esm/models/openresponseswebsearchcallinprogress.d.ts +16 -0
- package/esm/models/openresponseswebsearchcallinprogress.js +24 -0
- package/esm/models/openresponseswebsearchcallsearching.d.ts +16 -0
- package/esm/models/openresponseswebsearchcallsearching.js +24 -0
- package/esm/models/openresponseswebsearchpreview20250311tool.d.ts +44 -0
- package/esm/models/openresponseswebsearchpreview20250311tool.js +51 -0
- package/esm/models/openresponseswebsearchpreviewtool.d.ts +44 -0
- package/esm/models/openresponseswebsearchpreviewtool.js +47 -0
- package/esm/models/openresponseswebsearchtool.d.ts +29 -0
- package/esm/models/openresponseswebsearchtool.js +23 -0
- package/esm/models/operations/bulkassignkeystoguardrail.d.ts +16 -3
- package/esm/models/operations/bulkassignkeystoguardrail.js +2 -2
- package/esm/models/operations/bulkassignmemberstoguardrail.d.ts +16 -3
- package/esm/models/operations/bulkassignmemberstoguardrail.js +2 -2
- package/esm/models/operations/bulkunassignkeysfromguardrail.d.ts +16 -3
- package/esm/models/operations/bulkunassignkeysfromguardrail.js +2 -2
- package/esm/models/operations/bulkunassignmembersfromguardrail.d.ts +16 -3
- package/esm/models/operations/bulkunassignmembersfromguardrail.js +2 -2
- package/esm/models/operations/createauthkeyscode.d.ts +16 -3
- package/esm/models/operations/createauthkeyscode.js +2 -2
- package/esm/models/operations/createcoinbasecharge.d.ts +16 -3
- package/esm/models/operations/createcoinbasecharge.js +2 -2
- package/esm/models/operations/createembeddings.d.ts +16 -3
- package/esm/models/operations/createembeddings.js +2 -2
- package/esm/models/operations/createguardrail.d.ts +25 -3
- package/esm/models/operations/createguardrail.js +6 -2
- package/esm/models/operations/createkeys.d.ts +16 -3
- package/esm/models/operations/createkeys.js +2 -2
- package/esm/models/operations/createresponses.d.ts +16 -3
- package/esm/models/operations/createresponses.js +2 -2
- package/esm/models/operations/deleteguardrail.d.ts +16 -3
- package/esm/models/operations/deleteguardrail.js +2 -2
- package/esm/models/operations/deletekeys.d.ts +16 -3
- package/esm/models/operations/deletekeys.js +2 -2
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +16 -3
- package/esm/models/operations/exchangeauthcodeforapikey.js +2 -2
- package/esm/models/operations/getcredits.d.ts +16 -3
- package/esm/models/operations/getcredits.js +2 -2
- package/esm/models/operations/getcurrentkey.d.ts +16 -3
- package/esm/models/operations/getcurrentkey.js +2 -2
- package/esm/models/operations/getgeneration.d.ts +25 -3
- package/esm/models/operations/getgeneration.js +7 -2
- package/esm/models/operations/getguardrail.d.ts +20 -3
- package/esm/models/operations/getguardrail.js +4 -2
- package/esm/models/operations/getkey.d.ts +16 -3
- package/esm/models/operations/getkey.js +2 -2
- package/esm/models/operations/getmodels.d.ts +21 -3
- package/esm/models/operations/getmodels.js +4 -2
- package/esm/models/operations/getuseractivity.d.ts +16 -3
- package/esm/models/operations/getuseractivity.js +2 -2
- package/esm/models/operations/list.d.ts +16 -3
- package/esm/models/operations/list.js +2 -2
- package/esm/models/operations/listembeddingsmodels.d.ts +16 -3
- package/esm/models/operations/listembeddingsmodels.js +2 -2
- package/esm/models/operations/listendpoints.d.ts +16 -3
- package/esm/models/operations/listendpoints.js +2 -2
- package/esm/models/operations/listendpointszdr.d.ts +16 -3
- package/esm/models/operations/listendpointszdr.js +2 -2
- package/esm/models/operations/listguardrailkeyassignments.d.ts +16 -3
- package/esm/models/operations/listguardrailkeyassignments.js +2 -2
- package/esm/models/operations/listguardrailmemberassignments.d.ts +16 -3
- package/esm/models/operations/listguardrailmemberassignments.js +2 -2
- package/esm/models/operations/listguardrails.d.ts +20 -3
- package/esm/models/operations/listguardrails.js +4 -2
- package/esm/models/operations/listkeyassignments.d.ts +16 -3
- package/esm/models/operations/listkeyassignments.js +2 -2
- package/esm/models/operations/listmemberassignments.d.ts +16 -3
- package/esm/models/operations/listmemberassignments.js +2 -2
- package/esm/models/operations/listmodelscount.d.ts +21 -3
- package/esm/models/operations/listmodelscount.js +4 -2
- package/esm/models/operations/listmodelsuser.d.ts +16 -3
- package/esm/models/operations/listmodelsuser.js +2 -2
- package/esm/models/operations/listproviders.d.ts +16 -3
- package/esm/models/operations/listproviders.js +2 -2
- package/esm/models/operations/sendchatcompletionrequest.d.ts +16 -3
- package/esm/models/operations/sendchatcompletionrequest.js +2 -2
- package/esm/models/operations/updateguardrail.d.ts +25 -3
- package/esm/models/operations/updateguardrail.js +6 -2
- package/esm/models/operations/updatekeys.d.ts +16 -3
- package/esm/models/operations/updatekeys.js +2 -2
- package/esm/models/outputmessage.d.ts +23 -0
- package/esm/models/outputmessage.js +24 -0
- package/esm/models/outputmodality.d.ts +1 -0
- package/esm/models/outputmodality.js +1 -0
- package/esm/models/providername.d.ts +1 -0
- package/esm/models/providername.js +1 -0
- package/esm/models/providerpreferences.d.ts +4 -0
- package/esm/models/providerpreferences.js +4 -0
- package/esm/models/providersort.d.ts +1 -0
- package/esm/models/providersort.js +1 -0
- package/esm/models/providersortconfig.d.ts +1 -0
- package/esm/models/providersortconfig.js +1 -0
- package/esm/models/responseoutputtext.d.ts +8 -8
- package/esm/models/responseoutputtext.js +10 -9
- package/esm/models/responsesoutputitem.d.ts +2 -13
- package/esm/models/responsesoutputitem.js +8 -6
- package/esm/models/responsesoutputitemreasoning.d.ts +2 -31
- package/esm/models/responsesoutputitemreasoning.js +2 -44
- package/esm/models/responsesoutputmessage.d.ts +24 -32
- package/esm/models/responsesoutputmessage.js +26 -47
- package/esm/models/responsesservertooloutput.d.ts +42 -0
- package/esm/models/responsesservertooloutput.js +44 -0
- package/esm/models/responseswebsearchcalloutput.d.ts +90 -5
- package/esm/models/responseswebsearchcalloutput.js +113 -5
- package/esm/models/responseswebsearchservertool.d.ts +35 -0
- package/esm/models/responseswebsearchservertool.js +28 -0
- package/esm/models/tooldefinitionjson.d.ts +38 -20
- package/esm/models/tooldefinitionjson.js +22 -11
- package/esm/models/websearchengine.d.ts +2 -0
- package/esm/models/websearchengine.js +2 -0
- package/esm/models/websearchservertool.d.ts +116 -0
- package/esm/models/websearchservertool.js +77 -0
- package/esm/models/websearchshorthand.d.ts +215 -0
- package/esm/models/websearchshorthand.js +138 -0
- package/esm/sdk/sdk.d.ts +4 -1
- package/esm/sdk/sdk.js +0 -1
- package/esm/types/index.d.ts +0 -2
- package/esm/types/index.js +0 -1
- package/jsr.json +1 -1
- package/package.json +11 -6
- package/turbo.json +10 -0
- package/esm/models/openresponsesinput.d.ts +0 -28
- package/esm/models/openresponsesinput.js +0 -54
- package/esm/models/openresponseslogprobs.d.ts +0 -16
- package/esm/models/openresponseslogprobs.js +0 -22
- package/esm/models/openresponsestoplogprobs.d.ts +0 -14
- package/esm/models/openresponsestoplogprobs.js +0 -15
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { ContextCompressionEngine } from "./contextcompressionengine.js";
|
|
3
4
|
import { DataCollection } from "./datacollection.js";
|
|
5
|
+
import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
|
|
4
6
|
import { OpenAIResponsesIncludable } from "./openairesponsesincludable.js";
|
|
5
7
|
import { OpenAIResponsesPrompt, OpenAIResponsesPrompt$Outbound } from "./openairesponsesprompt.js";
|
|
6
8
|
import { OpenAIResponsesToolChoiceUnion, OpenAIResponsesToolChoiceUnion$Outbound } from "./openairesponsestoolchoiceunion.js";
|
|
7
|
-
import {
|
|
9
|
+
import { OpenResponsesApplyPatchTool, OpenResponsesApplyPatchTool$Outbound } from "./openresponsesapplypatchtool.js";
|
|
10
|
+
import { OpenResponsesCodeInterpreterTool, OpenResponsesCodeInterpreterTool$Outbound } from "./openresponsescodeinterpretertool.js";
|
|
11
|
+
import { OpenResponsesComputerTool, OpenResponsesComputerTool$Outbound } from "./openresponsescomputertool.js";
|
|
12
|
+
import { OpenResponsesCustomTool, OpenResponsesCustomTool$Outbound } from "./openresponsescustomtool.js";
|
|
13
|
+
import { OpenResponsesFileSearchTool, OpenResponsesFileSearchTool$Outbound } from "./openresponsesfilesearchtool.js";
|
|
14
|
+
import { OpenResponsesFunctionShellTool, OpenResponsesFunctionShellTool$Outbound } from "./openresponsesfunctionshelltool.js";
|
|
15
|
+
import { OpenResponsesImageGenerationTool, OpenResponsesImageGenerationTool$Outbound } from "./openresponsesimagegenerationtool.js";
|
|
16
|
+
import { OpenResponsesInputUnion, OpenResponsesInputUnion$Outbound } from "./openresponsesinputunion.js";
|
|
17
|
+
import { OpenResponsesLocalShellTool, OpenResponsesLocalShellTool$Outbound } from "./openresponseslocalshelltool.js";
|
|
18
|
+
import { OpenResponsesMcpTool, OpenResponsesMcpTool$Outbound } from "./openresponsesmcptool.js";
|
|
8
19
|
import { OpenResponsesReasoningConfig, OpenResponsesReasoningConfig$Outbound } from "./openresponsesreasoningconfig.js";
|
|
9
20
|
import { OpenResponsesResponseText, OpenResponsesResponseText$Outbound } from "./openresponsesresponsetext.js";
|
|
10
21
|
import { OpenResponsesWebSearch20250826Tool, OpenResponsesWebSearch20250826Tool$Outbound } from "./openresponseswebsearch20250826tool.js";
|
|
@@ -19,6 +30,7 @@ import { ProviderSort } from "./providersort.js";
|
|
|
19
30
|
import { ProviderSortConfig, ProviderSortConfig$Outbound } from "./providersortconfig.js";
|
|
20
31
|
import { Quantization } from "./quantization.js";
|
|
21
32
|
import { ResponsesOutputModality } from "./responsesoutputmodality.js";
|
|
33
|
+
import { ResponsesWebSearchServerTool, ResponsesWebSearchServerTool$Outbound } from "./responseswebsearchservertool.js";
|
|
22
34
|
import { WebSearchEngine } from "./websearchengine.js";
|
|
23
35
|
/**
|
|
24
36
|
* Function tool definition
|
|
@@ -32,7 +44,7 @@ export type OpenResponsesRequestToolFunction = {
|
|
|
32
44
|
[k: string]: any | null;
|
|
33
45
|
} | null;
|
|
34
46
|
};
|
|
35
|
-
export type OpenResponsesRequestToolUnion = OpenResponsesRequestToolFunction | OpenResponsesWebSearchPreviewTool | OpenResponsesWebSearchPreview20250311Tool | OpenResponsesWebSearchTool | OpenResponsesWebSearch20250826Tool;
|
|
47
|
+
export type OpenResponsesRequestToolUnion = OpenResponsesRequestToolFunction | OpenResponsesWebSearchPreviewTool | OpenResponsesWebSearchPreview20250311Tool | OpenResponsesWebSearchTool | OpenResponsesWebSearch20250826Tool | OpenResponsesFileSearchTool | OpenResponsesComputerTool | OpenResponsesCodeInterpreterTool | OpenResponsesMcpTool | OpenResponsesImageGenerationTool | OpenResponsesLocalShellTool | OpenResponsesFunctionShellTool | OpenResponsesApplyPatchTool | OpenResponsesCustomTool | DatetimeServerTool | ResponsesWebSearchServerTool;
|
|
36
48
|
export type OpenResponsesRequestImageConfig = string | number;
|
|
37
49
|
export declare const ServiceTier: {
|
|
38
50
|
readonly Auto: "auto";
|
|
@@ -129,6 +141,17 @@ export type OpenResponsesRequestProvider = {
|
|
|
129
141
|
*/
|
|
130
142
|
preferredMaxLatency?: PreferredMaxLatency | null | undefined;
|
|
131
143
|
};
|
|
144
|
+
export type OpenResponsesRequestPluginContextCompression = {
|
|
145
|
+
id: "context-compression";
|
|
146
|
+
/**
|
|
147
|
+
* Set to false to disable the context-compression plugin for this request. Defaults to true.
|
|
148
|
+
*/
|
|
149
|
+
enabled?: boolean | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* The compression engine to use. Defaults to "middle-out".
|
|
152
|
+
*/
|
|
153
|
+
engine?: ContextCompressionEngine | undefined;
|
|
154
|
+
};
|
|
132
155
|
export type OpenResponsesRequestPluginResponseHealing = {
|
|
133
156
|
id: "response-healing";
|
|
134
157
|
/**
|
|
@@ -159,6 +182,14 @@ export type OpenResponsesRequestPluginWeb = {
|
|
|
159
182
|
* The search engine to use for web search.
|
|
160
183
|
*/
|
|
161
184
|
engine?: WebSearchEngine | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog").
|
|
187
|
+
*/
|
|
188
|
+
includeDomains?: Array<string> | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog").
|
|
191
|
+
*/
|
|
192
|
+
excludeDomains?: Array<string> | undefined;
|
|
162
193
|
};
|
|
163
194
|
export type OpenResponsesRequestPluginModeration = {
|
|
164
195
|
id: "moderation";
|
|
@@ -174,7 +205,7 @@ export type OpenResponsesRequestPluginAutoRouter = {
|
|
|
174
205
|
*/
|
|
175
206
|
allowedModels?: Array<string> | undefined;
|
|
176
207
|
};
|
|
177
|
-
export type OpenResponsesRequestPluginUnion = OpenResponsesRequestPluginAutoRouter | OpenResponsesRequestPluginModeration | OpenResponsesRequestPluginWeb | OpenResponsesRequestPluginFileParser | OpenResponsesRequestPluginResponseHealing;
|
|
208
|
+
export type OpenResponsesRequestPluginUnion = OpenResponsesRequestPluginAutoRouter | OpenResponsesRequestPluginModeration | OpenResponsesRequestPluginWeb | OpenResponsesRequestPluginFileParser | OpenResponsesRequestPluginResponseHealing | OpenResponsesRequestPluginContextCompression;
|
|
178
209
|
/**
|
|
179
210
|
* Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
|
|
180
211
|
*/
|
|
@@ -195,7 +226,7 @@ export type OpenResponsesRequest = {
|
|
|
195
226
|
/**
|
|
196
227
|
* Input for a response request - can be a string or array of items
|
|
197
228
|
*/
|
|
198
|
-
input?:
|
|
229
|
+
input?: OpenResponsesInputUnion | undefined;
|
|
199
230
|
instructions?: string | null | undefined;
|
|
200
231
|
/**
|
|
201
232
|
* Metadata key-value pairs for the request. Keys must be ≤64 characters and cannot contain brackets. Values must be ≤512 characters. Maximum 16 pairs allowed.
|
|
@@ -203,7 +234,7 @@ export type OpenResponsesRequest = {
|
|
|
203
234
|
metadata?: {
|
|
204
235
|
[k: string]: string;
|
|
205
236
|
} | null | undefined;
|
|
206
|
-
tools?: Array<OpenResponsesRequestToolFunction | OpenResponsesWebSearchPreviewTool | OpenResponsesWebSearchPreview20250311Tool | OpenResponsesWebSearchTool | OpenResponsesWebSearch20250826Tool> | undefined;
|
|
237
|
+
tools?: Array<OpenResponsesRequestToolFunction | OpenResponsesWebSearchPreviewTool | OpenResponsesWebSearchPreview20250311Tool | OpenResponsesWebSearchTool | OpenResponsesWebSearch20250826Tool | OpenResponsesFileSearchTool | OpenResponsesComputerTool | OpenResponsesCodeInterpreterTool | OpenResponsesMcpTool | OpenResponsesImageGenerationTool | OpenResponsesLocalShellTool | OpenResponsesFunctionShellTool | OpenResponsesApplyPatchTool | OpenResponsesCustomTool | DatetimeServerTool | ResponsesWebSearchServerTool> | undefined;
|
|
207
238
|
toolChoice?: OpenAIResponsesToolChoiceUnion | undefined;
|
|
208
239
|
parallelToolCalls?: boolean | null | undefined;
|
|
209
240
|
model?: string | undefined;
|
|
@@ -251,7 +282,7 @@ export type OpenResponsesRequest = {
|
|
|
251
282
|
/**
|
|
252
283
|
* Plugins you want to enable for this request, including their settings.
|
|
253
284
|
*/
|
|
254
|
-
plugins?: Array<OpenResponsesRequestPluginAutoRouter | OpenResponsesRequestPluginModeration | OpenResponsesRequestPluginWeb | OpenResponsesRequestPluginFileParser | OpenResponsesRequestPluginResponseHealing> | undefined;
|
|
285
|
+
plugins?: Array<OpenResponsesRequestPluginAutoRouter | OpenResponsesRequestPluginModeration | OpenResponsesRequestPluginWeb | OpenResponsesRequestPluginFileParser | OpenResponsesRequestPluginResponseHealing | OpenResponsesRequestPluginContextCompression> | undefined;
|
|
255
286
|
/**
|
|
256
287
|
* A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 128 characters.
|
|
257
288
|
*/
|
|
@@ -279,7 +310,7 @@ export type OpenResponsesRequestToolFunction$Outbound = {
|
|
|
279
310
|
export declare const OpenResponsesRequestToolFunction$outboundSchema: z.ZodType<OpenResponsesRequestToolFunction$Outbound, OpenResponsesRequestToolFunction>;
|
|
280
311
|
export declare function openResponsesRequestToolFunctionToJSON(openResponsesRequestToolFunction: OpenResponsesRequestToolFunction): string;
|
|
281
312
|
/** @internal */
|
|
282
|
-
export type OpenResponsesRequestToolUnion$Outbound = OpenResponsesRequestToolFunction$Outbound | OpenResponsesWebSearchPreviewTool$Outbound | OpenResponsesWebSearchPreview20250311Tool$Outbound | OpenResponsesWebSearchTool$Outbound | OpenResponsesWebSearch20250826Tool$Outbound;
|
|
313
|
+
export type OpenResponsesRequestToolUnion$Outbound = OpenResponsesRequestToolFunction$Outbound | OpenResponsesWebSearchPreviewTool$Outbound | OpenResponsesWebSearchPreview20250311Tool$Outbound | OpenResponsesWebSearchTool$Outbound | OpenResponsesWebSearch20250826Tool$Outbound | OpenResponsesFileSearchTool$Outbound | OpenResponsesComputerTool$Outbound | OpenResponsesCodeInterpreterTool$Outbound | OpenResponsesMcpTool$Outbound | OpenResponsesImageGenerationTool$Outbound | OpenResponsesLocalShellTool$Outbound | OpenResponsesFunctionShellTool$Outbound | OpenResponsesApplyPatchTool$Outbound | OpenResponsesCustomTool$Outbound | DatetimeServerTool$Outbound | ResponsesWebSearchServerTool$Outbound;
|
|
283
314
|
/** @internal */
|
|
284
315
|
export declare const OpenResponsesRequestToolUnion$outboundSchema: z.ZodType<OpenResponsesRequestToolUnion$Outbound, OpenResponsesRequestToolUnion>;
|
|
285
316
|
export declare function openResponsesRequestToolUnionToJSON(openResponsesRequestToolUnion: OpenResponsesRequestToolUnion): string;
|
|
@@ -343,6 +374,15 @@ export type OpenResponsesRequestProvider$Outbound = {
|
|
|
343
374
|
export declare const OpenResponsesRequestProvider$outboundSchema: z.ZodType<OpenResponsesRequestProvider$Outbound, OpenResponsesRequestProvider>;
|
|
344
375
|
export declare function openResponsesRequestProviderToJSON(openResponsesRequestProvider: OpenResponsesRequestProvider): string;
|
|
345
376
|
/** @internal */
|
|
377
|
+
export type OpenResponsesRequestPluginContextCompression$Outbound = {
|
|
378
|
+
id: "context-compression";
|
|
379
|
+
enabled?: boolean | undefined;
|
|
380
|
+
engine?: string | undefined;
|
|
381
|
+
};
|
|
382
|
+
/** @internal */
|
|
383
|
+
export declare const OpenResponsesRequestPluginContextCompression$outboundSchema: z.ZodType<OpenResponsesRequestPluginContextCompression$Outbound, OpenResponsesRequestPluginContextCompression>;
|
|
384
|
+
export declare function openResponsesRequestPluginContextCompressionToJSON(openResponsesRequestPluginContextCompression: OpenResponsesRequestPluginContextCompression): string;
|
|
385
|
+
/** @internal */
|
|
346
386
|
export type OpenResponsesRequestPluginResponseHealing$Outbound = {
|
|
347
387
|
id: "response-healing";
|
|
348
388
|
enabled?: boolean | undefined;
|
|
@@ -366,6 +406,8 @@ export type OpenResponsesRequestPluginWeb$Outbound = {
|
|
|
366
406
|
max_results?: number | undefined;
|
|
367
407
|
search_prompt?: string | undefined;
|
|
368
408
|
engine?: string | undefined;
|
|
409
|
+
include_domains?: Array<string> | undefined;
|
|
410
|
+
exclude_domains?: Array<string> | undefined;
|
|
369
411
|
};
|
|
370
412
|
/** @internal */
|
|
371
413
|
export declare const OpenResponsesRequestPluginWeb$outboundSchema: z.ZodType<OpenResponsesRequestPluginWeb$Outbound, OpenResponsesRequestPluginWeb>;
|
|
@@ -387,7 +429,7 @@ export type OpenResponsesRequestPluginAutoRouter$Outbound = {
|
|
|
387
429
|
export declare const OpenResponsesRequestPluginAutoRouter$outboundSchema: z.ZodType<OpenResponsesRequestPluginAutoRouter$Outbound, OpenResponsesRequestPluginAutoRouter>;
|
|
388
430
|
export declare function openResponsesRequestPluginAutoRouterToJSON(openResponsesRequestPluginAutoRouter: OpenResponsesRequestPluginAutoRouter): string;
|
|
389
431
|
/** @internal */
|
|
390
|
-
export type OpenResponsesRequestPluginUnion$Outbound = OpenResponsesRequestPluginAutoRouter$Outbound | OpenResponsesRequestPluginModeration$Outbound | OpenResponsesRequestPluginWeb$Outbound | OpenResponsesRequestPluginFileParser$Outbound | OpenResponsesRequestPluginResponseHealing$Outbound;
|
|
432
|
+
export type OpenResponsesRequestPluginUnion$Outbound = OpenResponsesRequestPluginAutoRouter$Outbound | OpenResponsesRequestPluginModeration$Outbound | OpenResponsesRequestPluginWeb$Outbound | OpenResponsesRequestPluginFileParser$Outbound | OpenResponsesRequestPluginResponseHealing$Outbound | OpenResponsesRequestPluginContextCompression$Outbound;
|
|
391
433
|
/** @internal */
|
|
392
434
|
export declare const OpenResponsesRequestPluginUnion$outboundSchema: z.ZodType<OpenResponsesRequestPluginUnion$Outbound, OpenResponsesRequestPluginUnion>;
|
|
393
435
|
export declare function openResponsesRequestPluginUnionToJSON(openResponsesRequestPluginUnion: OpenResponsesRequestPluginUnion): string;
|
|
@@ -405,12 +447,12 @@ export declare const OpenResponsesRequestTrace$outboundSchema: z.ZodType<OpenRes
|
|
|
405
447
|
export declare function openResponsesRequestTraceToJSON(openResponsesRequestTrace: OpenResponsesRequestTrace): string;
|
|
406
448
|
/** @internal */
|
|
407
449
|
export type OpenResponsesRequest$Outbound = {
|
|
408
|
-
input?:
|
|
450
|
+
input?: OpenResponsesInputUnion$Outbound | undefined;
|
|
409
451
|
instructions?: string | null | undefined;
|
|
410
452
|
metadata?: {
|
|
411
453
|
[k: string]: string;
|
|
412
454
|
} | null | undefined;
|
|
413
|
-
tools?: Array<OpenResponsesRequestToolFunction$Outbound | OpenResponsesWebSearchPreviewTool$Outbound | OpenResponsesWebSearchPreview20250311Tool$Outbound | OpenResponsesWebSearchTool$Outbound | OpenResponsesWebSearch20250826Tool$Outbound> | undefined;
|
|
455
|
+
tools?: Array<OpenResponsesRequestToolFunction$Outbound | OpenResponsesWebSearchPreviewTool$Outbound | OpenResponsesWebSearchPreview20250311Tool$Outbound | OpenResponsesWebSearchTool$Outbound | OpenResponsesWebSearch20250826Tool$Outbound | OpenResponsesFileSearchTool$Outbound | OpenResponsesComputerTool$Outbound | OpenResponsesCodeInterpreterTool$Outbound | OpenResponsesMcpTool$Outbound | OpenResponsesImageGenerationTool$Outbound | OpenResponsesLocalShellTool$Outbound | OpenResponsesFunctionShellTool$Outbound | OpenResponsesApplyPatchTool$Outbound | OpenResponsesCustomTool$Outbound | DatetimeServerTool$Outbound | ResponsesWebSearchServerTool$Outbound> | undefined;
|
|
414
456
|
tool_choice?: OpenAIResponsesToolChoiceUnion$Outbound | undefined;
|
|
415
457
|
parallel_tool_calls?: boolean | null | undefined;
|
|
416
458
|
model?: string | undefined;
|
|
@@ -440,7 +482,7 @@ export type OpenResponsesRequest$Outbound = {
|
|
|
440
482
|
truncation?: string | null | undefined;
|
|
441
483
|
stream: boolean;
|
|
442
484
|
provider?: OpenResponsesRequestProvider$Outbound | null | undefined;
|
|
443
|
-
plugins?: Array<OpenResponsesRequestPluginAutoRouter$Outbound | OpenResponsesRequestPluginModeration$Outbound | OpenResponsesRequestPluginWeb$Outbound | OpenResponsesRequestPluginFileParser$Outbound | OpenResponsesRequestPluginResponseHealing$Outbound> | undefined;
|
|
485
|
+
plugins?: Array<OpenResponsesRequestPluginAutoRouter$Outbound | OpenResponsesRequestPluginModeration$Outbound | OpenResponsesRequestPluginWeb$Outbound | OpenResponsesRequestPluginFileParser$Outbound | OpenResponsesRequestPluginResponseHealing$Outbound | OpenResponsesRequestPluginContextCompression$Outbound> | undefined;
|
|
444
486
|
user?: string | undefined;
|
|
445
487
|
session_id?: string | undefined;
|
|
446
488
|
trace?: OpenResponsesRequestTrace$Outbound | undefined;
|
|
@@ -5,11 +5,22 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import { ContextCompressionEngine$outboundSchema, } from "./contextcompressionengine.js";
|
|
8
9
|
import { DataCollection$outboundSchema, } from "./datacollection.js";
|
|
10
|
+
import { DatetimeServerTool$outboundSchema, } from "./datetimeservertool.js";
|
|
9
11
|
import { OpenAIResponsesIncludable$outboundSchema, } from "./openairesponsesincludable.js";
|
|
10
12
|
import { OpenAIResponsesPrompt$outboundSchema, } from "./openairesponsesprompt.js";
|
|
11
13
|
import { OpenAIResponsesToolChoiceUnion$outboundSchema, } from "./openairesponsestoolchoiceunion.js";
|
|
12
|
-
import {
|
|
14
|
+
import { OpenResponsesApplyPatchTool$outboundSchema, } from "./openresponsesapplypatchtool.js";
|
|
15
|
+
import { OpenResponsesCodeInterpreterTool$outboundSchema, } from "./openresponsescodeinterpretertool.js";
|
|
16
|
+
import { OpenResponsesComputerTool$outboundSchema, } from "./openresponsescomputertool.js";
|
|
17
|
+
import { OpenResponsesCustomTool$outboundSchema, } from "./openresponsescustomtool.js";
|
|
18
|
+
import { OpenResponsesFileSearchTool$outboundSchema, } from "./openresponsesfilesearchtool.js";
|
|
19
|
+
import { OpenResponsesFunctionShellTool$outboundSchema, } from "./openresponsesfunctionshelltool.js";
|
|
20
|
+
import { OpenResponsesImageGenerationTool$outboundSchema, } from "./openresponsesimagegenerationtool.js";
|
|
21
|
+
import { OpenResponsesInputUnion$outboundSchema, } from "./openresponsesinputunion.js";
|
|
22
|
+
import { OpenResponsesLocalShellTool$outboundSchema, } from "./openresponseslocalshelltool.js";
|
|
23
|
+
import { OpenResponsesMcpTool$outboundSchema, } from "./openresponsesmcptool.js";
|
|
13
24
|
import { OpenResponsesReasoningConfig$outboundSchema, } from "./openresponsesreasoningconfig.js";
|
|
14
25
|
import { OpenResponsesResponseText$outboundSchema, } from "./openresponsesresponsetext.js";
|
|
15
26
|
import { OpenResponsesWebSearch20250826Tool$outboundSchema, } from "./openresponseswebsearch20250826tool.js";
|
|
@@ -24,6 +35,7 @@ import { ProviderSort$outboundSchema } from "./providersort.js";
|
|
|
24
35
|
import { ProviderSortConfig$outboundSchema, } from "./providersortconfig.js";
|
|
25
36
|
import { Quantization$outboundSchema } from "./quantization.js";
|
|
26
37
|
import { ResponsesOutputModality$outboundSchema, } from "./responsesoutputmodality.js";
|
|
38
|
+
import { ResponsesWebSearchServerTool$outboundSchema, } from "./responseswebsearchservertool.js";
|
|
27
39
|
import { WebSearchEngine$outboundSchema, } from "./websearchengine.js";
|
|
28
40
|
export const ServiceTier = {
|
|
29
41
|
Auto: "auto",
|
|
@@ -50,6 +62,17 @@ export const OpenResponsesRequestToolUnion$outboundSchema = z.union([
|
|
|
50
62
|
OpenResponsesWebSearchPreview20250311Tool$outboundSchema,
|
|
51
63
|
OpenResponsesWebSearchTool$outboundSchema,
|
|
52
64
|
OpenResponsesWebSearch20250826Tool$outboundSchema,
|
|
65
|
+
OpenResponsesFileSearchTool$outboundSchema,
|
|
66
|
+
OpenResponsesComputerTool$outboundSchema,
|
|
67
|
+
OpenResponsesCodeInterpreterTool$outboundSchema,
|
|
68
|
+
OpenResponsesMcpTool$outboundSchema,
|
|
69
|
+
OpenResponsesImageGenerationTool$outboundSchema,
|
|
70
|
+
OpenResponsesLocalShellTool$outboundSchema,
|
|
71
|
+
OpenResponsesFunctionShellTool$outboundSchema,
|
|
72
|
+
OpenResponsesApplyPatchTool$outboundSchema,
|
|
73
|
+
OpenResponsesCustomTool$outboundSchema,
|
|
74
|
+
DatetimeServerTool$outboundSchema,
|
|
75
|
+
ResponsesWebSearchServerTool$outboundSchema,
|
|
53
76
|
]);
|
|
54
77
|
export function openResponsesRequestToolUnionToJSON(openResponsesRequestToolUnion) {
|
|
55
78
|
return JSON.stringify(OpenResponsesRequestToolUnion$outboundSchema.parse(openResponsesRequestToolUnion));
|
|
@@ -137,6 +160,15 @@ export function openResponsesRequestProviderToJSON(openResponsesRequestProvider)
|
|
|
137
160
|
return JSON.stringify(OpenResponsesRequestProvider$outboundSchema.parse(openResponsesRequestProvider));
|
|
138
161
|
}
|
|
139
162
|
/** @internal */
|
|
163
|
+
export const OpenResponsesRequestPluginContextCompression$outboundSchema = z.object({
|
|
164
|
+
id: z.literal("context-compression"),
|
|
165
|
+
enabled: z.boolean().optional(),
|
|
166
|
+
engine: ContextCompressionEngine$outboundSchema.optional(),
|
|
167
|
+
});
|
|
168
|
+
export function openResponsesRequestPluginContextCompressionToJSON(openResponsesRequestPluginContextCompression) {
|
|
169
|
+
return JSON.stringify(OpenResponsesRequestPluginContextCompression$outboundSchema.parse(openResponsesRequestPluginContextCompression));
|
|
170
|
+
}
|
|
171
|
+
/** @internal */
|
|
140
172
|
export const OpenResponsesRequestPluginResponseHealing$outboundSchema = z.object({
|
|
141
173
|
id: z.literal("response-healing"),
|
|
142
174
|
enabled: z.boolean().optional(),
|
|
@@ -160,10 +192,14 @@ export const OpenResponsesRequestPluginWeb$outboundSchema = z.object({
|
|
|
160
192
|
maxResults: z.number().optional(),
|
|
161
193
|
searchPrompt: z.string().optional(),
|
|
162
194
|
engine: WebSearchEngine$outboundSchema.optional(),
|
|
195
|
+
includeDomains: z.array(z.string()).optional(),
|
|
196
|
+
excludeDomains: z.array(z.string()).optional(),
|
|
163
197
|
}).transform((v) => {
|
|
164
198
|
return remap$(v, {
|
|
165
199
|
maxResults: "max_results",
|
|
166
200
|
searchPrompt: "search_prompt",
|
|
201
|
+
includeDomains: "include_domains",
|
|
202
|
+
excludeDomains: "exclude_domains",
|
|
167
203
|
});
|
|
168
204
|
});
|
|
169
205
|
export function openResponsesRequestPluginWebToJSON(openResponsesRequestPluginWeb) {
|
|
@@ -196,6 +232,7 @@ export const OpenResponsesRequestPluginUnion$outboundSchema = z.union([
|
|
|
196
232
|
z.lazy(() => OpenResponsesRequestPluginWeb$outboundSchema),
|
|
197
233
|
z.lazy(() => OpenResponsesRequestPluginFileParser$outboundSchema),
|
|
198
234
|
z.lazy(() => OpenResponsesRequestPluginResponseHealing$outboundSchema),
|
|
235
|
+
z.lazy(() => OpenResponsesRequestPluginContextCompression$outboundSchema),
|
|
199
236
|
]);
|
|
200
237
|
export function openResponsesRequestPluginUnionToJSON(openResponsesRequestPluginUnion) {
|
|
201
238
|
return JSON.stringify(OpenResponsesRequestPluginUnion$outboundSchema.parse(openResponsesRequestPluginUnion));
|
|
@@ -226,7 +263,7 @@ export function openResponsesRequestTraceToJSON(openResponsesRequestTrace) {
|
|
|
226
263
|
}
|
|
227
264
|
/** @internal */
|
|
228
265
|
export const OpenResponsesRequest$outboundSchema = z.object({
|
|
229
|
-
input:
|
|
266
|
+
input: OpenResponsesInputUnion$outboundSchema.optional(),
|
|
230
267
|
instructions: z.nullable(z.string()).optional(),
|
|
231
268
|
metadata: z.nullable(z.record(z.string(), z.string())).optional(),
|
|
232
269
|
tools: z.array(z.union([
|
|
@@ -235,6 +272,17 @@ export const OpenResponsesRequest$outboundSchema = z.object({
|
|
|
235
272
|
OpenResponsesWebSearchPreview20250311Tool$outboundSchema,
|
|
236
273
|
OpenResponsesWebSearchTool$outboundSchema,
|
|
237
274
|
OpenResponsesWebSearch20250826Tool$outboundSchema,
|
|
275
|
+
OpenResponsesFileSearchTool$outboundSchema,
|
|
276
|
+
OpenResponsesComputerTool$outboundSchema,
|
|
277
|
+
OpenResponsesCodeInterpreterTool$outboundSchema,
|
|
278
|
+
OpenResponsesMcpTool$outboundSchema,
|
|
279
|
+
OpenResponsesImageGenerationTool$outboundSchema,
|
|
280
|
+
OpenResponsesLocalShellTool$outboundSchema,
|
|
281
|
+
OpenResponsesFunctionShellTool$outboundSchema,
|
|
282
|
+
OpenResponsesApplyPatchTool$outboundSchema,
|
|
283
|
+
OpenResponsesCustomTool$outboundSchema,
|
|
284
|
+
DatetimeServerTool$outboundSchema,
|
|
285
|
+
ResponsesWebSearchServerTool$outboundSchema,
|
|
238
286
|
])).optional(),
|
|
239
287
|
toolChoice: OpenAIResponsesToolChoiceUnion$outboundSchema.optional(),
|
|
240
288
|
parallelToolCalls: z.nullable(z.boolean()).optional(),
|
|
@@ -271,6 +319,7 @@ export const OpenResponsesRequest$outboundSchema = z.object({
|
|
|
271
319
|
z.lazy(() => OpenResponsesRequestPluginWeb$outboundSchema),
|
|
272
320
|
z.lazy(() => OpenResponsesRequestPluginFileParser$outboundSchema),
|
|
273
321
|
z.lazy(() => OpenResponsesRequestPluginResponseHealing$outboundSchema),
|
|
322
|
+
z.lazy(() => OpenResponsesRequestPluginContextCompression$outboundSchema),
|
|
274
323
|
])).optional(),
|
|
275
324
|
user: z.string().optional(),
|
|
276
325
|
sessionId: z.string().optional(),
|
|
@@ -8,13 +8,15 @@ import { OpenResponsesImageGenCallCompleted } from "./openresponsesimagegencallc
|
|
|
8
8
|
import { OpenResponsesImageGenCallGenerating } from "./openresponsesimagegencallgenerating.js";
|
|
9
9
|
import { OpenResponsesImageGenCallInProgress } from "./openresponsesimagegencallinprogress.js";
|
|
10
10
|
import { OpenResponsesImageGenCallPartialImage } from "./openresponsesimagegencallpartialimage.js";
|
|
11
|
-
import { OpenResponsesLogProbs } from "./openresponseslogprobs.js";
|
|
12
11
|
import { OpenResponsesNonStreamingResponse } from "./openresponsesnonstreamingresponse.js";
|
|
13
12
|
import { OpenResponsesReasoningDeltaEvent } from "./openresponsesreasoningdeltaevent.js";
|
|
14
13
|
import { OpenResponsesReasoningDoneEvent } from "./openresponsesreasoningdoneevent.js";
|
|
15
14
|
import { OpenResponsesReasoningSummaryPartAddedEvent } from "./openresponsesreasoningsummarypartaddedevent.js";
|
|
16
15
|
import { OpenResponsesReasoningSummaryTextDeltaEvent } from "./openresponsesreasoningsummarytextdeltaevent.js";
|
|
17
16
|
import { OpenResponsesReasoningSummaryTextDoneEvent } from "./openresponsesreasoningsummarytextdoneevent.js";
|
|
17
|
+
import { OpenResponsesWebSearchCallCompleted } from "./openresponseswebsearchcallcompleted.js";
|
|
18
|
+
import { OpenResponsesWebSearchCallInProgress } from "./openresponseswebsearchcallinprogress.js";
|
|
19
|
+
import { OpenResponsesWebSearchCallSearching } from "./openresponseswebsearchcallsearching.js";
|
|
18
20
|
import { ReasoningSummaryText } from "./reasoningsummarytext.js";
|
|
19
21
|
import { ReasoningTextContent } from "./reasoningtextcontent.js";
|
|
20
22
|
import { ResponseOutputText } from "./responseoutputtext.js";
|
|
@@ -85,6 +87,23 @@ export type OpenResponsesStreamEventResponseRefusalDelta = {
|
|
|
85
87
|
delta: string;
|
|
86
88
|
sequenceNumber: number;
|
|
87
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* Alternative token with its log probability
|
|
92
|
+
*/
|
|
93
|
+
export type OpenResponsesStreamEventTopLogprob2 = {
|
|
94
|
+
token?: string | undefined;
|
|
95
|
+
logprob?: number | undefined;
|
|
96
|
+
bytes?: Array<number> | undefined;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Log probability information for a token
|
|
100
|
+
*/
|
|
101
|
+
export type OpenResponsesStreamEventLogprob2 = {
|
|
102
|
+
logprob: number;
|
|
103
|
+
token: string;
|
|
104
|
+
topLogprobs?: Array<OpenResponsesStreamEventTopLogprob2> | undefined;
|
|
105
|
+
bytes?: Array<number> | undefined;
|
|
106
|
+
};
|
|
88
107
|
/**
|
|
89
108
|
* Event emitted when text streaming is complete
|
|
90
109
|
*/
|
|
@@ -95,14 +114,31 @@ export type OpenResponsesStreamEventResponseOutputTextDone = {
|
|
|
95
114
|
contentIndex: number;
|
|
96
115
|
text: string;
|
|
97
116
|
sequenceNumber: number;
|
|
98
|
-
logprobs: Array<
|
|
117
|
+
logprobs: Array<OpenResponsesStreamEventLogprob2>;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Alternative token with its log probability
|
|
121
|
+
*/
|
|
122
|
+
export type OpenResponsesStreamEventTopLogprob1 = {
|
|
123
|
+
token?: string | undefined;
|
|
124
|
+
logprob?: number | undefined;
|
|
125
|
+
bytes?: Array<number> | undefined;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Log probability information for a token
|
|
129
|
+
*/
|
|
130
|
+
export type OpenResponsesStreamEventLogprob1 = {
|
|
131
|
+
logprob: number;
|
|
132
|
+
token: string;
|
|
133
|
+
topLogprobs?: Array<OpenResponsesStreamEventTopLogprob1> | undefined;
|
|
134
|
+
bytes?: Array<number> | undefined;
|
|
99
135
|
};
|
|
100
136
|
/**
|
|
101
137
|
* Event emitted when a text delta is streamed
|
|
102
138
|
*/
|
|
103
139
|
export type OpenResponsesStreamEventResponseOutputTextDelta = {
|
|
104
140
|
type: "response.output_text.delta";
|
|
105
|
-
logprobs: Array<
|
|
141
|
+
logprobs: Array<OpenResponsesStreamEventLogprob1>;
|
|
106
142
|
outputIndex: number;
|
|
107
143
|
itemId: string;
|
|
108
144
|
contentIndex: number;
|
|
@@ -223,7 +259,7 @@ export type OpenResponsesStreamEventResponseCreated = {
|
|
|
223
259
|
/**
|
|
224
260
|
* Union of all possible event types emitted during response streaming
|
|
225
261
|
*/
|
|
226
|
-
export type OpenResponsesStreamEvent = OpenResponsesStreamEventResponseCreated | OpenResponsesStreamEventResponseInProgress | OpenResponsesStreamEventResponseCompleted | OpenResponsesStreamEventResponseIncomplete | OpenResponsesStreamEventResponseFailed | OpenResponsesErrorEvent | OpenResponsesStreamEventResponseOutputItemAdded | OpenResponsesStreamEventResponseOutputItemDone | OpenResponsesStreamEventResponseContentPartAdded | OpenResponsesStreamEventResponseContentPartDone | OpenResponsesStreamEventResponseOutputTextDelta | OpenResponsesStreamEventResponseOutputTextDone | OpenResponsesStreamEventResponseRefusalDelta | OpenResponsesStreamEventResponseRefusalDone | OpenResponsesStreamEventResponseOutputTextAnnotationAdded | OpenResponsesStreamEventResponseFunctionCallArgumentsDelta | OpenResponsesStreamEventResponseFunctionCallArgumentsDone | OpenResponsesReasoningDeltaEvent | OpenResponsesReasoningDoneEvent | OpenResponsesReasoningSummaryPartAddedEvent | OpenResponsesStreamEventResponseReasoningSummaryPartDone | OpenResponsesReasoningSummaryTextDeltaEvent | OpenResponsesReasoningSummaryTextDoneEvent | OpenResponsesImageGenCallInProgress | OpenResponsesImageGenCallGenerating | OpenResponsesImageGenCallPartialImage | OpenResponsesImageGenCallCompleted;
|
|
262
|
+
export type OpenResponsesStreamEvent = OpenResponsesStreamEventResponseCreated | OpenResponsesStreamEventResponseInProgress | OpenResponsesStreamEventResponseCompleted | OpenResponsesStreamEventResponseIncomplete | OpenResponsesStreamEventResponseFailed | OpenResponsesErrorEvent | OpenResponsesStreamEventResponseOutputItemAdded | OpenResponsesStreamEventResponseOutputItemDone | OpenResponsesStreamEventResponseContentPartAdded | OpenResponsesStreamEventResponseContentPartDone | OpenResponsesStreamEventResponseOutputTextDelta | OpenResponsesStreamEventResponseOutputTextDone | OpenResponsesStreamEventResponseRefusalDelta | OpenResponsesStreamEventResponseRefusalDone | OpenResponsesStreamEventResponseOutputTextAnnotationAdded | OpenResponsesStreamEventResponseFunctionCallArgumentsDelta | OpenResponsesStreamEventResponseFunctionCallArgumentsDone | OpenResponsesReasoningDeltaEvent | OpenResponsesReasoningDoneEvent | OpenResponsesReasoningSummaryPartAddedEvent | OpenResponsesStreamEventResponseReasoningSummaryPartDone | OpenResponsesReasoningSummaryTextDeltaEvent | OpenResponsesReasoningSummaryTextDoneEvent | OpenResponsesImageGenCallInProgress | OpenResponsesImageGenCallGenerating | OpenResponsesImageGenCallPartialImage | OpenResponsesImageGenCallCompleted | OpenResponsesWebSearchCallInProgress | OpenResponsesWebSearchCallSearching | OpenResponsesWebSearchCallCompleted;
|
|
227
263
|
/** @internal */
|
|
228
264
|
export declare const OpenResponsesStreamEventResponseReasoningSummaryPartDone$inboundSchema: z.ZodType<OpenResponsesStreamEventResponseReasoningSummaryPartDone, unknown>;
|
|
229
265
|
export declare function openResponsesStreamEventResponseReasoningSummaryPartDoneFromJSON(jsonString: string): SafeParseResult<OpenResponsesStreamEventResponseReasoningSummaryPartDone, SDKValidationError>;
|
|
@@ -243,9 +279,21 @@ export declare function openResponsesStreamEventResponseRefusalDoneFromJSON(json
|
|
|
243
279
|
export declare const OpenResponsesStreamEventResponseRefusalDelta$inboundSchema: z.ZodType<OpenResponsesStreamEventResponseRefusalDelta, unknown>;
|
|
244
280
|
export declare function openResponsesStreamEventResponseRefusalDeltaFromJSON(jsonString: string): SafeParseResult<OpenResponsesStreamEventResponseRefusalDelta, SDKValidationError>;
|
|
245
281
|
/** @internal */
|
|
282
|
+
export declare const OpenResponsesStreamEventTopLogprob2$inboundSchema: z.ZodType<OpenResponsesStreamEventTopLogprob2, unknown>;
|
|
283
|
+
export declare function openResponsesStreamEventTopLogprob2FromJSON(jsonString: string): SafeParseResult<OpenResponsesStreamEventTopLogprob2, SDKValidationError>;
|
|
284
|
+
/** @internal */
|
|
285
|
+
export declare const OpenResponsesStreamEventLogprob2$inboundSchema: z.ZodType<OpenResponsesStreamEventLogprob2, unknown>;
|
|
286
|
+
export declare function openResponsesStreamEventLogprob2FromJSON(jsonString: string): SafeParseResult<OpenResponsesStreamEventLogprob2, SDKValidationError>;
|
|
287
|
+
/** @internal */
|
|
246
288
|
export declare const OpenResponsesStreamEventResponseOutputTextDone$inboundSchema: z.ZodType<OpenResponsesStreamEventResponseOutputTextDone, unknown>;
|
|
247
289
|
export declare function openResponsesStreamEventResponseOutputTextDoneFromJSON(jsonString: string): SafeParseResult<OpenResponsesStreamEventResponseOutputTextDone, SDKValidationError>;
|
|
248
290
|
/** @internal */
|
|
291
|
+
export declare const OpenResponsesStreamEventTopLogprob1$inboundSchema: z.ZodType<OpenResponsesStreamEventTopLogprob1, unknown>;
|
|
292
|
+
export declare function openResponsesStreamEventTopLogprob1FromJSON(jsonString: string): SafeParseResult<OpenResponsesStreamEventTopLogprob1, SDKValidationError>;
|
|
293
|
+
/** @internal */
|
|
294
|
+
export declare const OpenResponsesStreamEventLogprob1$inboundSchema: z.ZodType<OpenResponsesStreamEventLogprob1, unknown>;
|
|
295
|
+
export declare function openResponsesStreamEventLogprob1FromJSON(jsonString: string): SafeParseResult<OpenResponsesStreamEventLogprob1, SDKValidationError>;
|
|
296
|
+
/** @internal */
|
|
249
297
|
export declare const OpenResponsesStreamEventResponseOutputTextDelta$inboundSchema: z.ZodType<OpenResponsesStreamEventResponseOutputTextDelta, unknown>;
|
|
250
298
|
export declare function openResponsesStreamEventResponseOutputTextDeltaFromJSON(jsonString: string): SafeParseResult<OpenResponsesStreamEventResponseOutputTextDelta, SDKValidationError>;
|
|
251
299
|
/** @internal */
|
|
@@ -12,13 +12,15 @@ import { OpenResponsesImageGenCallCompleted$inboundSchema, } from "./openrespons
|
|
|
12
12
|
import { OpenResponsesImageGenCallGenerating$inboundSchema, } from "./openresponsesimagegencallgenerating.js";
|
|
13
13
|
import { OpenResponsesImageGenCallInProgress$inboundSchema, } from "./openresponsesimagegencallinprogress.js";
|
|
14
14
|
import { OpenResponsesImageGenCallPartialImage$inboundSchema, } from "./openresponsesimagegencallpartialimage.js";
|
|
15
|
-
import { OpenResponsesLogProbs$inboundSchema, } from "./openresponseslogprobs.js";
|
|
16
15
|
import { OpenResponsesNonStreamingResponse$inboundSchema, } from "./openresponsesnonstreamingresponse.js";
|
|
17
16
|
import { OpenResponsesReasoningDeltaEvent$inboundSchema, } from "./openresponsesreasoningdeltaevent.js";
|
|
18
17
|
import { OpenResponsesReasoningDoneEvent$inboundSchema, } from "./openresponsesreasoningdoneevent.js";
|
|
19
18
|
import { OpenResponsesReasoningSummaryPartAddedEvent$inboundSchema, } from "./openresponsesreasoningsummarypartaddedevent.js";
|
|
20
19
|
import { OpenResponsesReasoningSummaryTextDeltaEvent$inboundSchema, } from "./openresponsesreasoningsummarytextdeltaevent.js";
|
|
21
20
|
import { OpenResponsesReasoningSummaryTextDoneEvent$inboundSchema, } from "./openresponsesreasoningsummarytextdoneevent.js";
|
|
21
|
+
import { OpenResponsesWebSearchCallCompleted$inboundSchema, } from "./openresponseswebsearchcallcompleted.js";
|
|
22
|
+
import { OpenResponsesWebSearchCallInProgress$inboundSchema, } from "./openresponseswebsearchcallinprogress.js";
|
|
23
|
+
import { OpenResponsesWebSearchCallSearching$inboundSchema, } from "./openresponseswebsearchcallsearching.js";
|
|
22
24
|
import { ReasoningSummaryText$inboundSchema, } from "./reasoningsummarytext.js";
|
|
23
25
|
import { ReasoningTextContent$inboundSchema, } from "./reasoningtextcontent.js";
|
|
24
26
|
import { ResponseOutputText$inboundSchema, } from "./responseoutputtext.js";
|
|
@@ -141,6 +143,29 @@ export function openResponsesStreamEventResponseRefusalDeltaFromJSON(jsonString)
|
|
|
141
143
|
return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseRefusalDelta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseRefusalDelta' from JSON`);
|
|
142
144
|
}
|
|
143
145
|
/** @internal */
|
|
146
|
+
export const OpenResponsesStreamEventTopLogprob2$inboundSchema = z.object({
|
|
147
|
+
token: z.string().optional(),
|
|
148
|
+
logprob: z.number().optional(),
|
|
149
|
+
bytes: z.array(z.number()).optional(),
|
|
150
|
+
});
|
|
151
|
+
export function openResponsesStreamEventTopLogprob2FromJSON(jsonString) {
|
|
152
|
+
return safeParse(jsonString, (x) => OpenResponsesStreamEventTopLogprob2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventTopLogprob2' from JSON`);
|
|
153
|
+
}
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const OpenResponsesStreamEventLogprob2$inboundSchema = z.object({
|
|
156
|
+
logprob: z.number(),
|
|
157
|
+
token: z.string(),
|
|
158
|
+
top_logprobs: z.array(z.lazy(() => OpenResponsesStreamEventTopLogprob2$inboundSchema)).optional(),
|
|
159
|
+
bytes: z.array(z.number()).optional(),
|
|
160
|
+
}).transform((v) => {
|
|
161
|
+
return remap$(v, {
|
|
162
|
+
"top_logprobs": "topLogprobs",
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
export function openResponsesStreamEventLogprob2FromJSON(jsonString) {
|
|
166
|
+
return safeParse(jsonString, (x) => OpenResponsesStreamEventLogprob2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventLogprob2' from JSON`);
|
|
167
|
+
}
|
|
168
|
+
/** @internal */
|
|
144
169
|
export const OpenResponsesStreamEventResponseOutputTextDone$inboundSchema = z.object({
|
|
145
170
|
type: z.literal("response.output_text.done"),
|
|
146
171
|
output_index: z.number(),
|
|
@@ -148,7 +173,7 @@ export const OpenResponsesStreamEventResponseOutputTextDone$inboundSchema = z.ob
|
|
|
148
173
|
content_index: z.number(),
|
|
149
174
|
text: z.string(),
|
|
150
175
|
sequence_number: z.number(),
|
|
151
|
-
logprobs: z.array(
|
|
176
|
+
logprobs: z.array(z.lazy(() => OpenResponsesStreamEventLogprob2$inboundSchema)),
|
|
152
177
|
}).transform((v) => {
|
|
153
178
|
return remap$(v, {
|
|
154
179
|
"output_index": "outputIndex",
|
|
@@ -161,10 +186,33 @@ export function openResponsesStreamEventResponseOutputTextDoneFromJSON(jsonStrin
|
|
|
161
186
|
return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseOutputTextDone$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseOutputTextDone' from JSON`);
|
|
162
187
|
}
|
|
163
188
|
/** @internal */
|
|
189
|
+
export const OpenResponsesStreamEventTopLogprob1$inboundSchema = z.object({
|
|
190
|
+
token: z.string().optional(),
|
|
191
|
+
logprob: z.number().optional(),
|
|
192
|
+
bytes: z.array(z.number()).optional(),
|
|
193
|
+
});
|
|
194
|
+
export function openResponsesStreamEventTopLogprob1FromJSON(jsonString) {
|
|
195
|
+
return safeParse(jsonString, (x) => OpenResponsesStreamEventTopLogprob1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventTopLogprob1' from JSON`);
|
|
196
|
+
}
|
|
197
|
+
/** @internal */
|
|
198
|
+
export const OpenResponsesStreamEventLogprob1$inboundSchema = z.object({
|
|
199
|
+
logprob: z.number(),
|
|
200
|
+
token: z.string(),
|
|
201
|
+
top_logprobs: z.array(z.lazy(() => OpenResponsesStreamEventTopLogprob1$inboundSchema)).optional(),
|
|
202
|
+
bytes: z.array(z.number()).optional(),
|
|
203
|
+
}).transform((v) => {
|
|
204
|
+
return remap$(v, {
|
|
205
|
+
"top_logprobs": "topLogprobs",
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
export function openResponsesStreamEventLogprob1FromJSON(jsonString) {
|
|
209
|
+
return safeParse(jsonString, (x) => OpenResponsesStreamEventLogprob1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventLogprob1' from JSON`);
|
|
210
|
+
}
|
|
211
|
+
/** @internal */
|
|
164
212
|
export const OpenResponsesStreamEventResponseOutputTextDelta$inboundSchema = z
|
|
165
213
|
.object({
|
|
166
214
|
type: z.literal("response.output_text.delta"),
|
|
167
|
-
logprobs: z.array(
|
|
215
|
+
logprobs: z.array(z.lazy(() => OpenResponsesStreamEventLogprob1$inboundSchema)),
|
|
168
216
|
output_index: z.number(),
|
|
169
217
|
item_id: z.string(),
|
|
170
218
|
content_index: z.number(),
|
|
@@ -372,6 +420,9 @@ export const OpenResponsesStreamEvent$inboundSchema = z.union([
|
|
|
372
420
|
OpenResponsesImageGenCallGenerating$inboundSchema,
|
|
373
421
|
OpenResponsesImageGenCallPartialImage$inboundSchema,
|
|
374
422
|
OpenResponsesImageGenCallCompleted$inboundSchema,
|
|
423
|
+
OpenResponsesWebSearchCallInProgress$inboundSchema,
|
|
424
|
+
OpenResponsesWebSearchCallSearching$inboundSchema,
|
|
425
|
+
OpenResponsesWebSearchCallCompleted$inboundSchema,
|
|
375
426
|
]);
|
|
376
427
|
export function openResponsesStreamEventFromJSON(jsonString) {
|
|
377
428
|
return safeParse(jsonString, (x) => OpenResponsesStreamEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEvent' from JSON`);
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
5
|
import { ResponsesSearchContextSize } from "./responsessearchcontextsize.js";
|
|
5
6
|
import { ResponsesWebSearchUserLocation, ResponsesWebSearchUserLocation$Outbound } from "./responseswebsearchuserlocation.js";
|
|
6
7
|
export type OpenResponsesWebSearch20250826ToolFilters = {
|
|
7
8
|
allowedDomains?: Array<string> | null | undefined;
|
|
9
|
+
excludedDomains?: Array<string> | null | undefined;
|
|
8
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API.
|
|
13
|
+
*/
|
|
14
|
+
export declare const OpenResponsesWebSearch20250826ToolEngine: {
|
|
15
|
+
readonly Auto: "auto";
|
|
16
|
+
readonly Native: "native";
|
|
17
|
+
readonly Exa: "exa";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API.
|
|
21
|
+
*/
|
|
22
|
+
export type OpenResponsesWebSearch20250826ToolEngine = OpenEnum<typeof OpenResponsesWebSearch20250826ToolEngine>;
|
|
9
23
|
/**
|
|
10
24
|
* Web search tool configuration (2025-08-26 version)
|
|
11
25
|
*/
|
|
@@ -20,18 +34,31 @@ export type OpenResponsesWebSearch20250826Tool = {
|
|
|
20
34
|
* User location information for web search
|
|
21
35
|
*/
|
|
22
36
|
userLocation?: ResponsesWebSearchUserLocation | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API.
|
|
39
|
+
*/
|
|
40
|
+
engine?: OpenResponsesWebSearch20250826ToolEngine | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Maximum number of search results to return per search call. Defaults to 5.
|
|
43
|
+
*/
|
|
44
|
+
maxResults?: number | undefined;
|
|
23
45
|
};
|
|
24
46
|
/** @internal */
|
|
25
47
|
export declare const OpenResponsesWebSearch20250826ToolFilters$inboundSchema: z.ZodType<OpenResponsesWebSearch20250826ToolFilters, unknown>;
|
|
26
48
|
/** @internal */
|
|
27
49
|
export type OpenResponsesWebSearch20250826ToolFilters$Outbound = {
|
|
28
50
|
allowed_domains?: Array<string> | null | undefined;
|
|
51
|
+
excluded_domains?: Array<string> | null | undefined;
|
|
29
52
|
};
|
|
30
53
|
/** @internal */
|
|
31
54
|
export declare const OpenResponsesWebSearch20250826ToolFilters$outboundSchema: z.ZodType<OpenResponsesWebSearch20250826ToolFilters$Outbound, OpenResponsesWebSearch20250826ToolFilters>;
|
|
32
55
|
export declare function openResponsesWebSearch20250826ToolFiltersToJSON(openResponsesWebSearch20250826ToolFilters: OpenResponsesWebSearch20250826ToolFilters): string;
|
|
33
56
|
export declare function openResponsesWebSearch20250826ToolFiltersFromJSON(jsonString: string): SafeParseResult<OpenResponsesWebSearch20250826ToolFilters, SDKValidationError>;
|
|
34
57
|
/** @internal */
|
|
58
|
+
export declare const OpenResponsesWebSearch20250826ToolEngine$inboundSchema: z.ZodType<OpenResponsesWebSearch20250826ToolEngine, unknown>;
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const OpenResponsesWebSearch20250826ToolEngine$outboundSchema: z.ZodType<string, OpenResponsesWebSearch20250826ToolEngine>;
|
|
61
|
+
/** @internal */
|
|
35
62
|
export declare const OpenResponsesWebSearch20250826Tool$inboundSchema: z.ZodType<OpenResponsesWebSearch20250826Tool, unknown>;
|
|
36
63
|
/** @internal */
|
|
37
64
|
export type OpenResponsesWebSearch20250826Tool$Outbound = {
|
|
@@ -39,6 +66,8 @@ export type OpenResponsesWebSearch20250826Tool$Outbound = {
|
|
|
39
66
|
filters?: OpenResponsesWebSearch20250826ToolFilters$Outbound | null | undefined;
|
|
40
67
|
search_context_size?: string | undefined;
|
|
41
68
|
user_location?: ResponsesWebSearchUserLocation$Outbound | null | undefined;
|
|
69
|
+
engine?: string | undefined;
|
|
70
|
+
max_results?: number | undefined;
|
|
42
71
|
};
|
|
43
72
|
/** @internal */
|
|
44
73
|
export declare const OpenResponsesWebSearch20250826Tool$outboundSchema: z.ZodType<OpenResponsesWebSearch20250826Tool$Outbound, OpenResponsesWebSearch20250826Tool>;
|