@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
|
@@ -147,6 +147,20 @@ export type PrefixMessagesFunction = {
|
|
|
147
147
|
arguments?: string | undefined;
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
+
export type PrefixMessagesGoogle = {
|
|
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 PrefixMessagesExtraContent = {
|
|
161
|
+
google?: PrefixMessagesGoogle | undefined;
|
|
162
|
+
};
|
|
163
|
+
|
|
150
164
|
export type PrefixMessagesToolCalls = {
|
|
151
165
|
/**
|
|
152
166
|
* The ID of the tool call.
|
|
@@ -161,6 +175,10 @@ export type PrefixMessagesToolCalls = {
|
|
|
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?: PrefixMessagesExtraContent | undefined;
|
|
164
182
|
};
|
|
165
183
|
|
|
166
184
|
export type PrefixMessagesAssistantMessage = {
|
|
@@ -505,6 +523,20 @@ export type DeploymentGetConfigMessagesFunction = {
|
|
|
505
523
|
arguments?: string | undefined;
|
|
506
524
|
};
|
|
507
525
|
|
|
526
|
+
export type DeploymentGetConfigMessagesGoogle = {
|
|
527
|
+
/**
|
|
528
|
+
* 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.
|
|
529
|
+
*/
|
|
530
|
+
thoughtSignature?: string | undefined;
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Provider-specific extra content for the tool call.
|
|
535
|
+
*/
|
|
536
|
+
export type DeploymentGetConfigMessagesExtraContent = {
|
|
537
|
+
google?: DeploymentGetConfigMessagesGoogle | undefined;
|
|
538
|
+
};
|
|
539
|
+
|
|
508
540
|
export type DeploymentGetConfigMessagesToolCalls = {
|
|
509
541
|
/**
|
|
510
542
|
* The ID of the tool call.
|
|
@@ -519,6 +551,10 @@ export type DeploymentGetConfigMessagesToolCalls = {
|
|
|
519
551
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
520
552
|
*/
|
|
521
553
|
thoughtSignature?: string | undefined;
|
|
554
|
+
/**
|
|
555
|
+
* Provider-specific extra content for the tool call.
|
|
556
|
+
*/
|
|
557
|
+
extraContent?: DeploymentGetConfigMessagesExtraContent | undefined;
|
|
522
558
|
};
|
|
523
559
|
|
|
524
560
|
export type DeploymentGetConfigMessagesAssistantMessage = {
|
|
@@ -1951,12 +1987,61 @@ export function prefixMessagesFunctionToJSON(
|
|
|
1951
1987
|
);
|
|
1952
1988
|
}
|
|
1953
1989
|
|
|
1990
|
+
/** @internal */
|
|
1991
|
+
export type PrefixMessagesGoogle$Outbound = {
|
|
1992
|
+
thought_signature?: string | undefined;
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1995
|
+
/** @internal */
|
|
1996
|
+
export const PrefixMessagesGoogle$outboundSchema: z.ZodType<
|
|
1997
|
+
PrefixMessagesGoogle$Outbound,
|
|
1998
|
+
z.ZodTypeDef,
|
|
1999
|
+
PrefixMessagesGoogle
|
|
2000
|
+
> = z.object({
|
|
2001
|
+
thoughtSignature: z.string().optional(),
|
|
2002
|
+
}).transform((v) => {
|
|
2003
|
+
return remap$(v, {
|
|
2004
|
+
thoughtSignature: "thought_signature",
|
|
2005
|
+
});
|
|
2006
|
+
});
|
|
2007
|
+
|
|
2008
|
+
export function prefixMessagesGoogleToJSON(
|
|
2009
|
+
prefixMessagesGoogle: PrefixMessagesGoogle,
|
|
2010
|
+
): string {
|
|
2011
|
+
return JSON.stringify(
|
|
2012
|
+
PrefixMessagesGoogle$outboundSchema.parse(prefixMessagesGoogle),
|
|
2013
|
+
);
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
/** @internal */
|
|
2017
|
+
export type PrefixMessagesExtraContent$Outbound = {
|
|
2018
|
+
google?: PrefixMessagesGoogle$Outbound | undefined;
|
|
2019
|
+
};
|
|
2020
|
+
|
|
2021
|
+
/** @internal */
|
|
2022
|
+
export const PrefixMessagesExtraContent$outboundSchema: z.ZodType<
|
|
2023
|
+
PrefixMessagesExtraContent$Outbound,
|
|
2024
|
+
z.ZodTypeDef,
|
|
2025
|
+
PrefixMessagesExtraContent
|
|
2026
|
+
> = z.object({
|
|
2027
|
+
google: z.lazy(() => PrefixMessagesGoogle$outboundSchema).optional(),
|
|
2028
|
+
});
|
|
2029
|
+
|
|
2030
|
+
export function prefixMessagesExtraContentToJSON(
|
|
2031
|
+
prefixMessagesExtraContent: PrefixMessagesExtraContent,
|
|
2032
|
+
): string {
|
|
2033
|
+
return JSON.stringify(
|
|
2034
|
+
PrefixMessagesExtraContent$outboundSchema.parse(prefixMessagesExtraContent),
|
|
2035
|
+
);
|
|
2036
|
+
}
|
|
2037
|
+
|
|
1954
2038
|
/** @internal */
|
|
1955
2039
|
export type PrefixMessagesToolCalls$Outbound = {
|
|
1956
2040
|
id: string;
|
|
1957
2041
|
type: string;
|
|
1958
2042
|
function: PrefixMessagesFunction$Outbound;
|
|
1959
2043
|
thought_signature?: string | undefined;
|
|
2044
|
+
extra_content?: PrefixMessagesExtraContent$Outbound | undefined;
|
|
1960
2045
|
};
|
|
1961
2046
|
|
|
1962
2047
|
/** @internal */
|
|
@@ -1969,9 +2054,12 @@ export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
1969
2054
|
type: DeploymentGetConfigPrefixMessagesType$outboundSchema,
|
|
1970
2055
|
function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
|
|
1971
2056
|
thoughtSignature: z.string().optional(),
|
|
2057
|
+
extraContent: z.lazy(() => PrefixMessagesExtraContent$outboundSchema)
|
|
2058
|
+
.optional(),
|
|
1972
2059
|
}).transform((v) => {
|
|
1973
2060
|
return remap$(v, {
|
|
1974
2061
|
thoughtSignature: "thought_signature",
|
|
2062
|
+
extraContent: "extra_content",
|
|
1975
2063
|
});
|
|
1976
2064
|
});
|
|
1977
2065
|
|
|
@@ -2632,12 +2720,67 @@ export function deploymentGetConfigMessagesFunctionToJSON(
|
|
|
2632
2720
|
);
|
|
2633
2721
|
}
|
|
2634
2722
|
|
|
2723
|
+
/** @internal */
|
|
2724
|
+
export type DeploymentGetConfigMessagesGoogle$Outbound = {
|
|
2725
|
+
thought_signature?: string | undefined;
|
|
2726
|
+
};
|
|
2727
|
+
|
|
2728
|
+
/** @internal */
|
|
2729
|
+
export const DeploymentGetConfigMessagesGoogle$outboundSchema: z.ZodType<
|
|
2730
|
+
DeploymentGetConfigMessagesGoogle$Outbound,
|
|
2731
|
+
z.ZodTypeDef,
|
|
2732
|
+
DeploymentGetConfigMessagesGoogle
|
|
2733
|
+
> = z.object({
|
|
2734
|
+
thoughtSignature: z.string().optional(),
|
|
2735
|
+
}).transform((v) => {
|
|
2736
|
+
return remap$(v, {
|
|
2737
|
+
thoughtSignature: "thought_signature",
|
|
2738
|
+
});
|
|
2739
|
+
});
|
|
2740
|
+
|
|
2741
|
+
export function deploymentGetConfigMessagesGoogleToJSON(
|
|
2742
|
+
deploymentGetConfigMessagesGoogle: DeploymentGetConfigMessagesGoogle,
|
|
2743
|
+
): string {
|
|
2744
|
+
return JSON.stringify(
|
|
2745
|
+
DeploymentGetConfigMessagesGoogle$outboundSchema.parse(
|
|
2746
|
+
deploymentGetConfigMessagesGoogle,
|
|
2747
|
+
),
|
|
2748
|
+
);
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
/** @internal */
|
|
2752
|
+
export type DeploymentGetConfigMessagesExtraContent$Outbound = {
|
|
2753
|
+
google?: DeploymentGetConfigMessagesGoogle$Outbound | undefined;
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2756
|
+
/** @internal */
|
|
2757
|
+
export const DeploymentGetConfigMessagesExtraContent$outboundSchema: z.ZodType<
|
|
2758
|
+
DeploymentGetConfigMessagesExtraContent$Outbound,
|
|
2759
|
+
z.ZodTypeDef,
|
|
2760
|
+
DeploymentGetConfigMessagesExtraContent
|
|
2761
|
+
> = z.object({
|
|
2762
|
+
google: z.lazy(() => DeploymentGetConfigMessagesGoogle$outboundSchema)
|
|
2763
|
+
.optional(),
|
|
2764
|
+
});
|
|
2765
|
+
|
|
2766
|
+
export function deploymentGetConfigMessagesExtraContentToJSON(
|
|
2767
|
+
deploymentGetConfigMessagesExtraContent:
|
|
2768
|
+
DeploymentGetConfigMessagesExtraContent,
|
|
2769
|
+
): string {
|
|
2770
|
+
return JSON.stringify(
|
|
2771
|
+
DeploymentGetConfigMessagesExtraContent$outboundSchema.parse(
|
|
2772
|
+
deploymentGetConfigMessagesExtraContent,
|
|
2773
|
+
),
|
|
2774
|
+
);
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2635
2777
|
/** @internal */
|
|
2636
2778
|
export type DeploymentGetConfigMessagesToolCalls$Outbound = {
|
|
2637
2779
|
id: string;
|
|
2638
2780
|
type: string;
|
|
2639
2781
|
function: DeploymentGetConfigMessagesFunction$Outbound;
|
|
2640
2782
|
thought_signature?: string | undefined;
|
|
2783
|
+
extra_content?: DeploymentGetConfigMessagesExtraContent$Outbound | undefined;
|
|
2641
2784
|
};
|
|
2642
2785
|
|
|
2643
2786
|
/** @internal */
|
|
@@ -2650,9 +2793,13 @@ export const DeploymentGetConfigMessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
2650
2793
|
type: DeploymentGetConfigMessagesType$outboundSchema,
|
|
2651
2794
|
function: z.lazy(() => DeploymentGetConfigMessagesFunction$outboundSchema),
|
|
2652
2795
|
thoughtSignature: z.string().optional(),
|
|
2796
|
+
extraContent: z.lazy(() =>
|
|
2797
|
+
DeploymentGetConfigMessagesExtraContent$outboundSchema
|
|
2798
|
+
).optional(),
|
|
2653
2799
|
}).transform((v) => {
|
|
2654
2800
|
return remap$(v, {
|
|
2655
2801
|
thoughtSignature: "thought_signature",
|
|
2802
|
+
extraContent: "extra_content",
|
|
2656
2803
|
});
|
|
2657
2804
|
});
|
|
2658
2805
|
|
|
@@ -142,6 +142,20 @@ export type FunctionT = {
|
|
|
142
142
|
arguments?: string | undefined;
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
+
export type Google = {
|
|
146
|
+
/**
|
|
147
|
+
* 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.
|
|
148
|
+
*/
|
|
149
|
+
thoughtSignature?: string | undefined;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Provider-specific extra content for the tool call.
|
|
154
|
+
*/
|
|
155
|
+
export type ExtraContent = {
|
|
156
|
+
google?: Google | undefined;
|
|
157
|
+
};
|
|
158
|
+
|
|
145
159
|
export type ToolCalls = {
|
|
146
160
|
/**
|
|
147
161
|
* The ID of the tool call.
|
|
@@ -156,6 +170,10 @@ export type ToolCalls = {
|
|
|
156
170
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
157
171
|
*/
|
|
158
172
|
thoughtSignature?: string | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Provider-specific extra content for the tool call.
|
|
175
|
+
*/
|
|
176
|
+
extraContent?: ExtraContent | undefined;
|
|
159
177
|
};
|
|
160
178
|
|
|
161
179
|
export type AssistantMessage = {
|
|
@@ -490,6 +508,20 @@ export type MessagesFunction = {
|
|
|
490
508
|
arguments?: string | undefined;
|
|
491
509
|
};
|
|
492
510
|
|
|
511
|
+
export type MessagesGoogle = {
|
|
512
|
+
/**
|
|
513
|
+
* 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.
|
|
514
|
+
*/
|
|
515
|
+
thoughtSignature?: string | undefined;
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Provider-specific extra content for the tool call.
|
|
520
|
+
*/
|
|
521
|
+
export type MessagesExtraContent = {
|
|
522
|
+
google?: MessagesGoogle | undefined;
|
|
523
|
+
};
|
|
524
|
+
|
|
493
525
|
export type MessagesToolCalls = {
|
|
494
526
|
/**
|
|
495
527
|
* The ID of the tool call.
|
|
@@ -504,6 +536,10 @@ export type MessagesToolCalls = {
|
|
|
504
536
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
505
537
|
*/
|
|
506
538
|
thoughtSignature?: string | undefined;
|
|
539
|
+
/**
|
|
540
|
+
* Provider-specific extra content for the tool call.
|
|
541
|
+
*/
|
|
542
|
+
extraContent?: MessagesExtraContent | undefined;
|
|
507
543
|
};
|
|
508
544
|
|
|
509
545
|
export type MessagesAssistantMessage = {
|
|
@@ -1651,12 +1687,53 @@ export function functionToJSON(functionT: FunctionT): string {
|
|
|
1651
1687
|
return JSON.stringify(FunctionT$outboundSchema.parse(functionT));
|
|
1652
1688
|
}
|
|
1653
1689
|
|
|
1690
|
+
/** @internal */
|
|
1691
|
+
export type Google$Outbound = {
|
|
1692
|
+
thought_signature?: string | undefined;
|
|
1693
|
+
};
|
|
1694
|
+
|
|
1695
|
+
/** @internal */
|
|
1696
|
+
export const Google$outboundSchema: z.ZodType<
|
|
1697
|
+
Google$Outbound,
|
|
1698
|
+
z.ZodTypeDef,
|
|
1699
|
+
Google
|
|
1700
|
+
> = z.object({
|
|
1701
|
+
thoughtSignature: z.string().optional(),
|
|
1702
|
+
}).transform((v) => {
|
|
1703
|
+
return remap$(v, {
|
|
1704
|
+
thoughtSignature: "thought_signature",
|
|
1705
|
+
});
|
|
1706
|
+
});
|
|
1707
|
+
|
|
1708
|
+
export function googleToJSON(google: Google): string {
|
|
1709
|
+
return JSON.stringify(Google$outboundSchema.parse(google));
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
/** @internal */
|
|
1713
|
+
export type ExtraContent$Outbound = {
|
|
1714
|
+
google?: Google$Outbound | undefined;
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1717
|
+
/** @internal */
|
|
1718
|
+
export const ExtraContent$outboundSchema: z.ZodType<
|
|
1719
|
+
ExtraContent$Outbound,
|
|
1720
|
+
z.ZodTypeDef,
|
|
1721
|
+
ExtraContent
|
|
1722
|
+
> = z.object({
|
|
1723
|
+
google: z.lazy(() => Google$outboundSchema).optional(),
|
|
1724
|
+
});
|
|
1725
|
+
|
|
1726
|
+
export function extraContentToJSON(extraContent: ExtraContent): string {
|
|
1727
|
+
return JSON.stringify(ExtraContent$outboundSchema.parse(extraContent));
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1654
1730
|
/** @internal */
|
|
1655
1731
|
export type ToolCalls$Outbound = {
|
|
1656
1732
|
id: string;
|
|
1657
1733
|
type: string;
|
|
1658
1734
|
function: FunctionT$Outbound;
|
|
1659
1735
|
thought_signature?: string | undefined;
|
|
1736
|
+
extra_content?: ExtraContent$Outbound | undefined;
|
|
1660
1737
|
};
|
|
1661
1738
|
|
|
1662
1739
|
/** @internal */
|
|
@@ -1669,9 +1746,11 @@ export const ToolCalls$outboundSchema: z.ZodType<
|
|
|
1669
1746
|
type: PrefixMessagesType$outboundSchema,
|
|
1670
1747
|
function: z.lazy(() => FunctionT$outboundSchema),
|
|
1671
1748
|
thoughtSignature: z.string().optional(),
|
|
1749
|
+
extraContent: z.lazy(() => ExtraContent$outboundSchema).optional(),
|
|
1672
1750
|
}).transform((v) => {
|
|
1673
1751
|
return remap$(v, {
|
|
1674
1752
|
thoughtSignature: "thought_signature",
|
|
1753
|
+
extraContent: "extra_content",
|
|
1675
1754
|
});
|
|
1676
1755
|
});
|
|
1677
1756
|
|
|
@@ -2254,12 +2333,57 @@ export function messagesFunctionToJSON(
|
|
|
2254
2333
|
);
|
|
2255
2334
|
}
|
|
2256
2335
|
|
|
2336
|
+
/** @internal */
|
|
2337
|
+
export type MessagesGoogle$Outbound = {
|
|
2338
|
+
thought_signature?: string | undefined;
|
|
2339
|
+
};
|
|
2340
|
+
|
|
2341
|
+
/** @internal */
|
|
2342
|
+
export const MessagesGoogle$outboundSchema: z.ZodType<
|
|
2343
|
+
MessagesGoogle$Outbound,
|
|
2344
|
+
z.ZodTypeDef,
|
|
2345
|
+
MessagesGoogle
|
|
2346
|
+
> = z.object({
|
|
2347
|
+
thoughtSignature: z.string().optional(),
|
|
2348
|
+
}).transform((v) => {
|
|
2349
|
+
return remap$(v, {
|
|
2350
|
+
thoughtSignature: "thought_signature",
|
|
2351
|
+
});
|
|
2352
|
+
});
|
|
2353
|
+
|
|
2354
|
+
export function messagesGoogleToJSON(messagesGoogle: MessagesGoogle): string {
|
|
2355
|
+
return JSON.stringify(MessagesGoogle$outboundSchema.parse(messagesGoogle));
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
/** @internal */
|
|
2359
|
+
export type MessagesExtraContent$Outbound = {
|
|
2360
|
+
google?: MessagesGoogle$Outbound | undefined;
|
|
2361
|
+
};
|
|
2362
|
+
|
|
2363
|
+
/** @internal */
|
|
2364
|
+
export const MessagesExtraContent$outboundSchema: z.ZodType<
|
|
2365
|
+
MessagesExtraContent$Outbound,
|
|
2366
|
+
z.ZodTypeDef,
|
|
2367
|
+
MessagesExtraContent
|
|
2368
|
+
> = z.object({
|
|
2369
|
+
google: z.lazy(() => MessagesGoogle$outboundSchema).optional(),
|
|
2370
|
+
});
|
|
2371
|
+
|
|
2372
|
+
export function messagesExtraContentToJSON(
|
|
2373
|
+
messagesExtraContent: MessagesExtraContent,
|
|
2374
|
+
): string {
|
|
2375
|
+
return JSON.stringify(
|
|
2376
|
+
MessagesExtraContent$outboundSchema.parse(messagesExtraContent),
|
|
2377
|
+
);
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2257
2380
|
/** @internal */
|
|
2258
2381
|
export type MessagesToolCalls$Outbound = {
|
|
2259
2382
|
id: string;
|
|
2260
2383
|
type: string;
|
|
2261
2384
|
function: MessagesFunction$Outbound;
|
|
2262
2385
|
thought_signature?: string | undefined;
|
|
2386
|
+
extra_content?: MessagesExtraContent$Outbound | undefined;
|
|
2263
2387
|
};
|
|
2264
2388
|
|
|
2265
2389
|
/** @internal */
|
|
@@ -2272,9 +2396,11 @@ export const MessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
2272
2396
|
type: MessagesType$outboundSchema,
|
|
2273
2397
|
function: z.lazy(() => MessagesFunction$outboundSchema),
|
|
2274
2398
|
thoughtSignature: z.string().optional(),
|
|
2399
|
+
extraContent: z.lazy(() => MessagesExtraContent$outboundSchema).optional(),
|
|
2275
2400
|
}).transform((v) => {
|
|
2276
2401
|
return remap$(v, {
|
|
2277
2402
|
thoughtSignature: "thought_signature",
|
|
2403
|
+
extraContent: "extra_content",
|
|
2278
2404
|
});
|
|
2279
2405
|
});
|
|
2280
2406
|
|
|
@@ -1134,6 +1134,20 @@ export type GetAllPromptsMessagesFunction = {
|
|
|
1134
1134
|
arguments?: string | undefined;
|
|
1135
1135
|
};
|
|
1136
1136
|
|
|
1137
|
+
export type GetAllPromptsMessagesGoogle = {
|
|
1138
|
+
/**
|
|
1139
|
+
* 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.
|
|
1140
|
+
*/
|
|
1141
|
+
thoughtSignature?: string | undefined;
|
|
1142
|
+
};
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* Provider-specific extra content for the tool call.
|
|
1146
|
+
*/
|
|
1147
|
+
export type GetAllPromptsMessagesExtraContent = {
|
|
1148
|
+
google?: GetAllPromptsMessagesGoogle | undefined;
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1137
1151
|
export type GetAllPromptsMessagesToolCalls = {
|
|
1138
1152
|
/**
|
|
1139
1153
|
* The ID of the tool call.
|
|
@@ -1148,6 +1162,10 @@ export type GetAllPromptsMessagesToolCalls = {
|
|
|
1148
1162
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
1149
1163
|
*/
|
|
1150
1164
|
thoughtSignature?: string | undefined;
|
|
1165
|
+
/**
|
|
1166
|
+
* Provider-specific extra content for the tool call.
|
|
1167
|
+
*/
|
|
1168
|
+
extraContent?: GetAllPromptsMessagesExtraContent | undefined;
|
|
1151
1169
|
};
|
|
1152
1170
|
|
|
1153
1171
|
export type GetAllPromptsMessagesAssistantMessage = {
|
|
@@ -2955,6 +2973,48 @@ export function getAllPromptsMessagesFunctionFromJSON(
|
|
|
2955
2973
|
);
|
|
2956
2974
|
}
|
|
2957
2975
|
|
|
2976
|
+
/** @internal */
|
|
2977
|
+
export const GetAllPromptsMessagesGoogle$inboundSchema: z.ZodType<
|
|
2978
|
+
GetAllPromptsMessagesGoogle,
|
|
2979
|
+
z.ZodTypeDef,
|
|
2980
|
+
unknown
|
|
2981
|
+
> = z.object({
|
|
2982
|
+
thought_signature: z.string().optional(),
|
|
2983
|
+
}).transform((v) => {
|
|
2984
|
+
return remap$(v, {
|
|
2985
|
+
"thought_signature": "thoughtSignature",
|
|
2986
|
+
});
|
|
2987
|
+
});
|
|
2988
|
+
|
|
2989
|
+
export function getAllPromptsMessagesGoogleFromJSON(
|
|
2990
|
+
jsonString: string,
|
|
2991
|
+
): SafeParseResult<GetAllPromptsMessagesGoogle, SDKValidationError> {
|
|
2992
|
+
return safeParse(
|
|
2993
|
+
jsonString,
|
|
2994
|
+
(x) => GetAllPromptsMessagesGoogle$inboundSchema.parse(JSON.parse(x)),
|
|
2995
|
+
`Failed to parse 'GetAllPromptsMessagesGoogle' from JSON`,
|
|
2996
|
+
);
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
/** @internal */
|
|
3000
|
+
export const GetAllPromptsMessagesExtraContent$inboundSchema: z.ZodType<
|
|
3001
|
+
GetAllPromptsMessagesExtraContent,
|
|
3002
|
+
z.ZodTypeDef,
|
|
3003
|
+
unknown
|
|
3004
|
+
> = z.object({
|
|
3005
|
+
google: z.lazy(() => GetAllPromptsMessagesGoogle$inboundSchema).optional(),
|
|
3006
|
+
});
|
|
3007
|
+
|
|
3008
|
+
export function getAllPromptsMessagesExtraContentFromJSON(
|
|
3009
|
+
jsonString: string,
|
|
3010
|
+
): SafeParseResult<GetAllPromptsMessagesExtraContent, SDKValidationError> {
|
|
3011
|
+
return safeParse(
|
|
3012
|
+
jsonString,
|
|
3013
|
+
(x) => GetAllPromptsMessagesExtraContent$inboundSchema.parse(JSON.parse(x)),
|
|
3014
|
+
`Failed to parse 'GetAllPromptsMessagesExtraContent' from JSON`,
|
|
3015
|
+
);
|
|
3016
|
+
}
|
|
3017
|
+
|
|
2958
3018
|
/** @internal */
|
|
2959
3019
|
export const GetAllPromptsMessagesToolCalls$inboundSchema: z.ZodType<
|
|
2960
3020
|
GetAllPromptsMessagesToolCalls,
|
|
@@ -2965,9 +3025,12 @@ export const GetAllPromptsMessagesToolCalls$inboundSchema: z.ZodType<
|
|
|
2965
3025
|
type: GetAllPromptsMessagesType$inboundSchema,
|
|
2966
3026
|
function: z.lazy(() => GetAllPromptsMessagesFunction$inboundSchema),
|
|
2967
3027
|
thought_signature: z.string().optional(),
|
|
3028
|
+
extra_content: z.lazy(() => GetAllPromptsMessagesExtraContent$inboundSchema)
|
|
3029
|
+
.optional(),
|
|
2968
3030
|
}).transform((v) => {
|
|
2969
3031
|
return remap$(v, {
|
|
2970
3032
|
"thought_signature": "thoughtSignature",
|
|
3033
|
+
"extra_content": "extraContent",
|
|
2971
3034
|
});
|
|
2972
3035
|
});
|
|
2973
3036
|
|
|
@@ -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_01M3020VT30CMBGWSPKE9W4KFW"),
|
|
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_01M3020VT2KVJM18BEX446WS0V"),
|
|
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_01M3020VT1JX7T6HPP6352D8H8"),
|
|
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_01M3020VT000701J80TW55BG6C"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -1116,6 +1116,20 @@ export type GetOnePromptMessagesFunction = {
|
|
|
1116
1116
|
arguments?: string | undefined;
|
|
1117
1117
|
};
|
|
1118
1118
|
|
|
1119
|
+
export type GetOnePromptMessagesGoogle = {
|
|
1120
|
+
/**
|
|
1121
|
+
* 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.
|
|
1122
|
+
*/
|
|
1123
|
+
thoughtSignature?: string | undefined;
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Provider-specific extra content for the tool call.
|
|
1128
|
+
*/
|
|
1129
|
+
export type GetOnePromptMessagesExtraContent = {
|
|
1130
|
+
google?: GetOnePromptMessagesGoogle | undefined;
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1119
1133
|
export type GetOnePromptMessagesToolCalls = {
|
|
1120
1134
|
/**
|
|
1121
1135
|
* The ID of the tool call.
|
|
@@ -1130,6 +1144,10 @@ export type GetOnePromptMessagesToolCalls = {
|
|
|
1130
1144
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
1131
1145
|
*/
|
|
1132
1146
|
thoughtSignature?: string | undefined;
|
|
1147
|
+
/**
|
|
1148
|
+
* Provider-specific extra content for the tool call.
|
|
1149
|
+
*/
|
|
1150
|
+
extraContent?: GetOnePromptMessagesExtraContent | undefined;
|
|
1133
1151
|
};
|
|
1134
1152
|
|
|
1135
1153
|
export type GetOnePromptMessagesAssistantMessage = {
|
|
@@ -2905,6 +2923,48 @@ export function getOnePromptMessagesFunctionFromJSON(
|
|
|
2905
2923
|
);
|
|
2906
2924
|
}
|
|
2907
2925
|
|
|
2926
|
+
/** @internal */
|
|
2927
|
+
export const GetOnePromptMessagesGoogle$inboundSchema: z.ZodType<
|
|
2928
|
+
GetOnePromptMessagesGoogle,
|
|
2929
|
+
z.ZodTypeDef,
|
|
2930
|
+
unknown
|
|
2931
|
+
> = z.object({
|
|
2932
|
+
thought_signature: z.string().optional(),
|
|
2933
|
+
}).transform((v) => {
|
|
2934
|
+
return remap$(v, {
|
|
2935
|
+
"thought_signature": "thoughtSignature",
|
|
2936
|
+
});
|
|
2937
|
+
});
|
|
2938
|
+
|
|
2939
|
+
export function getOnePromptMessagesGoogleFromJSON(
|
|
2940
|
+
jsonString: string,
|
|
2941
|
+
): SafeParseResult<GetOnePromptMessagesGoogle, SDKValidationError> {
|
|
2942
|
+
return safeParse(
|
|
2943
|
+
jsonString,
|
|
2944
|
+
(x) => GetOnePromptMessagesGoogle$inboundSchema.parse(JSON.parse(x)),
|
|
2945
|
+
`Failed to parse 'GetOnePromptMessagesGoogle' from JSON`,
|
|
2946
|
+
);
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
/** @internal */
|
|
2950
|
+
export const GetOnePromptMessagesExtraContent$inboundSchema: z.ZodType<
|
|
2951
|
+
GetOnePromptMessagesExtraContent,
|
|
2952
|
+
z.ZodTypeDef,
|
|
2953
|
+
unknown
|
|
2954
|
+
> = z.object({
|
|
2955
|
+
google: z.lazy(() => GetOnePromptMessagesGoogle$inboundSchema).optional(),
|
|
2956
|
+
});
|
|
2957
|
+
|
|
2958
|
+
export function getOnePromptMessagesExtraContentFromJSON(
|
|
2959
|
+
jsonString: string,
|
|
2960
|
+
): SafeParseResult<GetOnePromptMessagesExtraContent, SDKValidationError> {
|
|
2961
|
+
return safeParse(
|
|
2962
|
+
jsonString,
|
|
2963
|
+
(x) => GetOnePromptMessagesExtraContent$inboundSchema.parse(JSON.parse(x)),
|
|
2964
|
+
`Failed to parse 'GetOnePromptMessagesExtraContent' from JSON`,
|
|
2965
|
+
);
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2908
2968
|
/** @internal */
|
|
2909
2969
|
export const GetOnePromptMessagesToolCalls$inboundSchema: z.ZodType<
|
|
2910
2970
|
GetOnePromptMessagesToolCalls,
|
|
@@ -2915,9 +2975,12 @@ export const GetOnePromptMessagesToolCalls$inboundSchema: z.ZodType<
|
|
|
2915
2975
|
type: GetOnePromptMessagesType$inboundSchema,
|
|
2916
2976
|
function: z.lazy(() => GetOnePromptMessagesFunction$inboundSchema),
|
|
2917
2977
|
thought_signature: z.string().optional(),
|
|
2978
|
+
extra_content: z.lazy(() => GetOnePromptMessagesExtraContent$inboundSchema)
|
|
2979
|
+
.optional(),
|
|
2918
2980
|
}).transform((v) => {
|
|
2919
2981
|
return remap$(v, {
|
|
2920
2982
|
"thought_signature": "thoughtSignature",
|
|
2983
|
+
"extra_content": "extraContent",
|
|
2921
2984
|
});
|
|
2922
2985
|
});
|
|
2923
2986
|
|