@voltagent/server-core 1.0.32 → 1.0.33

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.
@@ -897,6 +897,55 @@ declare const OBSERVABILITY_MEMORY_ROUTES: {
897
897
  };
898
898
  };
899
899
  };
900
+ /**
901
+ * Tool route definitions
902
+ */
903
+ declare const TOOL_ROUTES: {
904
+ readonly listTools: {
905
+ readonly method: "get";
906
+ readonly path: "/tools";
907
+ readonly summary: "List all tools";
908
+ readonly description: "Retrieve a list of all tools registered across agents. Includes name, description, parameters, and owning agent metadata.";
909
+ readonly tags: readonly ["Tools"];
910
+ readonly operationId: "listTools";
911
+ readonly responses: {
912
+ readonly 200: {
913
+ readonly description: "Successfully retrieved list of tools";
914
+ readonly contentType: "application/json";
915
+ };
916
+ readonly 500: {
917
+ readonly description: "Failed to retrieve tools due to server error";
918
+ readonly contentType: "application/json";
919
+ };
920
+ };
921
+ };
922
+ readonly executeTool: {
923
+ readonly method: "post";
924
+ readonly path: "/tools/:name/execute";
925
+ readonly summary: "Execute a tool directly";
926
+ readonly description: "Execute a registered tool directly via HTTP without going through the agent chat flow. Accepts tool input and optional context metadata.";
927
+ readonly tags: readonly ["Tools"];
928
+ readonly operationId: "executeTool";
929
+ readonly responses: {
930
+ readonly 200: {
931
+ readonly description: "Successfully executed tool";
932
+ readonly contentType: "application/json";
933
+ };
934
+ readonly 400: {
935
+ readonly description: "Invalid request or tool input";
936
+ readonly contentType: "application/json";
937
+ };
938
+ readonly 404: {
939
+ readonly description: "Tool not found";
940
+ readonly contentType: "application/json";
941
+ };
942
+ readonly 500: {
943
+ readonly description: "Failed to execute tool due to server error";
944
+ readonly contentType: "application/json";
945
+ };
946
+ };
947
+ };
948
+ };
900
949
  /**
901
950
  * All route definitions combined
902
951
  */
@@ -1255,6 +1304,50 @@ declare const ALL_ROUTES: {
1255
1304
  };
1256
1305
  };
1257
1306
  };
