@orq-ai/node 4.12.0-rc.50 → 4.12.0-rc.51

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 (134) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/agenttoolinputcrud.d.ts +413 -0
  5. package/models/components/agenttoolinputcrud.d.ts.map +1 -0
  6. package/models/components/agenttoolinputcrud.js +287 -0
  7. package/models/components/agenttoolinputcrud.js.map +1 -0
  8. package/models/components/codetoolinput.d.ts +38 -0
  9. package/models/components/codetoolinput.d.ts.map +1 -0
  10. package/models/components/codetoolinput.js +58 -0
  11. package/models/components/codetoolinput.js.map +1 -0
  12. package/models/components/evaluatorresponsefunction.js +2 -2
  13. package/models/components/evaluatorresponsehttp.js +2 -2
  14. package/models/components/evaluatorresponsejsonschema.js +2 -2
  15. package/models/components/evaluatorresponsellm.js +2 -2
  16. package/models/components/evaluatorresponsepython.js +2 -2
  17. package/models/components/evaluatorresponseragas.js +2 -2
  18. package/models/components/evaluatorresponsetypescript.js +2 -2
  19. package/models/components/functiontoolinput.d.ts +33 -0
  20. package/models/components/functiontoolinput.d.ts.map +1 -0
  21. package/models/components/functiontoolinput.js +57 -0
  22. package/models/components/functiontoolinput.js.map +1 -0
  23. package/models/components/httptoolinput.d.ts +38 -0
  24. package/models/components/httptoolinput.d.ts.map +1 -0
  25. package/models/components/httptoolinput.js +58 -0
  26. package/models/components/httptoolinput.js.map +1 -0
  27. package/models/components/index.d.ts +7 -0
  28. package/models/components/index.d.ts.map +1 -1
  29. package/models/components/index.js +7 -0
  30. package/models/components/index.js.map +1 -1
  31. package/models/components/jsonschematoolinput.d.ts +33 -0
  32. package/models/components/jsonschematoolinput.d.ts.map +1 -0
  33. package/models/components/jsonschematoolinput.js +57 -0
  34. package/models/components/jsonschematoolinput.js.map +1 -0
  35. package/models/components/mcptoolinput.d.ts +38 -0
  36. package/models/components/mcptoolinput.d.ts.map +1 -0
  37. package/models/components/mcptoolinput.js +59 -0
  38. package/models/components/mcptoolinput.js.map +1 -0
  39. package/models/components/providertoolinput.d.ts +47 -0
  40. package/models/components/providertoolinput.d.ts.map +1 -0
  41. package/models/components/providertoolinput.js +59 -0
  42. package/models/components/providertoolinput.js.map +1 -0
  43. package/models/components/reasoningpart.js +1 -1
  44. package/models/operations/createagentrequest.d.ts +2 -677
  45. package/models/operations/createagentrequest.d.ts.map +1 -1
  46. package/models/operations/createagentrequest.js +6 -421
  47. package/models/operations/createagentrequest.js.map +1 -1
  48. package/models/operations/createdataset.js +1 -1
  49. package/models/operations/createdatasetitem.js +5 -5
  50. package/models/operations/createdatasource.js +1 -1
  51. package/models/operations/createrouterresponse.d.ts +8 -8
  52. package/models/operations/createrouterresponse.d.ts.map +1 -1
  53. package/models/operations/createrouterresponse.js +7 -7
  54. package/models/operations/createrouterresponse.js.map +1 -1
  55. package/models/operations/createtool.d.ts +18 -18
  56. package/models/operations/createtool.d.ts.map +1 -1
  57. package/models/operations/createtool.js +28 -28
  58. package/models/operations/createtool.js.map +1 -1
  59. package/models/operations/getalltools.js +6 -6
  60. package/models/operations/getv2humanevalsets.js +2 -2
  61. package/models/operations/getv2humanevalsetsid.js +2 -2
  62. package/models/operations/listdatasetdatapoints.js +5 -5
  63. package/models/operations/listdatasets.js +1 -1
  64. package/models/operations/listdatasources.js +1 -1
  65. package/models/operations/patchv2humanevalsetsid.js +2 -2
  66. package/models/operations/postv2feedbackevaluation.js +4 -4
  67. package/models/operations/postv2humanevalsets.js +2 -2
  68. package/models/operations/retrievedatapoint.js +5 -5
  69. package/models/operations/retrievedataset.js +1 -1
  70. package/models/operations/retrievedatasource.js +1 -1
  71. package/models/operations/retrievetool.js +6 -6
  72. package/models/operations/runagent.d.ts +52 -52
  73. package/models/operations/runagent.d.ts.map +1 -1
  74. package/models/operations/runagent.js +75 -75
  75. package/models/operations/runagent.js.map +1 -1
  76. package/models/operations/streamrunagent.d.ts +52 -52
  77. package/models/operations/streamrunagent.d.ts.map +1 -1
  78. package/models/operations/streamrunagent.js +75 -78
  79. package/models/operations/streamrunagent.js.map +1 -1
  80. package/models/operations/updateagent.d.ts +2 -677
  81. package/models/operations/updateagent.d.ts.map +1 -1
  82. package/models/operations/updateagent.js +6 -421
  83. package/models/operations/updateagent.js.map +1 -1
  84. package/models/operations/updatedatapoint.js +5 -5
  85. package/models/operations/updatedataset.js +1 -1
  86. package/models/operations/updatedatasource.js +1 -1
  87. package/models/operations/updatetool.js +7 -7
  88. package/package.json +9 -9
  89. package/sdk/feedback.d.ts +2 -2
  90. package/sdk/feedback.js +2 -2
  91. package/src/lib/config.ts +2 -2
  92. package/src/models/components/agenttoolinputcrud.ts +747 -0
  93. package/src/models/components/codetoolinput.ts +62 -0
  94. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  95. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  96. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  97. package/src/models/components/evaluatorresponsellm.ts +2 -2
  98. package/src/models/components/evaluatorresponsepython.ts +2 -2
  99. package/src/models/components/evaluatorresponseragas.ts +2 -2
  100. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  101. package/src/models/components/functiontoolinput.ts +60 -0
  102. package/src/models/components/httptoolinput.ts +62 -0
  103. package/src/models/components/index.ts +7 -0
  104. package/src/models/components/jsonschematoolinput.ts +60 -0
  105. package/src/models/components/mcptoolinput.ts +63 -0
  106. package/src/models/components/providertoolinput.ts +72 -0
  107. package/src/models/components/reasoningpart.ts +1 -1
  108. package/src/models/operations/createagentrequest.ts +1606 -2947
  109. package/src/models/operations/createdataset.ts +1 -1
  110. package/src/models/operations/createdatasetitem.ts +5 -5
  111. package/src/models/operations/createdatasource.ts +1 -1
  112. package/src/models/operations/createrouterresponse.ts +13 -13
  113. package/src/models/operations/createtool.ts +47 -61
  114. package/src/models/operations/getalltools.ts +6 -6
  115. package/src/models/operations/getv2humanevalsets.ts +2 -2
  116. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  117. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  118. package/src/models/operations/listdatasets.ts +1 -1
  119. package/src/models/operations/listdatasources.ts +1 -1
  120. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  121. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  122. package/src/models/operations/postv2humanevalsets.ts +2 -2
  123. package/src/models/operations/retrievedatapoint.ts +5 -5
  124. package/src/models/operations/retrievedataset.ts +1 -1
  125. package/src/models/operations/retrievedatasource.ts +1 -1
  126. package/src/models/operations/retrievetool.ts +6 -6
  127. package/src/models/operations/runagent.ts +195 -232
  128. package/src/models/operations/streamrunagent.ts +273 -328
  129. package/src/models/operations/updateagent.ts +1819 -3223
  130. package/src/models/operations/updatedatapoint.ts +5 -5
  131. package/src/models/operations/updatedataset.ts +1 -1
  132. package/src/models/operations/updatedatasource.ts +1 -1
  133. package/src/models/operations/updatetool.ts +7 -7
  134. package/src/sdk/feedback.ts +2 -2
