@orq-ai/node 4.0.0-rc.30 → 4.0.0-rc.31

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.
Files changed (163) hide show
  1. package/README.md +24 -22
  2. package/bin/mcp-server.js +2116 -596
  3. package/bin/mcp-server.js.map +50 -47
  4. package/docs/sdks/tools/README.md +93 -12
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/toolsCreate.d.ts +2 -1
  7. package/funcs/toolsCreate.d.ts.map +1 -1
  8. package/funcs/toolsCreate.js +6 -2
  9. package/funcs/toolsCreate.js.map +1 -1
  10. package/funcs/toolsSync.d.ts +18 -0
  11. package/funcs/toolsSync.d.ts.map +1 -0
  12. package/funcs/toolsSync.js +123 -0
  13. package/funcs/toolsSync.js.map +1 -0
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +3 -3
  16. package/lib/config.js +3 -3
  17. package/mcp-server/mcp-server.js +1 -1
  18. package/mcp-server/server.d.ts.map +1 -1
  19. package/mcp-server/server.js +3 -1
  20. package/mcp-server/server.js.map +1 -1
  21. package/mcp-server/tools/toolsSync.d.ts +8 -0
  22. package/mcp-server/tools/toolsSync.d.ts.map +1 -0
  23. package/mcp-server/tools/toolsSync.js +64 -0
  24. package/mcp-server/tools/toolsSync.js.map +1 -0
  25. package/models/operations/createagent.d.ts +53 -24
  26. package/models/operations/createagent.d.ts.map +1 -1
  27. package/models/operations/createagent.js +51 -25
  28. package/models/operations/createagent.js.map +1 -1
  29. package/models/operations/createbudget.js +2 -2
  30. package/models/operations/createcontact.js +2 -2
  31. package/models/operations/createdataset.js +2 -2
  32. package/models/operations/createdatasetitem.js +8 -8
  33. package/models/operations/createdatasource.js +2 -2
  34. package/models/operations/createeval.js +28 -28
  35. package/models/operations/createtool.d.ts +373 -144
  36. package/models/operations/createtool.d.ts.map +1 -1
  37. package/models/operations/createtool.js +332 -133
  38. package/models/operations/createtool.js.map +1 -1
  39. package/models/operations/deploymentgetconfig.d.ts +8 -8
  40. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  41. package/models/operations/deploymentgetconfig.js +13 -12
  42. package/models/operations/deploymentgetconfig.js.map +1 -1
  43. package/models/operations/duplicateagent.d.ts +0 -19
  44. package/models/operations/duplicateagent.d.ts.map +1 -1
  45. package/models/operations/duplicateagent.js +3 -21
  46. package/models/operations/duplicateagent.js.map +1 -1
  47. package/models/operations/duplicatetool.d.ts +189 -49
  48. package/models/operations/duplicatetool.d.ts.map +1 -1
  49. package/models/operations/duplicatetool.js +172 -44
  50. package/models/operations/duplicatetool.js.map +1 -1
  51. package/models/operations/fileget.js +2 -2
  52. package/models/operations/filelist.js +2 -2
  53. package/models/operations/fileupload.js +2 -2
  54. package/models/operations/getagent.d.ts +0 -19
  55. package/models/operations/getagent.d.ts.map +1 -1
  56. package/models/operations/getagent.js +3 -20
  57. package/models/operations/getagent.js.map +1 -1
  58. package/models/operations/getalltools.d.ts +194 -54
  59. package/models/operations/getalltools.d.ts.map +1 -1
  60. package/models/operations/getalltools.js +176 -51
  61. package/models/operations/getalltools.js.map +1 -1
  62. package/models/operations/getbudget.js +2 -2
  63. package/models/operations/getevals.js +28 -28
  64. package/models/operations/index.d.ts +1 -0
  65. package/models/operations/index.d.ts.map +1 -1
  66. package/models/operations/index.js +1 -0
  67. package/models/operations/index.js.map +1 -1
  68. package/models/operations/listagents.d.ts +0 -19
  69. package/models/operations/listagents.d.ts.map +1 -1
  70. package/models/operations/listagents.js +3 -22
  71. package/models/operations/listagents.js.map +1 -1
  72. package/models/operations/listbudgets.js +2 -2
  73. package/models/operations/listcontacts.js +2 -2
  74. package/models/operations/listdatasetdatapoints.js +8 -8
  75. package/models/operations/listdatasets.js +2 -2
  76. package/models/operations/listdatasources.js +2 -2
  77. package/models/operations/retrievecontact.js +2 -2
  78. package/models/operations/retrievedatapoint.js +8 -8
  79. package/models/operations/retrievedataset.js +2 -2
  80. package/models/operations/retrievedatasource.js +2 -2
  81. package/models/operations/retrievetool.d.ts +189 -49
  82. package/models/operations/retrievetool.d.ts.map +1 -1
  83. package/models/operations/retrievetool.js +172 -44
  84. package/models/operations/retrievetool.js.map +1 -1
  85. package/models/operations/runagent.d.ts +279 -23
  86. package/models/operations/runagent.d.ts.map +1 -1
  87. package/models/operations/runagent.js +274 -15
  88. package/models/operations/runagent.js.map +1 -1
  89. package/models/operations/streamrunagent.d.ts +282 -26
  90. package/models/operations/streamrunagent.d.ts.map +1 -1
  91. package/models/operations/streamrunagent.js +268 -22
  92. package/models/operations/streamrunagent.js.map +1 -1
  93. package/models/operations/syncmcptool.d.ts +1113 -0
  94. package/models/operations/syncmcptool.d.ts.map +1 -0
  95. package/models/operations/syncmcptool.js +1070 -0
  96. package/models/operations/syncmcptool.js.map +1 -0
  97. package/models/operations/updateagent.d.ts +53 -43
  98. package/models/operations/updateagent.d.ts.map +1 -1
  99. package/models/operations/updateagent.js +52 -43
  100. package/models/operations/updateagent.js.map +1 -1
  101. package/models/operations/updatebudget.js +2 -2
  102. package/models/operations/updatecontact.js +2 -2
  103. package/models/operations/updatedatapoint.js +8 -8
  104. package/models/operations/updatedataset.js +2 -2
  105. package/models/operations/updatedatasource.js +2 -2
  106. package/models/operations/updateeval.js +28 -28
  107. package/models/operations/updatetool.d.ts +394 -114
  108. package/models/operations/updatetool.d.ts.map +1 -1
  109. package/models/operations/updatetool.js +356 -95
  110. package/models/operations/updatetool.js.map +1 -1
  111. package/package.json +1 -1
  112. package/sdk/tools.d.ts +7 -0
  113. package/sdk/tools.d.ts.map +1 -1
  114. package/sdk/tools.js +10 -0
  115. package/sdk/tools.js.map +1 -1
  116. package/src/funcs/toolsCreate.ts +11 -2
  117. package/src/funcs/toolsSync.ts +176 -0
  118. package/src/lib/config.ts +3 -3
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +3 -1
  121. package/src/mcp-server/tools/toolsSync.ts +37 -0
  122. package/src/models/operations/createagent.ts +114 -40
  123. package/src/models/operations/createbudget.ts +2 -2
  124. package/src/models/operations/createcontact.ts +2 -2
  125. package/src/models/operations/createdataset.ts +2 -2
  126. package/src/models/operations/createdatasetitem.ts +8 -8
  127. package/src/models/operations/createdatasource.ts +2 -2
  128. package/src/models/operations/createeval.ts +28 -28
  129. package/src/models/operations/createtool.ts +873 -277
  130. package/src/models/operations/deploymentgetconfig.ts +29 -20
  131. package/src/models/operations/duplicateagent.ts +0 -37
  132. package/src/models/operations/duplicatetool.ts +466 -87
  133. package/src/models/operations/fileget.ts +2 -2
  134. package/src/models/operations/filelist.ts +2 -2
  135. package/src/models/operations/fileupload.ts +2 -2
  136. package/src/models/operations/getagent.ts +0 -38
  137. package/src/models/operations/getalltools.ts +447 -96
  138. package/src/models/operations/getbudget.ts +2 -2
  139. package/src/models/operations/getevals.ts +28 -28
  140. package/src/models/operations/index.ts +1 -0
  141. package/src/models/operations/listagents.ts +0 -37
  142. package/src/models/operations/listbudgets.ts +2 -2
  143. package/src/models/operations/listcontacts.ts +2 -2
  144. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  145. package/src/models/operations/listdatasets.ts +2 -2
  146. package/src/models/operations/listdatasources.ts +2 -2
  147. package/src/models/operations/retrievecontact.ts +2 -2
  148. package/src/models/operations/retrievedatapoint.ts +8 -8
  149. package/src/models/operations/retrievedataset.ts +2 -2
  150. package/src/models/operations/retrievedatasource.ts +2 -2
  151. package/src/models/operations/retrievetool.ts +466 -85
  152. package/src/models/operations/runagent.ts +656 -25
  153. package/src/models/operations/streamrunagent.ts +749 -34
  154. package/src/models/operations/syncmcptool.ts +2599 -0
  155. package/src/models/operations/updateagent.ts +121 -77
  156. package/src/models/operations/updatebudget.ts +2 -2
  157. package/src/models/operations/updatecontact.ts +2 -2
  158. package/src/models/operations/updatedatapoint.ts +8 -8
  159. package/src/models/operations/updatedataset.ts +2 -2
  160. package/src/models/operations/updatedatasource.ts +2 -2
  161. package/src/models/operations/updateeval.ts +28 -28
  162. package/src/models/operations/updatetool.ts +910 -190
  163. package/src/sdk/tools.ts +18 -0