1307
+ readonly listTools: {
1308
+ readonly method: "get";
1309
+ readonly path: "/tools";
1310
+ readonly summary: "List all tools";
1311
+ readonly description: "Retrieve a list of all tools registered across agents. Includes name, description, parameters, and owning agent metadata.";
1312
+ readonly tags: readonly ["Tools"];
1313
+ readonly operationId: "listTools";
1314
+ readonly responses: {
1315
+ readonly 200: {
1316
+ readonly description: "Successfully retrieved list of tools";
1317
+ readonly contentType: "application/json";
1318
+ };
1319
+ readonly 500: {
1320
+ readonly description: "Failed to retrieve tools due to server error";
1321
+ readonly contentType: "application/json";
1322
+ };
1323
+ };
1324
+ };
1325
+ readonly executeTool: {
1326
+ readonly method: "post";
1327
+ readonly path: "/tools/:name/execute";
1328
+ readonly summary: "Execute a tool directly";
1329
+ readonly description: "Execute a registered tool directly via HTTP without going through the agent chat flow. Accepts tool input and optional context metadata.";
1330
+ readonly tags: readonly ["Tools"];
1331
+ readonly operationId: "executeTool";
1332
+ readonly responses: {
1333
+ readonly 200: {
1334
+ readonly description: "Successfully executed tool";
1335
+ readonly contentType: "application/json";
1336
+ };
1337
+ readonly 400: {
1338
+ readonly description: "Invalid request or tool input";
1339
+ readonly contentType: "application/json";
1340
+ };
1341
+ readonly 404: {
1342
+ readonly description: "Tool not found";
1343
+ readonly contentType: "application/json";
1344
+ };
1345
+ readonly 500: {
1346
+ readonly description: "Failed to execute tool due to server error";
1347
+ readonly contentType: "application/json";
1348
+ };
1349
+ };
1350
+ };
1258
1351
  readonly listWorkflows: {
1259
1352
  readonly method: "get";
1260
1353
  readonly path: "/workflows";
@@ -2289,4 +2382,4 @@ declare function mapHandlerResponse(response: ApiResponse, type?: string): ApiRe
2289
2382
  */
2290
2383
  declare function getResponseStatus(response: ApiResponse): number;
2291
2384
 
2292
- export { handleGenerateObject as $, type ApiResponse as A, type JsonRpcStream as B, type JsonRpcHandlerResult as C, type JsonRpcRequest as D, type ErrorResponse as E, type A2ARequestContext as F, type AgentCardSkill as G, type HttpMethod as H, type AgentCardProviderInfo as I, type JsonRpcError as J, type AgentCardCapabilities as K, LOG_ROUTES as L, type MemoryUserSummary as M, type AgentCard as N, OBSERVABILITY_ROUTES as O, A2AErrorCode as P, normalizeError as Q, type ResponseDefinition as R, type SuccessResponse as S, isJsonRpcRequest as T, UPDATE_ROUTES as U, VoltA2AError as V, WORKFLOW_ROUTES as W, handleGetAgents as X, handleGenerateText as Y, handleStreamText as Z, handleChatStream as _, type A2AServerLikeWithHandlers as a, handleStreamObject as a0, handleGetAgent as a1, handleGetAgentHistory as a2, handleGetWorkflows as a3, handleGetWorkflow as a4, handleExecuteWorkflow as a5, handleStreamWorkflow as a6, handleSuspendWorkflow as a7, handleCancelWorkflow as a8, handleResumeWorkflow as a9, handleListWorkflowRuns as aa, handleGetWorkflowState as ab, type LogFilterOptions as ac, type LogHandlerResponse as ad, handleGetLogs as ae, listMemoryUsersHandler as af, listMemoryConversationsHandler as ag, getConversationMessagesHandler as ah, getConversationStepsHandler as ai, getWorkingMemoryHandler as aj, mapLogResponse as ak, mapHandlerResponse as al, getResponseStatus as am, type OpenApiInfo as an, type AppSetupConfig as ao, getOrCreateLogger as ap, shouldEnableSwaggerUI as aq, getOpenApiDoc as ar, DEFAULT_CORS_OPTIONS as as, type StreamResponse as b, isSuccessResponse as c, type MemoryUserAgentSummary as d, type MemoryConversationSummary as e, type MemoryConversationMessagesResult as f, type MemoryConversationStepsResult as g, type MemoryWorkingMemoryResult as h, isErrorResponse as i, type MemoryListUsersQuery as j, type MemoryListConversationsQuery as k, type MemoryGetMessagesQuery as l, type MemoryGetStepsQuery as m, type RouteDefinition as n, AGENT_ROUTES as o, OBSERVABILITY_MEMORY_ROUTES as p, ALL_ROUTES as q, getAllRoutesArray as r, MCP_ROUTES as s, A2A_ROUTES as t, getRoutesByTag as u, parseJsonRpcRequest as v, resolveAgentCard as w, executeA2ARequest as x, type A2AJsonRpcId as y, type JsonRpcResponse as z };
2385
+ export { handleChatStream as $, type ApiResponse as A, type JsonRpcStream as B, type JsonRpcHandlerResult as C, type JsonRpcRequest as D, type ErrorResponse as E, type A2ARequestContext as F, type AgentCardSkill as G, type HttpMethod as H, type AgentCardProviderInfo as I, type JsonRpcError as J, type AgentCardCapabilities as K, LOG_ROUTES as L, type MemoryUserSummary as M, type AgentCard as N, OBSERVABILITY_ROUTES as O, A2AErrorCode as P, normalizeError as Q, type ResponseDefinition as R, type SuccessResponse as S, TOOL_ROUTES as T, UPDATE_ROUTES as U, VoltA2AError as V, WORKFLOW_ROUTES as W, isJsonRpcRequest as X, handleGetAgents as Y, handleGenerateText as Z, handleStreamText as _, type A2AServerLikeWithHandlers as a, handleGenerateObject as a0, handleStreamObject as a1, handleGetAgent as a2, handleGetAgentHistory as a3, handleGetWorkflows as a4, handleGetWorkflow as a5, handleExecuteWorkflow as a6, handleStreamWorkflow as a7, handleSuspendWorkflow as a8, handleCancelWorkflow as a9, handleResumeWorkflow as aa, handleListWorkflowRuns as ab, handleGetWorkflowState as ac, type LogFilterOptions as ad, type LogHandlerResponse as ae, handleGetLogs as af, listMemoryUsersHandler as ag, listMemoryConversationsHandler as ah, getConversationMessagesHandler as ai, getConversationStepsHandler as aj, getWorkingMemoryHandler as ak, mapLogResponse as al, mapHandlerResponse as am, getResponseStatus as an, type OpenApiInfo as ao, type AppSetupConfig as ap, getOrCreateLogger as aq, shouldEnableSwaggerUI as ar, getOpenApiDoc as as, DEFAULT_CORS_OPTIONS as at, type StreamResponse as b, isSuccessResponse as c, type MemoryUserAgentSummary as d, type MemoryConversationSummary as e, type MemoryConversationMessagesResult as f, type MemoryConversationStepsResult as g, type MemoryWorkingMemoryResult as h, isErrorResponse as i, type MemoryListUsersQuery as j, type MemoryListConversationsQuery as k, type MemoryGetMessagesQuery as l, type MemoryGetStepsQuery as m, type RouteDefinition as n, AGENT_ROUTES as o, OBSERVABILITY_MEMORY_ROUTES as p, ALL_ROUTES as q, getAllRoutesArray as r, MCP_ROUTES as s, A2A_ROUTES as t, getRoutesByTag as u, parseJsonRpcRequest as v, resolveAgentCard as w, executeA2ARequest as x, type A2AJsonRpcId as y, type JsonRpcResponse as z };
@@ -897,6 +897,55 @@ declare const OBSERVABILITY_MEMORY_ROUTES: {
897
897
  };
898
898
  };
