@orq-ai/node 4.16.0-rc.6 → 4.16.0-rc.7
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/funcs/routerClassifyCreate.d.ts +1 -1
- package/funcs/routerClassifyCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentthoughtstreamingevent.d.ts +22 -0
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +24 -1
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/classifyanswer.d.ts +1 -1
- package/models/components/classifyusage.d.ts +2 -2
- package/models/components/createmanagementkeyrequest.d.ts +2 -2
- package/models/components/createmanagementkeyrequest.d.ts.map +1 -1
- package/models/components/createmanagementkeyrequest.js +1 -1
- package/models/components/createmanagementkeyrequest.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +62 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +47 -3
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createchatcompletion.d.ts +75 -0
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +73 -4
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createclassify.d.ts +3 -2
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +1 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.d.ts +53 -0
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +54 -8
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createprompt.d.ts +53 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +50 -4
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/deploymentgetconfig.d.ts +62 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +50 -4
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +62 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +47 -3
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getallprompts.d.ts +22 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +24 -1
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +22 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +24 -1
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +22 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +23 -1
- 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/listdatasetdatapoints.d.ts +22 -0
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +30 -7
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listpromptversions.d.ts +22 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +24 -1
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +22 -0
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +30 -7
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.d.ts +53 -0
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +54 -8
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updateprompt.d.ts +53 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +50 -4
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/classify.d.ts +1 -1
- package/sdk/classify.js +1 -1
- package/src/funcs/routerClassifyCreate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentthoughtstreamingevent.ts +66 -0
- package/src/models/components/classifyanswer.ts +1 -1
- package/src/models/components/classifyusage.ts +2 -2
- package/src/models/components/createmanagementkeyrequest.ts +3 -3
- package/src/models/components/invokedeploymentrequest.ts +126 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createchatcompletion.ts +222 -0
- package/src/models/operations/createclassify.ts +4 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +159 -5
- package/src/models/operations/createprompt.ts +143 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deploymentgetconfig.ts +147 -0
- package/src/models/operations/deploymentstream.ts +126 -0
- package/src/models/operations/getallprompts.ts +63 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +63 -0
- package/src/models/operations/getpromptversion.ts +65 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +77 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listpromptversions.ts +66 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +71 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +152 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateprompt.ts +143 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/classify.ts +1 -1
|
@@ -149,6 +149,20 @@ export type UpdateDatapointMessagesFunction = {
|
|
|
149
149
|
arguments?: string | undefined;
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
+
export type UpdateDatapointMessagesGoogle = {
|
|
153
|
+
/**
|
|
154
|
+
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call. Takes precedence over the top-level `thought_signature` when both are set.
|
|
155
|
+
*/
|
|
156
|
+
thoughtSignature?: string | undefined;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Provider-specific extra content for the tool call.
|
|
161
|
+
*/
|
|
162
|
+
export type UpdateDatapointMessagesExtraContent = {
|
|
163
|
+
google?: UpdateDatapointMessagesGoogle | undefined;
|
|
164
|
+
};
|
|
165
|
+
|
|
152
166
|
export type UpdateDatapointMessagesToolCalls = {
|
|
153
167
|
/**
|
|
154
168
|
* The ID of the tool call.
|
|
@@ -163,6 +177,10 @@ export type UpdateDatapointMessagesToolCalls = {
|
|
|
163
177
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
164
178
|
*/
|
|
165
179
|
thoughtSignature?: string | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* Provider-specific extra content for the tool call.
|
|
182
|
+
*/
|
|
183
|
+
extraContent?: UpdateDatapointMessagesExtraContent | undefined;
|
|
166
184
|
};
|
|
167
185
|
|
|
168
186
|
export type UpdateDatapointMessagesAssistantMessage = {
|
|
@@ -537,6 +555,20 @@ export type UpdateDatapointMessagesDatasetsFunction = {
|
|
|
537
555
|
arguments?: string | undefined;
|
|
538
556
|
};
|
|
539
557
|
|
|
558
|
+
export type UpdateDatapointMessagesDatasetsGoogle = {
|
|
559
|
+
/**
|
|
560
|
+
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call. Takes precedence over the top-level `thought_signature` when both are set.
|
|
561
|
+
*/
|
|
562
|
+
thoughtSignature?: string | undefined;
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Provider-specific extra content for the tool call.
|
|
567
|
+
*/
|
|
568
|
+
export type UpdateDatapointMessagesDatasetsExtraContent = {
|
|
569
|
+
google?: UpdateDatapointMessagesDatasetsGoogle | undefined;
|
|
570
|
+
};
|
|
571
|
+
|
|
540
572
|
export type UpdateDatapointMessagesDatasetsToolCalls = {
|
|
541
573
|
/**
|
|
542
574
|
* The ID of the tool call.
|
|
@@ -551,6 +583,10 @@ export type UpdateDatapointMessagesDatasetsToolCalls = {
|
|
|
551
583
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
552
584
|
*/
|
|
553
585
|
thoughtSignature?: string | undefined;
|
|
586
|
+
/**
|
|
587
|
+
* Provider-specific extra content for the tool call.
|
|
588
|
+
*/
|
|
589
|
+
extraContent?: UpdateDatapointMessagesDatasetsExtraContent | undefined;
|
|
554
590
|
};
|
|
555
591
|
|
|
556
592
|
export type UpdateDatapointMessagesDatasetsAssistantMessage = {
|
|
@@ -1555,12 +1591,65 @@ export function updateDatapointMessagesFunctionToJSON(
|
|
|
1555
1591
|
);
|
|
1556
1592
|
}
|
|
1557
1593
|
|
|
1594
|
+
/** @internal */
|
|
1595
|
+
export type UpdateDatapointMessagesGoogle$Outbound = {
|
|
1596
|
+
thought_signature?: string | undefined;
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1599
|
+
/** @internal */
|
|
1600
|
+
export const UpdateDatapointMessagesGoogle$outboundSchema: z.ZodType<
|
|
1601
|
+
UpdateDatapointMessagesGoogle$Outbound,
|
|
1602
|
+
z.ZodTypeDef,
|
|
1603
|
+
UpdateDatapointMessagesGoogle
|
|
1604
|
+
> = z.object({
|
|
1605
|
+
thoughtSignature: z.string().optional(),
|
|
1606
|
+
}).transform((v) => {
|
|
1607
|
+
return remap$(v, {
|
|
1608
|
+
thoughtSignature: "thought_signature",
|
|
1609
|
+
});
|
|
1610
|
+
});
|
|
1611
|
+
|
|
1612
|
+
export function updateDatapointMessagesGoogleToJSON(
|
|
1613
|
+
updateDatapointMessagesGoogle: UpdateDatapointMessagesGoogle,
|
|
1614
|
+
): string {
|
|
1615
|
+
return JSON.stringify(
|
|
1616
|
+
UpdateDatapointMessagesGoogle$outboundSchema.parse(
|
|
1617
|
+
updateDatapointMessagesGoogle,
|
|
1618
|
+
),
|
|
1619
|
+
);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
/** @internal */
|
|
1623
|
+
export type UpdateDatapointMessagesExtraContent$Outbound = {
|
|
1624
|
+
google?: UpdateDatapointMessagesGoogle$Outbound | undefined;
|
|
1625
|
+
};
|
|
1626
|
+
|
|
1627
|
+
/** @internal */
|
|
1628
|
+
export const UpdateDatapointMessagesExtraContent$outboundSchema: z.ZodType<
|
|
1629
|
+
UpdateDatapointMessagesExtraContent$Outbound,
|
|
1630
|
+
z.ZodTypeDef,
|
|
1631
|
+
UpdateDatapointMessagesExtraContent
|
|
1632
|
+
> = z.object({
|
|
1633
|
+
google: z.lazy(() => UpdateDatapointMessagesGoogle$outboundSchema).optional(),
|
|
1634
|
+
});
|
|
1635
|
+
|
|
1636
|
+
export function updateDatapointMessagesExtraContentToJSON(
|
|
1637
|
+
updateDatapointMessagesExtraContent: UpdateDatapointMessagesExtraContent,
|
|
1638
|
+
): string {
|
|
1639
|
+
return JSON.stringify(
|
|
1640
|
+
UpdateDatapointMessagesExtraContent$outboundSchema.parse(
|
|
1641
|
+
updateDatapointMessagesExtraContent,
|
|
1642
|
+
),
|
|
1643
|
+
);
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1558
1646
|
/** @internal */
|
|
1559
1647
|
export type UpdateDatapointMessagesToolCalls$Outbound = {
|
|
1560
1648
|
id: string;
|
|
1561
1649
|
type: string;
|
|
1562
1650
|
function: UpdateDatapointMessagesFunction$Outbound;
|
|
1563
1651
|
thought_signature?: string | undefined;
|
|
1652
|
+
extra_content?: UpdateDatapointMessagesExtraContent$Outbound | undefined;
|
|
1564
1653
|
};
|
|
1565
1654
|
|
|
1566
1655
|
/** @internal */
|
|
@@ -1573,9 +1662,12 @@ export const UpdateDatapointMessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
1573
1662
|
type: UpdateDatapointMessagesType$outboundSchema,
|
|
1574
1663
|
function: z.lazy(() => UpdateDatapointMessagesFunction$outboundSchema),
|
|
1575
1664
|
thoughtSignature: z.string().optional(),
|
|
1665
|
+
extraContent: z.lazy(() => UpdateDatapointMessagesExtraContent$outboundSchema)
|
|
1666
|
+
.optional(),
|
|
1576
1667
|
}).transform((v) => {
|
|
1577
1668
|
return remap$(v, {
|
|
1578
1669
|
thoughtSignature: "thought_signature",
|
|
1670
|
+
extraContent: "extra_content",
|
|
1579
1671
|
});
|
|
1580
1672
|
});
|
|
1581
1673
|
|
|
@@ -2300,6 +2392,57 @@ export function updateDatapointMessagesDatasetsFunctionFromJSON(
|
|
|
2300
2392
|
);
|
|
2301
2393
|
}
|
|
2302
2394
|
|
|
2395
|
+
/** @internal */
|
|
2396
|
+
export const UpdateDatapointMessagesDatasetsGoogle$inboundSchema: z.ZodType<
|
|
2397
|
+
UpdateDatapointMessagesDatasetsGoogle,
|
|
2398
|
+
z.ZodTypeDef,
|
|
2399
|
+
unknown
|
|
2400
|
+
> = z.object({
|
|
2401
|
+
thought_signature: z.string().optional(),
|
|
2402
|
+
}).transform((v) => {
|
|
2403
|
+
return remap$(v, {
|
|
2404
|
+
"thought_signature": "thoughtSignature",
|
|
2405
|
+
});
|
|
2406
|
+
});
|
|
2407
|
+
|
|
2408
|
+
export function updateDatapointMessagesDatasetsGoogleFromJSON(
|
|
2409
|
+
jsonString: string,
|
|
2410
|
+
): SafeParseResult<UpdateDatapointMessagesDatasetsGoogle, SDKValidationError> {
|
|
2411
|
+
return safeParse(
|
|
2412
|
+
jsonString,
|
|
2413
|
+
(x) =>
|
|
2414
|
+
UpdateDatapointMessagesDatasetsGoogle$inboundSchema.parse(JSON.parse(x)),
|
|
2415
|
+
`Failed to parse 'UpdateDatapointMessagesDatasetsGoogle' from JSON`,
|
|
2416
|
+
);
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
/** @internal */
|
|
2420
|
+
export const UpdateDatapointMessagesDatasetsExtraContent$inboundSchema:
|
|
2421
|
+
z.ZodType<
|
|
2422
|
+
UpdateDatapointMessagesDatasetsExtraContent,
|
|
2423
|
+
z.ZodTypeDef,
|
|
2424
|
+
unknown
|
|
2425
|
+
> = z.object({
|
|
2426
|
+
google: z.lazy(() => UpdateDatapointMessagesDatasetsGoogle$inboundSchema)
|
|
2427
|
+
.optional(),
|
|
2428
|
+
});
|
|
2429
|
+
|
|
2430
|
+
export function updateDatapointMessagesDatasetsExtraContentFromJSON(
|
|
2431
|
+
jsonString: string,
|
|
2432
|
+
): SafeParseResult<
|
|
2433
|
+
UpdateDatapointMessagesDatasetsExtraContent,
|
|
2434
|
+
SDKValidationError
|
|
2435
|
+
> {
|
|
2436
|
+
return safeParse(
|
|
2437
|
+
jsonString,
|
|
2438
|
+
(x) =>
|
|
2439
|
+
UpdateDatapointMessagesDatasetsExtraContent$inboundSchema.parse(
|
|
2440
|
+
JSON.parse(x),
|
|
2441
|
+
),
|
|
2442
|
+
`Failed to parse 'UpdateDatapointMessagesDatasetsExtraContent' from JSON`,
|
|
2443
|
+
);
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2303
2446
|
/** @internal */
|
|
2304
2447
|
export const UpdateDatapointMessagesDatasetsToolCalls$inboundSchema: z.ZodType<
|
|
2305
2448
|
UpdateDatapointMessagesDatasetsToolCalls,
|
|
@@ -2310,9 +2453,13 @@ export const UpdateDatapointMessagesDatasetsToolCalls$inboundSchema: z.ZodType<
|
|
|
2310
2453
|
type: UpdateDatapointMessagesDatasetsResponseType$inboundSchema,
|
|
2311
2454
|
function: z.lazy(() => UpdateDatapointMessagesDatasetsFunction$inboundSchema),
|
|
2312
2455
|
thought_signature: z.string().optional(),
|
|
2456
|
+
extra_content: z.lazy(() =>
|
|
2457
|
+
UpdateDatapointMessagesDatasetsExtraContent$inboundSchema
|
|
2458
|
+
).optional(),
|
|
2313
2459
|
}).transform((v) => {
|
|
2314
2460
|
return remap$(v, {
|
|
2315
2461
|
"thought_signature": "thoughtSignature",
|
|
2462
|
+
"extra_content": "extraContent",
|
|
2316
2463
|
});
|
|
2317
2464
|
});
|
|
2318
2465
|
|
|
@@ -2760,7 +2907,7 @@ export const UpdateDatapointEvaluations4$inboundSchema: z.ZodType<
|
|
|
2760
2907
|
explanation: z.string().optional(),
|
|
2761
2908
|
reviewed_by_id: z.string(),
|
|
2762
2909
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2763
|
-
"2026-09-
|
|
2910
|
+
"2026-09-20T18:42:26.305Z",
|
|
2764
2911
|
).transform(v => new Date(v)),
|
|
2765
2912
|
type: z.literal("string_array"),
|
|
2766
2913
|
values: z.array(z.string()),
|
|
@@ -2860,7 +3007,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2860
3007
|
explanation: z.string().optional(),
|
|
2861
3008
|
reviewed_by_id: z.string(),
|
|
2862
3009
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2863
|
-
"2026-09-
|
|
3010
|
+
"2026-09-20T18:42:26.304Z",
|
|
2864
3011
|
).transform(v => new Date(v)),
|
|
2865
3012
|
type: z.literal("boolean"),
|
|
2866
3013
|
value: z.boolean(),
|
|
@@ -2957,7 +3104,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2957
3104
|
explanation: z.string().optional(),
|
|
2958
3105
|
reviewed_by_id: z.string(),
|
|
2959
3106
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2960
|
-
"2026-09-
|
|
3107
|
+
"2026-09-20T18:42:26.304Z",
|
|
2961
3108
|
).transform(v => new Date(v)),
|
|
2962
3109
|
type: z.literal("number"),
|
|
2963
3110
|
value: z.number(),
|
|
@@ -3046,7 +3193,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
3046
3193
|
explanation: z.string().optional(),
|
|
3047
3194
|
reviewed_by_id: z.string(),
|
|
3048
3195
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3049
|
-
"2026-09-
|
|
3196
|
+
"2026-09-20T18:42:26.304Z",
|
|
3050
3197
|
).transform(v => new Date(v)),
|
|
3051
3198
|
type: z.literal("string"),
|
|
3052
3199
|
value: z.string(),
|
|
@@ -3131,7 +3278,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
3131
3278
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3132
3279
|
.optional(),
|
|
3133
3280
|
updated: z.string().datetime({ offset: true }).default(
|
|
3134
|
-
"2026-09-
|
|
3281
|
+
"2026-09-20T18:42:18.531Z",
|
|
3135
3282
|
).transform(v => new Date(v)),
|
|
3136
3283
|
}).transform((v) => {
|
|
3137
3284
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-09-
|
|
185
|
+
"2026-09-20T18:42:18.531Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -147,6 +147,20 @@ export type UpdatePromptMessagesFunction = {
|
|
|
147
147
|
arguments?: string | undefined;
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
+
export type UpdatePromptMessagesGoogle = {
|
|
151
|
+
/**
|
|
152
|
+
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call. Takes precedence over the top-level `thought_signature` when both are set.
|
|
153
|
+
*/
|
|
154
|
+
thoughtSignature?: string | undefined;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Provider-specific extra content for the tool call.
|
|
159
|
+
*/
|
|
160
|
+
export type UpdatePromptMessagesExtraContent = {
|
|
161
|
+
google?: UpdatePromptMessagesGoogle | undefined;
|
|
162
|
+
};
|
|
163
|
+
|
|
150
164
|
export type UpdatePromptMessagesToolCalls = {
|
|
151
165
|
/**
|
|
152
166
|
* The ID of the tool call.
|
|
@@ -161,6 +175,10 @@ export type UpdatePromptMessagesToolCalls = {
|
|
|
161
175
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
162
176
|
*/
|
|
163
177
|
thoughtSignature?: string | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* Provider-specific extra content for the tool call.
|
|
180
|
+
*/
|
|
181
|
+
extraContent?: UpdatePromptMessagesExtraContent | undefined;
|
|
164
182
|
};
|
|
165
183
|
|
|
166
184
|
export type UpdatePromptMessagesAssistantMessage = {
|
|
@@ -2112,6 +2130,20 @@ export type UpdatePromptMessagesPromptsFunction = {
|
|
|
2112
2130
|
arguments?: string | undefined;
|
|
2113
2131
|
};
|
|
2114
2132
|
|
|
2133
|
+
export type UpdatePromptMessagesPromptsGoogle = {
|
|
2134
|
+
/**
|
|
2135
|
+
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call. Takes precedence over the top-level `thought_signature` when both are set.
|
|
2136
|
+
*/
|
|
2137
|
+
thoughtSignature?: string | undefined;
|
|
2138
|
+
};
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
* Provider-specific extra content for the tool call.
|
|
2142
|
+
*/
|
|
2143
|
+
export type UpdatePromptMessagesPromptsExtraContent = {
|
|
2144
|
+
google?: UpdatePromptMessagesPromptsGoogle | undefined;
|
|
2145
|
+
};
|
|
2146
|
+
|
|
2115
2147
|
export type UpdatePromptMessagesPromptsToolCalls = {
|
|
2116
2148
|
/**
|
|
2117
2149
|
* The ID of the tool call.
|
|
@@ -2126,6 +2158,10 @@ export type UpdatePromptMessagesPromptsToolCalls = {
|
|
|
2126
2158
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
2127
2159
|
*/
|
|
2128
2160
|
thoughtSignature?: string | undefined;
|
|
2161
|
+
/**
|
|
2162
|
+
* Provider-specific extra content for the tool call.
|
|
2163
|
+
*/
|
|
2164
|
+
extraContent?: UpdatePromptMessagesPromptsExtraContent | undefined;
|
|
2129
2165
|
};
|
|
2130
2166
|
|
|
2131
2167
|
export type UpdatePromptMessagesPromptsAssistantMessage = {
|
|
@@ -2822,12 +2858,63 @@ export function updatePromptMessagesFunctionToJSON(
|
|
|
2822
2858
|
);
|
|
2823
2859
|
}
|
|
2824
2860
|
|
|
2861
|
+
/** @internal */
|
|
2862
|
+
export type UpdatePromptMessagesGoogle$Outbound = {
|
|
2863
|
+
thought_signature?: string | undefined;
|
|
2864
|
+
};
|
|
2865
|
+
|
|
2866
|
+
/** @internal */
|
|
2867
|
+
export const UpdatePromptMessagesGoogle$outboundSchema: z.ZodType<
|
|
2868
|
+
UpdatePromptMessagesGoogle$Outbound,
|
|
2869
|
+
z.ZodTypeDef,
|
|
2870
|
+
UpdatePromptMessagesGoogle
|
|
2871
|
+
> = z.object({
|
|
2872
|
+
thoughtSignature: z.string().optional(),
|
|
2873
|
+
}).transform((v) => {
|
|
2874
|
+
return remap$(v, {
|
|
2875
|
+
thoughtSignature: "thought_signature",
|
|
2876
|
+
});
|
|
2877
|
+
});
|
|
2878
|
+
|
|
2879
|
+
export function updatePromptMessagesGoogleToJSON(
|
|
2880
|
+
updatePromptMessagesGoogle: UpdatePromptMessagesGoogle,
|
|
2881
|
+
): string {
|
|
2882
|
+
return JSON.stringify(
|
|
2883
|
+
UpdatePromptMessagesGoogle$outboundSchema.parse(updatePromptMessagesGoogle),
|
|
2884
|
+
);
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
/** @internal */
|
|
2888
|
+
export type UpdatePromptMessagesExtraContent$Outbound = {
|
|
2889
|
+
google?: UpdatePromptMessagesGoogle$Outbound | undefined;
|
|
2890
|
+
};
|
|
2891
|
+
|
|
2892
|
+
/** @internal */
|
|
2893
|
+
export const UpdatePromptMessagesExtraContent$outboundSchema: z.ZodType<
|
|
2894
|
+
UpdatePromptMessagesExtraContent$Outbound,
|
|
2895
|
+
z.ZodTypeDef,
|
|
2896
|
+
UpdatePromptMessagesExtraContent
|
|
2897
|
+
> = z.object({
|
|
2898
|
+
google: z.lazy(() => UpdatePromptMessagesGoogle$outboundSchema).optional(),
|
|
2899
|
+
});
|
|
2900
|
+
|
|
2901
|
+
export function updatePromptMessagesExtraContentToJSON(
|
|
2902
|
+
updatePromptMessagesExtraContent: UpdatePromptMessagesExtraContent,
|
|
2903
|
+
): string {
|
|
2904
|
+
return JSON.stringify(
|
|
2905
|
+
UpdatePromptMessagesExtraContent$outboundSchema.parse(
|
|
2906
|
+
updatePromptMessagesExtraContent,
|
|
2907
|
+
),
|
|
2908
|
+
);
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2825
2911
|
/** @internal */
|
|
2826
2912
|
export type UpdatePromptMessagesToolCalls$Outbound = {
|
|
2827
2913
|
id: string;
|
|
2828
2914
|
type: string;
|
|
2829
2915
|
function: UpdatePromptMessagesFunction$Outbound;
|
|
2830
2916
|
thought_signature?: string | undefined;
|
|
2917
|
+
extra_content?: UpdatePromptMessagesExtraContent$Outbound | undefined;
|
|
2831
2918
|
};
|
|
2832
2919
|
|
|
2833
2920
|
/** @internal */
|
|
@@ -2840,9 +2927,12 @@ export const UpdatePromptMessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
2840
2927
|
type: UpdatePromptMessagesType$outboundSchema,
|
|
2841
2928
|
function: z.lazy(() => UpdatePromptMessagesFunction$outboundSchema),
|
|
2842
2929
|
thoughtSignature: z.string().optional(),
|
|
2930
|
+
extraContent: z.lazy(() => UpdatePromptMessagesExtraContent$outboundSchema)
|
|
2931
|
+
.optional(),
|
|
2843
2932
|
}).transform((v) => {
|
|
2844
2933
|
return remap$(v, {
|
|
2845
2934
|
thoughtSignature: "thought_signature",
|
|
2935
|
+
extraContent: "extra_content",
|
|
2846
2936
|
});
|
|
2847
2937
|
});
|
|
2848
2938
|
|
|
@@ -5461,6 +5551,55 @@ export function updatePromptMessagesPromptsFunctionFromJSON(
|
|
|
5461
5551
|
);
|
|
5462
5552
|
}
|
|
5463
5553
|
|
|
5554
|
+
/** @internal */
|
|
5555
|
+
export const UpdatePromptMessagesPromptsGoogle$inboundSchema: z.ZodType<
|
|
5556
|
+
UpdatePromptMessagesPromptsGoogle,
|
|
5557
|
+
z.ZodTypeDef,
|
|
5558
|
+
unknown
|
|
5559
|
+
> = z.object({
|
|
5560
|
+
thought_signature: z.string().optional(),
|
|
5561
|
+
}).transform((v) => {
|
|
5562
|
+
return remap$(v, {
|
|
5563
|
+
"thought_signature": "thoughtSignature",
|
|
5564
|
+
});
|
|
5565
|
+
});
|
|
5566
|
+
|
|
5567
|
+
export function updatePromptMessagesPromptsGoogleFromJSON(
|
|
5568
|
+
jsonString: string,
|
|
5569
|
+
): SafeParseResult<UpdatePromptMessagesPromptsGoogle, SDKValidationError> {
|
|
5570
|
+
return safeParse(
|
|
5571
|
+
jsonString,
|
|
5572
|
+
(x) => UpdatePromptMessagesPromptsGoogle$inboundSchema.parse(JSON.parse(x)),
|
|
5573
|
+
`Failed to parse 'UpdatePromptMessagesPromptsGoogle' from JSON`,
|
|
5574
|
+
);
|
|
5575
|
+
}
|
|
5576
|
+
|
|
5577
|
+
/** @internal */
|
|
5578
|
+
export const UpdatePromptMessagesPromptsExtraContent$inboundSchema: z.ZodType<
|
|
5579
|
+
UpdatePromptMessagesPromptsExtraContent,
|
|
5580
|
+
z.ZodTypeDef,
|
|
5581
|
+
unknown
|
|
5582
|
+
> = z.object({
|
|
5583
|
+
google: z.lazy(() => UpdatePromptMessagesPromptsGoogle$inboundSchema)
|
|
5584
|
+
.optional(),
|
|
5585
|
+
});
|
|
5586
|
+
|
|
5587
|
+
export function updatePromptMessagesPromptsExtraContentFromJSON(
|
|
5588
|
+
jsonString: string,
|
|
5589
|
+
): SafeParseResult<
|
|
5590
|
+
UpdatePromptMessagesPromptsExtraContent,
|
|
5591
|
+
SDKValidationError
|
|
5592
|
+
> {
|
|
5593
|
+
return safeParse(
|
|
5594
|
+
jsonString,
|
|
5595
|
+
(x) =>
|
|
5596
|
+
UpdatePromptMessagesPromptsExtraContent$inboundSchema.parse(
|
|
5597
|
+
JSON.parse(x),
|
|
5598
|
+
),
|
|
5599
|
+
`Failed to parse 'UpdatePromptMessagesPromptsExtraContent' from JSON`,
|
|
5600
|
+
);
|
|
5601
|
+
}
|
|
5602
|
+
|
|
5464
5603
|
/** @internal */
|
|
5465
5604
|
export const UpdatePromptMessagesPromptsToolCalls$inboundSchema: z.ZodType<
|
|
5466
5605
|
UpdatePromptMessagesPromptsToolCalls,
|
|
@@ -5471,9 +5610,13 @@ export const UpdatePromptMessagesPromptsToolCalls$inboundSchema: z.ZodType<
|
|
|
5471
5610
|
type: UpdatePromptMessagesPromptsResponseType$inboundSchema,
|
|
5472
5611
|
function: z.lazy(() => UpdatePromptMessagesPromptsFunction$inboundSchema),
|
|
5473
5612
|
thought_signature: z.string().optional(),
|
|
5613
|
+
extra_content: z.lazy(() =>
|
|
5614
|
+
UpdatePromptMessagesPromptsExtraContent$inboundSchema
|
|
5615
|
+
).optional(),
|
|
5474
5616
|
}).transform((v) => {
|
|
5475
5617
|
return remap$(v, {
|
|
5476
5618
|
"thought_signature": "thoughtSignature",
|
|
5619
|
+
"extra_content": "extraContent",
|
|
5477
5620
|
});
|
|
5478
5621
|
});
|
|
5479
5622
|
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M3020VTJHKJNY3GV9QNPX0SQ"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M3020VTGB8EMP1DHZXPQPD9Q"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M3020VTGXHP689V9CWMEQ5HX"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M3020VTFCTZRBDS5EXXC41PN"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/classify.ts
CHANGED
|
@@ -12,7 +12,7 @@ export class Classify extends ClientSDK {
|
|
|
12
12
|
* Classify
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against
|
|
15
|
+
* **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against the native classify model `typesafe/jev-latest` or a chat model that supports classify, such as `anthropic/claude-haiku-4-5`, `google-ai/gemini-3.8-flash` or `zai/glm-5.3-flash`. Chat models answer through one structured-output call and their probabilities are model-reported rather than calibrated. The request and response follow the TypeSafe classification contract; `model` in the response echoes the request and `usage` carries the computed cost like the Responses API. This endpoint currently does not apply PII plugins or guardrails.
|
|
16
16
|
*/
|
|
17
17
|
async create(
|
|
18
18
|
request: operations.CreateClassifyRequestBody,
|