@@ -753,10 +753,115 @@ export type StreamRunAgentTeamOfAgents = {
753
753
  */
754
754
  role?: string | undefined;
755
755
  };
756
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type: {
757
+ readonly Mcp: "mcp";
758
+ };
759
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type>;
760
+ export type StreamRunAgentAgentToolInputRunAgentsHeaders = {
761
+ value: string;
762
+ encrypted?: boolean | undefined;
763
+ };
764
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType: {
765
+ readonly Object: "object";
766
+ };
767
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType>;
768
+ export type AgentToolInputRunSchema = {
769
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType;
770
+ properties?: {
771
+ [k: string]: any;
772
+ } | undefined;
773
+ required?: Array<string> | undefined;
774
+ };
775
+ export type AgentToolInputRunTools = {
776
+ name: string;
777
+ description?: string | undefined;
778
+ schema: AgentToolInputRunSchema;
779
+ };
780
+ /**
781
+ * The connection type used by the MCP server
782
+ */
783
+ export declare const AgentToolInputRunConnectionType: {
784
+ readonly Http: "http";
785
+ readonly Sse: "sse";
786
+ };
787
+ /**
788
+ * The connection type used by the MCP server
789
+ */
790
+ export type AgentToolInputRunConnectionType = ClosedEnum<typeof AgentToolInputRunConnectionType>;
791
+ export type AgentToolInputRunMcp = {
792
+ /**
793
+ * The MCP server URL (cached for execution)
794
+ */
795
+ serverUrl: string;
796
+ /**
797
+ * HTTP headers for MCP server requests with encryption support
798
+ */
799
+ headers?: {
800
+ [k: string]: StreamRunAgentAgentToolInputRunAgentsHeaders;
801
+ } | undefined;
802
+ /**
803
+ * Array of tools available from the MCP server
804
+ */
805
+ tools: Array<AgentToolInputRunTools>;
806
+ /**
807
+ * The connection type used by the MCP server
808
+ */
809
+ connectionType: AgentToolInputRunConnectionType;
810
+ };
811
+ /**
812
+ * MCP tool with inline definition for on-the-fly creation in run endpoint
813
+ */
814
+ export type AgentToolInputRunMCPToolRun = {
815
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type;
816
+ /**
817
+ * Unique key of the tool as it will be displayed in the UI
818
+ */
819
+ key: string;
820
+ id?: string | undefined;
821
+ displayName?: string | undefined;
822
+ /**
823
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
824
+ */
825
+ description: string;
826
+ mcp: AgentToolInputRunMcp;
827
+ requiresApproval?: boolean | undefined;
828
+ };
756
829
  export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type: {
757
830
  readonly Function: "function";
758
831
  };