899
899
  };
900
+ /**
901
+ * Tool route definitions
902
+ */
903
+ declare const TOOL_ROUTES: {
904
+ readonly listTools: {
905
+ readonly method: "get";
906
+ readonly path: "/tools";
907
+ readonly summary: "List all tools";
908
+ readonly description: "Retrieve a list of all tools registered across agents. Includes name, description, parameters, and owning agent metadata.";
909
+ readonly tags: readonly ["Tools"];
910
+ readonly operationId: "listTools";
911
+ readonly responses: {
912
+ readonly 200: {
913
+ readonly description: "Successfully retrieved list of tools";
914
+ readonly contentType: "application/json";
915
+ };
916
+ readonly 500: {
917
+ readonly description: "Failed to retrieve tools due to server error";
918
+ readonly contentType: "application/json";
919
+ };
920
+ };
921
+ };
922
+ readonly executeTool: {
923
+ readonly method: "post";
924
+ readonly path: "/tools/:name/execute";
925
+ readonly summary: "Execute a tool directly";
926
+ readonly description: "Execute a registered tool directly via HTTP without going through the agent chat flow. Accepts tool input and optional context metadata.";
927
+ readonly tags: readonly ["Tools"];
928
+ readonly operationId: "executeTool";
929
+ readonly responses: {
930
+ readonly 200: {
931
+ readonly description: "Successfully executed tool";
932
+ readonly contentType: "application/json";
933
+ };
934
+ readonly 400: {
935
+ readonly description: "Invalid request or tool input";
936
+ readonly contentType: "application/json";
937
+ };
938
+ readonly 404: {
939
+ readonly description: "Tool not found";
940
+ readonly contentType: "application/json";
941
+ };
942
+ readonly 500: {
943
+ readonly description: "Failed to execute tool due to server error";
944
+ readonly contentType: "application/json";
945
+ };
946
+ };
947
+ };
948
+ };
900
949
  /**
901
950
  * All route definitions combined
902
951
  */
