@orq-ai/node 4.11.0-rc.4 → 4.11.0-rc.6
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +23 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +23 -0
- package/models/components/index.js.map +1 -1
- package/models/components/modelmetadata.d.ts +2 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +4 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/publicresponseresource.d.ts +105 -0
- package/models/components/publicresponseresource.d.ts.map +1 -0
- package/models/components/publicresponseresource.js +138 -0
- package/models/components/publicresponseresource.js.map +1 -0
- package/models/components/reasoning.d.ts +40 -2
- package/models/components/reasoning.d.ts.map +1 -1
- package/models/components/reasoning.js +26 -3
- package/models/components/reasoning.js.map +1 -1
- package/models/components/reasoningparam.d.ts +40 -2
- package/models/components/reasoningparam.d.ts.map +1 -1
- package/models/components/reasoningparam.js +28 -3
- package/models/components/reasoningparam.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts +61 -0
- package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercodedeltastreamevent.js +89 -0
- package/models/components/responsecodeinterpretercodedeltastreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.d.ts +61 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.js +89 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.js.map +1 -0
- package/models/components/responsecontentpartstreamevent.d.ts +81 -0
- package/models/components/responsecontentpartstreamevent.d.ts.map +1 -0
- package/models/components/responsecontentpartstreamevent.js +100 -0
- package/models/components/responsecontentpartstreamevent.js.map +1 -0
- package/models/components/responseerrorstreamevent.d.ts +51 -0
- package/models/components/responseerrorstreamevent.d.ts.map +1 -0
- package/models/components/responseerrorstreamevent.js +85 -0
- package/models/components/responseerrorstreamevent.js.map +1 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts +65 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.js +90 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.js.map +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +61 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js +89 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -0
- package/models/components/responsehostedtoolcallstreamevent.d.ts +97 -0
- package/models/components/responsehostedtoolcallstreamevent.d.ts.map +1 -0
- package/models/components/responsehostedtoolcallstreamevent.js +123 -0
- package/models/components/responsehostedtoolcallstreamevent.js.map +1 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.d.ts +65 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.d.ts.map +1 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.js +92 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.js.map +1 -0
- package/models/components/responselifecyclestreamevent.d.ts +73 -0
- package/models/components/responselifecyclestreamevent.d.ts.map +1 -0
- package/models/components/responselifecyclestreamevent.js +103 -0
- package/models/components/responselifecyclestreamevent.js.map +1 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts +61 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.js +89 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.js.map +1 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.d.ts +61 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.js +89 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.js.map +1 -0
- package/models/components/responseoutputitemstreamevent.d.ts +73 -0
- package/models/components/responseoutputitemstreamevent.d.ts.map +1 -0
- package/models/components/responseoutputitemstreamevent.js +96 -0
- package/models/components/responseoutputitemstreamevent.js.map +1 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.d.ts +71 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.js +93 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.js.map +1 -0
- package/models/components/responseoutputtextdeltastreamevent.d.ts +75 -0
- package/models/components/responseoutputtextdeltastreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextdeltastreamevent.js +92 -0
- package/models/components/responseoutputtextdeltastreamevent.js.map +1 -0
- package/models/components/responseoutputtextdonestreamevent.d.ts +71 -0
- package/models/components/responseoutputtextdonestreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextdonestreamevent.js +91 -0
- package/models/components/responseoutputtextdonestreamevent.js.map +1 -0
- package/models/components/responsereasoningdeltastreamevent.d.ts +83 -0
- package/models/components/responsereasoningdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningdeltastreamevent.js +101 -0
- package/models/components/responsereasoningdeltastreamevent.js.map +1 -0
- package/models/components/responsereasoningdonestreamevent.d.ts +79 -0
- package/models/components/responsereasoningdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningdonestreamevent.js +100 -0
- package/models/components/responsereasoningdonestreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarypartstreamevent.d.ts +81 -0
- package/models/components/responsereasoningsummarypartstreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarypartstreamevent.js +102 -0
- package/models/components/responsereasoningsummarypartstreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts +69 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.js +92 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.d.ts +65 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.js +91 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.js.map +1 -0
- package/models/components/responserefusaldeltastreamevent.d.ts +65 -0
- package/models/components/responserefusaldeltastreamevent.d.ts.map +1 -0
- package/models/components/responserefusaldeltastreamevent.js +90 -0
- package/models/components/responserefusaldeltastreamevent.js.map +1 -0
- package/models/components/responserefusaldonestreamevent.d.ts +65 -0
- package/models/components/responserefusaldonestreamevent.d.ts.map +1 -0
- package/models/components/responserefusaldonestreamevent.js +90 -0
- package/models/components/responserefusaldonestreamevent.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +298 -4
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +163 -9
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +81 -4
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +45 -7
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +225 -12
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +124 -13
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +476 -61
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +332 -60
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentgetconfig.d.ts +70 -4
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +43 -8
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +74 -8
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +43 -8
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/getallprompts.d.ts +140 -4
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +79 -6
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +140 -4
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +79 -6
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +140 -4
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +78 -6
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listagents.d.ts +140 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +79 -3
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listknowledgebases.d.ts +3 -0
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +1 -1
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +140 -4
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +79 -6
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +140 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +81 -2
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +154 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +80 -5
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +154 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +82 -4
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +298 -4
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +162 -9
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +225 -12
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +125 -14
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +23 -0
- package/src/models/components/modelmetadata.ts +6 -0
- package/src/models/components/publicresponseresource.ts +196 -0
- package/src/models/components/reasoning.ts +50 -4
- package/src/models/components/reasoningparam.ts +48 -4
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsecodeinterpretercodedeltastreamevent.ts +149 -0
- package/src/models/components/responsecodeinterpretercodedonestreamevent.ts +146 -0
- package/src/models/components/responsecontentpartstreamevent.ts +157 -0
- package/src/models/components/responseerrorstreamevent.ts +116 -0
- package/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +153 -0
- package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +148 -0
- package/src/models/components/responsehostedtoolcallstreamevent.ts +186 -0
- package/src/models/components/responseimagegenerationpartialimagestreamevent.ts +156 -0
- package/src/models/components/responselifecyclestreamevent.ts +145 -0
- package/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +145 -0
- package/src/models/components/responsemcpcallargumentsdonestreamevent.ts +145 -0
- package/src/models/components/responseoutputitemstreamevent.ts +144 -0
- package/src/models/components/responseoutputtextannotationaddedstreamevent.ts +160 -0
- package/src/models/components/responseoutputtextdeltastreamevent.ts +149 -0
- package/src/models/components/responseoutputtextdonestreamevent.ts +143 -0
- package/src/models/components/responsereasoningdeltastreamevent.ts +164 -0
- package/src/models/components/responsereasoningdonestreamevent.ts +159 -0
- package/src/models/components/responsereasoningsummarypartstreamevent.ts +171 -0
- package/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +159 -0
- package/src/models/components/responsereasoningsummarytextdonestreamevent.ts +154 -0
- package/src/models/components/responserefusaldeltastreamevent.ts +137 -0
- package/src/models/components/responserefusaldonestreamevent.ts +137 -0
- package/src/models/operations/createagentrequest.ts +460 -8
- package/src/models/operations/createchatcompletion.ts +129 -10
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +356 -27
- package/src/models/operations/createrouterresponse.ts +1000 -109
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentgetconfig.ts +105 -8
- package/src/models/operations/deployments.ts +113 -16
- package/src/models/operations/getallprompts.ts +210 -8
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +208 -8
- package/src/models/operations/getpromptversion.ts +212 -8
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +215 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +4 -1
- package/src/models/operations/listpromptversions.ts +212 -8
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +222 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +236 -1
- package/src/models/operations/streamrunagent.ts +242 -1
- package/src/models/operations/updateagent.ts +464 -9
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +356 -27
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
|
@@ -4,10 +4,118 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
4
4
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
5
5
|
import * as components from "../components/index.js";
|
|
6
6
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
|
+
/**
|
|
8
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
*
|
|
12
|
+
* - `5m`: 5 minutes
|
|
13
|
+
* - `1h`: 1 hour
|
|
14
|
+
*
|
|
15
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
16
|
+
*/
|
|
17
|
+
export declare const CreateRouterResponseTtl: {
|
|
18
|
+
readonly Fivem: "5m";
|
|
19
|
+
readonly Oneh: "1h";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
*
|
|
26
|
+
* - `5m`: 5 minutes
|
|
27
|
+
* - `1h`: 1 hour
|
|
28
|
+
*
|
|
29
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
30
|
+
*/
|
|
31
|
+
export type CreateRouterResponseTtl = ClosedEnum<typeof CreateRouterResponseTtl>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
34
|
+
*/
|
|
35
|
+
export declare const CreateRouterResponseType: {
|
|
36
|
+
readonly Ephemeral: "ephemeral";
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
40
|
+
*/
|
|
41
|
+
export type CreateRouterResponseType = ClosedEnum<typeof CreateRouterResponseType>;
|
|
42
|
+
/**
|
|
43
|
+
* Top-level cache control automatically applies a cache_control marker to the last cacheable block in the request.
|
|
44
|
+
*/
|
|
45
|
+
export type CreateRouterResponseCacheControl = {
|
|
46
|
+
/**
|
|
47
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
*
|
|
51
|
+
* - `5m`: 5 minutes
|
|
52
|
+
* - `1h`: 1 hour
|
|
53
|
+
*
|
|
54
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
55
|
+
*/
|
|
56
|
+
ttl?: CreateRouterResponseTtl | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
59
|
+
*/
|
|
60
|
+
type: CreateRouterResponseType;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
*
|
|
67
|
+
* - `5m`: 5 minutes
|
|
68
|
+
* - `1h`: 1 hour
|
|
69
|
+
*
|
|
70
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
71
|
+
*/
|
|
72
|
+
export declare const CreateRouterResponse2ResponsesRequestTtl: {
|
|
73
|
+
readonly Fivem: "5m";
|
|
74
|
+
readonly Oneh: "1h";
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
*
|
|
81
|
+
* - `5m`: 5 minutes
|
|
82
|
+
* - `1h`: 1 hour
|
|
83
|
+
*
|
|
84
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
85
|
+
*/
|
|
86
|
+
export type CreateRouterResponse2ResponsesRequestTtl = ClosedEnum<typeof CreateRouterResponse2ResponsesRequestTtl>;
|
|
87
|
+
/**
|
|
88
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
89
|
+
*/
|
|
90
|
+
export declare const CreateRouterResponse2ResponsesRequestRequestBodyInputType: {
|
|
91
|
+
readonly Ephemeral: "ephemeral";
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
95
|
+
*/
|
|
96
|
+
export type CreateRouterResponse2ResponsesRequestRequestBodyInputType = ClosedEnum<typeof CreateRouterResponse2ResponsesRequestRequestBodyInputType>;
|
|
97
|
+
export type CreateRouterResponse2ResponsesRequestCacheControl = {
|
|
98
|
+
/**
|
|
99
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
*
|
|
103
|
+
* - `5m`: 5 minutes
|
|
104
|
+
* - `1h`: 1 hour
|
|
105
|
+
*
|
|
106
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
107
|
+
*/
|
|
108
|
+
ttl?: CreateRouterResponse2ResponsesRequestTtl | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
111
|
+
*/
|
|
112
|
+
type: CreateRouterResponse2ResponsesRequestRequestBodyInputType;
|
|
113
|
+
};
|
|
7
114
|
/**
|
|
8
115
|
* A file content part. Provide file_id, file_data (base64), or file_url.
|
|
9
116
|
*/
|
|
10
117
|
export type TwoFile = {
|
|
118
|
+
cacheControl?: CreateRouterResponse2ResponsesRequestCacheControl | undefined;
|
|
11
119
|
/**
|
|
12
120
|
* Base64-encoded file content.
|
|
13
121
|
*/
|
|
@@ -30,6 +138,58 @@ export type TwoFile = {
|
|
|
30
138
|
mimeType?: string | undefined;
|
|
31
139
|
type: "input_file";
|
|
32
140
|
};
|
|
141
|
+
/**
|
|
142
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
143
|
+
*
|
|
144
|
+
* @remarks
|
|
145
|
+
*
|
|
146
|
+
* - `5m`: 5 minutes
|
|
147
|
+
* - `1h`: 1 hour
|
|
148
|
+
*
|
|
149
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
150
|
+
*/
|
|
151
|
+
export declare const CreateRouterResponse2ResponsesTtl: {
|
|
152
|
+
readonly Fivem: "5m";
|
|
153
|
+
readonly Oneh: "1h";
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
157
|
+
*
|
|
158
|
+
* @remarks
|
|
159
|
+
*
|
|
160
|
+
* - `5m`: 5 minutes
|
|
161
|
+
* - `1h`: 1 hour
|
|
162
|
+
*
|
|
163
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
164
|
+
*/
|
|
165
|
+
export type CreateRouterResponse2ResponsesTtl = ClosedEnum<typeof CreateRouterResponse2ResponsesTtl>;
|
|
166
|
+
/**
|
|
167
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
168
|
+
*/
|
|
169
|
+
export declare const CreateRouterResponse2ResponsesRequestType: {
|
|
170
|
+
readonly Ephemeral: "ephemeral";
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
174
|
+
*/
|
|
175
|
+
export type CreateRouterResponse2ResponsesRequestType = ClosedEnum<typeof CreateRouterResponse2ResponsesRequestType>;
|
|
176
|
+
export type CreateRouterResponse2ResponsesCacheControl = {
|
|
177
|
+
/**
|
|
178
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
179
|
+
*
|
|
180
|
+
* @remarks
|
|
181
|
+
*
|
|
182
|
+
* - `5m`: 5 minutes
|
|
183
|
+
* - `1h`: 1 hour
|
|
184
|
+
*
|
|
185
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
186
|
+
*/
|
|
187
|
+
ttl?: CreateRouterResponse2ResponsesTtl | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
190
|
+
*/
|
|
191
|
+
type: CreateRouterResponse2ResponsesRequestType;
|
|
192
|
+
};
|
|
33
193
|
/**
|
|
34
194
|
* The detail level for image understanding.
|
|
35
195
|
*/
|
|
@@ -46,6 +206,7 @@ export type Detail = ClosedEnum<typeof Detail>;
|
|
|
46
206
|
* An image content part.
|
|
47
207
|
*/
|
|
48
208
|
export type Image = {
|
|
209
|
+
cacheControl?: CreateRouterResponse2ResponsesCacheControl | undefined;
|
|
49
210
|
/**
|
|
50
211
|
* The detail level for image understanding.
|
|
51
212
|
*/
|
|
@@ -60,10 +221,63 @@ export type Image = {
|
|
|
60
221
|
imageUrl?: string | undefined;
|
|
61
222
|
type: "input_image";
|
|
62
223
|
};
|
|
224
|
+
/**
|
|
225
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
226
|
+
*
|
|
227
|
+
* @remarks
|
|
228
|
+
*
|
|
229
|
+
* - `5m`: 5 minutes
|
|
230
|
+
* - `1h`: 1 hour
|
|
231
|
+
*
|
|
232
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
233
|
+
*/
|
|
234
|
+
export declare const CreateRouterResponse2Ttl: {
|
|
235
|
+
readonly Fivem: "5m";
|
|
236
|
+
readonly Oneh: "1h";
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
240
|
+
*
|
|
241
|
+
* @remarks
|
|
242
|
+
*
|
|
243
|
+
* - `5m`: 5 minutes
|
|
244
|
+
* - `1h`: 1 hour
|
|
245
|
+
*
|
|
246
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
247
|
+
*/
|
|
248
|
+
export type CreateRouterResponse2Ttl = ClosedEnum<typeof CreateRouterResponse2Ttl>;
|
|
249
|
+
/**
|
|
250
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
251
|
+
*/
|
|
252
|
+
export declare const CreateRouterResponse2Type: {
|
|
253
|
+
readonly Ephemeral: "ephemeral";
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
257
|
+
*/
|
|
258
|
+
export type CreateRouterResponse2Type = ClosedEnum<typeof CreateRouterResponse2Type>;
|
|
259
|
+
export type CreateRouterResponse2CacheControl = {
|
|
260
|
+
/**
|
|
261
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
262
|
+
*
|
|
263
|
+
* @remarks
|
|
264
|
+
*
|
|
265
|
+
* - `5m`: 5 minutes
|
|
266
|
+
* - `1h`: 1 hour
|
|
267
|
+
*
|
|
268
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
269
|
+
*/
|
|
270
|
+
ttl?: CreateRouterResponse2Ttl | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
273
|
+
*/
|
|
274
|
+
type: CreateRouterResponse2Type;
|
|
275
|
+
};
|
|
63
276
|
/**
|
|
64
277
|
* A text content part.
|
|
65
278
|
*/
|
|
66
279
|
export type TwoText = {
|
|
280
|
+
cacheControl?: CreateRouterResponse2CacheControl | undefined;
|
|
67
281
|
/**
|
|
68
282
|
* The text content.
|
|
69
283
|
*/
|
|
@@ -169,11 +383,17 @@ export type PlainText = {
|
|
|
169
383
|
* The output format: plain text or structured JSON schema.
|
|
170
384
|
*/
|
|
171
385
|
export type CreateRouterResponseFormat = PlainText | FormatJSONSchema;
|
|
386
|
+
/**
|
|
387
|
+
* Controls the verbosity of the model output.
|
|
388
|
+
*/
|
|
172
389
|
export declare const Verbosity: {
|
|
173
390
|
readonly Low: "low";
|
|
174
391
|
readonly Medium: "medium";
|
|
175
392
|
readonly High: "high";
|
|
176
393
|
};
|
|
394
|
+
/**
|
|
395
|
+
* Controls the verbosity of the model output.
|
|
396
|
+
*/
|
|
177
397
|
export type Verbosity = ClosedEnum<typeof Verbosity>;
|
|
178
398
|
/**
|
|
179
399
|
* Configuration for text output.
|
|
@@ -183,6 +403,9 @@ export type CreateRouterResponseText = {
|
|
|
183
403
|
* The output format: plain text or structured JSON schema.
|
|
184
404
|
*/
|
|
185
405
|
format?: PlainText | FormatJSONSchema | undefined;
|
|
406
|
+
/**
|
|
407
|
+
* Controls the verbosity of the model output.
|
|
408
|
+
*/
|
|
186
409
|
verbosity?: Verbosity | undefined;
|
|
187
410
|
};
|
|
188
411
|
export declare const CreateRouterResponseToolChoiceType: {
|
|
@@ -259,7 +482,7 @@ export type ToolsMCPTool = {
|
|
|
259
482
|
/**
|
|
260
483
|
* The orq.ai tool type.
|
|
261
484
|
*/
|
|
262
|
-
export declare const
|
|
485
|
+
export declare const CreateRouterResponseToolsResponsesType: {
|
|
263
486
|
readonly OrqCurrentDate: "orq:current_date";
|
|
264
487
|
readonly OrqGoogleSearch: "orq:google_search";
|
|
265
488
|
readonly OrqWebScraper: "orq:web_scraper";
|
|
@@ -270,7 +493,7 @@ export declare const CreateRouterResponseToolsType: {
|
|
|
270
493
|
/**
|
|
271
494
|
* The orq.ai tool type.
|
|
272
495
|
*/
|
|
273
|
-
export type
|
|
496
|
+
export type CreateRouterResponseToolsResponsesType = ClosedEnum<typeof CreateRouterResponseToolsResponsesType>;
|
|
274
497
|
/**
|
|
275
498
|
* An orq.ai platform tool reference. For MCP tools, prefer type 'mcp' with 'key' instead of 'orq:mcp' with 'tool_id'.
|
|
276
499
|
*/
|
|
@@ -282,12 +505,65 @@ export type OrqAiTool = {
|
|
|
282
505
|
/**
|
|
283
506
|
* The orq.ai tool type.
|
|
284
507
|
*/
|
|
285
|
-
type:
|
|
508
|
+
type: CreateRouterResponseToolsResponsesType;
|
|
509
|
+
};
|
|
510
|
+
/**
|
|
511
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
512
|
+
*
|
|
513
|
+
* @remarks
|
|
514
|
+
*
|
|
515
|
+
* - `5m`: 5 minutes
|
|
516
|
+
* - `1h`: 1 hour
|
|
517
|
+
*
|
|
518
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
519
|
+
*/
|
|
520
|
+
export declare const ToolsTtl: {
|
|
521
|
+
readonly Fivem: "5m";
|
|
522
|
+
readonly Oneh: "1h";
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
526
|
+
*
|
|
527
|
+
* @remarks
|
|
528
|
+
*
|
|
529
|
+
* - `5m`: 5 minutes
|
|
530
|
+
* - `1h`: 1 hour
|
|
531
|
+
*
|
|
532
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
533
|
+
*/
|
|
534
|
+
export type ToolsTtl = ClosedEnum<typeof ToolsTtl>;
|
|
535
|
+
/**
|
|
536
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
537
|
+
*/
|
|
538
|
+
export declare const ToolsType: {
|
|
539
|
+
readonly Ephemeral: "ephemeral";
|
|
540
|
+
};
|
|
541
|
+
/**
|
|
542
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
543
|
+
*/
|
|
544
|
+
export type ToolsType = ClosedEnum<typeof ToolsType>;
|
|
545
|
+
export type ToolsCacheControl = {
|
|
546
|
+
/**
|
|
547
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
548
|
+
*
|
|
549
|
+
* @remarks
|
|
550
|
+
*
|
|
551
|
+
* - `5m`: 5 minutes
|
|
552
|
+
* - `1h`: 1 hour
|
|
553
|
+
*
|
|
554
|
+
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
555
|
+
*/
|
|
556
|
+
ttl?: ToolsTtl | undefined;
|
|
557
|
+
/**
|
|
558
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
559
|
+
*/
|
|
560
|
+
type: ToolsType;
|
|
286
561
|
};
|
|
287
562
|
/**
|
|
288
563
|
* A function tool the model can call.
|
|
289
564
|
*/
|
|
290
565
|
export type ToolsFunction = {
|
|
566
|
+
cacheControl?: ToolsCacheControl | undefined;
|
|
291
567
|
/**
|
|
292
568
|
* A description of what the function does.
|
|
293
569
|
*/
|
|
@@ -325,6 +601,10 @@ export type CreateRouterResponseTools = ToolsFunction | (OrqAiTool & {
|
|
|
325
601
|
type: "orq:function";
|
|
326
602
|
}) | ToolsMCPTool;
|
|
327
603
|
export type CreateRouterResponseRequestBody = {
|
|
604
|
+
/**
|
|
605
|
+
* Top-level cache control automatically applies a cache_control marker to the last cacheable block in the request.
|
|
606
|
+
*/
|
|
607
|
+
cacheControl?: CreateRouterResponseCacheControl | undefined;
|
|
328
608
|
conversation?: components.ConversationParam | undefined;
|
|
329
609
|
/**
|
|
330
610
|
* Fallback models to try if the primary model fails. Each entry specifies a model in provider/model format.
|
|
@@ -447,58 +727,71 @@ export type CreateRouterResponseRequestBody = {
|
|
|
447
727
|
} | undefined;
|
|
448
728
|
};
|
|
449
729
|
/**
|
|
450
|
-
* The event
|
|
451
|
-
*/
|
|
452
|
-
export declare const CreateRouterResponseType: {
|
|
453
|
-
readonly ResponseQueued: "response.queued";
|
|
454
|
-
readonly ResponseCreated: "response.created";
|
|
455
|
-
readonly ResponseInProgress: "response.in_progress";
|
|
456
|
-
readonly ResponseCompleted: "response.completed";
|
|
457
|
-
readonly ResponseFailed: "response.failed";
|
|
458
|
-
readonly ResponseIncomplete: "response.incomplete";
|
|
459
|
-
readonly ResponseOutputItemAdded: "response.output_item.added";
|
|
460
|
-
readonly ResponseOutputItemDone: "response.output_item.done";
|
|
461
|
-
readonly ResponseContentPartAdded: "response.content_part.added";
|
|
462
|
-
readonly ResponseContentPartDone: "response.content_part.done";
|
|
463
|
-
readonly ResponseOutputTextDelta: "response.output_text.delta";
|
|
464
|
-
readonly ResponseOutputTextDone: "response.output_text.done";
|
|
465
|
-
readonly ResponseFunctionCallArgumentsDelta: "response.function_call_arguments.delta";
|
|
466
|
-
readonly ResponseFunctionCallArgumentsDone: "response.function_call_arguments.done";
|
|
467
|
-
readonly ResponseMcpCallInProgress: "response.mcp_call.in_progress";
|
|
468
|
-
readonly ResponseMcpCallCompleted: "response.mcp_call.completed";
|
|
469
|
-
readonly ResponseMcpCallFailed: "response.mcp_call.failed";
|
|
470
|
-
readonly ResponseMcpCallArgumentsDelta: "response.mcp_call_arguments.delta";
|
|
471
|
-
readonly ResponseMcpCallArgumentsDone: "response.mcp_call_arguments.done";
|
|
472
|
-
readonly ResponseReasoningDelta: "response.reasoning.delta";
|
|
473
|
-
readonly ResponseReasoningDone: "response.reasoning.done";
|
|
474
|
-
readonly Error: "error";
|
|
475
|
-
};
|
|
476
|
-
/**
|
|
477
|
-
* The event type.
|
|
730
|
+
* A server-sent event in the response stream. The frame's `event` field selects the payload shape carried in `data`.
|
|
478
731
|
*/
|
|
479
|
-
export type
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
732
|
+
export type CreateRouterResponseResponsesResponseBody = components.ResponseErrorStreamEvent | (components.ResponseHostedToolCallStreamEvent & {
|
|
733
|
+
event: "response.code_interpreter_call.completed";
|
|
734
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
735
|
+
event: "response.code_interpreter_call.in_progress";
|
|
736
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
737
|
+
event: "response.code_interpreter_call.interpreting";
|
|
738
|
+
}) | components.ResponseCodeInterpreterCodeDeltaStreamEvent | components.ResponseCodeInterpreterCodeDoneStreamEvent | (components.ResponseLifecycleStreamEvent & {
|
|
739
|
+
event: "response.completed";
|
|
740
|
+
}) | (components.ResponseContentPartStreamEvent & {
|
|
741
|
+
event: "response.content_part.added";
|
|
742
|
+
}) | (components.ResponseContentPartStreamEvent & {
|
|
743
|
+
event: "response.content_part.done";
|
|
744
|
+
}) | (components.ResponseLifecycleStreamEvent & {
|
|
745
|
+
event: "response.created";
|
|
746
|
+
}) | (components.ResponseLifecycleStreamEvent & {
|
|
747
|
+
event: "response.failed";
|
|
748
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
749
|
+
event: "response.file_search_call.completed";
|
|
750
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
751
|
+
event: "response.file_search_call.in_progress";
|
|
752
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
753
|
+
event: "response.file_search_call.searching";
|
|
754
|
+
}) | components.ResponseFunctionCallArgumentsDeltaStreamEvent | components.ResponseFunctionCallArgumentsDoneStreamEvent | (components.ResponseHostedToolCallStreamEvent & {
|
|
755
|
+
event: "response.image_generation_call.completed";
|
|
756
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
757
|
+
event: "response.image_generation_call.generating";
|
|
758
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
759
|
+
event: "response.image_generation_call.in_progress";
|
|
760
|
+
}) | components.ResponseImageGenerationPartialImageStreamEvent | (components.ResponseLifecycleStreamEvent & {
|
|
761
|
+
event: "response.in_progress";
|
|
762
|
+
}) | (components.ResponseLifecycleStreamEvent & {
|
|
763
|
+
event: "response.incomplete";
|
|
764
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
765
|
+
event: "response.mcp_call.completed";
|
|
766
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
767
|
+
event: "response.mcp_call.failed";
|
|
768
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
769
|
+
event: "response.mcp_call.in_progress";
|
|
770
|
+
}) | components.ResponseMcpCallArgumentsDeltaStreamEvent | components.ResponseMcpCallArgumentsDoneStreamEvent | (components.ResponseOutputItemStreamEvent & {
|
|
771
|
+
event: "response.output_item.added";
|
|
772
|
+
}) | (components.ResponseOutputItemStreamEvent & {
|
|
773
|
+
event: "response.output_item.done";
|
|
774
|
+
}) | components.ResponseOutputTextAnnotationAddedStreamEvent | components.ResponseOutputTextDeltaStreamEvent | components.ResponseOutputTextDoneStreamEvent | (components.ResponseLifecycleStreamEvent & {
|
|
775
|
+
event: "response.queued";
|
|
776
|
+
}) | (components.ResponseReasoningDeltaStreamEvent & {
|
|
777
|
+
event: "response.reasoning.delta";
|
|
778
|
+
}) | (components.ResponseReasoningDoneStreamEvent & {
|
|
779
|
+
event: "response.reasoning.done";
|
|
780
|
+
}) | (components.ResponseReasoningSummaryPartStreamEvent & {
|
|
781
|
+
event: "response.reasoning_summary_part.added";
|
|
782
|
+
}) | (components.ResponseReasoningSummaryPartStreamEvent & {
|
|
783
|
+
event: "response.reasoning_summary_part.done";
|
|
784
|
+
}) | components.ResponseReasoningSummaryTextDeltaStreamEvent | components.ResponseReasoningSummaryTextDoneStreamEvent | (components.ResponseReasoningDeltaStreamEvent & {
|
|
785
|
+
event: "response.reasoning_text.delta";
|
|
786
|
+
}) | (components.ResponseReasoningDoneStreamEvent & {
|
|
787
|
+
event: "response.reasoning_text.done";
|
|
788
|
+
}) | components.ResponseRefusalDeltaStreamEvent | components.ResponseRefusalDoneStreamEvent | (components.ResponseHostedToolCallStreamEvent & {
|
|
789
|
+
event: "response.web_search_call.completed";
|
|
790
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
791
|
+
event: "response.web_search_call.in_progress";
|
|
792
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
793
|
+
event: "response.web_search_call.searching";
|
|
794
|
+
});
|
|
502
795
|
export declare const ServiceTier: {
|
|
503
796
|
readonly Auto: "auto";
|
|
504
797
|
readonly Default: "default";
|
|
@@ -587,9 +880,96 @@ export type CreateRouterResponseResponseBody = {
|
|
|
587
880
|
[k: string]: any;
|
|
588
881
|
} | undefined;
|
|
589
882
|
};
|
|
590
|
-
export type CreateRouterResponseResponse = CreateRouterResponseResponseBody | EventStream<
|
|
883
|
+
export type CreateRouterResponseResponse = CreateRouterResponseResponseBody | EventStream<components.ResponseErrorStreamEvent | (components.ResponseHostedToolCallStreamEvent & {
|
|
884
|
+
event: "response.code_interpreter_call.completed";
|
|
885
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
886
|
+
event: "response.code_interpreter_call.in_progress";
|
|
887
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
888
|
+
event: "response.code_interpreter_call.interpreting";
|
|
889
|
+
}) | components.ResponseCodeInterpreterCodeDeltaStreamEvent | components.ResponseCodeInterpreterCodeDoneStreamEvent | (components.ResponseLifecycleStreamEvent & {
|
|
890
|
+
event: "response.completed";
|
|
891
|
+
}) | (components.ResponseContentPartStreamEvent & {
|
|
892
|
+
event: "response.content_part.added";
|
|
893
|
+
}) | (components.ResponseContentPartStreamEvent & {
|
|
894
|
+
event: "response.content_part.done";
|
|
895
|
+
}) | (components.ResponseLifecycleStreamEvent & {
|
|
896
|
+
event: "response.created";
|
|
897
|
+
}) | (components.ResponseLifecycleStreamEvent & {
|
|
898
|
+
event: "response.failed";
|
|
899
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
900
|
+
event: "response.file_search_call.completed";
|
|
901
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
902
|
+
event: "response.file_search_call.in_progress";
|
|
903
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
904
|
+
event: "response.file_search_call.searching";
|
|
905
|
+
}) | components.ResponseFunctionCallArgumentsDeltaStreamEvent | components.ResponseFunctionCallArgumentsDoneStreamEvent | (components.ResponseHostedToolCallStreamEvent & {
|
|
906
|
+
event: "response.image_generation_call.completed";
|
|
907
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
908
|
+
event: "response.image_generation_call.generating";
|
|
909
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
910
|
+
event: "response.image_generation_call.in_progress";
|
|
911
|
+
}) | components.ResponseImageGenerationPartialImageStreamEvent | (components.ResponseLifecycleStreamEvent & {
|
|
912
|
+
event: "response.in_progress";
|
|
913
|
+
}) | (components.ResponseLifecycleStreamEvent & {
|
|
914
|
+
event: "response.incomplete";
|
|
915
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
916
|
+
event: "response.mcp_call.completed";
|
|
917
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
918
|
+
event: "response.mcp_call.failed";
|
|
919
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
920
|
+
event: "response.mcp_call.in_progress";
|
|
921
|
+
}) | components.ResponseMcpCallArgumentsDeltaStreamEvent | components.ResponseMcpCallArgumentsDoneStreamEvent | (components.ResponseOutputItemStreamEvent & {
|
|
922
|
+
event: "response.output_item.added";
|
|
923
|
+
}) | (components.ResponseOutputItemStreamEvent & {
|
|
924
|
+
event: "response.output_item.done";
|
|
925
|
+
}) | components.ResponseOutputTextAnnotationAddedStreamEvent | components.ResponseOutputTextDeltaStreamEvent | components.ResponseOutputTextDoneStreamEvent | (components.ResponseLifecycleStreamEvent & {
|
|
926
|
+
event: "response.queued";
|
|
927
|
+
}) | (components.ResponseReasoningDeltaStreamEvent & {
|
|
928
|
+
event: "response.reasoning.delta";
|
|
929
|
+
}) | (components.ResponseReasoningDoneStreamEvent & {
|
|
930
|
+
event: "response.reasoning.done";
|
|
931
|
+
}) | (components.ResponseReasoningSummaryPartStreamEvent & {
|
|
932
|
+
event: "response.reasoning_summary_part.added";
|
|
933
|
+
}) | (components.ResponseReasoningSummaryPartStreamEvent & {
|
|
934
|
+
event: "response.reasoning_summary_part.done";
|
|
935
|
+
}) | components.ResponseReasoningSummaryTextDeltaStreamEvent | components.ResponseReasoningSummaryTextDoneStreamEvent | (components.ResponseReasoningDeltaStreamEvent & {
|
|
936
|
+
event: "response.reasoning_text.delta";
|
|
937
|
+
}) | (components.ResponseReasoningDoneStreamEvent & {
|
|
938
|
+
event: "response.reasoning_text.done";
|
|
939
|
+
}) | components.ResponseRefusalDeltaStreamEvent | components.ResponseRefusalDoneStreamEvent | (components.ResponseHostedToolCallStreamEvent & {
|
|
940
|
+
event: "response.web_search_call.completed";
|
|
941
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
942
|
+
event: "response.web_search_call.in_progress";
|
|
943
|
+
}) | (components.ResponseHostedToolCallStreamEvent & {
|
|
944
|
+
event: "response.web_search_call.searching";
|
|
945
|
+
})>;
|
|
946
|
+
/** @internal */
|
|
947
|
+
export declare const CreateRouterResponseTtl$outboundSchema: z.ZodNativeEnum<typeof CreateRouterResponseTtl>;
|
|
948
|
+
/** @internal */
|
|
949
|
+
export declare const CreateRouterResponseType$outboundSchema: z.ZodNativeEnum<typeof CreateRouterResponseType>;
|
|
950
|
+
/** @internal */
|
|
951
|
+
export type CreateRouterResponseCacheControl$Outbound = {
|
|
952
|
+
ttl: string;
|
|
953
|
+
type: string;
|
|
954
|
+
};
|
|
955
|
+
/** @internal */
|
|
956
|
+
export declare const CreateRouterResponseCacheControl$outboundSchema: z.ZodType<CreateRouterResponseCacheControl$Outbound, z.ZodTypeDef, CreateRouterResponseCacheControl>;
|
|
957
|
+
export declare function createRouterResponseCacheControlToJSON(createRouterResponseCacheControl: CreateRouterResponseCacheControl): string;
|
|
958
|
+
/** @internal */
|
|
959
|
+
export declare const CreateRouterResponse2ResponsesRequestTtl$outboundSchema: z.ZodNativeEnum<typeof CreateRouterResponse2ResponsesRequestTtl>;
|
|
960
|
+
/** @internal */
|
|
961
|
+
export declare const CreateRouterResponse2ResponsesRequestRequestBodyInputType$outboundSchema: z.ZodNativeEnum<typeof CreateRouterResponse2ResponsesRequestRequestBodyInputType>;
|
|
962
|
+
/** @internal */
|
|
963
|
+
export type CreateRouterResponse2ResponsesRequestCacheControl$Outbound = {
|
|
964
|
+
ttl: string;
|
|
965
|
+
type: string;
|
|
966
|
+
};
|
|
967
|
+
/** @internal */
|
|
968
|
+
export declare const CreateRouterResponse2ResponsesRequestCacheControl$outboundSchema: z.ZodType<CreateRouterResponse2ResponsesRequestCacheControl$Outbound, z.ZodTypeDef, CreateRouterResponse2ResponsesRequestCacheControl>;
|
|
969
|
+
export declare function createRouterResponse2ResponsesRequestCacheControlToJSON(createRouterResponse2ResponsesRequestCacheControl: CreateRouterResponse2ResponsesRequestCacheControl): string;
|
|
591
970
|
/** @internal */
|
|
592
971
|
export type TwoFile$Outbound = {
|
|
972
|
+
cache_control?: CreateRouterResponse2ResponsesRequestCacheControl$Outbound | undefined;
|
|
593
973
|
file_data?: string | undefined;
|
|
594
974
|
file_id?: string | undefined;
|
|
595
975
|
file_url?: string | undefined;
|
|
@@ -601,9 +981,22 @@ export type TwoFile$Outbound = {
|
|
|
601
981
|
export declare const TwoFile$outboundSchema: z.ZodType<TwoFile$Outbound, z.ZodTypeDef, TwoFile>;
|
|
602
982
|
export declare function twoFileToJSON(twoFile: TwoFile): string;
|
|
603
983
|
/** @internal */
|
|
984
|
+
export declare const CreateRouterResponse2ResponsesTtl$outboundSchema: z.ZodNativeEnum<typeof CreateRouterResponse2ResponsesTtl>;
|
|
985
|
+
/** @internal */
|
|
986
|
+
export declare const CreateRouterResponse2ResponsesRequestType$outboundSchema: z.ZodNativeEnum<typeof CreateRouterResponse2ResponsesRequestType>;
|
|
987
|
+
/** @internal */
|
|
988
|
+
export type CreateRouterResponse2ResponsesCacheControl$Outbound = {
|
|
989
|
+
ttl: string;
|
|
990
|
+
type: string;
|
|
991
|
+
};
|
|
992
|
+
/** @internal */
|
|
993
|
+
export declare const CreateRouterResponse2ResponsesCacheControl$outboundSchema: z.ZodType<CreateRouterResponse2ResponsesCacheControl$Outbound, z.ZodTypeDef, CreateRouterResponse2ResponsesCacheControl>;
|
|
994
|
+
export declare function createRouterResponse2ResponsesCacheControlToJSON(createRouterResponse2ResponsesCacheControl: CreateRouterResponse2ResponsesCacheControl): string;
|
|
995
|
+
/** @internal */
|
|
604
996
|
export declare const Detail$outboundSchema: z.ZodNativeEnum<typeof Detail>;
|
|
605
997
|
/** @internal */
|
|
606
998
|
export type Image$Outbound = {
|
|
999
|
+
cache_control?: CreateRouterResponse2ResponsesCacheControl$Outbound | undefined;
|
|
607
1000
|
detail?: string | undefined;
|
|
608
1001
|
file_id?: string | undefined;
|
|
609
1002
|
image_url?: string | undefined;
|
|
@@ -613,7 +1006,20 @@ export type Image$Outbound = {
|
|
|
613
1006
|
export declare const Image$outboundSchema: z.ZodType<Image$Outbound, z.ZodTypeDef, Image>;
|
|
614
1007
|
export declare function imageToJSON(image: Image): string;
|
|
615
1008
|
/** @internal */
|
|
1009
|
+
export declare const CreateRouterResponse2Ttl$outboundSchema: z.ZodNativeEnum<typeof CreateRouterResponse2Ttl>;
|
|
1010
|
+
/** @internal */
|
|
1011
|
+
export declare const CreateRouterResponse2Type$outboundSchema: z.ZodNativeEnum<typeof CreateRouterResponse2Type>;
|
|
1012
|
+
/** @internal */
|
|
1013
|
+
export type CreateRouterResponse2CacheControl$Outbound = {
|
|
1014
|
+
ttl: string;
|
|
1015
|
+
type: string;
|
|
1016
|
+
};
|
|
1017
|
+
/** @internal */
|
|
1018
|
+
export declare const CreateRouterResponse2CacheControl$outboundSchema: z.ZodType<CreateRouterResponse2CacheControl$Outbound, z.ZodTypeDef, CreateRouterResponse2CacheControl>;
|
|
1019
|
+
export declare function createRouterResponse2CacheControlToJSON(createRouterResponse2CacheControl: CreateRouterResponse2CacheControl): string;
|
|
1020
|
+
/** @internal */
|
|
616
1021
|
export type TwoText$Outbound = {
|
|
1022
|
+
cache_control?: CreateRouterResponse2CacheControl$Outbound | undefined;
|
|
617
1023
|
text: string;
|
|
618
1024
|
type: "input_text";
|
|
619
1025
|
};
|
|
@@ -731,7 +1137,7 @@ export type ToolsMCPTool$Outbound = {
|
|
|
731
1137
|
export declare const ToolsMCPTool$outboundSchema: z.ZodType<ToolsMCPTool$Outbound, z.ZodTypeDef, ToolsMCPTool>;
|
|
732
1138
|
export declare function toolsMCPToolToJSON(toolsMCPTool: ToolsMCPTool): string;
|
|
733
1139
|
/** @internal */
|
|
734
|
-
export declare const
|
|
1140
|
+
export declare const CreateRouterResponseToolsResponsesType$outboundSchema: z.ZodNativeEnum<typeof CreateRouterResponseToolsResponsesType>;
|
|
735
1141
|
/** @internal */
|
|
736
1142
|
export type OrqAiTool$Outbound = {
|
|
737
1143
|
tool_id?: string | undefined;
|
|
@@ -741,7 +1147,20 @@ export type OrqAiTool$Outbound = {
|
|
|
741
1147
|
export declare const OrqAiTool$outboundSchema: z.ZodType<OrqAiTool$Outbound, z.ZodTypeDef, OrqAiTool>;
|
|
742
1148
|
export declare function orqAiToolToJSON(orqAiTool: OrqAiTool): string;
|
|
743
1149
|
/** @internal */
|
|
1150
|
+
export declare const ToolsTtl$outboundSchema: z.ZodNativeEnum<typeof ToolsTtl>;
|
|
1151
|
+
/** @internal */
|
|
1152
|
+
export declare const ToolsType$outboundSchema: z.ZodNativeEnum<typeof ToolsType>;
|
|
1153
|
+
/** @internal */
|
|
1154
|
+
export type ToolsCacheControl$Outbound = {
|
|
1155
|
+
ttl: string;
|
|
1156
|
+
type: string;
|
|
1157
|
+
};
|
|
1158
|
+
/** @internal */
|
|
1159
|
+
export declare const ToolsCacheControl$outboundSchema: z.ZodType<ToolsCacheControl$Outbound, z.ZodTypeDef, ToolsCacheControl>;
|
|
1160
|
+
export declare function toolsCacheControlToJSON(toolsCacheControl: ToolsCacheControl): string;
|
|
1161
|
+
/** @internal */
|
|
744
1162
|
export type ToolsFunction$Outbound = {
|
|
1163
|
+
cache_control?: ToolsCacheControl$Outbound | undefined;
|
|
745
1164
|
description?: string | undefined;
|
|
746
1165
|
name: string;
|
|
747
1166
|
parameters?: {
|
|
@@ -772,6 +1191,7 @@ export declare const CreateRouterResponseTools$outboundSchema: z.ZodType<CreateR
|
|
|
772
1191
|
export declare function createRouterResponseToolsToJSON(createRouterResponseTools: CreateRouterResponseTools): string;
|
|
773
1192
|
/** @internal */
|
|
774
1193
|
export type CreateRouterResponseRequestBody$Outbound = {
|
|
1194
|
+
cache_control?: CreateRouterResponseCacheControl$Outbound | undefined;
|
|
775
1195
|
conversation?: components.ConversationParam$Outbound | undefined;
|
|
776
1196
|
fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
|
|
777
1197
|
frequency_penalty?: number | undefined;
|
|
@@ -825,11 +1245,6 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
825
1245
|
export declare const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<CreateRouterResponseRequestBody$Outbound, z.ZodTypeDef, CreateRouterResponseRequestBody>;
|
|
826
1246
|
export declare function createRouterResponseRequestBodyToJSON(createRouterResponseRequestBody: CreateRouterResponseRequestBody): string;
|
|
827
1247
|
/** @internal */
|
|
828
|
-
export declare const CreateRouterResponseType$inboundSchema: z.ZodNativeEnum<typeof CreateRouterResponseType>;
|
|
829
|
-
/** @internal */
|
|
830
|
-
export declare const CreateRouterResponseData$inboundSchema: z.ZodType<CreateRouterResponseData, z.ZodTypeDef, unknown>;
|
|
831
|
-
export declare function createRouterResponseDataFromJSON(jsonString: string): SafeParseResult<CreateRouterResponseData, SDKValidationError>;
|
|
832
|
-
/** @internal */
|
|
833
1248
|
export declare const CreateRouterResponseResponsesResponseBody$inboundSchema: z.ZodType<CreateRouterResponseResponsesResponseBody, z.ZodTypeDef, unknown>;
|
|
834
1249
|
export declare function createRouterResponseResponsesResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateRouterResponseResponsesResponseBody, SDKValidationError>;
|
|
835
1250
|
/** @internal */
|