759
832
  export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
833
+ /**
834
+ * The type must be "object"
835
+ */
836
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType: {
837
+ readonly Object: "object";
838
+ };
839
+ /**
840
+ * The type must be "object"
841
+ */
842
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType>;
843
+ /**
844
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
845
+ */
846
+ export type StreamRunAgentAgentToolInputRunAgentsParameters = {
847
+ /**
848
+ * The type must be "object"
849
+ */
850
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType;
851
+ /**
852
+ * The properties of the function parameters
853
+ */
854
+ properties: {
855
+ [k: string]: any;
856
+ };
857
+ /**
858
+ * Array of required parameter names
859
+ */
860
+ required: Array<string>;
861
+ additionalProperties?: {
862
+ [k: string]: any;
863
+ } | undefined;
864
+ };
760
865
  export type StreamRunAgentAgentToolInputRunFunction = {
761
866
  /**
762
867
  * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
@@ -773,9 +878,7 @@ export type StreamRunAgentAgentToolInputRunFunction = {
773
878
  /**
774
879
  * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
775
880
  */
776
- parameters?: {
777
- [k: string]: any;
778
- } | undefined;
881
+ parameters?: StreamRunAgentAgentToolInputRunAgentsParameters | undefined;
779
882
  };
780
883
  /**
781
884
  * Function tool with inline definition for on-the-fly creation in run endpoint
@@ -796,6 +899,38 @@ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySett
796
899
  readonly Code: "code";
797
900
  };
798
901
  export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
902
+ /**
903
+ * The type must be "object"
904
+ */
905
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType: {
906
+ readonly Object: "object";
907
+ };
908
+ /**
909
+ * The type must be "object"
910
+ */
911
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType>;
912
+ /**
913
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
914
+ */
915
+ export type StreamRunAgentAgentToolInputRunParameters = {
916
+ /**
917
+ * The type must be "object"
918
+ */
919
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType;
920
+ /**
921
+ * The properties of the function parameters
922
+ */
923
+ properties: {
924
+ [k: string]: any;
925
+ };
926
+ /**
927
+ * Array of required parameter names
928
+ */
929
+ required: Array<string>;
930
+ additionalProperties?: {
931
+ [k: string]: any;
932
+ } | undefined;
933
+ };
799
934
  export declare const AgentToolInputRunLanguage: {
800
935
  readonly Python: "python";
801
936
  };
