@orq-ai/node 4.18.0-rc.2 → 4.18.0-rc.4
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/budgetscope.d.ts +2 -2
- package/models/components/budgetscoperestresponse.d.ts +2 -2
- package/models/components/budgetusage.d.ts +1 -4
- package/models/components/budgetusage.d.ts.map +1 -1
- package/models/components/budgetusage.js.map +1 -1
- package/models/components/classifypromptcacheoptions.d.ts +46 -0
- package/models/components/classifypromptcacheoptions.d.ts.map +1 -0
- package/models/components/classifypromptcacheoptions.js +67 -0
- package/models/components/classifypromptcacheoptions.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -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/openaipromptcacheoptions.d.ts +5 -5
- package/models/components/openaipromptcacheoptions.d.ts.map +1 -1
- package/models/components/openaipromptcacheoptions.js +6 -6
- package/models/components/openaipromptcacheoptions.js.map +1 -1
- package/models/components/providerbudgetscope.d.ts +2 -2
- package/models/components/querylogsresponse.d.ts +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/spansummary.d.ts +7 -5
- package/models/components/spansummary.d.ts.map +1 -1
- package/models/components/spansummary.js.map +1 -1
- package/models/components/thinkingconfigadaptiveschema.d.ts +22 -0
- package/models/components/thinkingconfigadaptiveschema.d.ts.map +1 -1
- package/models/components/thinkingconfigadaptiveschema.js +15 -1
- package/models/components/thinkingconfigadaptiveschema.js.map +1 -1
- package/models/components/thinkingconfigbetweentoolsschema.d.ts +47 -0
- package/models/components/thinkingconfigbetweentoolsschema.d.ts.map +1 -0
- package/models/components/thinkingconfigbetweentoolsschema.js +84 -0
- package/models/components/thinkingconfigbetweentoolsschema.js.map +1 -0
- package/models/components/thinkingconfigenabledschema.d.ts +21 -0
- package/models/components/thinkingconfigenabledschema.d.ts.map +1 -1
- package/models/components/thinkingconfigenabledschema.js +16 -1
- package/models/components/thinkingconfigenabledschema.js.map +1 -1
- package/models/components/thinkingparam.d.ts +4 -4
- package/models/components/thinkingparam.d.ts.map +1 -1
- package/models/components/thinkingparam.js +4 -5
- package/models/components/thinkingparam.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +12 -12
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +8 -0
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +4 -4
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +2 -0
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createclassify.d.ts +18 -11
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +5 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createcompletion.d.ts +4 -4
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -0
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createdecisions.d.ts +18 -11
- package/models/operations/createdecisions.d.ts.map +1 -1
- package/models/operations/createdecisions.js +5 -0
- package/models/operations/createdecisions.js.map +1 -1
- package/models/operations/createprompt.d.ts +6 -6
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +4 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getallprompts.d.ts +2 -2
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +2 -2
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +2 -2
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -0
- 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 +4 -4
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +4 -0
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/listpromptversions.d.ts +2 -2
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +4 -4
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +4 -0
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.d.ts +8 -8
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +5 -1
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +8 -8
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +5 -1
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +12 -12
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +8 -0
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updateprompt.d.ts +6 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +4 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/src/lib/config.ts +2 -2
- package/src/models/components/budgetscope.ts +2 -2
- package/src/models/components/budgetscoperestresponse.ts +2 -2
- package/src/models/components/budgetusage.ts +1 -4
- package/src/models/components/classifypromptcacheoptions.ts +76 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/modelmetadata.ts +6 -0
- package/src/models/components/openaipromptcacheoptions.ts +13 -8
- package/src/models/components/providerbudgetscope.ts +2 -2
- package/src/models/components/querylogsresponse.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/spansummary.ts +7 -5
- package/src/models/components/thinkingconfigadaptiveschema.ts +32 -0
- package/src/models/components/thinkingconfigbetweentoolsschema.ts +104 -0
- package/src/models/components/thinkingconfigenabledschema.ts +27 -0
- package/src/models/components/thinkingparam.ts +7 -6
- package/src/models/operations/createagentrequest.ts +26 -6
- package/src/models/operations/createchatcompletion.ts +8 -2
- package/src/models/operations/createclassify.ts +25 -11
- package/src/models/operations/createcompletion.ts +8 -2
- package/src/models/operations/createdecisions.ts +25 -11
- package/src/models/operations/createprompt.ts +13 -3
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getallprompts.ts +5 -1
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +5 -1
- package/src/models/operations/getpromptversion.ts +5 -1
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +10 -2
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/listpromptversions.ts +5 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +10 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +17 -5
- package/src/models/operations/streamrunagent.ts +17 -5
- package/src/models/operations/updateagent.ts +26 -6
- package/src/models/operations/updateprompt.ts +13 -3
- package/src/models/operations/updatetool.ts +4 -4
|
@@ -10,7 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
13
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
14
14
|
*/
|
|
15
15
|
export type CreateClassifyQuestionsRouterClassifyInstructions = string | {
|
|
16
16
|
[k: string]: any;
|
|
@@ -21,14 +21,14 @@ export type CreateClassifyQuestionsRouterClassifyInstructions = string | {
|
|
|
21
21
|
*/
|
|
22
22
|
export type BoxQuestion = {
|
|
23
23
|
/**
|
|
24
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
24
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
25
25
|
*/
|
|
26
26
|
instructions: string | { [k: string]: any } | Array<any>;
|
|
27
27
|
type: "box";
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
31
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
32
32
|
*/
|
|
33
33
|
export type CreateClassifyQuestionsInstructions =
|
|
34
34
|
| string
|
|
@@ -44,7 +44,7 @@ export type ScoreQuestion = {
|
|
|
44
44
|
*/
|
|
45
45
|
criteria: Array<any>;
|
|
46
46
|
/**
|
|
47
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
47
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
48
48
|
*/
|
|
49
49
|
instructions: string | { [k: string]: any } | Array<any>;
|
|
50
50
|
type: "score";
|
|
@@ -56,7 +56,7 @@ export type ScoreQuestion = {
|
|
|
56
56
|
export type QuestionsCriteria = string | { [k: string]: any } | Array<any>;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
59
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
60
60
|
*/
|
|
61
61
|
export type QuestionsInstructions = string | { [k: string]: any } | Array<any>;
|
|
62
62
|
|
|
@@ -69,7 +69,7 @@ export type ChoiceQuestion = {
|
|
|
69
69
|
*/
|
|
70
70
|
criteria: { [k: string]: string | { [k: string]: any } | Array<any> | null };
|
|
71
71
|
/**
|
|
72
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
72
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
73
73
|
*/
|
|
74
74
|
instructions: string | { [k: string]: any } | Array<any>;
|
|
75
75
|
type: "choice";
|
|
@@ -100,7 +100,7 @@ export type Criteria = {
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
103
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
104
104
|
*/
|
|
105
105
|
export type Instructions = string | { [k: string]: any } | Array<any>;
|
|
106
106
|
|
|
@@ -113,7 +113,7 @@ export type NoulQuestion = {
|
|
|
113
113
|
*/
|
|
114
114
|
criteria?: Criteria | undefined;
|
|
115
115
|
/**
|
|
116
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
116
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
117
117
|
*/
|
|
118
118
|
instructions: string | { [k: string]: any } | Array<any>;
|
|
119
119
|
type: "noul";
|
|
@@ -126,7 +126,7 @@ export type Questions =
|
|
|
126
126
|
| BoxQuestion;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string.
|
|
129
|
+
* The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. Native OpenAI accepts messages and function/custom-tool history. User messages support input_text, input_image and input_json; images can use inline base64 data URLs or public HTTP(S) URLs. At most 128 images across state and question instructions. Shared text/image parts support explicit prompt_cache_breakpoint markers. File IDs, audio, item references and bare content parts are unsupported. Other objects and arrays are serialized as text.
|
|
130
130
|
*/
|
|
131
131
|
export type State = string | { [k: string]: any } | Array<any>;
|
|
132
132
|
|
|
@@ -158,14 +158,19 @@ export type CreateClassifyRequestBody = {
|
|
|
158
158
|
*/
|
|
159
159
|
name?: string | undefined;
|
|
160
160
|
/**
|
|
161
|
-
*
|
|
161
|
+
* Native OpenAI only. Partitions reuse of shared input across requests.
|
|
162
|
+
*/
|
|
163
|
+
promptCacheKey?: string | undefined;
|
|
164
|
+
promptCacheOptions?: components.ClassifyPromptCacheOptions | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* Typed questions keyed by an identifier of your choice. Each answer is returned under the same key. Native OpenAI accepts 1 to 400 questions.
|
|
162
167
|
*/
|
|
163
168
|
questions: {
|
|
164
169
|
[k: string]: NoulQuestion | ChoiceQuestion | ScoreQuestion | BoxQuestion;
|
|
165
170
|
};
|
|
166
171
|
retry?: components.ClassifyRetryConfig | undefined;
|
|
167
172
|
/**
|
|
168
|
-
* The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string.
|
|
173
|
+
* The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. Native OpenAI accepts messages and function/custom-tool history. User messages support input_text, input_image and input_json; images can use inline base64 data URLs or public HTTP(S) URLs. At most 128 images across state and question instructions. Shared text/image parts support explicit prompt_cache_breakpoint markers. File IDs, audio, item references and bare content parts are unsupported. Other objects and arrays are serialized as text.
|
|
169
174
|
*/
|
|
170
175
|
state: string | { [k: string]: any } | Array<any>;
|
|
171
176
|
timeout?: components.ClassifyTimeoutConfig | undefined;
|
|
@@ -470,6 +475,10 @@ export type CreateClassifyRequestBody$Outbound = {
|
|
|
470
475
|
metadata?: { [k: string]: string } | undefined;
|
|
471
476
|
model: string;
|
|
472
477
|
name?: string | undefined;
|
|
478
|
+
prompt_cache_key?: string | undefined;
|
|
479
|
+
prompt_cache_options?:
|
|
480
|
+
| components.ClassifyPromptCacheOptions$Outbound
|
|
481
|
+
| undefined;
|
|
473
482
|
questions: {
|
|
474
483
|
[k: string]:
|
|
475
484
|
| NoulQuestion$Outbound
|
|
@@ -497,6 +506,9 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
|
|
|
497
506
|
metadata: z.record(z.string()).optional(),
|
|
498
507
|
model: z.string(),
|
|
499
508
|
name: z.string().optional(),
|
|
509
|
+
promptCacheKey: z.string().optional(),
|
|
510
|
+
promptCacheOptions: components.ClassifyPromptCacheOptions$outboundSchema
|
|
511
|
+
.optional(),
|
|
500
512
|
questions: z.record(
|
|
501
513
|
z.union([
|
|
502
514
|
z.lazy(() => NoulQuestion$outboundSchema),
|
|
@@ -511,6 +523,8 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
|
|
|
511
523
|
}).transform((v) => {
|
|
512
524
|
return remap$(v, {
|
|
513
525
|
fallbackOnCodes: "fallback_on_codes",
|
|
526
|
+
promptCacheKey: "prompt_cache_key",
|
|
527
|
+
promptCacheOptions: "prompt_cache_options",
|
|
514
528
|
});
|
|
515
529
|
});
|
|
516
530
|
|
|
@@ -97,7 +97,8 @@ export type CreateCompletionTimeout = {
|
|
|
97
97
|
export type CreateCompletionThinking =
|
|
98
98
|
| components.ThinkingConfigDisabledSchema
|
|
99
99
|
| components.ThinkingConfigEnabledSchema
|
|
100
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
100
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
101
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
101
102
|
|
|
102
103
|
/**
|
|
103
104
|
* Retry configuration for the request
|
|
@@ -766,6 +767,7 @@ export type CreateCompletionRequestBody = {
|
|
|
766
767
|
| components.ThinkingConfigDisabledSchema
|
|
767
768
|
| components.ThinkingConfigEnabledSchema
|
|
768
769
|
| components.ThinkingConfigAdaptiveSchema
|
|
770
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
769
771
|
| null
|
|
770
772
|
| undefined;
|
|
771
773
|
/**
|
|
@@ -1217,7 +1219,8 @@ export function createCompletionTimeoutToJSON(
|
|
|
1217
1219
|
export type CreateCompletionThinking$Outbound =
|
|
1218
1220
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
1219
1221
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
1220
|
-
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
1222
|
+
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
1223
|
+
| components.ThinkingConfigBetweenToolsSchema$Outbound;
|
|
1221
1224
|
|
|
1222
1225
|
/** @internal */
|
|
1223
1226
|
export const CreateCompletionThinking$outboundSchema: z.ZodType<
|
|
@@ -1228,6 +1231,7 @@ export const CreateCompletionThinking$outboundSchema: z.ZodType<
|
|
|
1228
1231
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
1229
1232
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
1230
1233
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
1234
|
+
components.ThinkingConfigBetweenToolsSchema$outboundSchema,
|
|
1231
1235
|
]);
|
|
1232
1236
|
|
|
1233
1237
|
export function createCompletionThinkingToJSON(
|
|
@@ -2887,6 +2891,7 @@ export type CreateCompletionRequestBody$Outbound = {
|
|
|
2887
2891
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2888
2892
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
2889
2893
|
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
2894
|
+
| components.ThinkingConfigBetweenToolsSchema$Outbound
|
|
2890
2895
|
| null
|
|
2891
2896
|
| undefined;
|
|
2892
2897
|
plugins?: Array<components.PIIRedactionPlugin$Outbound> | undefined;
|
|
@@ -2926,6 +2931,7 @@ export const CreateCompletionRequestBody$outboundSchema: z.ZodType<
|
|
|
2926
2931
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2927
2932
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2928
2933
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
2934
|
+
components.ThinkingConfigBetweenToolsSchema$outboundSchema,
|
|
2929
2935
|
]),
|
|
2930
2936
|
).optional(),
|
|
2931
2937
|
plugins: z.array(components.PIIRedactionPlugin$outboundSchema).optional(),
|
|
@@ -10,7 +10,7 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
13
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
14
14
|
*/
|
|
15
15
|
export type CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions =
|
|
16
16
|
| string
|
|
@@ -22,14 +22,14 @@ export type CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstruction
|
|
|
22
22
|
*/
|
|
23
23
|
export type QuestionsBoxQuestion = {
|
|
24
24
|
/**
|
|
25
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
25
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
26
26
|
*/
|
|
27
27
|
instructions: string | { [k: string]: any } | Array<any>;
|
|
28
28
|
type: "box";
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
32
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
33
33
|
*/
|
|
34
34
|
export type CreateDecisionsQuestionsRouterDecisionsRequestInstructions =
|
|
35
35
|
| string
|
|
@@ -45,7 +45,7 @@ export type QuestionsScoreQuestion = {
|
|
|
45
45
|
*/
|
|
46
46
|
criteria: Array<any>;
|
|
47
47
|
/**
|
|
48
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
48
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
49
49
|
*/
|
|
50
50
|
instructions: string | { [k: string]: any } | Array<any>;
|
|
51
51
|
type: "score";
|
|
@@ -59,7 +59,7 @@ export type CreateDecisionsQuestionsRouterDecisionsCriteria = string | {
|
|
|
59
59
|
} | Array<any>;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
62
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
63
63
|
*/
|
|
64
64
|
export type CreateDecisionsQuestionsRouterDecisionsInstructions = string | {
|
|
65
65
|
[k: string]: any;
|
|
@@ -74,7 +74,7 @@ export type QuestionsChoiceQuestion = {
|
|
|
74
74
|
*/
|
|
75
75
|
criteria: { [k: string]: string | { [k: string]: any } | Array<any> | null };
|
|
76
76
|
/**
|
|
77
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
77
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
78
78
|
*/
|
|
79
79
|
instructions: string | { [k: string]: any } | Array<any>;
|
|
80
80
|
type: "choice";
|
|
@@ -105,7 +105,7 @@ export type CreateDecisionsQuestionsCriteria = {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
108
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
109
109
|
*/
|
|
110
110
|
export type CreateDecisionsQuestionsInstructions =
|
|
111
111
|
| string
|
|
@@ -121,7 +121,7 @@ export type QuestionsNoulQuestion = {
|
|
|
121
121
|
*/
|
|
122
122
|
criteria?: CreateDecisionsQuestionsCriteria | undefined;
|
|
123
123
|
/**
|
|
124
|
-
* The evaluation prompt for this question. A string, an object or an array.
|
|
124
|
+
* The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
|
|
125
125
|
*/
|
|
126
126
|
instructions: string | { [k: string]: any } | Array<any>;
|
|
127
127
|
type: "noul";
|
|
@@ -134,7 +134,7 @@ export type CreateDecisionsQuestions =
|
|
|
134
134
|
| QuestionsBoxQuestion;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
|
-
* The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string.
|
|
137
|
+
* The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. Native OpenAI accepts messages and function/custom-tool history. User messages support input_text, input_image and input_json; images can use inline base64 data URLs or public HTTP(S) URLs. At most 128 images across state and question instructions. Shared text/image parts support explicit prompt_cache_breakpoint markers. File IDs, audio, item references and bare content parts are unsupported. Other objects and arrays are serialized as text.
|
|
138
138
|
*/
|
|
139
139
|
export type CreateDecisionsState = string | { [k: string]: any } | Array<any>;
|
|
140
140
|
|
|
@@ -166,7 +166,12 @@ export type CreateDecisionsRequestBody = {
|
|
|
166
166
|
*/
|
|
167
167
|
name?: string | undefined;
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* Native OpenAI only. Partitions reuse of shared input across requests.
|
|
170
|
+
*/
|
|
171
|
+
promptCacheKey?: string | undefined;
|
|
172
|
+
promptCacheOptions?: components.ClassifyPromptCacheOptions | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Typed questions keyed by an identifier of your choice. Each answer is returned under the same key. Native OpenAI accepts 1 to 400 questions.
|
|
170
175
|
*/
|
|
171
176
|
questions: {
|
|
172
177
|
[k: string]:
|
|
@@ -177,7 +182,7 @@ export type CreateDecisionsRequestBody = {
|
|
|
177
182
|
};
|
|
178
183
|
retry?: components.ClassifyRetryConfig | undefined;
|
|
179
184
|
/**
|
|
180
|
-
* The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string.
|
|
185
|
+
* The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. Native OpenAI accepts messages and function/custom-tool history. User messages support input_text, input_image and input_json; images can use inline base64 data URLs or public HTTP(S) URLs. At most 128 images across state and question instructions. Shared text/image parts support explicit prompt_cache_breakpoint markers. File IDs, audio, item references and bare content parts are unsupported. Other objects and arrays are serialized as text.
|
|
181
186
|
*/
|
|
182
187
|
state: string | { [k: string]: any } | Array<any>;
|
|
183
188
|
timeout?: components.ClassifyTimeoutConfig | undefined;
|
|
@@ -541,6 +546,10 @@ export type CreateDecisionsRequestBody$Outbound = {
|
|
|
541
546
|
metadata?: { [k: string]: string } | undefined;
|
|
542
547
|
model: string;
|
|
543
548
|
name?: string | undefined;
|
|
549
|
+
prompt_cache_key?: string | undefined;
|
|
550
|
+
prompt_cache_options?:
|
|
551
|
+
| components.ClassifyPromptCacheOptions$Outbound
|
|
552
|
+
| undefined;
|
|
544
553
|
questions: {
|
|
545
554
|
[k: string]:
|
|
546
555
|
| QuestionsNoulQuestion$Outbound
|
|
@@ -568,6 +577,9 @@ export const CreateDecisionsRequestBody$outboundSchema: z.ZodType<
|
|
|
568
577
|
metadata: z.record(z.string()).optional(),
|
|
569
578
|
model: z.string(),
|
|
570
579
|
name: z.string().optional(),
|
|
580
|
+
promptCacheKey: z.string().optional(),
|
|
581
|
+
promptCacheOptions: components.ClassifyPromptCacheOptions$outboundSchema
|
|
582
|
+
.optional(),
|
|
571
583
|
questions: z.record(
|
|
572
584
|
z.union([
|
|
573
585
|
z.lazy(() => QuestionsNoulQuestion$outboundSchema),
|
|
@@ -582,6 +594,8 @@ export const CreateDecisionsRequestBody$outboundSchema: z.ZodType<
|
|
|
582
594
|
}).transform((v) => {
|
|
583
595
|
return remap$(v, {
|
|
584
596
|
fallbackOnCodes: "fallback_on_codes",
|
|
597
|
+
promptCacheKey: "prompt_cache_key",
|
|
598
|
+
promptCacheOptions: "prompt_cache_options",
|
|
585
599
|
});
|
|
586
600
|
});
|
|
587
601
|
|
|
@@ -569,7 +569,8 @@ export type StreamOptions = {
|
|
|
569
569
|
export type CreatePromptThinking =
|
|
570
570
|
| components.ThinkingConfigDisabledSchema
|
|
571
571
|
| components.ThinkingConfigEnabledSchema
|
|
572
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
572
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
573
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
573
574
|
|
|
574
575
|
/**
|
|
575
576
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -895,6 +896,7 @@ export type PromptInput = {
|
|
|
895
896
|
| components.ThinkingConfigDisabledSchema
|
|
896
897
|
| components.ThinkingConfigEnabledSchema
|
|
897
898
|
| components.ThinkingConfigAdaptiveSchema
|
|
899
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
898
900
|
| undefined;
|
|
899
901
|
/**
|
|
900
902
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
@@ -1746,7 +1748,8 @@ export type CreatePromptStreamOptions = {
|
|
|
1746
1748
|
export type CreatePromptPromptsThinking =
|
|
1747
1749
|
| components.ThinkingConfigDisabledSchema
|
|
1748
1750
|
| components.ThinkingConfigEnabledSchema
|
|
1749
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
1751
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
1752
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
1750
1753
|
|
|
1751
1754
|
/**
|
|
1752
1755
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -2420,6 +2423,7 @@ export type PromptField = {
|
|
|
2420
2423
|
| components.ThinkingConfigDisabledSchema
|
|
2421
2424
|
| components.ThinkingConfigEnabledSchema
|
|
2422
2425
|
| components.ThinkingConfigAdaptiveSchema
|
|
2426
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
2423
2427
|
| undefined;
|
|
2424
2428
|
/**
|
|
2425
2429
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
@@ -3516,7 +3520,8 @@ export function streamOptionsToJSON(streamOptions: StreamOptions): string {
|
|
|
3516
3520
|
export type CreatePromptThinking$Outbound =
|
|
3517
3521
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3518
3522
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
3519
|
-
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
3523
|
+
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
3524
|
+
| components.ThinkingConfigBetweenToolsSchema$Outbound;
|
|
3520
3525
|
|
|
3521
3526
|
/** @internal */
|
|
3522
3527
|
export const CreatePromptThinking$outboundSchema: z.ZodType<
|
|
@@ -3527,6 +3532,7 @@ export const CreatePromptThinking$outboundSchema: z.ZodType<
|
|
|
3527
3532
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3528
3533
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3529
3534
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
3535
|
+
components.ThinkingConfigBetweenToolsSchema$outboundSchema,
|
|
3530
3536
|
]);
|
|
3531
3537
|
|
|
3532
3538
|
export function createPromptThinkingToJSON(
|
|
@@ -3947,6 +3953,7 @@ export type PromptInput$Outbound = {
|
|
|
3947
3953
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3948
3954
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
3949
3955
|
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
3956
|
+
| components.ThinkingConfigBetweenToolsSchema$Outbound
|
|
3950
3957
|
| undefined;
|
|
3951
3958
|
temperature?: number | null | undefined;
|
|
3952
3959
|
top_p?: number | null | undefined;
|
|
@@ -4011,6 +4018,7 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
4011
4018
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
4012
4019
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
4013
4020
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
4021
|
+
components.ThinkingConfigBetweenToolsSchema$outboundSchema,
|
|
4014
4022
|
]).optional(),
|
|
4015
4023
|
temperature: z.nullable(z.number()).optional(),
|
|
4016
4024
|
topP: z.nullable(z.number()).optional(),
|
|
@@ -4907,6 +4915,7 @@ export const CreatePromptPromptsThinking$inboundSchema: z.ZodType<
|
|
|
4907
4915
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
4908
4916
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
4909
4917
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
4918
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
4910
4919
|
]);
|
|
4911
4920
|
|
|
4912
4921
|
export function createPromptPromptsThinkingFromJSON(
|
|
@@ -5884,6 +5893,7 @@ export const PromptField$inboundSchema: z.ZodType<
|
|
|
5884
5893
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
5885
5894
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
5886
5895
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
5896
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
5887
5897
|
]).optional(),
|
|
5888
5898
|
temperature: z.nullable(z.number()).optional(),
|
|
5889
5899
|
top_p: z.nullable(z.number()).optional(),
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M5Y34ENQ4SYNHHTSWADAHXHB"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M5Y34ENQVTK5JEBJ85BY01WH"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M5Y34ENQ58FS1TRJ0XABM4JA"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M5Y34ENQYMK3J436JXWJRYTA"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -771,7 +771,8 @@ export type GetAllPromptsStreamOptions = {
|
|
|
771
771
|
export type GetAllPromptsThinking =
|
|
772
772
|
| components.ThinkingConfigDisabledSchema
|
|
773
773
|
| components.ThinkingConfigEnabledSchema
|
|
774
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
774
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
775
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
775
776
|
|
|
776
777
|
/**
|
|
777
778
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1439,6 +1440,7 @@ export type GetAllPromptsPromptField = {
|
|
|
1439
1440
|
| components.ThinkingConfigDisabledSchema
|
|
1440
1441
|
| components.ThinkingConfigEnabledSchema
|
|
1441
1442
|
| components.ThinkingConfigAdaptiveSchema
|
|
1443
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
1442
1444
|
| undefined;
|
|
1443
1445
|
/**
|
|
1444
1446
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
@@ -2424,6 +2426,7 @@ export const GetAllPromptsThinking$inboundSchema: z.ZodType<
|
|
|
2424
2426
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2425
2427
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2426
2428
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
2429
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
2427
2430
|
]);
|
|
2428
2431
|
|
|
2429
2432
|
export function getAllPromptsThinkingFromJSON(
|
|
@@ -3343,6 +3346,7 @@ export const GetAllPromptsPromptField$inboundSchema: z.ZodType<
|
|
|
3343
3346
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3344
3347
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3345
3348
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
3349
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
3346
3350
|
]).optional(),
|
|
3347
3351
|
temperature: z.nullable(z.number()).optional(),
|
|
3348
3352
|
top_p: z.nullable(z.number()).optional(),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M5Y34ENMTT3DDY273B5B65CF"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M5Y34ENKH3K2D2AXWKVPWA36"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M5Y34ENKSG6X7FTC53F72NB8"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M5Y34ENKFSDJMYBJYRT158FN"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -755,7 +755,8 @@ export type GetOnePromptStreamOptions = {
|
|
|
755
755
|
export type GetOnePromptThinking =
|
|
756
756
|
| components.ThinkingConfigDisabledSchema
|
|
757
757
|
| components.ThinkingConfigEnabledSchema
|
|
758
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
758
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
759
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
759
760
|
|
|
760
761
|
/**
|
|
761
762
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1421,6 +1422,7 @@ export type GetOnePromptPromptField = {
|
|
|
1421
1422
|
| components.ThinkingConfigDisabledSchema
|
|
1422
1423
|
| components.ThinkingConfigEnabledSchema
|
|
1423
1424
|
| components.ThinkingConfigAdaptiveSchema
|
|
1425
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
1424
1426
|
| undefined;
|
|
1425
1427
|
/**
|
|
1426
1428
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
@@ -2382,6 +2384,7 @@ export const GetOnePromptThinking$inboundSchema: z.ZodType<
|
|
|
2382
2384
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2383
2385
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2384
2386
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
2387
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
2385
2388
|
]);
|
|
2386
2389
|
|
|
2387
2390
|
export function getOnePromptThinkingFromJSON(
|
|
@@ -3291,6 +3294,7 @@ export const GetOnePromptPromptField$inboundSchema: z.ZodType<
|
|
|
3291
3294
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3292
3295
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3293
3296
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
3297
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
3294
3298
|
]).optional(),
|
|
3295
3299
|
temperature: z.nullable(z.number()).optional(),
|
|
3296
3300
|
top_p: z.nullable(z.number()).optional(),
|
|
@@ -763,7 +763,8 @@ export type GetPromptVersionStreamOptions = {
|
|
|
763
763
|
export type GetPromptVersionThinking =
|
|
764
764
|
| components.ThinkingConfigDisabledSchema
|
|
765
765
|
| components.ThinkingConfigEnabledSchema
|
|
766
|
-
| components.ThinkingConfigAdaptiveSchema
|
|
766
|
+
| components.ThinkingConfigAdaptiveSchema
|
|
767
|
+
| components.ThinkingConfigBetweenToolsSchema;
|
|
767
768
|
|
|
768
769
|
/**
|
|
769
770
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1431,6 +1432,7 @@ export type GetPromptVersionPromptField = {
|
|
|
1431
1432
|
| components.ThinkingConfigDisabledSchema
|
|
1432
1433
|
| components.ThinkingConfigEnabledSchema
|
|
1433
1434
|
| components.ThinkingConfigAdaptiveSchema
|
|
1435
|
+
| components.ThinkingConfigBetweenToolsSchema
|
|
1434
1436
|
| undefined;
|
|
1435
1437
|
/**
|
|
1436
1438
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
@@ -2410,6 +2412,7 @@ export const GetPromptVersionThinking$inboundSchema: z.ZodType<
|
|
|
2410
2412
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2411
2413
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2412
2414
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
2415
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
2413
2416
|
]);
|
|
2414
2417
|
|
|
2415
2418
|
export function getPromptVersionThinkingFromJSON(
|
|
@@ -3349,6 +3352,7 @@ export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
|
|
|
3349
3352
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3350
3353
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3351
3354
|
components.ThinkingConfigAdaptiveSchema$inboundSchema,
|
|
3355
|
+
components.ThinkingConfigBetweenToolsSchema$inboundSchema,
|
|
3352
3356
|
]).optional(),
|
|
3353
3357
|
temperature: z.nullable(z.number()).optional(),
|
|
3354
3358
|
top_p: z.nullable(z.number()).optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-10-
|
|
143
|
+
"2026-10-27T07:10:24.115Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-10-
|
|
188
|
+
"2026-10-27T07:10:24.115Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-10-
|
|
144
|
+
"2026-10-27T07:10:24.115Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-10-
|
|
189
|
+
"2026-10-27T07:10:24.115Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|