@@ -839,444 +839,6 @@ export declare const ToolApprovalRequired: {
839
839
  * 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.
840
840
  */
841
841
  export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
842
- /**
843
- * Provider-specific built-in tools that are passed through to the provider. Must be prefixed with the provider name (e.g., openai:web_search, anthropic:web_search_20250305, google:google_search).
844
- */
845
- export type ProviderBuiltInTool = {
846
- /**
847
- * Provider-prefixed tool type
848
- */
849
- type: string;
850
- /**
851
- * The key of a pre-created tool
852
- */
853
- key?: string | undefined;
854
- /**
855
- * The ID of a pre-created tool
856
- */
857
- id?: string | undefined;
858
- /**
859
- * Whether this tool requires approval before execution
860
- */
861
- requiresApproval?: boolean | undefined;
862
- /**
863
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
864
- */
865
- configuration?: {
866
- [k: string]: any;
867
- } | undefined;
868
- };
869
- /**
870
- * MCP tool type
871
- */
872
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type: {
873
- readonly Mcp: "mcp";
874
- };
875
- /**
876
- * MCP tool type
877
- */
878
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type>;
879
- /**
880
- * Executes tools from Model Context Protocol (MCP) servers. Specify the parent MCP tool using "key" or "id", and the specific nested tool using "tool_id".
881
- */
882
- export type MCPTool = {
883
- /**
884
- * MCP tool type
885
- */
886
- type?: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type | undefined;
887
- /**
888
- * The key of the parent MCP tool
889
- */
890
- key?: string | undefined;
891
- /**
892
- * The ID of the parent MCP tool
893
- */
894
- id?: string | undefined;
895
- /**
896
- * The ID of the specific nested tool within the MCP server
897
- */
898
- toolId: string;
899
- /**
900
- * Whether this tool requires approval before execution
901
- */
902
- requiresApproval?: boolean | undefined;
903
- };
904
- /**
905
- * JSON Schema tool type
906
- */
907
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type: {
908
- readonly JsonSchema: "json_schema";
909
- };
910
- /**
911
- * JSON Schema tool type
912
- */
913
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type>;
914
- /**
915
- * Enforces structured output format using JSON Schema. Must reference a pre-created JSON Schema tool by key or id.
916
- */
917
- export type JSONSchemaTool = {
918
- /**
919
- * JSON Schema tool type
920
- */
921
- type?: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type | undefined;
922
- /**
923
- * The key of the pre-created JSON Schema tool
924
- */
925
- key?: string | undefined;
926
- /**
927
- * The ID of the pre-created JSON Schema tool
928
- */
929
- id?: string | undefined;
930
- /**
931
- * Whether this tool requires approval before execution
932
- */
933
- requiresApproval?: boolean | undefined;
934
- };
935
- /**
936
- * Function tool type
937
- */
938
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type: {
939
- readonly Function: "function";
940
- };
941
- /**
942
- * Function tool type
943
- */
944
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type>;
945
- /**
946
- * Calls custom function tools defined in the agent configuration. Must reference a pre-created function tool by key or id.
947
- */
948
- export type FunctionTool = {
949
- /**
950
- * Function tool type
951
- */
952
- type?: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type | undefined;
953
- /**
954
- * The key of the pre-created function tool
955
- */
956
- key?: string | undefined;
957
- /**
958
- * The ID of the pre-created function tool
959
- */
960
- id?: string | undefined;
961
- /**
962
- * Whether this tool requires approval before execution
963
- */
964
- requiresApproval?: boolean | undefined;
965
- };
966
- /**
967
- * Code execution tool type
968
- */
969
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type: {
970
- readonly Code: "code";
971
- };
972
- /**
973
- * Code execution tool type
974
- */
975
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type>;
976
- /**
977
- * Executes code snippets in a sandboxed environment. Must reference a pre-created code tool by key or id.
978
- */
979
- export type CodeExecutionTool = {
980
- /**
981
- * Code execution tool type
982
- */
983
- type?: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type | undefined;
984
- /**
985
- * The key of the pre-created code tool
986
- */
987
- key?: string | undefined;
988
- /**
989
- * The ID of the pre-created code tool
990
- */
991
- id?: string | undefined;
992
- /**
993
- * Whether this tool requires approval before execution
994
- */
995
- requiresApproval?: boolean | undefined;
996
- /**
997
- * Tool execution timeout in seconds for this agent (max: 2 minutes, the code sandbox cap). Overrides the timeout configured on the tool definition.
998
- */
999
- timeout?: number | undefined;
1000
- };
1001
- /**
1002
- * HTTP tool type
1003
- */
1004
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type: {
1005
- readonly Http: "http";
1006
- };
1007
- /**
1008
- * HTTP tool type
1009
- */
1010
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type>;
1011
- /**
1012
- * Executes HTTP requests to interact with external APIs and web services. Must reference a pre-created HTTP tool by key or id.
1013
- */
1014
- export type HTTPTool = {
1015
- /**
1016
- * HTTP tool type
1017
- */
1018
- type?: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type | undefined;
1019
- /**
1020
- * The key of the pre-created HTTP tool
1021
- */
1022
- key?: string | undefined;
1023
- /**
1024
- * The ID of the pre-created HTTP tool
1025
- */
1026
- id?: string | undefined;
1027
- /**
1028
- * Whether this tool requires approval before execution
1029
- */
1030
- requiresApproval?: boolean | undefined;
1031
- /**
1032
- * Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
1033
- */
1034
- timeout?: number | undefined;
1035
- };
1036
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type: {
1037
- readonly CodeInterpreter: "code_interpreter";
1038
- };
1039
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type>;
1040
- /**
1041
- * Executes model-written Python code. Uses provider-native code execution when the model supports it, otherwise a secure orq-managed sandbox.
1042
- */
1043
- export type CodeInterpreterTool = {
1044
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type;
1045
- /**
1046
- * Whether this tool requires approval before execution
1047
- */
1048
- requiresApproval?: boolean | undefined;
1049
- /**
1050
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1051
- */
1052
- configuration?: {
1053
- [k: string]: any;
1054
- } | undefined;
1055
- };
1056
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type: {
1057
- readonly CurrentDate: "current_date";
1058
- };
1059
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type>;
1060
- /**
1061
- * Returns the current date and time
1062
- */
1063
- export type CurrentDateTool = {
1064
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type;
1065
- /**
1066
- * Whether this tool requires approval before execution
1067
- */
1068
- requiresApproval?: boolean | undefined;
1069
- /**
1070
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1071
- */
1072
- configuration?: {
1073
- [k: string]: any;
1074
- } | undefined;
1075
- };
1076
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type: {
1077
- readonly QueryKnowledgeBase: "query_knowledge_base";
1078
- };
1079
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type>;
1080
- /**
1081
- * Queries knowledge bases for information
1082
- */
1083
- export type QueryKnowledgeBaseTool = {
1084
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type;
1085
- /**
1086
- * Whether this tool requires approval before execution
1087
- */
1088
- requiresApproval?: boolean | undefined;
1089
- /**
1090
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1091
- */
1092
- configuration?: {
1093
- [k: string]: any;
1094
- } | undefined;
1095
- };
1096
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type: {
1097
- readonly RetrieveKnowledgeBases: "retrieve_knowledge_bases";
1098
- };
1099
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type>;
1100
- /**
1101
- * Lists available knowledge bases
1102
- */
1103
- export type RetrieveKnowledgeBasesTool = {
1104
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type;
1105
- /**
1106
- * Whether this tool requires approval before execution
1107
- */
1108
- requiresApproval?: boolean | undefined;
1109
- /**
1110
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1111
- */
1112
- configuration?: {
1113
- [k: string]: any;
1114
- } | undefined;
1115
- };
1116
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type: {
1117
- readonly DeleteMemoryDocument: "delete_memory_document";
1118
- };
1119
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type>;
1120
- /**
1121
- * Deletes documents from memory stores
1122
- */
1123
- export type DeleteMemoryDocumentTool = {
1124
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type;
1125
- /**
1126
- * Whether this tool requires approval before execution
1127
- */
1128
- requiresApproval?: boolean | undefined;
1129
- /**
1130
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1131
- */
1132
- configuration?: {
1133
- [k: string]: any;
1134
- } | undefined;
1135
- };
1136
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType: {
1137
- readonly RetrieveMemoryStores: "retrieve_memory_stores";
1138
- };
1139
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType>;
1140
- /**
1141
- * Lists available memory stores
1142
- */
1143
- export type RetrieveMemoryStoresTool = {
1144
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType;
1145
- /**
1146
- * Whether this tool requires approval before execution
1147
- */
1148
- requiresApproval?: boolean | undefined;
1149
- /**
1150
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1151
- */
1152
- configuration?: {
1153
- [k: string]: any;
1154
- } | undefined;
1155
- };
1156
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType: {
1157
- readonly WriteMemoryStore: "write_memory_store";
1158
- };
1159
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType>;
1160
- /**
1161
- * Writes information to agent memory stores
1162
- */
1163
- export type WriteMemoryStoreTool = {
1164
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType;
1165
- /**
1166
- * Whether this tool requires approval before execution
1167
- */
1168
- requiresApproval?: boolean | undefined;
1169
- /**
1170
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1171
- */
1172
- configuration?: {
1173
- [k: string]: any;
1174
- } | undefined;
1175
- };
1176
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType: {
1177
- readonly QueryMemoryStore: "query_memory_store";
1178
- };
1179
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType>;
1180
- /**
1181
- * Queries agent memory stores for context
1182
- */
1183
- export type QueryMemoryStoreTool = {
1184
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType;
1185
- /**
1186
- * Whether this tool requires approval before execution
1187
- */
1188
- requiresApproval?: boolean | undefined;
1189
- /**
1190
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1191
- */
1192
- configuration?: {
1193
- [k: string]: any;
1194
- } | undefined;
1195
- };
1196
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestType: {
1197
- readonly RetrieveAgents: "retrieve_agents";
1198
- };
1199
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestType = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestType>;
1200
- /**
1201
- * Retrieves available agents in the system
1202
- */
1203
- export type RetrieveAgentsTool = {
1204
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestType;
1205
- /**
1206
- * Whether this tool requires approval before execution
1207
- */
1208
- requiresApproval?: boolean | undefined;
1209
- /**
1210
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1211
- */
1212
- configuration?: {
1213
- [k: string]: any;
1214
- } | undefined;
1215
- };
1216
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsType: {
1217
- readonly CallSubAgent: "call_sub_agent";
1218
- };
1219
- export type CreateAgentRequestAgentToolInputCRUDAgentsType = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsType>;
1220
- /**
1221
- * Delegates tasks to specialized sub-agents
1222
- */
1223
- export type CallSubAgentTool = {
1224
- type: CreateAgentRequestAgentToolInputCRUDAgentsType;
1225
- /**
1226
- * Whether this tool requires approval before execution
1227
- */
1228
- requiresApproval?: boolean | undefined;
1229
- /**
1230
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1231
- */
1232
- configuration?: {
1233
- [k: string]: any;
1234
- } | undefined;
1235
- };
1236
- export declare const CreateAgentRequestAgentToolInputCRUDType: {
1237
- readonly WebScraper: "web_scraper";
1238
- };
1239
- export type CreateAgentRequestAgentToolInputCRUDType = ClosedEnum<typeof CreateAgentRequestAgentToolInputCRUDType>;
1240
- /**
1241
- * Scrapes and extracts content from web pages
1242
- */
1243
- export type WebScraperTool = {
1244
- type: CreateAgentRequestAgentToolInputCRUDType;
1245
- /**
1246
- * Whether this tool requires approval before execution
1247
- */
1248
- requiresApproval?: boolean | undefined;
1249
- /**
1250
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1251
- */
1252
- configuration?: {
1253
- [k: string]: any;
1254
- } | undefined;
1255
- };
1256
- export declare const AgentToolInputCRUDType: {
1257
- readonly GoogleSearch: "google_search";
1258
- };
1259
- export type AgentToolInputCRUDType = ClosedEnum<typeof AgentToolInputCRUDType>;
1260
- /**
1261
- * Performs Google searches to retrieve web content
1262
- */
1263
- export type GoogleSearchTool = {
1264
- type: AgentToolInputCRUDType;
1265
- /**
1266
- * Whether this tool requires approval before execution
1267
- */
1268
- requiresApproval?: boolean | undefined;
1269
- /**
1270
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1271
- */
1272
- configuration?: {
1273
- [k: string]: any;
1274
- } | undefined;
1275
- };
1276
- /**
1277
- * Tool configuration for agent create/update operations. Built-in tools only require a type, while custom tools (HTTP, Code, Function, JSON Schema, MCP) must reference pre-created tools by key or id. Provider-prefixed tools (e.g., openai:web_search) are passed through to the provider.
1278
- */
1279
- export type AgentToolInputCRUD = GoogleSearchTool | WebScraperTool | CallSubAgentTool | RetrieveAgentsTool | QueryMemoryStoreTool | WriteMemoryStoreTool | RetrieveMemoryStoresTool | DeleteMemoryDocumentTool | RetrieveKnowledgeBasesTool | QueryKnowledgeBaseTool | CurrentDateTool | CodeInterpreterTool | MCPTool | ProviderBuiltInTool | HTTPTool | CodeExecutionTool | FunctionTool | JSONSchemaTool;
1280
842
  /**
1281
843
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1282
844
  */
@@ -1354,7 +916,7 @@ export type Settings = {
1354
916
  /**
1355
917
  * Tools available to the agent. Built-in tools only need a type, while custom tools (http, code, function) must reference pre-created tools by key or id.
1356
918
  */
1357
- tools?: Array<GoogleSearchTool | WebScraperTool | CallSubAgentTool | RetrieveAgentsTool | QueryMemoryStoreTool | WriteMemoryStoreTool | RetrieveMemoryStoresTool | DeleteMemoryDocumentTool | RetrieveKnowledgeBasesTool | QueryKnowledgeBaseTool | CurrentDateTool | CodeInterpreterTool | MCPTool | ProviderBuiltInTool | HTTPTool | CodeExecutionTool | FunctionTool | JSONSchemaTool> | undefined;
919
+ tools?: Array<components.AgentToolInputCRUD> | undefined;
1358
920
  /**
1359
921
  * Configuration for an evaluator applied to the agent
1360
922
  */
@@ -2966,243 +2528,6 @@ export declare function fallbackModelConfigurationToJSON(fallbackModelConfigurat
2966
2528
  /** @internal */
2967
2529
  export declare const ToolApprovalRequired$outboundSchema: z.ZodNativeEnum<typeof ToolApprovalRequired>;
2968
2530
  /** @internal */
2969
- export type ProviderBuiltInTool$Outbound = {
2970
- type: string;
2971
- key?: string | undefined;
2972
- id?: string | undefined;
2973
- requires_approval?: boolean | undefined;
2974
- configuration?: {
2975
- [k: string]: any;
2976
- } | undefined;
2977
- };
2978
- /** @internal */
2979
- export declare const ProviderBuiltInTool$outboundSchema: z.ZodType<ProviderBuiltInTool$Outbound, z.ZodTypeDef, ProviderBuiltInTool>;
2980
- export declare function providerBuiltInToolToJSON(providerBuiltInTool: ProviderBuiltInTool): string;
2981
- /** @internal */
2982
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type>;
2983
- /** @internal */
2984
- export type MCPTool$Outbound = {
2985
- type: string;
2986
- key?: string | undefined;
2987
- id?: string | undefined;
2988
- tool_id: string;
2989
- requires_approval: boolean;
2990
- };
2991
- /** @internal */
2992
- export declare const MCPTool$outboundSchema: z.ZodType<MCPTool$Outbound, z.ZodTypeDef, MCPTool>;
2993
- export declare function mcpToolToJSON(mcpTool: MCPTool): string;
2994
- /** @internal */
2995
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type>;
2996
- /** @internal */
2997
- export type JSONSchemaTool$Outbound = {
2998
- type: string;
2999
- key?: string | undefined;
3000
- id?: string | undefined;
3001
- requires_approval: boolean;
3002
- };
3003
- /** @internal */
3004
- export declare const JSONSchemaTool$outboundSchema: z.ZodType<JSONSchemaTool$Outbound, z.ZodTypeDef, JSONSchemaTool>;
3005
- export declare function jsonSchemaToolToJSON(jsonSchemaTool: JSONSchemaTool): string;
3006
- /** @internal */
3007
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type>;
3008
- /** @internal */
3009
- export type FunctionTool$Outbound = {
3010
- type: string;
3011
- key?: string | undefined;
3012
- id?: string | undefined;
3013
- requires_approval: boolean;
3014
- };
3015
- /** @internal */
3016
- export declare const FunctionTool$outboundSchema: z.ZodType<FunctionTool$Outbound, z.ZodTypeDef, FunctionTool>;
3017
- export declare function functionToolToJSON(functionTool: FunctionTool): string;
3018
- /** @internal */
3019
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type>;
3020
- /** @internal */
3021
- export type CodeExecutionTool$Outbound = {
3022
- type: string;
3023
- key?: string | undefined;
3024
- id?: string | undefined;
3025
- requires_approval: boolean;
3026
- timeout?: number | undefined;
3027
- };
3028
- /** @internal */
3029
- export declare const CodeExecutionTool$outboundSchema: z.ZodType<CodeExecutionTool$Outbound, z.ZodTypeDef, CodeExecutionTool>;
3030
- export declare function codeExecutionToolToJSON(codeExecutionTool: CodeExecutionTool): string;
3031
- /** @internal */
3032
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type>;
3033
- /** @internal */
3034
- export type HTTPTool$Outbound = {
3035
- type: string;
3036
- key?: string | undefined;
3037
- id?: string | undefined;
3038
- requires_approval: boolean;
3039
- timeout?: number | undefined;
3040
- };
3041
- /** @internal */
3042
- export declare const HTTPTool$outboundSchema: z.ZodType<HTTPTool$Outbound, z.ZodTypeDef, HTTPTool>;
3043
- export declare function httpToolToJSON(httpTool: HTTPTool): string;
3044
- /** @internal */
3045
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type>;
3046
- /** @internal */
3047
- export type CodeInterpreterTool$Outbound = {
3048
- type: string;
3049
- requires_approval?: boolean | undefined;
3050
- configuration?: {
3051
- [k: string]: any;
3052
- } | undefined;
3053
- };
3054
- /** @internal */
3055
- export declare const CodeInterpreterTool$outboundSchema: z.ZodType<CodeInterpreterTool$Outbound, z.ZodTypeDef, CodeInterpreterTool>;
3056
- export declare function codeInterpreterToolToJSON(codeInterpreterTool: CodeInterpreterTool): string;
3057
- /** @internal */
3058
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type>;
3059
- /** @internal */
3060
- export type CurrentDateTool$Outbound = {
3061
- type: string;
3062
- requires_approval?: boolean | undefined;
3063
- configuration?: {
3064
- [k: string]: any;
3065
- } | undefined;
3066
- };
3067
- /** @internal */
3068
- export declare const CurrentDateTool$outboundSchema: z.ZodType<CurrentDateTool$Outbound, z.ZodTypeDef, CurrentDateTool>;
3069
- export declare function currentDateToolToJSON(currentDateTool: CurrentDateTool): string;
3070
- /** @internal */
3071
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type>;
3072
- /** @internal */
3073
- export type QueryKnowledgeBaseTool$Outbound = {
3074
- type: string;
3075
- requires_approval?: boolean | undefined;
3076
- configuration?: {
3077
- [k: string]: any;
3078
- } | undefined;
3079
- };
3080
- /** @internal */
3081
- export declare const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<QueryKnowledgeBaseTool$Outbound, z.ZodTypeDef, QueryKnowledgeBaseTool>;
3082
- export declare function queryKnowledgeBaseToolToJSON(queryKnowledgeBaseTool: QueryKnowledgeBaseTool): string;
3083
- /** @internal */
3084
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type>;
3085
- /** @internal */
3086
- export type RetrieveKnowledgeBasesTool$Outbound = {
3087
- type: string;
3088
- requires_approval?: boolean | undefined;
3089
- configuration?: {
3090
- [k: string]: any;
3091
- } | undefined;
3092
- };
3093
- /** @internal */
3094
- export declare const RetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<RetrieveKnowledgeBasesTool$Outbound, z.ZodTypeDef, RetrieveKnowledgeBasesTool>;
3095
- export declare function retrieveKnowledgeBasesToolToJSON(retrieveKnowledgeBasesTool: RetrieveKnowledgeBasesTool): string;
3096
- /** @internal */
3097
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type>;
3098
- /** @internal */
3099
- export type DeleteMemoryDocumentTool$Outbound = {
3100
- type: string;
3101
- requires_approval?: boolean | undefined;
3102
- configuration?: {
3103
- [k: string]: any;
3104
- } | undefined;
3105
- };
3106
- /** @internal */
3107
- export declare const DeleteMemoryDocumentTool$outboundSchema: z.ZodType<DeleteMemoryDocumentTool$Outbound, z.ZodTypeDef, DeleteMemoryDocumentTool>;
3108
- export declare function deleteMemoryDocumentToolToJSON(deleteMemoryDocumentTool: DeleteMemoryDocumentTool): string;
3109
- /** @internal */
3110
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType>;
3111
- /** @internal */
3112
- export type RetrieveMemoryStoresTool$Outbound = {
3113
- type: string;
3114
- requires_approval?: boolean | undefined;
3115
- configuration?: {
3116
- [k: string]: any;
3117
- } | undefined;
3118
- };
3119
- /** @internal */
3120
- export declare const RetrieveMemoryStoresTool$outboundSchema: z.ZodType<RetrieveMemoryStoresTool$Outbound, z.ZodTypeDef, RetrieveMemoryStoresTool>;
3121
- export declare function retrieveMemoryStoresToolToJSON(retrieveMemoryStoresTool: RetrieveMemoryStoresTool): string;
3122
- /** @internal */
3123
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType>;
3124
- /** @internal */
3125
- export type WriteMemoryStoreTool$Outbound = {
3126
- type: string;
3127
- requires_approval?: boolean | undefined;
3128
- configuration?: {
3129
- [k: string]: any;
3130
- } | undefined;
3131
- };
3132
- /** @internal */
3133
- export declare const WriteMemoryStoreTool$outboundSchema: z.ZodType<WriteMemoryStoreTool$Outbound, z.ZodTypeDef, WriteMemoryStoreTool>;
3134
- export declare function writeMemoryStoreToolToJSON(writeMemoryStoreTool: WriteMemoryStoreTool): string;
3135
- /** @internal */
3136
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType>;
3137
- /** @internal */
3138
- export type QueryMemoryStoreTool$Outbound = {
3139
- type: string;
3140
- requires_approval?: boolean | undefined;
3141
- configuration?: {
3142
- [k: string]: any;
3143
- } | undefined;
3144
- };
3145
- /** @internal */
3146
- export declare const QueryMemoryStoreTool$outboundSchema: z.ZodType<QueryMemoryStoreTool$Outbound, z.ZodTypeDef, QueryMemoryStoreTool>;
3147
- export declare function queryMemoryStoreToolToJSON(queryMemoryStoreTool: QueryMemoryStoreTool): string;
3148
- /** @internal */
3149
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsRequestType$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestType>;
3150
- /** @internal */
3151
- export type RetrieveAgentsTool$Outbound = {
3152
- type: string;
3153
- requires_approval?: boolean | undefined;
3154
- configuration?: {
3155
- [k: string]: any;
3156
- } | undefined;
3157
- };
3158
- /** @internal */
3159
- export declare const RetrieveAgentsTool$outboundSchema: z.ZodType<RetrieveAgentsTool$Outbound, z.ZodTypeDef, RetrieveAgentsTool>;
3160
- export declare function retrieveAgentsToolToJSON(retrieveAgentsTool: RetrieveAgentsTool): string;
3161
- /** @internal */
3162
- export declare const CreateAgentRequestAgentToolInputCRUDAgentsType$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsType>;
3163
- /** @internal */
3164
- export type CallSubAgentTool$Outbound = {
3165
- type: string;
3166
- requires_approval?: boolean | undefined;
3167
- configuration?: {
3168
- [k: string]: any;
3169
- } | undefined;
3170
- };
3171
- /** @internal */
3172
- export declare const CallSubAgentTool$outboundSchema: z.ZodType<CallSubAgentTool$Outbound, z.ZodTypeDef, CallSubAgentTool>;
3173
- export declare function callSubAgentToolToJSON(callSubAgentTool: CallSubAgentTool): string;
3174
- /** @internal */
3175
- export declare const CreateAgentRequestAgentToolInputCRUDType$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDType>;
3176
- /** @internal */
3177
- export type WebScraperTool$Outbound = {
3178
- type: string;
3179
- requires_approval?: boolean | undefined;
3180
- configuration?: {
3181
- [k: string]: any;
3182
- } | undefined;
3183
- };
3184
- /** @internal */
3185
- export declare const WebScraperTool$outboundSchema: z.ZodType<WebScraperTool$Outbound, z.ZodTypeDef, WebScraperTool>;
3186
- export declare function webScraperToolToJSON(webScraperTool: WebScraperTool): string;
3187
- /** @internal */
3188
- export declare const AgentToolInputCRUDType$outboundSchema: z.ZodNativeEnum<typeof AgentToolInputCRUDType>;
3189
- /** @internal */
3190
- export type GoogleSearchTool$Outbound = {
3191
- type: string;
3192
- requires_approval?: boolean | undefined;
3193
- configuration?: {
3194
- [k: string]: any;
3195
- } | undefined;
3196
- };
3197
- /** @internal */
3198
- export declare const GoogleSearchTool$outboundSchema: z.ZodType<GoogleSearchTool$Outbound, z.ZodTypeDef, GoogleSearchTool>;
3199
- export declare function googleSearchToolToJSON(googleSearchTool: GoogleSearchTool): string;
3200
- /** @internal */
3201
- export type AgentToolInputCRUD$Outbound = GoogleSearchTool$Outbound | WebScraperTool$Outbound | CallSubAgentTool$Outbound | RetrieveAgentsTool$Outbound | QueryMemoryStoreTool$Outbound | WriteMemoryStoreTool$Outbound | RetrieveMemoryStoresTool$Outbound | DeleteMemoryDocumentTool$Outbound | RetrieveKnowledgeBasesTool$Outbound | QueryKnowledgeBaseTool$Outbound | CurrentDateTool$Outbound | CodeInterpreterTool$Outbound | MCPTool$Outbound | ProviderBuiltInTool$Outbound | HTTPTool$Outbound | CodeExecutionTool$Outbound | FunctionTool$Outbound | JSONSchemaTool$Outbound;
3202
- /** @internal */
3203
- export declare const AgentToolInputCRUD$outboundSchema: z.ZodType<AgentToolInputCRUD$Outbound, z.ZodTypeDef, AgentToolInputCRUD>;
3204
- export declare function agentToolInputCRUDToJSON(agentToolInputCRUD: AgentToolInputCRUD): string;
3205
- /** @internal */
3206
2531
  export declare const CreateAgentRequestExecuteOn$outboundSchema: z.ZodNativeEnum<typeof CreateAgentRequestExecuteOn>;
3207
2532
  /** @internal */
3208
2533
  export type Evaluators$Outbound = {
@@ -3231,7 +2556,7 @@ export type Settings$Outbound = {
3231
2556
  max_cost: number;
3232
2557
  tool_approval_required: string;
3233
2558
  chat_exposed?: boolean | undefined;
3234
- tools?: Array<GoogleSearchTool$Outbound | WebScraperTool$Outbound | CallSubAgentTool$Outbound | RetrieveAgentsTool$Outbound | QueryMemoryStoreTool$Outbound | WriteMemoryStoreTool$Outbound | RetrieveMemoryStoresTool$Outbound | DeleteMemoryDocumentTool$Outbound | RetrieveKnowledgeBasesTool$Outbound | QueryKnowledgeBaseTool$Outbound | CurrentDateTool$Outbound | CodeInterpreterTool$Outbound | MCPTool$Outbound | ProviderBuiltInTool$Outbound | HTTPTool$Outbound | CodeExecutionTool$Outbound | FunctionTool$Outbound | JSONSchemaTool$Outbound> | undefined;
2559
+ tools?: Array<components.AgentToolInputCRUD$Outbound> | undefined;
3235
2560
  evaluators?: Array<Evaluators$Outbound> | undefined;
3236
2561
  guardrails?: Array<CreateAgentRequestGuardrails$Outbound> | undefined;
3237
2562
  };