@@ -804,9 +939,7 @@ export type AgentToolInputRunCodeTool = {
804
939
  /**
805
940
  * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
806
941
  */
807
- parameters?: {
808
- [k: string]: any;
809
- } | undefined;
942
+ parameters?: StreamRunAgentAgentToolInputRunParameters | undefined;
810
943
  language: AgentToolInputRunLanguage;
811
944
  /**
812
945
  * The code to execute.
@@ -848,10 +981,11 @@ export declare const AgentToolInputRunMethod: {
848
981
  * The HTTP method to use.
849
982
  */
850
983
  export type AgentToolInputRunMethod = ClosedEnum<typeof AgentToolInputRunMethod>;
851
- export type AgentToolInputRunHeaders = {
984
+ export type StreamRunAgentHeaders2 = {
852
985
  value: string;
853
986
  encrypted?: boolean | undefined;
854
987
  };
988
+ export type StreamRunAgentAgentToolInputRunHeaders = StreamRunAgentHeaders2 | string;
855
989
  /**
856
990
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
857
991
  */
@@ -865,10 +999,10 @@ export type AgentToolInputRunBlueprint = {
865
999
  */
866
1000
  method: AgentToolInputRunMethod;
867
1001
  /**
868
- * The headers to send with the request.
1002
+ * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
869
1003
  */
870
1004
  headers?: {
871
- [k: string]: AgentToolInputRunHeaders;
1005
+ [k: string]: StreamRunAgentHeaders2 | string;
872
1006
  } | undefined;
873
1007
  /**
874
1008
  * The body to send with the request.
@@ -1096,9 +1230,9 @@ export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
1096
1230
  requiresApproval?: boolean | undefined;
1097
1231
  };
1098
1232
  /**
1099
- * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function) support full inline definitions for on-the-fly creation.
1233
+ * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function, MCP) support full inline definitions for on-the-fly creation.
1100
1234
  */
1101
- export type StreamRunAgentAgentToolInputRun = AgentToolInputRunHTTPToolRun | AgentToolInputRunCodeToolRun | AgentToolInputRunFunctionToolRun | StreamRunAgentAgentToolInputRunGoogleSearchTool | StreamRunAgentAgentToolInputRunWebScraperTool | StreamRunAgentAgentToolInputRunCallSubAgentTool | StreamRunAgentAgentToolInputRunRetrieveAgentsTool | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool | StreamRunAgentAgentToolInputRunCurrentDateTool;
1235
+ export type StreamRunAgentAgentToolInputRun = AgentToolInputRunHTTPToolRun | AgentToolInputRunCodeToolRun | AgentToolInputRunMCPToolRun | AgentToolInputRunFunctionToolRun | StreamRunAgentAgentToolInputRunGoogleSearchTool | StreamRunAgentAgentToolInputRunWebScraperTool | StreamRunAgentAgentToolInputRunCallSubAgentTool | StreamRunAgentAgentToolInputRunRetrieveAgentsTool | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool | StreamRunAgentAgentToolInputRunCurrentDateTool;
1102
1236
  /**
1103
1237
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1104
1238
  */
@@ -1165,7 +1299,7 @@ export type StreamRunAgentSettings = {
1165
1299
  /**
1166
1300
  * Tools available to the agent
1167
1301
  */
1168
- tools?: Array<AgentToolInputRunHTTPToolRun | AgentToolInputRunCodeToolRun | AgentToolInputRunFunctionToolRun | StreamRunAgentAgentToolInputRunGoogleSearchTool | StreamRunAgentAgentToolInputRunWebScraperTool | StreamRunAgentAgentToolInputRunCallSubAgentTool | StreamRunAgentAgentToolInputRunRetrieveAgentsTool | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool | StreamRunAgentAgentToolInputRunCurrentDateTool> | undefined;
1302
+ tools?: Array<AgentToolInputRunHTTPToolRun | AgentToolInputRunCodeToolRun | AgentToolInputRunMCPToolRun | AgentToolInputRunFunctionToolRun | StreamRunAgentAgentToolInputRunGoogleSearchTool | StreamRunAgentAgentToolInputRunWebScraperTool | StreamRunAgentAgentToolInputRunCallSubAgentTool | StreamRunAgentAgentToolInputRunRetrieveAgentsTool | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool | StreamRunAgentAgentToolInputRunCurrentDateTool> | undefined;
1169
1303
  /**
1170
1304
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1171
1305
  */
@@ -1877,19 +2011,116 @@ export declare const StreamRunAgentTeamOfAgents$outboundSchema: z.ZodType<Stream
1877
2011
  export declare function streamRunAgentTeamOfAgentsToJSON(streamRunAgentTeamOfAgents: StreamRunAgentTeamOfAgents): string;
1878
2012
  export declare function streamRunAgentTeamOfAgentsFromJSON(jsonString: string): SafeParseResult<StreamRunAgentTeamOfAgents, SDKValidationError>;
1879
2013
  /** @internal */
2014
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type>;
2015
+ /** @internal */
2016
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type>;
2017
+ /** @internal */
2018
+ export declare const StreamRunAgentAgentToolInputRunAgentsHeaders$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunAgentsHeaders, z.ZodTypeDef, unknown>;
2019
+ /** @internal */
2020
+ export type StreamRunAgentAgentToolInputRunAgentsHeaders$Outbound = {
2021
+ value: string;
2022
+ encrypted: boolean;
2023
+ };
2024
+ /** @internal */
2025
+ export declare const StreamRunAgentAgentToolInputRunAgentsHeaders$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunAgentsHeaders$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunAgentsHeaders>;
2026
+ export declare function streamRunAgentAgentToolInputRunAgentsHeadersToJSON(streamRunAgentAgentToolInputRunAgentsHeaders: StreamRunAgentAgentToolInputRunAgentsHeaders): string;
2027
+ export declare function streamRunAgentAgentToolInputRunAgentsHeadersFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunAgentsHeaders, SDKValidationError>;
2028
+ /** @internal */
2029
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType>;
2030
+ /** @internal */
2031
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType>;
2032
+ /** @internal */
2033
+ export declare const AgentToolInputRunSchema$inboundSchema: z.ZodType<AgentToolInputRunSchema, z.ZodTypeDef, unknown>;
2034
+ /** @internal */
2035
+ export type AgentToolInputRunSchema$Outbound = {
2036
+ type: string;
2037
+ properties?: {
2038
+ [k: string]: any;
2039
+ } | undefined;
2040
+ required?: Array<string> | undefined;
2041
+ };
2042
+ /** @internal */
2043
+ export declare const AgentToolInputRunSchema$outboundSchema: z.ZodType<AgentToolInputRunSchema$Outbound, z.ZodTypeDef, AgentToolInputRunSchema>;
2044
+ export declare function agentToolInputRunSchemaToJSON(agentToolInputRunSchema: AgentToolInputRunSchema): string;
2045
+ export declare function agentToolInputRunSchemaFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunSchema, SDKValidationError>;
2046
+ /** @internal */
2047
+ export declare const AgentToolInputRunTools$inboundSchema: z.ZodType<AgentToolInputRunTools, z.ZodTypeDef, unknown>;
2048
+ /** @internal */
2049
+ export type AgentToolInputRunTools$Outbound = {
2050
+ name: string;
2051
+ description?: string | undefined;
2052
+ schema: AgentToolInputRunSchema$Outbound;
2053
+ };
2054
+ /** @internal */
2055
+ export declare const AgentToolInputRunTools$outboundSchema: z.ZodType<AgentToolInputRunTools$Outbound, z.ZodTypeDef, AgentToolInputRunTools>;
2056
+ export declare function agentToolInputRunToolsToJSON(agentToolInputRunTools: AgentToolInputRunTools): string;
2057
+ export declare function agentToolInputRunToolsFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunTools, SDKValidationError>;
2058
+ /** @internal */
2059
+ export declare const AgentToolInputRunConnectionType$inboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunConnectionType>;
2060
+ /** @internal */
2061
+ export declare const AgentToolInputRunConnectionType$outboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunConnectionType>;
2062
+ /** @internal */
2063
+ export declare const AgentToolInputRunMcp$inboundSchema: z.ZodType<AgentToolInputRunMcp, z.ZodTypeDef, unknown>;
2064
+ /** @internal */
2065
+ export type AgentToolInputRunMcp$Outbound = {
2066
+ server_url: string;
2067
+ headers?: {
2068
+ [k: string]: StreamRunAgentAgentToolInputRunAgentsHeaders$Outbound;
2069
+ } | undefined;
2070
+ tools: Array<AgentToolInputRunTools$Outbound>;
2071
+ connection_type: string;
2072
+ };
2073
+ /** @internal */
2074
+ export declare const AgentToolInputRunMcp$outboundSchema: z.ZodType<AgentToolInputRunMcp$Outbound, z.ZodTypeDef, AgentToolInputRunMcp>;
2075
+ export declare function agentToolInputRunMcpToJSON(agentToolInputRunMcp: AgentToolInputRunMcp): string;
2076
+ export declare function agentToolInputRunMcpFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunMcp, SDKValidationError>;
2077
+ /** @internal */
2078
+ export declare const AgentToolInputRunMCPToolRun$inboundSchema: z.ZodType<AgentToolInputRunMCPToolRun, z.ZodTypeDef, unknown>;
2079
+ /** @internal */
2080
+ export type AgentToolInputRunMCPToolRun$Outbound = {
2081
+ type: string;
2082
+ key: string;
2083
+ _id?: string | undefined;
2084
+ display_name?: string | undefined;
2085
+ description: string;
2086
+ mcp: AgentToolInputRunMcp$Outbound;
2087
+ requires_approval: boolean;
2088
+ };
2089
+ /** @internal */
2090
+ export declare const AgentToolInputRunMCPToolRun$outboundSchema: z.ZodType<AgentToolInputRunMCPToolRun$Outbound, z.ZodTypeDef, AgentToolInputRunMCPToolRun>;
2091
+ export declare function agentToolInputRunMCPToolRunToJSON(agentToolInputRunMCPToolRun: AgentToolInputRunMCPToolRun): string;
2092
+ export declare function agentToolInputRunMCPToolRunFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunMCPToolRun, SDKValidationError>;
2093
+ /** @internal */
1880
2094
  export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
1881
2095
  /** @internal */
1882
2096
  export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
1883
2097
  /** @internal */
2098
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType>;
2099
+ /** @internal */
2100
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType>;
2101
+ /** @internal */
2102
+ export declare const StreamRunAgentAgentToolInputRunAgentsParameters$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunAgentsParameters, z.ZodTypeDef, unknown>;
2103
+ /** @internal */
2104
+ export type StreamRunAgentAgentToolInputRunAgentsParameters$Outbound = {
2105
+ type: string;
2106
+ properties: {
2107
+ [k: string]: any;
2108
+ };
2109
+ required: Array<string>;
2110
+ [additionalProperties: string]: unknown;
2111
+ };
2112
+ /** @internal */
2113
+ export declare const StreamRunAgentAgentToolInputRunAgentsParameters$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunAgentsParameters$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunAgentsParameters>;
2114
+ export declare function streamRunAgentAgentToolInputRunAgentsParametersToJSON(streamRunAgentAgentToolInputRunAgentsParameters: StreamRunAgentAgentToolInputRunAgentsParameters): string;
2115
+ export declare function streamRunAgentAgentToolInputRunAgentsParametersFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunAgentsParameters, SDKValidationError>;
2116
+ /** @internal */
1884
2117
  export declare const StreamRunAgentAgentToolInputRunFunction$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunFunction, z.ZodTypeDef, unknown>;
1885
2118
  /** @internal */
1886
2119
  export type StreamRunAgentAgentToolInputRunFunction$Outbound = {
1887
2120
  name: string;
1888
2121
  description?: string | undefined;
1889
2122
  strict?: boolean | undefined;
1890
- parameters?: {
1891
- [k: string]: any;
1892
- } | undefined;
2123
+ parameters?: StreamRunAgentAgentToolInputRunAgentsParameters$Outbound | undefined;
1893
2124
  };
1894
2125
  /** @internal */
1895
2126
  export declare const StreamRunAgentAgentToolInputRunFunction$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunFunction$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunFunction>;
@@ -1916,6 +2147,25 @@ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySett
1916
2147
  /** @internal */
1917
2148
  export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
1918
2149
  /** @internal */
2150
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType>;
2151
+ /** @internal */
2152
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType>;
2153
+ /** @internal */
2154
+ export declare const StreamRunAgentAgentToolInputRunParameters$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunParameters, z.ZodTypeDef, unknown>;
2155
+ /** @internal */
2156
+ export type StreamRunAgentAgentToolInputRunParameters$Outbound = {
2157
+ type: string;
2158
+ properties: {
2159
+ [k: string]: any;
2160
+ };
2161
+ required: Array<string>;
2162
+ [additionalProperties: string]: unknown;
2163
+ };
2164
+ /** @internal */
2165
+ export declare const StreamRunAgentAgentToolInputRunParameters$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunParameters$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunParameters>;
2166
+ export declare function streamRunAgentAgentToolInputRunParametersToJSON(streamRunAgentAgentToolInputRunParameters: StreamRunAgentAgentToolInputRunParameters): string;
2167
+ export declare function streamRunAgentAgentToolInputRunParametersFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunParameters, SDKValidationError>;
2168
+ /** @internal */
1919
2169
  export declare const AgentToolInputRunLanguage$inboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunLanguage>;
1920
2170
  /** @internal */
1921
2171
  export declare const AgentToolInputRunLanguage$outboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunLanguage>;
@@ -1923,9 +2173,7 @@ export declare const AgentToolInputRunLanguage$outboundSchema: z.ZodNativeEnum<t
1923
2173
  export declare const AgentToolInputRunCodeTool$inboundSchema: z.ZodType<AgentToolInputRunCodeTool, z.ZodTypeDef, unknown>;
1924
2174
  /** @internal */
1925
2175
  export type AgentToolInputRunCodeTool$Outbound = {
1926
- parameters?: {
1927
- [k: string]: any;
1928
- } | undefined;
2176
+ parameters?: StreamRunAgentAgentToolInputRunParameters$Outbound | undefined;
1929
2177
  language: string;
1930
2178
  code: string;
1931
2179
  };
@@ -1958,16 +2206,24 @@ export declare const AgentToolInputRunMethod$inboundSchema: z.ZodNativeEnum<type
1958
2206
  /** @internal */
1959
2207
  export declare const AgentToolInputRunMethod$outboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunMethod>;
1960
2208
  /** @internal */
1961
- export declare const AgentToolInputRunHeaders$inboundSchema: z.ZodType<AgentToolInputRunHeaders, z.ZodTypeDef, unknown>;
2209
+ export declare const StreamRunAgentHeaders2$inboundSchema: z.ZodType<StreamRunAgentHeaders2, z.ZodTypeDef, unknown>;
1962
2210
  /** @internal */
1963
- export type AgentToolInputRunHeaders$Outbound = {
2211
+ export type StreamRunAgentHeaders2$Outbound = {
1964
2212
  value: string;
1965
2213
  encrypted: boolean;
1966
2214
  };
1967
2215
  /** @internal */
1968
- export declare const AgentToolInputRunHeaders$outboundSchema: z.ZodType<AgentToolInputRunHeaders$Outbound, z.ZodTypeDef, AgentToolInputRunHeaders>;
1969
- export declare function agentToolInputRunHeadersToJSON(agentToolInputRunHeaders: AgentToolInputRunHeaders): string;
1970
- export declare function agentToolInputRunHeadersFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunHeaders, SDKValidationError>;
2216
+ export declare const StreamRunAgentHeaders2$outboundSchema: z.ZodType<StreamRunAgentHeaders2$Outbound, z.ZodTypeDef, StreamRunAgentHeaders2>;
2217
+ export declare function streamRunAgentHeaders2ToJSON(streamRunAgentHeaders2: StreamRunAgentHeaders2): string;
2218
+ export declare function streamRunAgentHeaders2FromJSON(jsonString: string): SafeParseResult<StreamRunAgentHeaders2, SDKValidationError>;
2219
+ /** @internal */
2220
+ export declare const StreamRunAgentAgentToolInputRunHeaders$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunHeaders, z.ZodTypeDef, unknown>;
2221
+ /** @internal */
2222
+ export type StreamRunAgentAgentToolInputRunHeaders$Outbound = StreamRunAgentHeaders2$Outbound | string;
2223
+ /** @internal */
2224
+ export declare const StreamRunAgentAgentToolInputRunHeaders$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunHeaders$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunHeaders>;
2225
+ export declare function streamRunAgentAgentToolInputRunHeadersToJSON(streamRunAgentAgentToolInputRunHeaders: StreamRunAgentAgentToolInputRunHeaders): string;
2226
+ export declare function streamRunAgentAgentToolInputRunHeadersFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunHeaders, SDKValidationError>;
1971
2227
  /** @internal */
1972
2228
  export declare const AgentToolInputRunBlueprint$inboundSchema: z.ZodType<AgentToolInputRunBlueprint, z.ZodTypeDef, unknown>;
1973
2229
  /** @internal */
@@ -1975,7 +2231,7 @@ export type AgentToolInputRunBlueprint$Outbound = {
1975
2231
  url: string;
1976
2232
  method: string;
1977
2233
  headers?: {
1978
- [k: string]: AgentToolInputRunHeaders$Outbound;
2234
+ [k: string]: StreamRunAgentHeaders2$Outbound | string;
1979
2235
  } | undefined;
1980
2236
  body?: {
1981
2237
  [k: string]: any;
@@ -2207,7 +2463,7 @@ export declare function streamRunAgentAgentToolInputRunGoogleSearchToolFromJSON(
2207
2463
  /** @internal */
2208
2464
  export declare const StreamRunAgentAgentToolInputRun$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRun, z.ZodTypeDef, unknown>;
2209
2465
  /** @internal */
2210
- export type StreamRunAgentAgentToolInputRun$Outbound = AgentToolInputRunHTTPToolRun$Outbound | AgentToolInputRunCodeToolRun$Outbound | AgentToolInputRunFunctionToolRun$Outbound | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
2466
+ export type StreamRunAgentAgentToolInputRun$Outbound = AgentToolInputRunHTTPToolRun$Outbound | AgentToolInputRunCodeToolRun$Outbound | AgentToolInputRunMCPToolRun$Outbound | AgentToolInputRunFunctionToolRun$Outbound | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
2211
2467
  /** @internal */
2212
2468
  export declare const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRun$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRun>;
2213
2469
  export declare function streamRunAgentAgentToolInputRunToJSON(streamRunAgentAgentToolInputRun: StreamRunAgentAgentToolInputRun): string;
@@ -2252,7 +2508,7 @@ export declare function streamRunAgentGuardrailsFromJSON(jsonString: string): Sa
2252
2508
  export declare const StreamRunAgentSettings$inboundSchema: z.ZodType<StreamRunAgentSettings, z.ZodTypeDef, unknown>;
2253
2509
  /** @internal */
2254
2510
  export type StreamRunAgentSettings$Outbound = {
2255
- tools?: Array<AgentToolInputRunHTTPToolRun$Outbound | AgentToolInputRunCodeToolRun$Outbound | AgentToolInputRunFunctionToolRun$Outbound | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound> | undefined;
2511
+ tools?: Array<AgentToolInputRunHTTPToolRun$Outbound | AgentToolInputRunCodeToolRun$Outbound | AgentToolInputRunMCPToolRun$Outbound | AgentToolInputRunFunctionToolRun$Outbound | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound> | undefined;
2256
2512
  tool_approval_required: string;
2257
2513
  max_iterations: number;
2258
2514
  max_execution_time: number;