@orq-ai/node 4.1.0-rc.33 → 4.1.0-rc.35
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/README.md +27 -23
- package/bin/mcp-server.js +6400 -6141
- package/bin/mcp-server.js.map +66 -58
- package/examples/package-lock.json +1 -1
- package/funcs/conversationsGenerateName.d.ts +18 -0
- package/funcs/conversationsGenerateName.d.ts.map +1 -0
- package/funcs/conversationsGenerateName.js +128 -0
- package/funcs/conversationsGenerateName.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.js +66 -0
- package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
- package/models/components/agentresponsemessage.d.ts +56 -0
- package/models/components/agentresponsemessage.d.ts.map +1 -0
- package/models/components/agentresponsemessage.js +116 -0
- package/models/components/agentresponsemessage.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +6 -6
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +11 -12
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/conversationresponse.d.ts +39 -5
- package/models/components/conversationresponse.d.ts.map +1 -1
- package/models/components/conversationresponse.js +52 -8
- package/models/components/conversationresponse.js.map +1 -1
- package/models/components/createagentresponse.d.ts +124 -0
- package/models/components/createagentresponse.d.ts.map +1 -0
- package/models/components/createagentresponse.js +191 -0
- package/models/components/createagentresponse.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +8 -8
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +13 -11
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/components/responsedoneevent.d.ts +24 -24
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +31 -32
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/thinkingconfigdisabledschema.d.ts +23 -0
- package/models/components/thinkingconfigdisabledschema.d.ts.map +1 -0
- package/models/components/thinkingconfigdisabledschema.js +58 -0
- package/models/components/thinkingconfigdisabledschema.js.map +1 -0
- package/models/components/thinkingconfigenabledschema.d.ts +49 -0
- package/models/components/thinkingconfigenabledschema.d.ts.map +1 -0
- package/models/components/thinkingconfigenabledschema.js +84 -0
- package/models/components/thinkingconfigenabledschema.js.map +1 -0
- package/models/errors/generateconversationname.d.ts +55 -0
- package/models/errors/generateconversationname.d.ts.map +1 -0
- package/models/errors/generateconversationname.js +106 -0
- package/models/errors/generateconversationname.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +17 -204
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +75 -194
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +22 -166
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +32 -227
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.d.ts +62 -8
- package/models/operations/createconversation.d.ts.map +1 -1
- package/models/operations/createconversation.js +94 -10
- package/models/operations/createconversation.js.map +1 -1
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createprompt.d.ts +10 -10
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +13 -13
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.d.ts +136 -0
- package/models/operations/generateconversationname.d.ts.map +1 -0
- package/models/operations/generateconversationname.js +179 -0
- package/models/operations/generateconversationname.js.map +1 -0
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +6 -6
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +10 -9
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +9 -102
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +38 -97
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +9 -102
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +38 -97
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrieveconversation.d.ts +39 -5
- package/models/operations/retrieveconversation.d.ts.map +1 -1
- package/models/operations/retrieveconversation.js +53 -8
- package/models/operations/retrieveconversation.js.map +1 -1
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +8 -102
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +41 -104
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +8 -102
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +41 -103
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +17 -204
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +75 -193
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.d.ts +63 -6
- package/models/operations/updateconversation.d.ts.map +1 -1
- package/models/operations/updateconversation.js +93 -9
- package/models/operations/updateconversation.js.map +1 -1
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/conversations.d.ts +7 -0
- package/sdk/conversations.d.ts.map +1 -1
- package/sdk/conversations.js +10 -0
- package/sdk/conversations.js.map +1 -1
- package/src/funcs/conversationsGenerateName.ts +194 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
- package/src/models/components/agentresponsemessage.ts +185 -0
- package/src/models/components/agentstartedstreamingevent.ts +30 -21
- package/src/models/components/conversationresponse.ts +100 -12
- package/src/models/components/createagentresponse.ts +340 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/invokedeploymentrequest.ts +25 -17
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/components/responsedoneevent.ts +93 -68
- package/src/models/components/thinkingconfigdisabledschema.ts +59 -0
- package/src/models/components/thinkingconfigenabledschema.ts +106 -0
- package/src/models/errors/generateconversationname.ts +132 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createagentrequest.ts +123 -369
- package/src/models/operations/createagentresponserequest.ts +71 -513
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +192 -17
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createprompt.ts +23 -25
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/generateconversationname.ts +341 -0
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/invokeagent.ts +19 -26
- package/src/models/operations/listagents.ts +63 -186
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +61 -194
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrieveconversation.ts +107 -12
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +64 -194
- package/src/models/operations/streamrunagent.ts +62 -201
- package/src/models/operations/updateagent.ts +123 -379
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +192 -14
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/conversations.ts +20 -0
|
@@ -145,7 +145,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
145
145
|
z.ZodTypeDef,
|
|
146
146
|
unknown
|
|
147
147
|
> = z.object({
|
|
148
|
-
_id: z.string().default("
|
|
148
|
+
_id: z.string().default("01KC3CE2NRQNYAH3JN6XW199SS"),
|
|
149
149
|
display_name: z.string(),
|
|
150
150
|
description: z.string().optional(),
|
|
151
151
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -188,7 +188,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
188
188
|
z.ZodTypeDef,
|
|
189
189
|
RetrieveDatasourceResponseBody
|
|
190
190
|
> = z.object({
|
|
191
|
-
id: z.string().default("
|
|
191
|
+
id: z.string().default("01KC3CE2NRQNYAH3JN6XW199SS"),
|
|
192
192
|
displayName: z.string(),
|
|
193
193
|
description: z.string().optional(),
|
|
194
194
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -858,7 +858,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
858
858
|
z.ZodTypeDef,
|
|
859
859
|
unknown
|
|
860
860
|
> = z.object({
|
|
861
|
-
_id: z.string().default("
|
|
861
|
+
_id: z.string().default("tool_01KC3CE2JC55Q4D04QS6ZNDMVR"),
|
|
862
862
|
path: z.string(),
|
|
863
863
|
key: z.string(),
|
|
864
864
|
display_name: z.string().optional(),
|
|
@@ -913,7 +913,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$outboundSchema:
|
|
|
913
913
|
z.ZodTypeDef,
|
|
914
914
|
RetrieveToolResponseBodyCodeExecutionTool
|
|
915
915
|
> = z.object({
|
|
916
|
-
id: z.string().default("
|
|
916
|
+
id: z.string().default("tool_01KC3CE2JC55Q4D04QS6ZNDMVR"),
|
|
917
917
|
path: z.string(),
|
|
918
918
|
key: z.string(),
|
|
919
919
|
displayName: z.string().optional(),
|
|
@@ -1092,7 +1092,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1092
1092
|
z.ZodTypeDef,
|
|
1093
1093
|
unknown
|
|
1094
1094
|
> = z.object({
|
|
1095
|
-
id: z.string().default("
|
|
1095
|
+
id: z.string().default("01KC3CE2JB2AVBHPRXZSHRC9CC"),
|
|
1096
1096
|
name: z.string(),
|
|
1097
1097
|
description: z.string().optional(),
|
|
1098
1098
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -1111,7 +1111,7 @@ export const RetrieveToolResponseBodyTools$outboundSchema: z.ZodType<
|
|
|
1111
1111
|
z.ZodTypeDef,
|
|
1112
1112
|
RetrieveToolResponseBodyTools
|
|
1113
1113
|
> = z.object({
|
|
1114
|
-
id: z.string().default("
|
|
1114
|
+
id: z.string().default("01KC3CE2JB2AVBHPRXZSHRC9CC"),
|
|
1115
1115
|
name: z.string(),
|
|
1116
1116
|
description: z.string().optional(),
|
|
1117
1117
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$outboundSchema),
|
|
@@ -1217,7 +1217,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
1217
1217
|
z.ZodTypeDef,
|
|
1218
1218
|
unknown
|
|
1219
1219
|
> = z.object({
|
|
1220
|
-
_id: z.string().default("
|
|
1220
|
+
_id: z.string().default("tool_01KC3CE2JAVTFDX7QFR6VFA4VM"),
|
|
1221
1221
|
path: z.string(),
|
|
1222
1222
|
key: z.string(),
|
|
1223
1223
|
display_name: z.string().optional(),
|
|
@@ -1270,7 +1270,7 @@ export const RetrieveToolResponseBodyMCPTool$outboundSchema: z.ZodType<
|
|
|
1270
1270
|
z.ZodTypeDef,
|
|
1271
1271
|
RetrieveToolResponseBodyMCPTool
|
|
1272
1272
|
> = z.object({
|
|
1273
|
-
id: z.string().default("
|
|
1273
|
+
id: z.string().default("tool_01KC3CE2JAVTFDX7QFR6VFA4VM"),
|
|
1274
1274
|
path: z.string(),
|
|
1275
1275
|
key: z.string(),
|
|
1276
1276
|
displayName: z.string().optional(),
|
|
@@ -1641,7 +1641,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1641
1641
|
z.ZodTypeDef,
|
|
1642
1642
|
unknown
|
|
1643
1643
|
> = z.object({
|
|
1644
|
-
_id: z.string().default("
|
|
1644
|
+
_id: z.string().default("tool_01KC3CE2J8MY4R7S2GSCCF7NXF"),
|
|
1645
1645
|
path: z.string(),
|
|
1646
1646
|
key: z.string(),
|
|
1647
1647
|
display_name: z.string().optional(),
|
|
@@ -1694,7 +1694,7 @@ export const RetrieveToolResponseBodyHTTPTool$outboundSchema: z.ZodType<
|
|
|
1694
1694
|
z.ZodTypeDef,
|
|
1695
1695
|
RetrieveToolResponseBodyHTTPTool
|
|
1696
1696
|
> = z.object({
|
|
1697
|
-
id: z.string().default("
|
|
1697
|
+
id: z.string().default("tool_01KC3CE2J8MY4R7S2GSCCF7NXF"),
|
|
1698
1698
|
path: z.string(),
|
|
1699
1699
|
key: z.string(),
|
|
1700
1700
|
displayName: z.string().optional(),
|
|
@@ -1868,7 +1868,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1868
1868
|
z.ZodTypeDef,
|
|
1869
1869
|
unknown
|
|
1870
1870
|
> = z.object({
|
|
1871
|
-
_id: z.string().default("
|
|
1871
|
+
_id: z.string().default("tool_01KC3CE2HZ1FQGFEJ7454XEVJ0"),
|
|
1872
1872
|
path: z.string(),
|
|
1873
1873
|
key: z.string(),
|
|
1874
1874
|
display_name: z.string().optional(),
|
|
@@ -1920,7 +1920,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
|
|
|
1920
1920
|
z.ZodTypeDef,
|
|
1921
1921
|
RetrieveToolResponseBodyJSONSchemaTool
|
|
1922
1922
|
> = z.object({
|
|
1923
|
-
id: z.string().default("
|
|
1923
|
+
id: z.string().default("tool_01KC3CE2HZ1FQGFEJ7454XEVJ0"),
|
|
1924
1924
|
path: z.string(),
|
|
1925
1925
|
key: z.string(),
|
|
1926
1926
|
displayName: z.string().optional(),
|
|
@@ -2113,7 +2113,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2113
2113
|
z.ZodTypeDef,
|
|
2114
2114
|
unknown
|
|
2115
2115
|
> = z.object({
|
|
2116
|
-
_id: z.string().default("
|
|
2116
|
+
_id: z.string().default("tool_01KC3CE2HX1SGGSM7YTGSG3N4M"),
|
|
2117
2117
|
path: z.string(),
|
|
2118
2118
|
key: z.string(),
|
|
2119
2119
|
display_name: z.string().optional(),
|
|
@@ -2164,7 +2164,7 @@ export const RetrieveToolResponseBodyFunctionTool$outboundSchema: z.ZodType<
|
|
|
2164
2164
|
z.ZodTypeDef,
|
|
2165
2165
|
RetrieveToolResponseBodyFunctionTool
|
|
2166
2166
|
> = z.object({
|
|
2167
|
-
id: z.string().default("
|
|
2167
|
+
id: z.string().default("tool_01KC3CE2HX1SGGSM7YTGSG3N4M"),
|
|
2168
2168
|
path: z.string(),
|
|
2169
2169
|
key: z.string(),
|
|
2170
2170
|
displayName: z.string().optional(),
|
|
@@ -132,48 +132,9 @@ export type RunAgentModelConfigurationStreamOptions = {
|
|
|
132
132
|
includeUsage?: boolean | undefined;
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
export const RunAgentModelConfigurationType = {
|
|
139
|
-
Enabled: "enabled",
|
|
140
|
-
Disabled: "disabled",
|
|
141
|
-
} as const;
|
|
142
|
-
/**
|
|
143
|
-
* Enables or disables the thinking mode capability
|
|
144
|
-
*/
|
|
145
|
-
export type RunAgentModelConfigurationType = ClosedEnum<
|
|
146
|
-
typeof RunAgentModelConfigurationType
|
|
147
|
-
>;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
151
|
-
*/
|
|
152
|
-
export const RunAgentModelConfigurationThinkingLevel = {
|
|
153
|
-
Low: "low",
|
|
154
|
-
High: "high",
|
|
155
|
-
} as const;
|
|
156
|
-
/**
|
|
157
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
158
|
-
*/
|
|
159
|
-
export type RunAgentModelConfigurationThinkingLevel = ClosedEnum<
|
|
160
|
-
typeof RunAgentModelConfigurationThinkingLevel
|
|
161
|
-
>;
|
|
162
|
-
|
|
163
|
-
export type RunAgentModelConfigurationThinking = {
|
|
164
|
-
/**
|
|
165
|
-
* Enables or disables the thinking mode capability
|
|
166
|
-
*/
|
|
167
|
-
type: RunAgentModelConfigurationType;
|
|
168
|
-
/**
|
|
169
|
-
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
170
|
-
*/
|
|
171
|
-
budgetTokens: number;
|
|
172
|
-
/**
|
|
173
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
174
|
-
*/
|
|
175
|
-
thinkingLevel?: RunAgentModelConfigurationThinkingLevel | undefined;
|
|
176
|
-
};
|
|
135
|
+
export type RunAgentModelConfigurationThinking =
|
|
136
|
+
| components.ThinkingConfigDisabledSchema
|
|
137
|
+
| components.ThinkingConfigEnabledSchema;
|
|
177
138
|
|
|
178
139
|
/**
|
|
179
140
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -291,7 +252,10 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
291
252
|
* Options for streaming response. Only set this when you set stream: true.
|
|
292
253
|
*/
|
|
293
254
|
streamOptions?: RunAgentModelConfigurationStreamOptions | null | undefined;
|
|
294
|
-
thinking?:
|
|
255
|
+
thinking?:
|
|
256
|
+
| components.ThinkingConfigDisabledSchema
|
|
257
|
+
| components.ThinkingConfigEnabledSchema
|
|
258
|
+
| undefined;
|
|
295
259
|
/**
|
|
296
260
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
297
261
|
*/
|
|
@@ -476,48 +440,9 @@ export type RunAgentFallbackModelConfigurationStreamOptions = {
|
|
|
476
440
|
includeUsage?: boolean | undefined;
|
|
477
441
|
};
|
|
478
442
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
export const RunAgentFallbackModelConfigurationType = {
|
|
483
|
-
Enabled: "enabled",
|
|
484
|
-
Disabled: "disabled",
|
|
485
|
-
} as const;
|
|
486
|
-
/**
|
|
487
|
-
* Enables or disables the thinking mode capability
|
|
488
|
-
*/
|
|
489
|
-
export type RunAgentFallbackModelConfigurationType = ClosedEnum<
|
|
490
|
-
typeof RunAgentFallbackModelConfigurationType
|
|
491
|
-
>;
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
495
|
-
*/
|
|
496
|
-
export const RunAgentFallbackModelConfigurationThinkingLevel = {
|
|
497
|
-
Low: "low",
|
|
498
|
-
High: "high",
|
|
499
|
-
} as const;
|
|
500
|
-
/**
|
|
501
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
502
|
-
*/
|
|
503
|
-
export type RunAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
504
|
-
typeof RunAgentFallbackModelConfigurationThinkingLevel
|
|
505
|
-
>;
|
|
506
|
-
|
|
507
|
-
export type RunAgentFallbackModelConfigurationThinking = {
|
|
508
|
-
/**
|
|
509
|
-
* Enables or disables the thinking mode capability
|
|
510
|
-
*/
|
|
511
|
-
type: RunAgentFallbackModelConfigurationType;
|
|
512
|
-
/**
|
|
513
|
-
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
514
|
-
*/
|
|
515
|
-
budgetTokens: number;
|
|
516
|
-
/**
|
|
517
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
518
|
-
*/
|
|
519
|
-
thinkingLevel?: RunAgentFallbackModelConfigurationThinkingLevel | undefined;
|
|
520
|
-
};
|
|
443
|
+
export type RunAgentFallbackModelConfigurationThinking =
|
|
444
|
+
| components.ThinkingConfigDisabledSchema
|
|
445
|
+
| components.ThinkingConfigEnabledSchema;
|
|
521
446
|
|
|
522
447
|
/**
|
|
523
448
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -642,7 +567,10 @@ export type RunAgentFallbackModelConfigurationParameters = {
|
|
|
642
567
|
| RunAgentFallbackModelConfigurationStreamOptions
|
|
643
568
|
| null
|
|
644
569
|
| undefined;
|
|
645
|
-
thinking?:
|
|
570
|
+
thinking?:
|
|
571
|
+
| components.ThinkingConfigDisabledSchema
|
|
572
|
+
| components.ThinkingConfigEnabledSchema
|
|
573
|
+
| undefined;
|
|
646
574
|
/**
|
|
647
575
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
648
576
|
*/
|
|
@@ -2015,63 +1943,29 @@ export function runAgentModelConfigurationStreamOptionsFromJSON(
|
|
|
2015
1943
|
);
|
|
2016
1944
|
}
|
|
2017
1945
|
|
|
2018
|
-
/** @internal */
|
|
2019
|
-
export const RunAgentModelConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
2020
|
-
typeof RunAgentModelConfigurationType
|
|
2021
|
-
> = z.nativeEnum(RunAgentModelConfigurationType);
|
|
2022
|
-
/** @internal */
|
|
2023
|
-
export const RunAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
2024
|
-
typeof RunAgentModelConfigurationType
|
|
2025
|
-
> = RunAgentModelConfigurationType$inboundSchema;
|
|
2026
|
-
|
|
2027
|
-
/** @internal */
|
|
2028
|
-
export const RunAgentModelConfigurationThinkingLevel$inboundSchema:
|
|
2029
|
-
z.ZodNativeEnum<typeof RunAgentModelConfigurationThinkingLevel> = z
|
|
2030
|
-
.nativeEnum(RunAgentModelConfigurationThinkingLevel);
|
|
2031
|
-
/** @internal */
|
|
2032
|
-
export const RunAgentModelConfigurationThinkingLevel$outboundSchema:
|
|
2033
|
-
z.ZodNativeEnum<typeof RunAgentModelConfigurationThinkingLevel> =
|
|
2034
|
-
RunAgentModelConfigurationThinkingLevel$inboundSchema;
|
|
2035
|
-
|
|
2036
1946
|
/** @internal */
|
|
2037
1947
|
export const RunAgentModelConfigurationThinking$inboundSchema: z.ZodType<
|
|
2038
1948
|
RunAgentModelConfigurationThinking,
|
|
2039
1949
|
z.ZodTypeDef,
|
|
2040
1950
|
unknown
|
|
2041
|
-
> = z.
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
.optional(),
|
|
2046
|
-
}).transform((v) => {
|
|
2047
|
-
return remap$(v, {
|
|
2048
|
-
"budget_tokens": "budgetTokens",
|
|
2049
|
-
"thinking_level": "thinkingLevel",
|
|
2050
|
-
});
|
|
2051
|
-
});
|
|
1951
|
+
> = z.union([
|
|
1952
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
1953
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
1954
|
+
]);
|
|
2052
1955
|
/** @internal */
|
|
2053
|
-
export type RunAgentModelConfigurationThinking$Outbound =
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
thinking_level?: string | undefined;
|
|
2057
|
-
};
|
|
1956
|
+
export type RunAgentModelConfigurationThinking$Outbound =
|
|
1957
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
1958
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
2058
1959
|
|
|
2059
1960
|
/** @internal */
|
|
2060
1961
|
export const RunAgentModelConfigurationThinking$outboundSchema: z.ZodType<
|
|
2061
1962
|
RunAgentModelConfigurationThinking$Outbound,
|
|
2062
1963
|
z.ZodTypeDef,
|
|
2063
1964
|
RunAgentModelConfigurationThinking
|
|
2064
|
-
> = z.
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
.optional(),
|
|
2069
|
-
}).transform((v) => {
|
|
2070
|
-
return remap$(v, {
|
|
2071
|
-
budgetTokens: "budget_tokens",
|
|
2072
|
-
thinkingLevel: "thinking_level",
|
|
2073
|
-
});
|
|
2074
|
-
});
|
|
1965
|
+
> = z.union([
|
|
1966
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
1967
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
1968
|
+
]);
|
|
2075
1969
|
|
|
2076
1970
|
export function runAgentModelConfigurationThinkingToJSON(
|
|
2077
1971
|
runAgentModelConfigurationThinking: RunAgentModelConfigurationThinking,
|
|
@@ -2273,8 +2167,10 @@ export const RunAgentModelConfigurationParameters$inboundSchema: z.ZodType<
|
|
|
2273
2167
|
stream_options: z.nullable(
|
|
2274
2168
|
z.lazy(() => RunAgentModelConfigurationStreamOptions$inboundSchema),
|
|
2275
2169
|
).optional(),
|
|
2276
|
-
thinking: z.
|
|
2277
|
-
.
|
|
2170
|
+
thinking: z.union([
|
|
2171
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2172
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2173
|
+
]).optional(),
|
|
2278
2174
|
temperature: z.nullable(z.number()).optional(),
|
|
2279
2175
|
top_p: z.nullable(z.number()).optional(),
|
|
2280
2176
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -2325,7 +2221,10 @@ export type RunAgentModelConfigurationParameters$Outbound = {
|
|
|
2325
2221
|
| RunAgentModelConfigurationStreamOptions$Outbound
|
|
2326
2222
|
| null
|
|
2327
2223
|
| undefined;
|
|
2328
|
-
thinking?:
|
|
2224
|
+
thinking?:
|
|
2225
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2226
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
2227
|
+
| undefined;
|
|
2329
2228
|
temperature?: number | null | undefined;
|
|
2330
2229
|
top_p?: number | null | undefined;
|
|
2331
2230
|
top_k?: number | null | undefined;
|
|
@@ -2362,8 +2261,10 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2362
2261
|
streamOptions: z.nullable(
|
|
2363
2262
|
z.lazy(() => RunAgentModelConfigurationStreamOptions$outboundSchema),
|
|
2364
2263
|
).optional(),
|
|
2365
|
-
thinking: z.
|
|
2366
|
-
.
|
|
2264
|
+
thinking: z.union([
|
|
2265
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2266
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2267
|
+
]).optional(),
|
|
2367
2268
|
temperature: z.nullable(z.number()).optional(),
|
|
2368
2269
|
topP: z.nullable(z.number()).optional(),
|
|
2369
2270
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -2984,46 +2885,17 @@ export function runAgentFallbackModelConfigurationStreamOptionsFromJSON(
|
|
|
2984
2885
|
);
|
|
2985
2886
|
}
|
|
2986
2887
|
|
|
2987
|
-
/** @internal */
|
|
2988
|
-
export const RunAgentFallbackModelConfigurationType$inboundSchema:
|
|
2989
|
-
z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationType> = z.nativeEnum(
|
|
2990
|
-
RunAgentFallbackModelConfigurationType,
|
|
2991
|
-
);
|
|
2992
|
-
/** @internal */
|
|
2993
|
-
export const RunAgentFallbackModelConfigurationType$outboundSchema:
|
|
2994
|
-
z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationType> =
|
|
2995
|
-
RunAgentFallbackModelConfigurationType$inboundSchema;
|
|
2996
|
-
|
|
2997
|
-
/** @internal */
|
|
2998
|
-
export const RunAgentFallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
2999
|
-
z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationThinkingLevel> = z
|
|
3000
|
-
.nativeEnum(RunAgentFallbackModelConfigurationThinkingLevel);
|
|
3001
|
-
/** @internal */
|
|
3002
|
-
export const RunAgentFallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
3003
|
-
z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationThinkingLevel> =
|
|
3004
|
-
RunAgentFallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
3005
|
-
|
|
3006
2888
|
/** @internal */
|
|
3007
2889
|
export const RunAgentFallbackModelConfigurationThinking$inboundSchema:
|
|
3008
2890
|
z.ZodType<RunAgentFallbackModelConfigurationThinking, z.ZodTypeDef, unknown> =
|
|
3009
|
-
z.
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
RunAgentFallbackModelConfigurationThinkingLevel$inboundSchema
|
|
3014
|
-
.optional(),
|
|
3015
|
-
}).transform((v) => {
|
|
3016
|
-
return remap$(v, {
|
|
3017
|
-
"budget_tokens": "budgetTokens",
|
|
3018
|
-
"thinking_level": "thinkingLevel",
|
|
3019
|
-
});
|
|
3020
|
-
});
|
|
2891
|
+
z.union([
|
|
2892
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2893
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2894
|
+
]);
|
|
3021
2895
|
/** @internal */
|
|
3022
|
-
export type RunAgentFallbackModelConfigurationThinking$Outbound =
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
thinking_level?: string | undefined;
|
|
3026
|
-
};
|
|
2896
|
+
export type RunAgentFallbackModelConfigurationThinking$Outbound =
|
|
2897
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2898
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
3027
2899
|
|
|
3028
2900
|
/** @internal */
|
|
3029
2901
|
export const RunAgentFallbackModelConfigurationThinking$outboundSchema:
|
|
@@ -3031,17 +2903,10 @@ export const RunAgentFallbackModelConfigurationThinking$outboundSchema:
|
|
|
3031
2903
|
RunAgentFallbackModelConfigurationThinking$Outbound,
|
|
3032
2904
|
z.ZodTypeDef,
|
|
3033
2905
|
RunAgentFallbackModelConfigurationThinking
|
|
3034
|
-
> = z.
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
RunAgentFallbackModelConfigurationThinkingLevel$outboundSchema.optional(),
|
|
3039
|
-
}).transform((v) => {
|
|
3040
|
-
return remap$(v, {
|
|
3041
|
-
budgetTokens: "budget_tokens",
|
|
3042
|
-
thinkingLevel: "thinking_level",
|
|
3043
|
-
});
|
|
3044
|
-
});
|
|
2906
|
+
> = z.union([
|
|
2907
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2908
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2909
|
+
]);
|
|
3045
2910
|
|
|
3046
2911
|
export function runAgentFallbackModelConfigurationThinkingToJSON(
|
|
3047
2912
|
runAgentFallbackModelConfigurationThinking:
|
|
@@ -3262,9 +3127,10 @@ export const RunAgentFallbackModelConfigurationParameters$inboundSchema:
|
|
|
3262
3127
|
RunAgentFallbackModelConfigurationStreamOptions$inboundSchema
|
|
3263
3128
|
),
|
|
3264
3129
|
).optional(),
|
|
3265
|
-
thinking: z.
|
|
3266
|
-
|
|
3267
|
-
|
|
3130
|
+
thinking: z.union([
|
|
3131
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3132
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3133
|
+
]).optional(),
|
|
3268
3134
|
temperature: z.nullable(z.number()).optional(),
|
|
3269
3135
|
top_p: z.nullable(z.number()).optional(),
|
|
3270
3136
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -3315,7 +3181,10 @@ export type RunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3315
3181
|
| RunAgentFallbackModelConfigurationStreamOptions$Outbound
|
|
3316
3182
|
| null
|
|
3317
3183
|
| undefined;
|
|
3318
|
-
thinking?:
|
|
3184
|
+
thinking?:
|
|
3185
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3186
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
3187
|
+
| undefined;
|
|
3319
3188
|
temperature?: number | null | undefined;
|
|
3320
3189
|
top_p?: number | null | undefined;
|
|
3321
3190
|
top_k?: number | null | undefined;
|
|
@@ -3357,9 +3226,10 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3357
3226
|
RunAgentFallbackModelConfigurationStreamOptions$outboundSchema
|
|
3358
3227
|
),
|
|
3359
3228
|
).optional(),
|
|
3360
|
-
thinking: z.
|
|
3361
|
-
|
|
3362
|
-
|
|
3229
|
+
thinking: z.union([
|
|
3230
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3231
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3232
|
+
]).optional(),
|
|
3363
3233
|
temperature: z.nullable(z.number()).optional(),
|
|
3364
3234
|
topP: z.nullable(z.number()).optional(),
|
|
3365
3235
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -4004,7 +3874,7 @@ export function schemaFromJSON(
|
|
|
4004
3874
|
/** @internal */
|
|
4005
3875
|
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
4006
3876
|
.object({
|
|
4007
|
-
id: z.string().default("
|
|
3877
|
+
id: z.string().default("01KC3CE23C1WG4ACM482CRY1P4"),
|
|
4008
3878
|
name: z.string(),
|
|
4009
3879
|
description: z.string().optional(),
|
|
4010
3880
|
schema: z.lazy(() => Schema$inboundSchema),
|
|
@@ -4023,7 +3893,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4023
3893
|
z.ZodTypeDef,
|
|
4024
3894
|
Tools
|
|
4025
3895
|
> = z.object({
|
|
4026
|
-
id: z.string().default("
|
|
3896
|
+
id: z.string().default("01KC3CE23C1WG4ACM482CRY1P4"),
|
|
4027
3897
|
name: z.string(),
|
|
4028
3898
|
description: z.string().optional(),
|
|
4029
3899
|
schema: z.lazy(() => Schema$outboundSchema),
|
|
@@ -5720,7 +5590,7 @@ export const RunAgentSettings$inboundSchema: z.ZodType<
|
|
|
5720
5590
|
"none",
|
|
5721
5591
|
),
|
|
5722
5592
|
max_iterations: z.number().int().default(100),
|
|
5723
|
-
max_execution_time: z.number().int().default(
|
|
5593
|
+
max_execution_time: z.number().int().default(600),
|
|
5724
5594
|
evaluators: z.array(z.lazy(() => RunAgentEvaluators$inboundSchema))
|
|
5725
5595
|
.optional(),
|
|
5726
5596
|
guardrails: z.array(z.lazy(() => RunAgentGuardrails$inboundSchema))
|
|
@@ -5789,7 +5659,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5789
5659
|
"none",
|
|
5790
5660
|
),
|
|
5791
5661
|
maxIterations: z.number().int().default(100),
|
|
5792
|
-
maxExecutionTime: z.number().int().default(
|
|
5662
|
+
maxExecutionTime: z.number().int().default(600),
|
|
5793
5663
|
evaluators: z.array(z.lazy(() => RunAgentEvaluators$outboundSchema))
|
|
5794
5664
|
.optional(),
|
|
5795
5665
|
guardrails: z.array(z.lazy(() => RunAgentGuardrails$outboundSchema))
|