@orq-ai/node 4.16.0-rc.5 → 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 +3 -3
- 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 CreateDatasetItemMessagesFunction = {
|
|
|
149
149
|
arguments?: string | undefined;
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
+
export type CreateDatasetItemMessagesGoogle = {
|
|
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 CreateDatasetItemMessagesExtraContent = {
|
|
163
|
+
google?: CreateDatasetItemMessagesGoogle | undefined;
|
|
164
|
+
};
|
|
165
|
+
|
|
152
166
|
export type CreateDatasetItemMessagesToolCalls = {
|
|
153
167
|
/**
|
|
154
168
|
* The ID of the tool call.
|
|
@@ -163,6 +177,10 @@ export type CreateDatasetItemMessagesToolCalls = {
|
|
|
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?: CreateDatasetItemMessagesExtraContent | undefined;
|
|
166
184
|
};
|
|
167
185
|
|
|
168
186
|
export type CreateDatasetItemMessagesAssistantMessage = {
|
|
@@ -533,6 +551,20 @@ export type CreateDatasetItemMessagesDatasetsFunction = {
|
|
|
533
551
|
arguments?: string | undefined;
|
|
534
552
|
};
|
|
535
553
|
|
|
554
|
+
export type CreateDatasetItemMessagesDatasetsGoogle = {
|
|
555
|
+
/**
|
|
556
|
+
* 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.
|
|
557
|
+
*/
|
|
558
|
+
thoughtSignature?: string | undefined;
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Provider-specific extra content for the tool call.
|
|
563
|
+
*/
|
|
564
|
+
export type CreateDatasetItemMessagesDatasetsExtraContent = {
|
|
565
|
+
google?: CreateDatasetItemMessagesDatasetsGoogle | undefined;
|
|
566
|
+
};
|
|
567
|
+
|
|
536
568
|
export type CreateDatasetItemMessagesDatasetsToolCalls = {
|
|
537
569
|
/**
|
|
538
570
|
* The ID of the tool call.
|
|
@@ -547,6 +579,10 @@ export type CreateDatasetItemMessagesDatasetsToolCalls = {
|
|
|
547
579
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
548
580
|
*/
|
|
549
581
|
thoughtSignature?: string | undefined;
|
|
582
|
+
/**
|
|
583
|
+
* Provider-specific extra content for the tool call.
|
|
584
|
+
*/
|
|
585
|
+
extraContent?: CreateDatasetItemMessagesDatasetsExtraContent | undefined;
|
|
550
586
|
};
|
|
551
587
|
|
|
552
588
|
export type CreateDatasetItemMessagesDatasetsAssistantMessage = {
|
|
@@ -1530,12 +1566,66 @@ export function createDatasetItemMessagesFunctionToJSON(
|
|
|
1530
1566
|
);
|
|
1531
1567
|
}
|
|
1532
1568
|
|
|
1569
|
+
/** @internal */
|
|
1570
|
+
export type CreateDatasetItemMessagesGoogle$Outbound = {
|
|
1571
|
+
thought_signature?: string | undefined;
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
/** @internal */
|
|
1575
|
+
export const CreateDatasetItemMessagesGoogle$outboundSchema: z.ZodType<
|
|
1576
|
+
CreateDatasetItemMessagesGoogle$Outbound,
|
|
1577
|
+
z.ZodTypeDef,
|
|
1578
|
+
CreateDatasetItemMessagesGoogle
|
|
1579
|
+
> = z.object({
|
|
1580
|
+
thoughtSignature: z.string().optional(),
|
|
1581
|
+
}).transform((v) => {
|
|
1582
|
+
return remap$(v, {
|
|
1583
|
+
thoughtSignature: "thought_signature",
|
|
1584
|
+
});
|
|
1585
|
+
});
|
|
1586
|
+
|
|
1587
|
+
export function createDatasetItemMessagesGoogleToJSON(
|
|
1588
|
+
createDatasetItemMessagesGoogle: CreateDatasetItemMessagesGoogle,
|
|
1589
|
+
): string {
|
|
1590
|
+
return JSON.stringify(
|
|
1591
|
+
CreateDatasetItemMessagesGoogle$outboundSchema.parse(
|
|
1592
|
+
createDatasetItemMessagesGoogle,
|
|
1593
|
+
),
|
|
1594
|
+
);
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
/** @internal */
|
|
1598
|
+
export type CreateDatasetItemMessagesExtraContent$Outbound = {
|
|
1599
|
+
google?: CreateDatasetItemMessagesGoogle$Outbound | undefined;
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
/** @internal */
|
|
1603
|
+
export const CreateDatasetItemMessagesExtraContent$outboundSchema: z.ZodType<
|
|
1604
|
+
CreateDatasetItemMessagesExtraContent$Outbound,
|
|
1605
|
+
z.ZodTypeDef,
|
|
1606
|
+
CreateDatasetItemMessagesExtraContent
|
|
1607
|
+
> = z.object({
|
|
1608
|
+
google: z.lazy(() => CreateDatasetItemMessagesGoogle$outboundSchema)
|
|
1609
|
+
.optional(),
|
|
1610
|
+
});
|
|
1611
|
+
|
|
1612
|
+
export function createDatasetItemMessagesExtraContentToJSON(
|
|
1613
|
+
createDatasetItemMessagesExtraContent: CreateDatasetItemMessagesExtraContent,
|
|
1614
|
+
): string {
|
|
1615
|
+
return JSON.stringify(
|
|
1616
|
+
CreateDatasetItemMessagesExtraContent$outboundSchema.parse(
|
|
1617
|
+
createDatasetItemMessagesExtraContent,
|
|
1618
|
+
),
|
|
1619
|
+
);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1533
1622
|
/** @internal */
|
|
1534
1623
|
export type CreateDatasetItemMessagesToolCalls$Outbound = {
|
|
1535
1624
|
id: string;
|
|
1536
1625
|
type: string;
|
|
1537
1626
|
function: CreateDatasetItemMessagesFunction$Outbound;
|
|
1538
1627
|
thought_signature?: string | undefined;
|
|
1628
|
+
extra_content?: CreateDatasetItemMessagesExtraContent$Outbound | undefined;
|
|
1539
1629
|
};
|
|
1540
1630
|
|
|
1541
1631
|
/** @internal */
|
|
@@ -1548,9 +1638,13 @@ export const CreateDatasetItemMessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
1548
1638
|
type: CreateDatasetItemMessagesType$outboundSchema,
|
|
1549
1639
|
function: z.lazy(() => CreateDatasetItemMessagesFunction$outboundSchema),
|
|
1550
1640
|
thoughtSignature: z.string().optional(),
|
|
1641
|
+
extraContent: z.lazy(() =>
|
|
1642
|
+
CreateDatasetItemMessagesExtraContent$outboundSchema
|
|
1643
|
+
).optional(),
|
|
1551
1644
|
}).transform((v) => {
|
|
1552
1645
|
return remap$(v, {
|
|
1553
1646
|
thoughtSignature: "thought_signature",
|
|
1647
|
+
extraContent: "extra_content",
|
|
1554
1648
|
});
|
|
1555
1649
|
});
|
|
1556
1650
|
|
|
@@ -2278,6 +2372,62 @@ export function createDatasetItemMessagesDatasetsFunctionFromJSON(
|
|
|
2278
2372
|
);
|
|
2279
2373
|
}
|
|
2280
2374
|
|
|
2375
|
+
/** @internal */
|
|
2376
|
+
export const CreateDatasetItemMessagesDatasetsGoogle$inboundSchema: z.ZodType<
|
|
2377
|
+
CreateDatasetItemMessagesDatasetsGoogle,
|
|
2378
|
+
z.ZodTypeDef,
|
|
2379
|
+
unknown
|
|
2380
|
+
> = z.object({
|
|
2381
|
+
thought_signature: z.string().optional(),
|
|
2382
|
+
}).transform((v) => {
|
|
2383
|
+
return remap$(v, {
|
|
2384
|
+
"thought_signature": "thoughtSignature",
|
|
2385
|
+
});
|
|
2386
|
+
});
|
|
2387
|
+
|
|
2388
|
+
export function createDatasetItemMessagesDatasetsGoogleFromJSON(
|
|
2389
|
+
jsonString: string,
|
|
2390
|
+
): SafeParseResult<
|
|
2391
|
+
CreateDatasetItemMessagesDatasetsGoogle,
|
|
2392
|
+
SDKValidationError
|
|
2393
|
+
> {
|
|
2394
|
+
return safeParse(
|
|
2395
|
+
jsonString,
|
|
2396
|
+
(x) =>
|
|
2397
|
+
CreateDatasetItemMessagesDatasetsGoogle$inboundSchema.parse(
|
|
2398
|
+
JSON.parse(x),
|
|
2399
|
+
),
|
|
2400
|
+
`Failed to parse 'CreateDatasetItemMessagesDatasetsGoogle' from JSON`,
|
|
2401
|
+
);
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
/** @internal */
|
|
2405
|
+
export const CreateDatasetItemMessagesDatasetsExtraContent$inboundSchema:
|
|
2406
|
+
z.ZodType<
|
|
2407
|
+
CreateDatasetItemMessagesDatasetsExtraContent,
|
|
2408
|
+
z.ZodTypeDef,
|
|
2409
|
+
unknown
|
|
2410
|
+
> = z.object({
|
|
2411
|
+
google: z.lazy(() => CreateDatasetItemMessagesDatasetsGoogle$inboundSchema)
|
|
2412
|
+
.optional(),
|
|
2413
|
+
});
|
|
2414
|
+
|
|
2415
|
+
export function createDatasetItemMessagesDatasetsExtraContentFromJSON(
|
|
2416
|
+
jsonString: string,
|
|
2417
|
+
): SafeParseResult<
|
|
2418
|
+
CreateDatasetItemMessagesDatasetsExtraContent,
|
|
2419
|
+
SDKValidationError
|
|
2420
|
+
> {
|
|
2421
|
+
return safeParse(
|
|
2422
|
+
jsonString,
|
|
2423
|
+
(x) =>
|
|
2424
|
+
CreateDatasetItemMessagesDatasetsExtraContent$inboundSchema.parse(
|
|
2425
|
+
JSON.parse(x),
|
|
2426
|
+
),
|
|
2427
|
+
`Failed to parse 'CreateDatasetItemMessagesDatasetsExtraContent' from JSON`,
|
|
2428
|
+
);
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2281
2431
|
/** @internal */
|
|
2282
2432
|
export const CreateDatasetItemMessagesDatasetsToolCalls$inboundSchema:
|
|
2283
2433
|
z.ZodType<CreateDatasetItemMessagesDatasetsToolCalls, z.ZodTypeDef, unknown> =
|
|
@@ -2288,9 +2438,13 @@ export const CreateDatasetItemMessagesDatasetsToolCalls$inboundSchema:
|
|
|
2288
2438
|
CreateDatasetItemMessagesDatasetsFunction$inboundSchema
|
|
2289
2439
|
),
|
|
2290
2440
|
thought_signature: z.string().optional(),
|
|
2441
|
+
extra_content: z.lazy(() =>
|
|
2442
|
+
CreateDatasetItemMessagesDatasetsExtraContent$inboundSchema
|
|
2443
|
+
).optional(),
|
|
2291
2444
|
}).transform((v) => {
|
|
2292
2445
|
return remap$(v, {
|
|
2293
2446
|
"thought_signature": "thoughtSignature",
|
|
2447
|
+
"extra_content": "extraContent",
|
|
2294
2448
|
});
|
|
2295
2449
|
});
|
|
2296
2450
|
|
|
@@ -2739,7 +2893,7 @@ export const Evaluations4$inboundSchema: z.ZodType<
|
|
|
2739
2893
|
explanation: z.string().optional(),
|
|
2740
2894
|
reviewed_by_id: z.string(),
|
|
2741
2895
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2742
|
-
"2026-09-
|
|
2896
|
+
"2026-09-20T18:42:26.293Z",
|
|
2743
2897
|
).transform(v => new Date(v)),
|
|
2744
2898
|
type: z.literal("string_array"),
|
|
2745
2899
|
values: z.array(z.string()),
|
|
@@ -2829,7 +2983,7 @@ export const CreateDatasetItemEvaluations3$inboundSchema: z.ZodType<
|
|
|
2829
2983
|
explanation: z.string().optional(),
|
|
2830
2984
|
reviewed_by_id: z.string(),
|
|
2831
2985
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2832
|
-
"2026-09-
|
|
2986
|
+
"2026-09-20T18:42:26.293Z",
|
|
2833
2987
|
).transform(v => new Date(v)),
|
|
2834
2988
|
type: z.literal("boolean"),
|
|
2835
2989
|
value: z.boolean(),
|
|
@@ -2914,7 +3068,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2914
3068
|
explanation: z.string().optional(),
|
|
2915
3069
|
reviewed_by_id: z.string(),
|
|
2916
3070
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2917
|
-
"2026-09-
|
|
3071
|
+
"2026-09-20T18:42:26.292Z",
|
|
2918
3072
|
).transform(v => new Date(v)),
|
|
2919
3073
|
type: z.literal("number"),
|
|
2920
3074
|
value: z.number(),
|
|
@@ -3000,7 +3154,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
3000
3154
|
explanation: z.string().optional(),
|
|
3001
3155
|
reviewed_by_id: z.string(),
|
|
3002
3156
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3003
|
-
"2026-09-
|
|
3157
|
+
"2026-09-20T18:42:26.292Z",
|
|
3004
3158
|
).transform(v => new Date(v)),
|
|
3005
3159
|
type: z.literal("string"),
|
|
3006
3160
|
value: z.string(),
|
|
@@ -3087,7 +3241,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
3087
3241
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3088
3242
|
.optional(),
|
|
3089
3243
|
updated: z.string().datetime({ offset: true }).default(
|
|
3090
|
-
"2026-09-
|
|
3244
|
+
"2026-09-20T18:42:18.531Z",
|
|
3091
3245
|
).transform(v => new Date(v)),
|
|
3092
3246
|
}).transform((v) => {
|
|
3093
3247
|
return remap$(v, {
|
|
@@ -199,6 +199,20 @@ export type CreatePromptMessagesFunction = {
|
|
|
199
199
|
arguments?: string | undefined;
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
+
export type CreatePromptMessagesGoogle = {
|
|
203
|
+
/**
|
|
204
|
+
* 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.
|
|
205
|
+
*/
|
|
206
|
+
thoughtSignature?: string | undefined;
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Provider-specific extra content for the tool call.
|
|
211
|
+
*/
|
|
212
|
+
export type CreatePromptMessagesExtraContent = {
|
|
213
|
+
google?: CreatePromptMessagesGoogle | undefined;
|
|
214
|
+
};
|
|
215
|
+
|
|
202
216
|
export type CreatePromptMessagesToolCalls = {
|
|
203
217
|
/**
|
|
204
218
|
* The ID of the tool call.
|
|
@@ -213,6 +227,10 @@ export type CreatePromptMessagesToolCalls = {
|
|
|
213
227
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
214
228
|
*/
|
|
215
229
|
thoughtSignature?: string | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* Provider-specific extra content for the tool call.
|
|
232
|
+
*/
|
|
233
|
+
extraContent?: CreatePromptMessagesExtraContent | undefined;
|
|
216
234
|
};
|
|
217
235
|
|
|
218
236
|
export type CreatePromptMessagesAssistantMessage = {
|
|
@@ -2088,6 +2106,20 @@ export type CreatePromptMessagesPromptsFunction = {
|
|
|
2088
2106
|
arguments?: string | undefined;
|
|
2089
2107
|
};
|
|
2090
2108
|
|
|
2109
|
+
export type CreatePromptMessagesPromptsGoogle = {
|
|
2110
|
+
/**
|
|
2111
|
+
* 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.
|
|
2112
|
+
*/
|
|
2113
|
+
thoughtSignature?: string | undefined;
|
|
2114
|
+
};
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* Provider-specific extra content for the tool call.
|
|
2118
|
+
*/
|
|
2119
|
+
export type CreatePromptMessagesPromptsExtraContent = {
|
|
2120
|
+
google?: CreatePromptMessagesPromptsGoogle | undefined;
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2091
2123
|
export type CreatePromptMessagesPromptsToolCalls = {
|
|
2092
2124
|
/**
|
|
2093
2125
|
* The ID of the tool call.
|
|
@@ -2102,6 +2134,10 @@ export type CreatePromptMessagesPromptsToolCalls = {
|
|
|
2102
2134
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
2103
2135
|
*/
|
|
2104
2136
|
thoughtSignature?: string | undefined;
|
|
2137
|
+
/**
|
|
2138
|
+
* Provider-specific extra content for the tool call.
|
|
2139
|
+
*/
|
|
2140
|
+
extraContent?: CreatePromptMessagesPromptsExtraContent | undefined;
|
|
2105
2141
|
};
|
|
2106
2142
|
|
|
2107
2143
|
export type CreatePromptMessagesPromptsAssistantMessage = {
|
|
@@ -2833,12 +2869,63 @@ export function createPromptMessagesFunctionToJSON(
|
|
|
2833
2869
|
);
|
|
2834
2870
|
}
|
|
2835
2871
|
|
|
2872
|
+
/** @internal */
|
|
2873
|
+
export type CreatePromptMessagesGoogle$Outbound = {
|
|
2874
|
+
thought_signature?: string | undefined;
|
|
2875
|
+
};
|
|
2876
|
+
|
|
2877
|
+
/** @internal */
|
|
2878
|
+
export const CreatePromptMessagesGoogle$outboundSchema: z.ZodType<
|
|
2879
|
+
CreatePromptMessagesGoogle$Outbound,
|
|
2880
|
+
z.ZodTypeDef,
|
|
2881
|
+
CreatePromptMessagesGoogle
|
|
2882
|
+
> = z.object({
|
|
2883
|
+
thoughtSignature: z.string().optional(),
|
|
2884
|
+
}).transform((v) => {
|
|
2885
|
+
return remap$(v, {
|
|
2886
|
+
thoughtSignature: "thought_signature",
|
|
2887
|
+
});
|
|
2888
|
+
});
|
|
2889
|
+
|
|
2890
|
+
export function createPromptMessagesGoogleToJSON(
|
|
2891
|
+
createPromptMessagesGoogle: CreatePromptMessagesGoogle,
|
|
2892
|
+
): string {
|
|
2893
|
+
return JSON.stringify(
|
|
2894
|
+
CreatePromptMessagesGoogle$outboundSchema.parse(createPromptMessagesGoogle),
|
|
2895
|
+
);
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
/** @internal */
|
|
2899
|
+
export type CreatePromptMessagesExtraContent$Outbound = {
|
|
2900
|
+
google?: CreatePromptMessagesGoogle$Outbound | undefined;
|
|
2901
|
+
};
|
|
2902
|
+
|
|
2903
|
+
/** @internal */
|
|
2904
|
+
export const CreatePromptMessagesExtraContent$outboundSchema: z.ZodType<
|
|
2905
|
+
CreatePromptMessagesExtraContent$Outbound,
|
|
2906
|
+
z.ZodTypeDef,
|
|
2907
|
+
CreatePromptMessagesExtraContent
|
|
2908
|
+
> = z.object({
|
|
2909
|
+
google: z.lazy(() => CreatePromptMessagesGoogle$outboundSchema).optional(),
|
|
2910
|
+
});
|
|
2911
|
+
|
|
2912
|
+
export function createPromptMessagesExtraContentToJSON(
|
|
2913
|
+
createPromptMessagesExtraContent: CreatePromptMessagesExtraContent,
|
|
2914
|
+
): string {
|
|
2915
|
+
return JSON.stringify(
|
|
2916
|
+
CreatePromptMessagesExtraContent$outboundSchema.parse(
|
|
2917
|
+
createPromptMessagesExtraContent,
|
|
2918
|
+
),
|
|
2919
|
+
);
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2836
2922
|
/** @internal */
|
|
2837
2923
|
export type CreatePromptMessagesToolCalls$Outbound = {
|
|
2838
2924
|
id: string;
|
|
2839
2925
|
type: string;
|
|
2840
2926
|
function: CreatePromptMessagesFunction$Outbound;
|
|
2841
2927
|
thought_signature?: string | undefined;
|
|
2928
|
+
extra_content?: CreatePromptMessagesExtraContent$Outbound | undefined;
|
|
2842
2929
|
};
|
|
2843
2930
|
|
|
2844
2931
|
/** @internal */
|
|
@@ -2851,9 +2938,12 @@ export const CreatePromptMessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
2851
2938
|
type: CreatePromptMessagesType$outboundSchema,
|
|
2852
2939
|
function: z.lazy(() => CreatePromptMessagesFunction$outboundSchema),
|
|
2853
2940
|
thoughtSignature: z.string().optional(),
|
|
2941
|
+
extraContent: z.lazy(() => CreatePromptMessagesExtraContent$outboundSchema)
|
|
2942
|
+
.optional(),
|
|
2854
2943
|
}).transform((v) => {
|
|
2855
2944
|
return remap$(v, {
|
|
2856
2945
|
thoughtSignature: "thought_signature",
|
|
2946
|
+
extraContent: "extra_content",
|
|
2857
2947
|
});
|
|
2858
2948
|
});
|
|
2859
2949
|
|
|
@@ -5375,6 +5465,55 @@ export function createPromptMessagesPromptsFunctionFromJSON(
|
|
|
5375
5465
|
);
|
|
5376
5466
|
}
|
|
5377
5467
|
|
|
5468
|
+
/** @internal */
|
|
5469
|
+
export const CreatePromptMessagesPromptsGoogle$inboundSchema: z.ZodType<
|
|
5470
|
+
CreatePromptMessagesPromptsGoogle,
|
|
5471
|
+
z.ZodTypeDef,
|
|
5472
|
+
unknown
|
|
5473
|
+
> = z.object({
|
|
5474
|
+
thought_signature: z.string().optional(),
|
|
5475
|
+
}).transform((v) => {
|
|
5476
|
+
return remap$(v, {
|
|
5477
|
+
"thought_signature": "thoughtSignature",
|
|
5478
|
+
});
|
|
5479
|
+
});
|
|
5480
|
+
|
|
5481
|
+
export function createPromptMessagesPromptsGoogleFromJSON(
|
|
5482
|
+
jsonString: string,
|
|
5483
|
+
): SafeParseResult<CreatePromptMessagesPromptsGoogle, SDKValidationError> {
|
|
5484
|
+
return safeParse(
|
|
5485
|
+
jsonString,
|
|
5486
|
+
(x) => CreatePromptMessagesPromptsGoogle$inboundSchema.parse(JSON.parse(x)),
|
|
5487
|
+
`Failed to parse 'CreatePromptMessagesPromptsGoogle' from JSON`,
|
|
5488
|
+
);
|
|
5489
|
+
}
|
|
5490
|
+
|
|
5491
|
+
/** @internal */
|
|
5492
|
+
export const CreatePromptMessagesPromptsExtraContent$inboundSchema: z.ZodType<
|
|
5493
|
+
CreatePromptMessagesPromptsExtraContent,
|
|
5494
|
+
z.ZodTypeDef,
|
|
5495
|
+
unknown
|
|
5496
|
+
> = z.object({
|
|
5497
|
+
google: z.lazy(() => CreatePromptMessagesPromptsGoogle$inboundSchema)
|
|
5498
|
+
.optional(),
|
|
5499
|
+
});
|
|
5500
|
+
|
|
5501
|
+
export function createPromptMessagesPromptsExtraContentFromJSON(
|
|
5502
|
+
jsonString: string,
|
|
5503
|
+
): SafeParseResult<
|
|
5504
|
+
CreatePromptMessagesPromptsExtraContent,
|
|
5505
|
+
SDKValidationError
|
|
5506
|
+
> {
|
|
5507
|
+
return safeParse(
|
|
5508
|
+
jsonString,
|
|
5509
|
+
(x) =>
|
|
5510
|
+
CreatePromptMessagesPromptsExtraContent$inboundSchema.parse(
|
|
5511
|
+
JSON.parse(x),
|
|
5512
|
+
),
|
|
5513
|
+
`Failed to parse 'CreatePromptMessagesPromptsExtraContent' from JSON`,
|
|
5514
|
+
);
|
|
5515
|
+
}
|
|
5516
|
+
|
|
5378
5517
|
/** @internal */
|
|
5379
5518
|
export const CreatePromptMessagesPromptsToolCalls$inboundSchema: z.ZodType<
|
|
5380
5519
|
CreatePromptMessagesPromptsToolCalls,
|
|
@@ -5385,9 +5524,13 @@ export const CreatePromptMessagesPromptsToolCalls$inboundSchema: z.ZodType<
|
|
|
5385
5524
|
type: CreatePromptMessagesPromptsResponseType$inboundSchema,
|
|
5386
5525
|
function: z.lazy(() => CreatePromptMessagesPromptsFunction$inboundSchema),
|
|
5387
5526
|
thought_signature: z.string().optional(),
|
|
5527
|
+
extra_content: z.lazy(() =>
|
|
5528
|
+
CreatePromptMessagesPromptsExtraContent$inboundSchema
|
|
5529
|
+
).optional(),
|
|
5388
5530
|
}).transform((v) => {
|
|
5389
5531
|
return remap$(v, {
|
|
5390
5532
|
"thought_signature": "thoughtSignature",
|
|
5533
|
+
"extra_content": "extraContent",
|
|
5391
5534
|
});
|
|
5392
5535
|
});
|
|
5393
5536
|
|
|
@@ -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_01M3020VT9M31JWDZMAS36ZAQ6"),
|
|
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_01M3020VT81S352AH6BW5E8WVV"),
|
|
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_01M3020VT80HW2FDQ23Q7WQA6G"),
|
|
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_01M3020VT7DM48ZM1MMW7RRV6K"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|