@@ -1255,6 +1304,50 @@ declare const ALL_ROUTES: {
1255
1304
  };
1256
1305
  };
1257
1306
  };
1307
+ readonly listTools: {
1308
+ readonly method: "get";
1309
+ readonly path: "/tools";
1310
+ readonly summary: "List all tools";
1311
+ readonly description: "Retrieve a list of all tools registered across agents. Includes name, description, parameters, and owning agent metadata.";
1312
+ readonly tags: readonly ["Tools"];
1313
+ readonly operationId: "listTools";
1314
+ readonly responses: {
1315
+ readonly 200: {
1316
+ readonly description: "Successfully retrieved list of tools";
1317
+ readonly contentType: "application/json";
1318
+ };
1319
+ readonly 500: {
1320
+ readonly description: "Failed to retrieve tools due to server error";
1321
+ readonly contentType: "application/json";
1322
+ };
1323
+ };
1324
+ };
1325
+ readonly executeTool: {
1326
+ readonly method: "post";
1327
+ readonly path: "/tools/:name/execute";
1328
+ readonly summary: "Execute a tool directly";
1329
+ readonly description: "Execute a registered tool directly via HTTP without going through the agent chat flow. Accepts tool input and optional context metadata.";
1330
+ readonly tags: readonly ["Tools"];
1331
+ readonly operationId: "executeTool";
1332
+ readonly responses: {
1333
+ readonly 200: {
1334
+ readonly description: "Successfully executed tool";
1335
+ readonly contentType: "application/json";
1336
+ };
1337
+ readonly 400: {
1338
+ readonly description: "Invalid request or tool input";
1339
+ readonly contentType: "application/json";
1340
+ };
1341
+ readonly 404: {
1342
+ readonly description: "Tool not found";
1343
+ readonly contentType: "application/json";
1344
+ };
1345
+ readonly 500: {
1346
+ readonly description: "Failed to execute tool due to server error";
1347
+ readonly contentType: "application/json";
1348
+ };
1349
+ };
1350
+ };
1258
1351
  readonly listWorkflows: {
1259
1352
  readonly method: "get";
1260
1353
  readonly path: "/workflows";
@@ -2289,4 +2382,4 @@ declare function mapHandlerResponse(response: ApiResponse, type?: string): ApiRe
2289
2382
  */
2290
2383
  declare function getResponseStatus(response: ApiResponse): number;
2291
2384
 
2292
- export { handleGenerateObject as $, type ApiResponse as A, type JsonRpcStream as B, type JsonRpcHandlerResult as C, type JsonRpcRequest as D, type ErrorResponse as E, type A2ARequestContext as F, type AgentCardSkill as G, type HttpMethod as H, type AgentCardProviderInfo as I, type JsonRpcError as J, type AgentCardCapabilities as K, LOG_ROUTES as L, type MemoryUserSummary as M, type AgentCard as N, OBSERVABILITY_ROUTES as O, A2AErrorCode as P, normalizeError as Q, type ResponseDefinition as R, type SuccessResponse as S, isJsonRpcRequest as T, UPDATE_ROUTES as U, VoltA2AError as V, WORKFLOW_ROUTES as W, handleGetAgents as X, handleGenerateText as Y, handleStreamText as Z, handleChatStream as _, type A2AServerLikeWithHandlers as a, handleStreamObject as a0, handleGetAgent as a1, handleGetAgentHistory as a2, handleGetWorkflows as a3, handleGetWorkflow as a4, handleExecuteWorkflow as a5, handleStreamWorkflow as a6, handleSuspendWorkflow as a7, handleCancelWorkflow as a8, handleResumeWorkflow as a9, handleListWorkflowRuns as aa, handleGetWorkflowState as ab, type LogFilterOptions as ac, type LogHandlerResponse as ad, handleGetLogs as ae, listMemoryUsersHandler as af, listMemoryConversationsHandler as ag, getConversationMessagesHandler as ah, getConversationStepsHandler as ai, getWorkingMemoryHandler as aj, mapLogResponse as ak, mapHandlerResponse as al, getResponseStatus as am, type OpenApiInfo as an, type AppSetupConfig as ao, getOrCreateLogger as ap, shouldEnableSwaggerUI as aq, getOpenApiDoc as ar, DEFAULT_CORS_OPTIONS as as, type StreamResponse as b, isSuccessResponse as c, type MemoryUserAgentSummary as d, type MemoryConversationSummary as e, type MemoryConversationMessagesResult as f, type MemoryConversationStepsResult as g, type MemoryWorkingMemoryResult as h, isErrorResponse as i, type MemoryListUsersQuery as j, type MemoryListConversationsQuery as k, type MemoryGetMessagesQuery as l, type MemoryGetStepsQuery as m, type RouteDefinition as n, AGENT_ROUTES as o, OBSERVABILITY_MEMORY_ROUTES as p, ALL_ROUTES as q, getAllRoutesArray as r, MCP_ROUTES as s, A2A_ROUTES as t, getRoutesByTag as u, parseJsonRpcRequest as v, resolveAgentCard as w, executeA2ARequest as x, type A2AJsonRpcId as y, type JsonRpcResponse as z };
2385
+ export { handleChatStream as $, type ApiResponse as A, type JsonRpcStream as B, type JsonRpcHandlerResult as C, type JsonRpcRequest as D, type ErrorResponse as E, type A2ARequestContext as F, type AgentCardSkill as G, type HttpMethod as H, type AgentCardProviderInfo as I, type JsonRpcError as J, type AgentCardCapabilities as K, LOG_ROUTES as L, type MemoryUserSummary as M, type AgentCard as N, OBSERVABILITY_ROUTES as O, A2AErrorCode as P, normalizeError as Q, type ResponseDefinition as R, type SuccessResponse as S, TOOL_ROUTES as T, UPDATE_ROUTES as U, VoltA2AError as V, WORKFLOW_ROUTES as W, isJsonRpcRequest as X, handleGetAgents as Y, handleGenerateText as Z, handleStreamText as _, type A2AServerLikeWithHandlers as a, handleGenerateObject as a0, handleStreamObject as a1, handleGetAgent as a2, handleGetAgentHistory as a3, handleGetWorkflows as a4, handleGetWorkflow as a5, handleExecuteWorkflow as a6, handleStreamWorkflow as a7, handleSuspendWorkflow as a8, handleCancelWorkflow as a9, handleResumeWorkflow as aa, handleListWorkflowRuns as ab, handleGetWorkflowState as ac, type LogFilterOptions as ad, type LogHandlerResponse as ae, handleGetLogs as af, listMemoryUsersHandler as ag, listMemoryConversationsHandler as ah, getConversationMessagesHandler as ai, getConversationStepsHandler as aj, getWorkingMemoryHandler as ak, mapLogResponse as al, mapHandlerResponse as am, getResponseStatus as an, type OpenApiInfo as ao, type AppSetupConfig as ap, getOrCreateLogger as aq, shouldEnableSwaggerUI as ar, getOpenApiDoc as as, DEFAULT_CORS_OPTIONS as at, type StreamResponse as b, isSuccessResponse as c, type MemoryUserAgentSummary as d, type MemoryConversationSummary as e, type MemoryConversationMessagesResult as f, type MemoryConversationStepsResult as g, type MemoryWorkingMemoryResult as h, isErrorResponse as i, type MemoryListUsersQuery as j, type MemoryListConversationsQuery as k, type MemoryGetMessagesQuery as l, type MemoryGetStepsQuery as m, type RouteDefinition as n, AGENT_ROUTES as o, OBSERVABILITY_MEMORY_ROUTES as p, ALL_ROUTES as q, getAllRoutesArray as r, MCP_ROUTES as s, A2A_ROUTES as t, getRoutesByTag as u, parseJsonRpcRequest as v, resolveAgentCard as w, executeA2ARequest as x, type A2AJsonRpcId as y, type JsonRpcResponse as z };
package/dist/edge.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { F as A2ARequestContext, t as A2A_ROUTES, o as AGENT_ROUTES, L as LOG_ROUTES, p as OBSERVABILITY_MEMORY_ROUTES, O as OBSERVABILITY_ROUTES, W as WORKFLOW_ROUTES, x as executeA2ARequest, ah as getConversationMessagesHandler, ai as getConversationStepsHandler, ap as getOrCreateLogger, aj as getWorkingMemoryHandler, _ as handleChatStream, a5 as handleExecuteWorkflow, $ as handleGenerateObject, Y as handleGenerateText, a1 as handleGetAgent, a2 as handleGetAgentHistory, X as handleGetAgents, ae as handleGetLogs, a4 as handleGetWorkflow, ab as handleGetWorkflowState, a3 as handleGetWorkflows, aa as handleListWorkflowRuns, a9 as handleResumeWorkflow, a0 as handleStreamObject, Z as handleStreamText, a6 as handleStreamWorkflow, a7 as handleSuspendWorkflow, i as isErrorResponse, ag as listMemoryConversationsHandler, af as listMemoryUsersHandler, ak as mapLogResponse, v as parseJsonRpcRequest, w as resolveAgentCard } from './edge-DNggrEBU.mjs';
1
+ export { F as A2ARequestContext, t as A2A_ROUTES, o as AGENT_ROUTES, L as LOG_ROUTES, p as OBSERVABILITY_MEMORY_ROUTES, O as OBSERVABILITY_ROUTES, W as WORKFLOW_ROUTES, x as executeA2ARequest, ai as getConversationMessagesHandler, aj as getConversationStepsHandler, aq as getOrCreateLogger, ak as getWorkingMemoryHandler, $ as handleChatStream, a6 as handleExecuteWorkflow, a0 as handleGenerateObject, Z as handleGenerateText, a2 as handleGetAgent, a3 as handleGetAgentHistory, Y as handleGetAgents, af as handleGetLogs, a5 as handleGetWorkflow, ac as handleGetWorkflowState, a4 as handleGetWorkflows, ab as handleListWorkflowRuns, aa as handleResumeWorkflow, a1 as handleStreamObject, _ as handleStreamText, a7 as handleStreamWorkflow, a8 as handleSuspendWorkflow, i as isErrorResponse, ah as listMemoryConversationsHandler, ag as listMemoryUsersHandler, al as mapLogResponse, v as parseJsonRpcRequest, w as resolveAgentCard } from './edge-YtITyx6y.mjs';
2
2
  import '@voltagent/core';
3
3
  import '@voltagent/internal';
4
4
  import 'ai';
package/dist/edge.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { F as A2ARequestContext, t as A2A_ROUTES, o as AGENT_ROUTES, L as LOG_ROUTES, p as OBSERVABILITY_MEMORY_ROUTES, O as OBSERVABILITY_ROUTES, W as WORKFLOW_ROUTES, x as executeA2ARequest, ah as getConversationMessagesHandler, ai as getConversationStepsHandler, ap as getOrCreateLogger, aj as getWorkingMemoryHandler, _ as handleChatStream, a5 as handleExecuteWorkflow, $ as handleGenerateObject, Y as handleGenerateText, a1 as handleGetAgent, a2 as handleGetAgentHistory, X as handleGetAgents, ae as handleGetLogs, a4 as handleGetWorkflow, ab as handleGetWorkflowState, a3 as handleGetWorkflows, aa as handleListWorkflowRuns, a9 as handleResumeWorkflow, a0 as handleStreamObject, Z as handleStreamText, a6 as handleStreamWorkflow, a7 as handleSuspendWorkflow, i as isErrorResponse, ag as listMemoryConversationsHandler, af as listMemoryUsersHandler, ak as mapLogResponse, v as parseJsonRpcRequest, w as resolveAgentCard } from './edge-DNggrEBU.js';
1
+ export { F as A2ARequestContext, t as A2A_ROUTES, o as AGENT_ROUTES, L as LOG_ROUTES, p as OBSERVABILITY_MEMORY_ROUTES, O as OBSERVABILITY_ROUTES, W as WORKFLOW_ROUTES, x as executeA2ARequest, ai as getConversationMessagesHandler, aj as getConversationStepsHandler, aq as getOrCreateLogger, ak as getWorkingMemoryHandler, $ as handleChatStream, a6 as handleExecuteWorkflow, a0 as handleGenerateObject, Z as handleGenerateText, a2 as handleGetAgent, a3 as handleGetAgentHistory, Y as handleGetAgents, af as handleGetLogs, a5 as handleGetWorkflow, ac as handleGetWorkflowState, a4 as handleGetWorkflows, ab as handleListWorkflowRuns, aa as handleResumeWorkflow, a1 as handleStreamObject, _ as handleStreamText, a7 as handleStreamWorkflow, a8 as handleSuspendWorkflow, i as isErrorResponse, ah as listMemoryConversationsHandler, ag as listMemoryUsersHandler, al as mapLogResponse, v as parseJsonRpcRequest, w as resolveAgentCard } from './edge-YtITyx6y.js';
2
2
  import '@voltagent/core';
3
3
  import '@voltagent/internal';
4
4
  import 'ai';
package/dist/edge.js CHANGED
@@ -842,9 +842,56 @@ var OBSERVABILITY_MEMORY_ROUTES = {
842
842
  }
843
843
  }
