@mastra/server 1.36.0-alpha.7 → 1.36.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/{api-schema-manifest-HYLH35UU.cjs → api-schema-manifest-4VHMCJM3.cjs} +4 -4
- package/dist/{api-schema-manifest-HYLH35UU.cjs.map → api-schema-manifest-4VHMCJM3.cjs.map} +1 -1
- package/dist/{api-schema-manifest-WY623UST.js → api-schema-manifest-DZFKQXHM.js} +3 -3
- package/dist/{api-schema-manifest-WY623UST.js.map → api-schema-manifest-DZFKQXHM.js.map} +1 -1
- package/dist/{chunk-3FLL7GNJ.js → chunk-32CLLOUG.js} +3 -3
- package/dist/{chunk-3FLL7GNJ.js.map → chunk-32CLLOUG.js.map} +1 -1
- package/dist/{chunk-YQYYIRDS.cjs → chunk-35SOHRUB.cjs} +90 -90
- package/dist/{chunk-YQYYIRDS.cjs.map → chunk-35SOHRUB.cjs.map} +1 -1
- package/dist/{chunk-E3UHRQZ7.js → chunk-3HMSFYGA.js} +12 -12
- package/dist/{chunk-E3UHRQZ7.js.map → chunk-3HMSFYGA.js.map} +1 -1
- package/dist/{chunk-JZ2K5LY4.cjs → chunk-5R2TJISH.cjs} +4 -4
- package/dist/{chunk-JZ2K5LY4.cjs.map → chunk-5R2TJISH.cjs.map} +1 -1
- package/dist/{chunk-D4HVKF56.js → chunk-ADCOCQN6.js} +3 -3
- package/dist/{chunk-D4HVKF56.js.map → chunk-ADCOCQN6.js.map} +1 -1
- package/dist/{chunk-KME4O3RJ.cjs → chunk-ADOALG4G.cjs} +3 -2
- package/dist/chunk-ADOALG4G.cjs.map +1 -0
- package/dist/{chunk-CY2WDWFQ.cjs → chunk-BXXP2OVD.cjs} +3 -3
- package/dist/{chunk-CY2WDWFQ.cjs.map → chunk-BXXP2OVD.cjs.map} +1 -1
- package/dist/{chunk-A4FTF4A7.cjs → chunk-CUCQCEE7.cjs} +63 -63
- package/dist/{chunk-A4FTF4A7.cjs.map → chunk-CUCQCEE7.cjs.map} +1 -1
- package/dist/{chunk-L6U4LZZX.cjs → chunk-CYRYTJ4B.cjs} +24 -24
- package/dist/{chunk-L6U4LZZX.cjs.map → chunk-CYRYTJ4B.cjs.map} +1 -1
- package/dist/{chunk-CODPCBGN.cjs → chunk-EQICIFWJ.cjs} +25 -25
- package/dist/{chunk-CODPCBGN.cjs.map → chunk-EQICIFWJ.cjs.map} +1 -1
- package/dist/{chunk-7X6KGLPA.js → chunk-FTCTH6EC.js} +4 -4
- package/dist/{chunk-7X6KGLPA.js.map → chunk-FTCTH6EC.js.map} +1 -1
- package/dist/{chunk-HFESVWJ6.js → chunk-GYC5P37S.js} +3 -3
- package/dist/{chunk-HFESVWJ6.js.map → chunk-GYC5P37S.js.map} +1 -1
- package/dist/{chunk-MERLF4UP.cjs → chunk-GZ4HIOSP.cjs} +7 -7
- package/dist/{chunk-MERLF4UP.cjs.map → chunk-GZ4HIOSP.cjs.map} +1 -1
- package/dist/{chunk-XM54QZ3G.js → chunk-JHFU2P6Z.js} +3 -3
- package/dist/{chunk-XM54QZ3G.js.map → chunk-JHFU2P6Z.js.map} +1 -1
- package/dist/{chunk-ZRU7KWNW.cjs → chunk-JIB75MHZ.cjs} +7 -3
- package/dist/chunk-JIB75MHZ.cjs.map +1 -0
- package/dist/{chunk-WM2RUEBO.js → chunk-K5ED24PC.js} +3 -3
- package/dist/{chunk-WM2RUEBO.js.map → chunk-K5ED24PC.js.map} +1 -1
- package/dist/{chunk-TNXHSUIL.cjs → chunk-KIR4MF3S.cjs} +117 -117
- package/dist/{chunk-TNXHSUIL.cjs.map → chunk-KIR4MF3S.cjs.map} +1 -1
- package/dist/{chunk-KWREVMMS.js → chunk-LO3JBCO6.js} +7 -3
- package/dist/chunk-LO3JBCO6.js.map +1 -0
- package/dist/{chunk-HKM5KOOK.cjs → chunk-LRIYO7KQ.cjs} +4 -4
- package/dist/{chunk-HKM5KOOK.cjs.map → chunk-LRIYO7KQ.cjs.map} +1 -1
- package/dist/{chunk-HWT5YD7H.cjs → chunk-M2CPNUSL.cjs} +4 -4
- package/dist/{chunk-HWT5YD7H.cjs.map → chunk-M2CPNUSL.cjs.map} +1 -1
- package/dist/{chunk-I3RWQGD7.js → chunk-MRG75BLC.js} +3 -3
- package/dist/{chunk-I3RWQGD7.js.map → chunk-MRG75BLC.js.map} +1 -1
- package/dist/{chunk-Y3KIKJW6.js → chunk-P673H7LK.js} +3 -3
- package/dist/{chunk-Y3KIKJW6.js.map → chunk-P673H7LK.js.map} +1 -1
- package/dist/{chunk-CBHBMWZ2.cjs → chunk-PQKBBJOP.cjs} +5 -5
- package/dist/{chunk-CBHBMWZ2.cjs.map → chunk-PQKBBJOP.cjs.map} +1 -1
- package/dist/{chunk-4Z24UGLY.cjs → chunk-RDR3XN2X.cjs} +17 -17
- package/dist/{chunk-4Z24UGLY.cjs.map → chunk-RDR3XN2X.cjs.map} +1 -1
- package/dist/{chunk-IRJQQYII.js → chunk-SAPM56NU.js} +3 -3
- package/dist/{chunk-IRJQQYII.js.map → chunk-SAPM56NU.js.map} +1 -1
- package/dist/{chunk-IFYVRBFS.js → chunk-VVLD43MX.js} +3 -2
- package/dist/chunk-VVLD43MX.js.map +1 -0
- package/dist/{chunk-664F5XOW.js → chunk-YZPXWF6M.js} +4 -4
- package/dist/{chunk-664F5XOW.js.map → chunk-YZPXWF6M.js.map} +1 -1
- package/dist/{chunk-GW6T4HLN.js → chunk-ZUWPQVWA.js} +4 -4
- package/dist/{chunk-GW6T4HLN.js.map → chunk-ZUWPQVWA.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/server/handlers/a2a.cjs +14 -14
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +16 -16
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agents.cjs +41 -41
- package/dist/server/handlers/agents.d.ts +8 -0
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/conversations.cjs +5 -5
- package/dist/server/handlers/conversations.js +1 -1
- package/dist/server/handlers/datasets.cjs +26 -26
- package/dist/server/handlers/datasets.d.ts +2 -0
- package/dist/server/handlers/datasets.d.ts.map +1 -1
- package/dist/server/handlers/datasets.js +1 -1
- package/dist/server/handlers/responses.cjs +4 -4
- package/dist/server/handlers/responses.js +1 -1
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/system.cjs +3 -3
- package/dist/server/handlers/system.js +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/voice.cjs +8 -8
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +26 -26
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +18 -18
- package/dist/server/handlers.js +9 -9
- package/dist/server/schemas/agents.d.ts +8 -0
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/datasets.d.ts +2 -0
- package/dist/server/schemas/datasets.d.ts.map +1 -1
- package/dist/server/schemas/index.cjs +90 -90
- package/dist/server/schemas/index.js +2 -2
- package/dist/server/server-adapter/index.cjs +13 -13
- package/dist/server/server-adapter/index.js +2 -2
- package/dist/server/server-adapter/routes/datasets.d.ts +2 -0
- package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-IFYVRBFS.js.map +0 -1
- package/dist/chunk-KME4O3RJ.cjs.map +0 -1
- package/dist/chunk-KWREVMMS.js.map +0 -1
- package/dist/chunk-ZRU7KWNW.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkHXICAUTW_cjs = require('./chunk-HXICAUTW.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkJIB75MHZ_cjs = require('./chunk-JIB75MHZ.cjs');
|
|
5
5
|
var chunk4BLUIUHS_cjs = require('./chunk-4BLUIUHS.cjs');
|
|
6
6
|
var chunkLTRLD33R_cjs = require('./chunk-LTRLD33R.cjs');
|
|
7
7
|
var chunkQZ6UFQ7V_cjs = require('./chunk-QZ6UFQ7V.cjs');
|
|
@@ -650,7 +650,7 @@ var LIST_AGENTS_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
650
650
|
queryParamSchema: v4.z.object({
|
|
651
651
|
partial: v4.z.string().optional()
|
|
652
652
|
}),
|
|
653
|
-
responseSchema:
|
|
653
|
+
responseSchema: chunkJIB75MHZ_cjs.listAgentsResponseSchema,
|
|
654
654
|
summary: "List all agents",
|
|
655
655
|
description: "Returns a list of all available agents in the system (both code-defined and stored)",
|
|
656
656
|
tags: ["Agents"],
|
|
@@ -746,9 +746,9 @@ var GET_AGENT_BY_ID_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
746
746
|
method: "GET",
|
|
747
747
|
path: "/agents/:agentId",
|
|
748
748
|
responseType: "json",
|
|
749
|
-
pathParamSchema:
|
|
750
|
-
queryParamSchema:
|
|
751
|
-
responseSchema:
|
|
749
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
750
|
+
queryParamSchema: chunkJIB75MHZ_cjs.agentVersionQuerySchema,
|
|
751
|
+
responseSchema: chunkJIB75MHZ_cjs.serializedAgentSchema,
|
|
752
752
|
summary: "Get agent by ID",
|
|
753
753
|
description: "Returns details for a specific agent including configuration, tools, and memory settings. Use query params to control which stored config version is used for overrides: ?status=published (active version, default), ?status=draft (latest draft), or ?versionId=<id> (specific version). Use either status or versionId, not both.",
|
|
754
754
|
tags: ["Agents"],
|
|
@@ -775,7 +775,7 @@ var CLONE_AGENT_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
775
775
|
method: "POST",
|
|
776
776
|
path: "/agents/:agentId/clone",
|
|
777
777
|
responseType: "json",
|
|
778
|
-
pathParamSchema:
|
|
778
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
779
779
|
bodySchema: v4.z.object({
|
|
780
780
|
newId: v4.z.string().optional().describe("ID for the cloned agent. If not provided, derived from agent ID."),
|
|
781
781
|
newName: v4.z.string().optional().describe('Name for the cloned agent. Defaults to "{name} (Clone)".'),
|
|
@@ -816,9 +816,9 @@ var GENERATE_AGENT_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
816
816
|
method: "POST",
|
|
817
817
|
path: "/agents/:agentId/generate",
|
|
818
818
|
responseType: "json",
|
|
819
|
-
pathParamSchema:
|
|
820
|
-
bodySchema:
|
|
821
|
-
responseSchema:
|
|
819
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
820
|
+
bodySchema: chunkJIB75MHZ_cjs.agentExecutionBodySchema,
|
|
821
|
+
responseSchema: chunkJIB75MHZ_cjs.generateResponseSchema,
|
|
822
822
|
summary: "Generate agent response",
|
|
823
823
|
description: "Executes an agent with the provided messages and returns the complete response",
|
|
824
824
|
tags: ["Agents"],
|
|
@@ -885,9 +885,9 @@ var GENERATE_LEGACY_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
885
885
|
method: "POST",
|
|
886
886
|
path: "/agents/:agentId/generate-legacy",
|
|
887
887
|
responseType: "json",
|
|
888
|
-
pathParamSchema:
|
|
889
|
-
bodySchema:
|
|
890
|
-
responseSchema:
|
|
888
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
889
|
+
bodySchema: chunkJIB75MHZ_cjs.agentExecutionLegacyBodySchema,
|
|
890
|
+
responseSchema: chunkJIB75MHZ_cjs.generateResponseSchema,
|
|
891
891
|
summary: "[DEPRECATED] Generate with legacy format",
|
|
892
892
|
description: "Legacy endpoint for generating agent responses. Use /agents/:agentId/generate instead.",
|
|
893
893
|
tags: ["Agents", "Legacy"],
|
|
@@ -941,9 +941,9 @@ var STREAM_GENERATE_LEGACY_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
941
941
|
method: "POST",
|
|
942
942
|
path: "/agents/:agentId/stream-legacy",
|
|
943
943
|
responseType: "datastream-response",
|
|
944
|
-
pathParamSchema:
|
|
945
|
-
bodySchema:
|
|
946
|
-
responseSchema:
|
|
944
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
945
|
+
bodySchema: chunkJIB75MHZ_cjs.agentExecutionLegacyBodySchema,
|
|
946
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
947
947
|
summary: "[DEPRECATED] Stream with legacy format",
|
|
948
948
|
description: "Legacy endpoint for streaming agent responses. Use /agents/:agentId/stream instead.",
|
|
949
949
|
tags: ["Agents", "Legacy"],
|
|
@@ -1004,7 +1004,7 @@ var GET_PROVIDERS_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1004
1004
|
method: "GET",
|
|
1005
1005
|
path: "/agents/providers",
|
|
1006
1006
|
responseType: "json",
|
|
1007
|
-
responseSchema:
|
|
1007
|
+
responseSchema: chunkJIB75MHZ_cjs.providersResponseSchema,
|
|
1008
1008
|
summary: "List AI providers",
|
|
1009
1009
|
description: "Returns a list of all configured AI model providers",
|
|
1010
1010
|
tags: ["Agents"],
|
|
@@ -1054,9 +1054,9 @@ var GENERATE_AGENT_VNEXT_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1054
1054
|
method: "POST",
|
|
1055
1055
|
path: "/agents/:agentId/generate/vnext",
|
|
1056
1056
|
responseType: "json",
|
|
1057
|
-
pathParamSchema:
|
|
1058
|
-
bodySchema:
|
|
1059
|
-
responseSchema:
|
|
1057
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1058
|
+
bodySchema: chunkJIB75MHZ_cjs.agentExecutionBodySchema,
|
|
1059
|
+
responseSchema: chunkJIB75MHZ_cjs.generateResponseSchema,
|
|
1060
1060
|
summary: "Generate a response from an agent",
|
|
1061
1061
|
description: "Generate a response from an agent",
|
|
1062
1062
|
tags: ["Agents"],
|
|
@@ -1068,9 +1068,9 @@ var STREAM_GENERATE_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1068
1068
|
path: "/agents/:agentId/stream",
|
|
1069
1069
|
responseType: "stream",
|
|
1070
1070
|
streamFormat: "sse",
|
|
1071
|
-
pathParamSchema:
|
|
1072
|
-
bodySchema:
|
|
1073
|
-
responseSchema:
|
|
1071
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1072
|
+
bodySchema: chunkJIB75MHZ_cjs.agentExecutionBodySchema,
|
|
1073
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
1074
1074
|
summary: "Stream agent response",
|
|
1075
1075
|
description: "Executes an agent with the provided messages and streams the response in real-time",
|
|
1076
1076
|
tags: ["Agents"],
|
|
@@ -1141,8 +1141,8 @@ var SEND_AGENT_SIGNAL_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1141
1141
|
method: "POST",
|
|
1142
1142
|
path: "/agents/:agentId/signals",
|
|
1143
1143
|
responseType: "json",
|
|
1144
|
-
pathParamSchema:
|
|
1145
|
-
bodySchema:
|
|
1144
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1145
|
+
bodySchema: chunkJIB75MHZ_cjs.sendAgentSignalBodySchema,
|
|
1146
1146
|
responseSchema: sendAgentSignalResponseSchema,
|
|
1147
1147
|
summary: "Send agent signal",
|
|
1148
1148
|
description: "Sends a signal to an active agent run or starts a memory thread run when the thread is idle",
|
|
@@ -1211,9 +1211,9 @@ var SUBSCRIBE_AGENT_THREAD_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1211
1211
|
path: "/agents/:agentId/threads/subscribe",
|
|
1212
1212
|
responseType: "stream",
|
|
1213
1213
|
streamFormat: "sse",
|
|
1214
|
-
pathParamSchema:
|
|
1215
|
-
bodySchema:
|
|
1216
|
-
responseSchema:
|
|
1214
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1215
|
+
bodySchema: chunkJIB75MHZ_cjs.subscribeAgentThreadBodySchema,
|
|
1216
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
1217
1217
|
summary: "Subscribe to agent thread runs",
|
|
1218
1218
|
description: "Subscribes to future and active stream runs for a memory thread",
|
|
1219
1219
|
tags: ["Agents", "Streaming"],
|
|
@@ -1286,9 +1286,9 @@ var STREAM_UNTIL_IDLE_GENERATE_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1286
1286
|
path: "/agents/:agentId/stream-until-idle",
|
|
1287
1287
|
responseType: "stream",
|
|
1288
1288
|
streamFormat: "sse",
|
|
1289
|
-
pathParamSchema:
|
|
1290
|
-
bodySchema:
|
|
1291
|
-
responseSchema:
|
|
1289
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1290
|
+
bodySchema: chunkJIB75MHZ_cjs.streamUntilIdleBodySchema,
|
|
1291
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
1292
1292
|
summary: "Stream agent response until idle",
|
|
1293
1293
|
description: "Executes an agent with the provided messages and streams the response in real-time, also listens for background task completions and streams them in real-time",
|
|
1294
1294
|
tags: ["Agents"],
|
|
@@ -1345,9 +1345,9 @@ var STREAM_GENERATE_VNEXT_DEPRECATED_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1345
1345
|
method: "POST",
|
|
1346
1346
|
path: "/agents/:agentId/stream/vnext",
|
|
1347
1347
|
responseType: "stream",
|
|
1348
|
-
pathParamSchema:
|
|
1349
|
-
bodySchema:
|
|
1350
|
-
responseSchema:
|
|
1348
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1349
|
+
bodySchema: chunkJIB75MHZ_cjs.agentExecutionBodySchema,
|
|
1350
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
1351
1351
|
summary: "Stream a response from an agent",
|
|
1352
1352
|
description: "[DEPRECATED] This endpoint is deprecated. Please use /stream instead.",
|
|
1353
1353
|
tags: ["Agents"],
|
|
@@ -1360,9 +1360,9 @@ var OBSERVE_AGENT_STREAM_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1360
1360
|
path: "/agents/:agentId/observe",
|
|
1361
1361
|
responseType: "stream",
|
|
1362
1362
|
streamFormat: "sse",
|
|
1363
|
-
pathParamSchema:
|
|
1364
|
-
bodySchema:
|
|
1365
|
-
responseSchema:
|
|
1363
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1364
|
+
bodySchema: chunkJIB75MHZ_cjs.observeAgentBodySchema,
|
|
1365
|
+
responseSchema: chunkJIB75MHZ_cjs.observeAgentResponseSchema,
|
|
1366
1366
|
summary: "Observe agent stream",
|
|
1367
1367
|
description: "Reconnect to an existing agent stream to receive missed events. Supports position-based resume with offset for efficient reconnection.",
|
|
1368
1368
|
tags: ["Agents", "Streaming"],
|
|
@@ -1447,9 +1447,9 @@ var APPROVE_TOOL_CALL_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1447
1447
|
path: "/agents/:agentId/approve-tool-call",
|
|
1448
1448
|
responseType: "stream",
|
|
1449
1449
|
streamFormat: "sse",
|
|
1450
|
-
pathParamSchema:
|
|
1451
|
-
bodySchema:
|
|
1452
|
-
responseSchema:
|
|
1450
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1451
|
+
bodySchema: chunkJIB75MHZ_cjs.approveToolCallBodySchema,
|
|
1452
|
+
responseSchema: chunkJIB75MHZ_cjs.toolCallResponseSchema,
|
|
1453
1453
|
summary: "Approve tool call",
|
|
1454
1454
|
description: "Approves a pending tool call and continues agent execution",
|
|
1455
1455
|
tags: ["Agents", "Tools"],
|
|
@@ -1484,9 +1484,9 @@ var DECLINE_TOOL_CALL_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1484
1484
|
path: "/agents/:agentId/decline-tool-call",
|
|
1485
1485
|
responseType: "stream",
|
|
1486
1486
|
streamFormat: "sse",
|
|
1487
|
-
pathParamSchema:
|
|
1488
|
-
bodySchema:
|
|
1489
|
-
responseSchema:
|
|
1487
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1488
|
+
bodySchema: chunkJIB75MHZ_cjs.declineToolCallBodySchema,
|
|
1489
|
+
responseSchema: chunkJIB75MHZ_cjs.toolCallResponseSchema,
|
|
1490
1490
|
summary: "Decline tool call",
|
|
1491
1491
|
description: "Declines a pending tool call and continues agent execution without executing the tool",
|
|
1492
1492
|
tags: ["Agents", "Tools"],
|
|
@@ -1521,9 +1521,9 @@ var RESUME_STREAM_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1521
1521
|
path: "/agents/:agentId/resume-stream",
|
|
1522
1522
|
responseType: "stream",
|
|
1523
1523
|
streamFormat: "sse",
|
|
1524
|
-
pathParamSchema:
|
|
1525
|
-
bodySchema:
|
|
1526
|
-
responseSchema:
|
|
1524
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1525
|
+
bodySchema: chunkJIB75MHZ_cjs.resumeStreamBodySchema,
|
|
1526
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
1527
1527
|
summary: "Resume agent stream",
|
|
1528
1528
|
description: "Resumes a suspended agent stream with custom resume data",
|
|
1529
1529
|
tags: ["Agents"],
|
|
@@ -1605,9 +1605,9 @@ var RESUME_STREAM_UNTIL_IDLE_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1605
1605
|
path: "/agents/:agentId/resume-stream-until-idle",
|
|
1606
1606
|
responseType: "stream",
|
|
1607
1607
|
streamFormat: "sse",
|
|
1608
|
-
pathParamSchema:
|
|
1609
|
-
bodySchema:
|
|
1610
|
-
responseSchema:
|
|
1608
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1609
|
+
bodySchema: chunkJIB75MHZ_cjs.resumeStreamUntilIdleBodySchema,
|
|
1610
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
1611
1611
|
summary: "Resume agent stream until idle",
|
|
1612
1612
|
description: "Resumes a suspended agent stream until idle with custom resume data, also listens for background task completions and streams them in real-time",
|
|
1613
1613
|
tags: ["Agents"],
|
|
@@ -1694,9 +1694,9 @@ var APPROVE_TOOL_CALL_GENERATE_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1694
1694
|
method: "POST",
|
|
1695
1695
|
path: "/agents/:agentId/approve-tool-call-generate",
|
|
1696
1696
|
responseType: "json",
|
|
1697
|
-
pathParamSchema:
|
|
1698
|
-
bodySchema:
|
|
1699
|
-
responseSchema:
|
|
1697
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1698
|
+
bodySchema: chunkJIB75MHZ_cjs.approveToolCallBodySchema,
|
|
1699
|
+
responseSchema: chunkJIB75MHZ_cjs.generateResponseSchema,
|
|
1700
1700
|
summary: "Approve tool call (non-streaming)",
|
|
1701
1701
|
description: "Approves a pending tool call and returns the complete response",
|
|
1702
1702
|
tags: ["Agents", "Tools"],
|
|
@@ -1730,9 +1730,9 @@ var DECLINE_TOOL_CALL_GENERATE_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1730
1730
|
method: "POST",
|
|
1731
1731
|
path: "/agents/:agentId/decline-tool-call-generate",
|
|
1732
1732
|
responseType: "json",
|
|
1733
|
-
pathParamSchema:
|
|
1734
|
-
bodySchema:
|
|
1735
|
-
responseSchema:
|
|
1733
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1734
|
+
bodySchema: chunkJIB75MHZ_cjs.declineToolCallBodySchema,
|
|
1735
|
+
responseSchema: chunkJIB75MHZ_cjs.generateResponseSchema,
|
|
1736
1736
|
summary: "Decline tool call (non-streaming)",
|
|
1737
1737
|
description: "Declines a pending tool call and returns the complete response",
|
|
1738
1738
|
tags: ["Agents", "Tools"],
|
|
@@ -1767,9 +1767,9 @@ var STREAM_NETWORK_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1767
1767
|
path: "/agents/:agentId/network",
|
|
1768
1768
|
responseType: "stream",
|
|
1769
1769
|
streamFormat: "sse",
|
|
1770
|
-
pathParamSchema:
|
|
1771
|
-
bodySchema:
|
|
1772
|
-
responseSchema:
|
|
1770
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1771
|
+
bodySchema: chunkJIB75MHZ_cjs.agentExecutionBodySchema,
|
|
1772
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
1773
1773
|
summary: "Stream agent network",
|
|
1774
1774
|
description: "Executes an agent network with multiple agents and streams the response",
|
|
1775
1775
|
tags: ["Agents"],
|
|
@@ -1797,9 +1797,9 @@ var APPROVE_NETWORK_TOOL_CALL_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1797
1797
|
path: "/agents/:agentId/approve-network-tool-call",
|
|
1798
1798
|
responseType: "stream",
|
|
1799
1799
|
streamFormat: "sse",
|
|
1800
|
-
pathParamSchema:
|
|
1801
|
-
bodySchema:
|
|
1802
|
-
responseSchema:
|
|
1800
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1801
|
+
bodySchema: chunkJIB75MHZ_cjs.approveNetworkToolCallBodySchema,
|
|
1802
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
1803
1803
|
summary: "Approve network tool call",
|
|
1804
1804
|
description: "Approves a pending network tool call and continues network agent execution",
|
|
1805
1805
|
tags: ["Agents", "Tools"],
|
|
@@ -1829,9 +1829,9 @@ var DECLINE_NETWORK_TOOL_CALL_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1829
1829
|
path: "/agents/:agentId/decline-network-tool-call",
|
|
1830
1830
|
responseType: "stream",
|
|
1831
1831
|
streamFormat: "sse",
|
|
1832
|
-
pathParamSchema:
|
|
1833
|
-
bodySchema:
|
|
1834
|
-
responseSchema:
|
|
1832
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1833
|
+
bodySchema: chunkJIB75MHZ_cjs.declineNetworkToolCallBodySchema,
|
|
1834
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
1835
1835
|
summary: "Decline network tool call",
|
|
1836
1836
|
description: "Declines a pending network tool call and continues network agent execution without executing the tool",
|
|
1837
1837
|
tags: ["Agents", "Tools"],
|
|
@@ -1860,9 +1860,9 @@ var UPDATE_AGENT_MODEL_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1860
1860
|
method: "POST",
|
|
1861
1861
|
path: "/agents/:agentId/model",
|
|
1862
1862
|
responseType: "json",
|
|
1863
|
-
pathParamSchema:
|
|
1864
|
-
bodySchema:
|
|
1865
|
-
responseSchema:
|
|
1863
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1864
|
+
bodySchema: chunkJIB75MHZ_cjs.updateAgentModelBodySchema,
|
|
1865
|
+
responseSchema: chunkJIB75MHZ_cjs.modelManagementResponseSchema,
|
|
1866
1866
|
summary: "Update agent model",
|
|
1867
1867
|
description: "Updates the AI model used by the agent",
|
|
1868
1868
|
tags: ["Agents", "Models"],
|
|
@@ -1882,8 +1882,8 @@ var RESET_AGENT_MODEL_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1882
1882
|
method: "POST",
|
|
1883
1883
|
path: "/agents/:agentId/model/reset",
|
|
1884
1884
|
responseType: "json",
|
|
1885
|
-
pathParamSchema:
|
|
1886
|
-
responseSchema:
|
|
1885
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1886
|
+
responseSchema: chunkJIB75MHZ_cjs.modelManagementResponseSchema,
|
|
1887
1887
|
summary: "Reset agent model",
|
|
1888
1888
|
description: "Resets the agent model to its original configuration",
|
|
1889
1889
|
tags: ["Agents", "Models"],
|
|
@@ -1902,9 +1902,9 @@ var REORDER_AGENT_MODEL_LIST_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1902
1902
|
method: "POST",
|
|
1903
1903
|
path: "/agents/:agentId/models/reorder",
|
|
1904
1904
|
responseType: "json",
|
|
1905
|
-
pathParamSchema:
|
|
1906
|
-
bodySchema:
|
|
1907
|
-
responseSchema:
|
|
1905
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
1906
|
+
bodySchema: chunkJIB75MHZ_cjs.reorderAgentModelListBodySchema,
|
|
1907
|
+
responseSchema: chunkJIB75MHZ_cjs.modelManagementResponseSchema,
|
|
1908
1908
|
summary: "Reorder agent model list",
|
|
1909
1909
|
description: "Reorders the model list for agents with multiple model configurations",
|
|
1910
1910
|
tags: ["Agents", "Models"],
|
|
@@ -1927,9 +1927,9 @@ var UPDATE_AGENT_MODEL_IN_MODEL_LIST_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
1927
1927
|
method: "POST",
|
|
1928
1928
|
path: "/agents/:agentId/models/:modelConfigId",
|
|
1929
1929
|
responseType: "json",
|
|
1930
|
-
pathParamSchema:
|
|
1931
|
-
bodySchema:
|
|
1932
|
-
responseSchema:
|
|
1930
|
+
pathParamSchema: chunkJIB75MHZ_cjs.modelConfigIdPathParams,
|
|
1931
|
+
bodySchema: chunkJIB75MHZ_cjs.updateAgentModelInModelListBodySchema,
|
|
1932
|
+
responseSchema: chunkJIB75MHZ_cjs.modelManagementResponseSchema,
|
|
1933
1933
|
summary: "Update model in model list",
|
|
1934
1934
|
description: "Updates a specific model configuration in the agent model list",
|
|
1935
1935
|
tags: ["Agents", "Models"],
|
|
@@ -2030,9 +2030,9 @@ var ENHANCE_INSTRUCTIONS_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
2030
2030
|
method: "POST",
|
|
2031
2031
|
path: "/agents/:agentId/instructions/enhance",
|
|
2032
2032
|
responseType: "json",
|
|
2033
|
-
pathParamSchema:
|
|
2034
|
-
bodySchema:
|
|
2035
|
-
responseSchema:
|
|
2033
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
2034
|
+
bodySchema: chunkJIB75MHZ_cjs.enhanceInstructionsBodySchema,
|
|
2035
|
+
responseSchema: chunkJIB75MHZ_cjs.enhanceInstructionsResponseSchema,
|
|
2036
2036
|
summary: "Enhance agent instructions",
|
|
2037
2037
|
description: "Uses AI to enhance or modify agent instructions based on user feedback",
|
|
2038
2038
|
tags: ["Agents"],
|
|
@@ -2058,7 +2058,7 @@ Current: ${instructions}
|
|
|
2058
2058
|
${comment ? `User feedback: ${comment}` : ""}`,
|
|
2059
2059
|
{
|
|
2060
2060
|
structuredOutput: {
|
|
2061
|
-
schema:
|
|
2061
|
+
schema: chunkJIB75MHZ_cjs.enhanceInstructionsResponseSchema
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
2064
2064
|
);
|
|
@@ -2072,9 +2072,9 @@ var STREAM_VNEXT_DEPRECATED_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
2072
2072
|
method: "POST",
|
|
2073
2073
|
path: "/agents/:agentId/streamVNext",
|
|
2074
2074
|
responseType: "stream",
|
|
2075
|
-
pathParamSchema:
|
|
2076
|
-
bodySchema:
|
|
2077
|
-
responseSchema:
|
|
2075
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
2076
|
+
bodySchema: chunkJIB75MHZ_cjs.agentExecutionBodySchema,
|
|
2077
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
2078
2078
|
summary: "Stream a response from an agent",
|
|
2079
2079
|
description: "[DEPRECATED] This endpoint is deprecated. Please use /stream instead.",
|
|
2080
2080
|
tags: ["Agents"],
|
|
@@ -2088,9 +2088,9 @@ var STREAM_UI_MESSAGE_VNEXT_DEPRECATED_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
2088
2088
|
method: "POST",
|
|
2089
2089
|
path: "/agents/:agentId/stream/vnext/ui",
|
|
2090
2090
|
responseType: "stream",
|
|
2091
|
-
pathParamSchema:
|
|
2092
|
-
bodySchema:
|
|
2093
|
-
responseSchema:
|
|
2091
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
2092
|
+
bodySchema: chunkJIB75MHZ_cjs.agentExecutionBodySchema,
|
|
2093
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
2094
2094
|
summary: "Stream UI messages from an agent",
|
|
2095
2095
|
description: "[DEPRECATED] This endpoint is deprecated. Please use the @mastra/ai-sdk package for uiMessage transformations",
|
|
2096
2096
|
tags: ["Agents"],
|
|
@@ -2113,9 +2113,9 @@ var STREAM_UI_MESSAGE_DEPRECATED_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
2113
2113
|
method: "POST",
|
|
2114
2114
|
path: "/agents/:agentId/stream/ui",
|
|
2115
2115
|
responseType: "stream",
|
|
2116
|
-
pathParamSchema:
|
|
2117
|
-
bodySchema:
|
|
2118
|
-
responseSchema:
|
|
2116
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentIdPathParams,
|
|
2117
|
+
bodySchema: chunkJIB75MHZ_cjs.agentExecutionBodySchema,
|
|
2118
|
+
responseSchema: chunkJIB75MHZ_cjs.streamResponseSchema,
|
|
2119
2119
|
summary: "Stream UI messages from an agent",
|
|
2120
2120
|
description: "[DEPRECATED] This endpoint is deprecated. Please use the @mastra/ai-sdk package for uiMessage transformations",
|
|
2121
2121
|
tags: ["Agents"],
|
|
@@ -2127,7 +2127,7 @@ var GET_AGENT_SKILL_ROUTE = chunkXTFWFQZ7_cjs.createRoute({
|
|
|
2127
2127
|
method: "GET",
|
|
2128
2128
|
path: "/agents/:agentId/skills/:skillName",
|
|
2129
2129
|
responseType: "json",
|
|
2130
|
-
pathParamSchema:
|
|
2130
|
+
pathParamSchema: chunkJIB75MHZ_cjs.agentSkillPathParams,
|
|
2131
2131
|
queryParamSchema: chunkHXICAUTW_cjs.skillDisambiguationQuerySchema,
|
|
2132
2132
|
responseSchema: chunkHXICAUTW_cjs.getAgentSkillResponseSchema,
|
|
2133
2133
|
summary: "Get agent skill",
|
|
@@ -2208,5 +2208,5 @@ exports.getSerializedProcessors = getSerializedProcessors;
|
|
|
2208
2208
|
exports.getSerializedSkillsFromAgent = getSerializedSkillsFromAgent;
|
|
2209
2209
|
exports.getWorkspaceToolsFromAgent = getWorkspaceToolsFromAgent;
|
|
2210
2210
|
exports.isProviderConnected = isProviderConnected;
|
|
2211
|
-
//# sourceMappingURL=chunk-
|
|
2212
|
-
//# sourceMappingURL=chunk-
|
|
2211
|
+
//# sourceMappingURL=chunk-35SOHRUB.cjs.map
|
|
2212
|
+
//# sourceMappingURL=chunk-35SOHRUB.cjs.map
|