844
844
  };
845
+ var TOOL_ROUTES = {
846
+ listTools: {
847
+ method: "get",
848
+ path: "/tools",
849
+ summary: "List all tools",
850
+ description: "Retrieve a list of all tools registered across agents. Includes name, description, parameters, and owning agent metadata.",
851
+ tags: ["Tools"],
852
+ operationId: "listTools",
853
+ responses: {
854
+ 200: {
855
+ description: "Successfully retrieved list of tools",
856
+ contentType: "application/json"
857
+ },
858
+ 500: {
859
+ description: "Failed to retrieve tools due to server error",
860
+ contentType: "application/json"
861
+ }
862
+ }
863
+ },
864
+ executeTool: {
865
+ method: "post",
866
+ path: "/tools/:name/execute",
867
+ summary: "Execute a tool directly",
868
+ description: "Execute a registered tool directly via HTTP without going through the agent chat flow. Accepts tool input and optional context metadata.",
869
+ tags: ["Tools"],
870
+ operationId: "executeTool",
871
+ responses: {
872
+ 200: {
873
+ description: "Successfully executed tool",
874
+ contentType: "application/json"
875
+ },
876
+ 400: {
877
+ description: "Invalid request or tool input",
878
+ contentType: "application/json"
879
+ },
880
+ 404: {
881
+ description: "Tool not found",
882
+ contentType: "application/json"
883
+ },
884
+ 500: {
885
+ description: "Failed to execute tool due to server error",
886
+ contentType: "application/json"
887
+ }
888
+ }
889
+ }
890
+ };
845
891
  var ALL_ROUTES = {
846
892
  ...AGENT_ROUTES,
847
893
  ...WORKFLOW_ROUTES,
894
+ ...TOOL_ROUTES,
848
895
  ...LOG_ROUTES,
849
896
  ...UPDATE_ROUTES,
850
897
  ...OBSERVABILITY_ROUTES,