@mastra/server 0.0.0-netlify-no-bundle-20251127120354 → 0.0.0-partial-response-backport-20251204204441
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 +137 -656
- package/README.md +1 -1
- package/dist/{chunk-RCCWKKI3.js → chunk-2FBQWGK2.js} +31 -218
- package/dist/chunk-2FBQWGK2.js.map +1 -0
- package/dist/chunk-2S4IMB6E.cjs +130 -0
- package/dist/chunk-2S4IMB6E.cjs.map +1 -0
- package/dist/chunk-3SNGNFUJ.cjs +128 -0
- package/dist/chunk-3SNGNFUJ.cjs.map +1 -0
- package/dist/chunk-4QCXUEAT.js +25 -0
- package/dist/chunk-4QCXUEAT.js.map +1 -0
- package/dist/chunk-67GYDFSB.js +160 -0
- package/dist/chunk-67GYDFSB.js.map +1 -0
- package/dist/chunk-6ZR275MD.cjs +165 -0
- package/dist/chunk-6ZR275MD.cjs.map +1 -0
- package/dist/{chunk-64ITUOXI.cjs → chunk-7NADHFD2.cjs} +2 -2
- package/dist/{chunk-6QWQZI4Q.js.map → chunk-7NADHFD2.cjs.map} +1 -1
- package/dist/chunk-ABRFV4XP.js +83 -0
- package/dist/chunk-ABRFV4XP.js.map +1 -0
- package/dist/chunk-AHB4JCIQ.js +160 -0
- package/dist/chunk-AHB4JCIQ.js.map +1 -0
- package/dist/chunk-AW5BU3RQ.js +192 -0
- package/dist/chunk-AW5BU3RQ.js.map +1 -0
- package/dist/chunk-BATEJLED.js +124 -0
- package/dist/chunk-BATEJLED.js.map +1 -0
- package/dist/{chunk-UXGQZUYZ.js → chunk-CY4TP3FK.js} +3 -3
- package/dist/{chunk-UXGQZUYZ.js.map → chunk-CY4TP3FK.js.map} +1 -1
- package/dist/chunk-EP3JQDPD.cjs +131 -0
- package/dist/chunk-EP3JQDPD.cjs.map +1 -0
- package/dist/chunk-G4PUALCE.cjs +28 -0
- package/dist/chunk-G4PUALCE.cjs.map +1 -0
- package/dist/chunk-I3C4ODGV.cjs +335 -0
- package/dist/chunk-I3C4ODGV.cjs.map +1 -0
- package/dist/{chunk-UZ6CYAOG.cjs → chunk-JOBDMCQL.cjs} +21 -7
- package/dist/chunk-JOBDMCQL.cjs.map +1 -0
- package/dist/chunk-KPDPKARA.cjs +733 -0
- package/dist/chunk-KPDPKARA.cjs.map +1 -0
- package/dist/chunk-LLUOPR3J.js +323 -0
- package/dist/chunk-LLUOPR3J.js.map +1 -0
- package/dist/{chunk-6QWQZI4Q.js → chunk-MMROOK5J.js} +2 -2
- package/dist/chunk-MMROOK5J.js.map +1 -0
- package/dist/chunk-MYR4PVGN.js +123 -0
- package/dist/chunk-MYR4PVGN.js.map +1 -0
- package/dist/chunk-NT5XW5PI.cjs +596 -0
- package/dist/chunk-NT5XW5PI.cjs.map +1 -0
- package/dist/chunk-O5Q5JZMC.cjs +19565 -0
- package/dist/chunk-O5Q5JZMC.cjs.map +1 -0
- package/dist/chunk-PBXWFGEH.js +579 -0
- package/dist/chunk-PBXWFGEH.js.map +1 -0
- package/dist/{chunk-PDVJ2TTM.cjs → chunk-Q4WS5AH4.cjs} +31 -224
- package/dist/chunk-Q4WS5AH4.cjs.map +1 -0
- package/dist/chunk-QQXMIP6C.js +122 -0
- package/dist/chunk-QQXMIP6C.js.map +1 -0
- package/dist/{chunk-V272B7RM.cjs → chunk-QU6N55W6.cjs} +12 -11
- package/dist/chunk-QU6N55W6.cjs.map +1 -0
- package/dist/{chunk-V5WWQN7P.cjs → chunk-RE4RPXT2.cjs} +4 -4
- package/dist/{chunk-V5WWQN7P.cjs.map → chunk-RE4RPXT2.cjs.map} +1 -1
- package/dist/{chunk-YP34EWWK.js → chunk-SHWNNZBL.js} +10 -9
- package/dist/chunk-SHWNNZBL.js.map +1 -0
- package/dist/chunk-SPRRK3P7.cjs +200 -0
- package/dist/chunk-SPRRK3P7.cjs.map +1 -0
- package/dist/chunk-TM6RSSEG.js +711 -0
- package/dist/chunk-TM6RSSEG.js.map +1 -0
- package/dist/{chunk-ER3QM7DD.js → chunk-TOCYBDP2.js} +4 -4
- package/dist/{chunk-ER3QM7DD.js.map → chunk-TOCYBDP2.js.map} +1 -1
- package/dist/chunk-TRGAMKHX.cjs +167 -0
- package/dist/chunk-TRGAMKHX.cjs.map +1 -0
- package/dist/{chunk-G7BPNX2V.js → chunk-VN33BALN.js} +21 -7
- package/dist/chunk-VN33BALN.js.map +1 -0
- package/dist/chunk-VYX6MBSJ.js +909 -0
- package/dist/chunk-VYX6MBSJ.js.map +1 -0
- package/dist/chunk-VZX6AWAA.cjs +938 -0
- package/dist/chunk-VZX6AWAA.cjs.map +1 -0
- package/dist/{chunk-XQPJ63ZD.cjs → chunk-X6C7BUWN.cjs} +4 -4
- package/dist/{chunk-XQPJ63ZD.cjs.map → chunk-X6C7BUWN.cjs.map} +1 -1
- package/dist/chunk-XN74I6VW.cjs +88 -0
- package/dist/chunk-XN74I6VW.cjs.map +1 -0
- package/dist/chunk-XPQZ5C3T.js +19529 -0
- package/dist/chunk-XPQZ5C3T.js.map +1 -0
- package/dist/server/handlers/a2a.cjs +7 -15
- package/dist/server/handlers/a2a.d.ts +10 -492
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +31 -43
- package/dist/server/handlers/agent-builder.d.ts +84 -598
- package/dist/server/handlers/agent-builder.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agents.cjs +41 -49
- package/dist/server/handlers/agents.d.ts +149 -3275
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/error.cjs +2 -2
- package/dist/server/handlers/error.js +1 -1
- package/dist/server/handlers/legacyWorkflows.cjs +48 -0
- package/dist/server/handlers/legacyWorkflows.cjs.map +1 -0
- package/dist/server/handlers/legacyWorkflows.d.ts +59 -0
- package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -0
- package/dist/server/handlers/legacyWorkflows.js +3 -0
- package/dist/server/handlers/legacyWorkflows.js.map +1 -0
- package/dist/server/handlers/logs.cjs +7 -7
- package/dist/server/handlers/logs.d.ts +27 -135
- package/dist/server/handlers/logs.d.ts.map +1 -1
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/memory.cjs +31 -63
- package/dist/server/handlers/memory.d.ts +103 -934
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability.cjs +8 -24
- package/dist/server/handlers/observability.d.ts +21 -128
- package/dist/server/handlers/observability.d.ts.map +1 -1
- package/dist/server/handlers/observability.js +1 -1
- package/dist/server/handlers/scores.cjs +13 -13
- package/dist/server/handlers/scores.d.ts +141 -110
- package/dist/server/handlers/scores.d.ts.map +1 -1
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/telemetry.cjs +20 -0
- package/dist/server/handlers/telemetry.cjs.map +1 -0
- package/dist/server/handlers/telemetry.d.ts +33 -0
- package/dist/server/handlers/telemetry.d.ts.map +1 -0
- package/dist/server/handlers/telemetry.js +3 -0
- package/dist/server/handlers/telemetry.js.map +1 -0
- package/dist/server/handlers/tools.cjs +11 -11
- package/dist/server/handlers/tools.d.ts +23 -69
- package/dist/server/handlers/tools.d.ts.map +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/utils.cjs +3 -11
- package/dist/server/handlers/utils.d.ts +0 -5
- package/dist/server/handlers/utils.d.ts.map +1 -1
- package/dist/server/handlers/utils.js +1 -1
- package/dist/server/handlers/vector.cjs +7 -31
- package/dist/server/handlers/vector.d.ts +9 -93
- package/dist/server/handlers/vector.d.ts.map +1 -1
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers/voice.cjs +9 -21
- package/dist/server/handlers/voice.d.ts +40 -81
- package/dist/server/handlers/voice.d.ts.map +1 -1
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +59 -51
- package/dist/server/handlers/workflows.d.ts +140 -915
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +36 -26
- package/dist/server/handlers.d.ts +2 -0
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/handlers.js +13 -11
- package/dist/server/http-exception.d.ts +5 -0
- package/dist/server/http-exception.d.ts.map +1 -1
- package/dist/server/utils.d.ts +3 -4
- package/dist/server/utils.d.ts.map +1 -1
- package/dist/{token-ZOD6YIQ3.cjs → token-375W3LEI.cjs} +8 -7
- package/dist/{token-VFONFWVS.cjs.map → token-375W3LEI.cjs.map} +1 -1
- package/dist/{token-JGA3ZWAN.js → token-C3IMNCC4.js} +6 -5
- package/dist/{token-GVZ7HRD7.js.map → token-C3IMNCC4.js.map} +1 -1
- package/dist/token-util-CV3RRG6K.cjs +9 -0
- package/dist/{token-util-BLJZJDBZ.cjs.map → token-util-CV3RRG6K.cjs.map} +1 -1
- package/dist/token-util-E5QO2RCL.js +7 -0
- package/dist/{token-util-7R2ZFIXO.js.map → token-util-E5QO2RCL.js.map} +1 -1
- package/package.json +15 -26
- package/dist/chunk-2NW6POYK.cjs +0 -89
- package/dist/chunk-2NW6POYK.cjs.map +0 -1
- package/dist/chunk-4JMHKKV3.cjs +0 -201
- package/dist/chunk-4JMHKKV3.cjs.map +0 -1
- package/dist/chunk-4O2QGUW3.js +0 -354
- package/dist/chunk-4O2QGUW3.js.map +0 -1
- package/dist/chunk-4W2SM6CG.js +0 -294
- package/dist/chunk-4W2SM6CG.js.map +0 -1
- package/dist/chunk-5W4RPVTK.cjs +0 -49
- package/dist/chunk-5W4RPVTK.cjs.map +0 -1
- package/dist/chunk-64ITUOXI.cjs.map +0 -1
- package/dist/chunk-6GHJDY7R.js +0 -23157
- package/dist/chunk-6GHJDY7R.js.map +0 -1
- package/dist/chunk-6KNI7VIX.js +0 -1021
- package/dist/chunk-6KNI7VIX.js.map +0 -1
- package/dist/chunk-A6MQQTHN.js +0 -310
- package/dist/chunk-A6MQQTHN.js.map +0 -1
- package/dist/chunk-AUQBEMDP.cjs +0 -322
- package/dist/chunk-AUQBEMDP.cjs.map +0 -1
- package/dist/chunk-CBDUTSTI.js +0 -192
- package/dist/chunk-CBDUTSTI.js.map +0 -1
- package/dist/chunk-FPCGLPLJ.cjs +0 -297
- package/dist/chunk-FPCGLPLJ.cjs.map +0 -1
- package/dist/chunk-G7BPNX2V.js.map +0 -1
- package/dist/chunk-IMK7366C.cjs +0 -346
- package/dist/chunk-IMK7366C.cjs.map +0 -1
- package/dist/chunk-LGG3N3AV.js +0 -116
- package/dist/chunk-LGG3N3AV.js.map +0 -1
- package/dist/chunk-LIDPFFPK.cjs +0 -23199
- package/dist/chunk-LIDPFFPK.cjs.map +0 -1
- package/dist/chunk-LZDCXQMX.js +0 -164
- package/dist/chunk-LZDCXQMX.js.map +0 -1
- package/dist/chunk-MH3A7RDQ.cjs +0 -1064
- package/dist/chunk-MH3A7RDQ.cjs.map +0 -1
- package/dist/chunk-MWQQRVQC.cjs +0 -259
- package/dist/chunk-MWQQRVQC.cjs.map +0 -1
- package/dist/chunk-PDVJ2TTM.cjs.map +0 -1
- package/dist/chunk-PKRHEXX7.js +0 -74
- package/dist/chunk-PKRHEXX7.js.map +0 -1
- package/dist/chunk-QDOIM3G5.cjs +0 -916
- package/dist/chunk-QDOIM3G5.cjs.map +0 -1
- package/dist/chunk-QVHQZUGJ.cjs +0 -368
- package/dist/chunk-QVHQZUGJ.cjs.map +0 -1
- package/dist/chunk-R4M3BSUG.js +0 -226
- package/dist/chunk-R4M3BSUG.js.map +0 -1
- package/dist/chunk-R6ZTXNN2.cjs +0 -797
- package/dist/chunk-R6ZTXNN2.cjs.map +0 -1
- package/dist/chunk-RCCWKKI3.js.map +0 -1
- package/dist/chunk-RIYA7ZCE.js +0 -887
- package/dist/chunk-RIYA7ZCE.js.map +0 -1
- package/dist/chunk-S6DFGBDD.cjs +0 -211
- package/dist/chunk-S6DFGBDD.cjs.map +0 -1
- package/dist/chunk-SAQSK4AG.cjs +0 -167
- package/dist/chunk-SAQSK4AG.cjs.map +0 -1
- package/dist/chunk-UCRV7PD3.js +0 -773
- package/dist/chunk-UCRV7PD3.js.map +0 -1
- package/dist/chunk-UZ6CYAOG.cjs.map +0 -1
- package/dist/chunk-V272B7RM.cjs.map +0 -1
- package/dist/chunk-XWGAT2DA.js +0 -44
- package/dist/chunk-XWGAT2DA.js.map +0 -1
- package/dist/chunk-YLQHE2S5.js +0 -204
- package/dist/chunk-YLQHE2S5.js.map +0 -1
- package/dist/chunk-YP34EWWK.js.map +0 -1
- package/dist/chunk-Z7R7CFVF.cjs +0 -125
- package/dist/chunk-Z7R7CFVF.cjs.map +0 -1
- package/dist/chunk-ZPZSAJAR.js +0 -328
- package/dist/chunk-ZPZSAJAR.js.map +0 -1
- package/dist/server/handlers/test-utils.cjs +0 -15
- package/dist/server/handlers/test-utils.cjs.map +0 -1
- package/dist/server/handlers/test-utils.d.ts +0 -6
- package/dist/server/handlers/test-utils.d.ts.map +0 -1
- package/dist/server/handlers/test-utils.js +0 -13
- package/dist/server/handlers/test-utils.js.map +0 -1
- package/dist/server/schemas/a2a.d.ts +0 -786
- package/dist/server/schemas/a2a.d.ts.map +0 -1
- package/dist/server/schemas/agent-builder.d.ts +0 -195
- package/dist/server/schemas/agent-builder.d.ts.map +0 -1
- package/dist/server/schemas/agents.d.ts +0 -1375
- package/dist/server/schemas/agents.d.ts.map +0 -1
- package/dist/server/schemas/common.d.ts +0 -165
- package/dist/server/schemas/common.d.ts.map +0 -1
- package/dist/server/schemas/logs.d.ts +0 -124
- package/dist/server/schemas/logs.d.ts.map +0 -1
- package/dist/server/schemas/memory.d.ts +0 -998
- package/dist/server/schemas/memory.d.ts.map +0 -1
- package/dist/server/schemas/observability.d.ts +0 -402
- package/dist/server/schemas/observability.d.ts.map +0 -1
- package/dist/server/schemas/scores.d.ts +0 -259
- package/dist/server/schemas/scores.d.ts.map +0 -1
- package/dist/server/schemas/vectors.d.ts +0 -107
- package/dist/server/schemas/vectors.d.ts.map +0 -1
- package/dist/server/schemas/workflows.d.ts +0 -608
- package/dist/server/schemas/workflows.d.ts.map +0 -1
- package/dist/server/server-adapter/index.cjs +0 -330
- package/dist/server/server-adapter/index.cjs.map +0 -1
- package/dist/server/server-adapter/index.d.ts +0 -52
- package/dist/server/server-adapter/index.d.ts.map +0 -1
- package/dist/server/server-adapter/index.js +0 -316
- package/dist/server/server-adapter/index.js.map +0 -1
- package/dist/server/server-adapter/openapi-utils.d.ts +0 -59
- package/dist/server/server-adapter/openapi-utils.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/a2a.d.ts +0 -3
- package/dist/server/server-adapter/routes/a2a.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/agent-builder.d.ts +0 -3
- package/dist/server/server-adapter/routes/agent-builder.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/agents.d.ts +0 -3
- package/dist/server/server-adapter/routes/agents.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/index.d.ts +0 -41
- package/dist/server/server-adapter/routes/index.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/legacy.d.ts +0 -7
- package/dist/server/server-adapter/routes/legacy.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/logs.d.ts +0 -3
- package/dist/server/server-adapter/routes/logs.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/memory.d.ts +0 -3
- package/dist/server/server-adapter/routes/memory.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/observability.d.ts +0 -3
- package/dist/server/server-adapter/routes/observability.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/route-builder.d.ts +0 -52
- package/dist/server/server-adapter/routes/route-builder.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/scorers.d.ts +0 -3
- package/dist/server/server-adapter/routes/scorers.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/stream-types.d.ts +0 -10
- package/dist/server/server-adapter/routes/stream-types.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/tools.d.ts +0 -3
- package/dist/server/server-adapter/routes/tools.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/vectors.d.ts +0 -3
- package/dist/server/server-adapter/routes/vectors.d.ts.map +0 -1
- package/dist/server/server-adapter/routes/workflows.d.ts +0 -3
- package/dist/server/server-adapter/routes/workflows.d.ts.map +0 -1
- package/dist/token-GVZ7HRD7.js +0 -62
- package/dist/token-JGA3ZWAN.js.map +0 -1
- package/dist/token-VFONFWVS.cjs +0 -64
- package/dist/token-ZOD6YIQ3.cjs.map +0 -1
- package/dist/token-util-7R2ZFIXO.js +0 -7
- package/dist/token-util-BLJZJDBZ.cjs +0 -9
- package/dist/token-util-VGZUWSNR.cjs +0 -9
- package/dist/token-util-VGZUWSNR.cjs.map +0 -1
- package/dist/token-util-VKTPZLSE.js +0 -7
- package/dist/token-util-VKTPZLSE.js.map +0 -1
|
@@ -1,608 +1,94 @@
|
|
|
1
|
-
|
|
1
|
+
import type { WorkflowInfo } from '@mastra/core/workflows';
|
|
2
|
+
import type { Context } from '../types.js';
|
|
3
|
+
import * as workflows from './workflows.js';
|
|
4
|
+
interface AgentBuilderContext extends Context {
|
|
5
|
+
actionId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const getAgentBuilderActionsHandler: (builderArgs: AgentBuilderContext) => Promise<Record<string, WorkflowInfo>>;
|
|
8
|
+
export declare const getAgentBuilderActionByIdHandler: (builderArgs: workflows.WorkflowContext & AgentBuilderContext) => Promise<WorkflowInfo>;
|
|
9
|
+
export declare const getAgentBuilderActionRunByIdHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & AgentBuilderContext) => Promise<Promise<import("@mastra/core").WorkflowRun | null>>;
|
|
10
|
+
export declare const getAgentBuilderActionRunExecutionResultHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & AgentBuilderContext) => Promise<{
|
|
11
|
+
status: import("@mastra/core").WorkflowRunStatus;
|
|
2
12
|
steps: Record<string, {
|
|
3
|
-
|
|
4
|
-
|
|
13
|
+
status: import("@mastra/core").WorkflowRunStatus;
|
|
14
|
+
output?: Record<string, any>;
|
|
15
|
+
payload?: Record<string, any>;
|
|
16
|
+
resumePayload?: Record<string, any>;
|
|
17
|
+
error?: string | Error;
|
|
18
|
+
startedAt: number;
|
|
19
|
+
endedAt: number;
|
|
20
|
+
suspendedAt?: number;
|
|
21
|
+
resumedAt?: number;
|
|
5
22
|
}>;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
description?: string | undefined;
|
|
16
|
-
inputSchema?: string | undefined;
|
|
17
|
-
outputSchema?: string | undefined;
|
|
18
|
-
}>, "json">;
|
|
19
|
-
export declare const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
|
|
20
|
-
actionId: string;
|
|
21
|
-
}, {
|
|
22
|
-
steps: Record<string, {
|
|
23
|
-
id: string;
|
|
24
|
-
description?: string | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
allSteps: Record<string, {
|
|
27
|
-
id: string;
|
|
28
|
-
description?: string | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
stepGraph: {
|
|
31
|
-
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
32
|
-
}[];
|
|
33
|
-
options?: {} | undefined;
|
|
34
|
-
name?: string | undefined;
|
|
35
|
-
description?: string | undefined;
|
|
36
|
-
inputSchema?: string | undefined;
|
|
37
|
-
outputSchema?: string | undefined;
|
|
38
|
-
}, "json">;
|
|
39
|
-
export declare const LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
40
|
-
actionId: import("zod").ZodString;
|
|
41
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
42
|
-
actionId: string;
|
|
43
|
-
}, {
|
|
44
|
-
actionId: string;
|
|
45
|
-
}>, import("zod").ZodObject<{
|
|
46
|
-
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
47
|
-
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
48
|
-
} & {
|
|
49
|
-
fromDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
50
|
-
toDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
51
|
-
resourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
|
-
status: import("zod").ZodOptional<import("zod").ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed"]>>;
|
|
53
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
54
|
-
limit: number;
|
|
55
|
-
offset: number;
|
|
56
|
-
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
|
|
57
|
-
resourceId?: string | undefined;
|
|
58
|
-
fromDate?: Date | undefined;
|
|
59
|
-
toDate?: Date | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
|
|
62
|
-
limit?: number | undefined;
|
|
63
|
-
offset?: number | undefined;
|
|
64
|
-
resourceId?: string | undefined;
|
|
65
|
-
fromDate?: Date | undefined;
|
|
66
|
-
toDate?: Date | undefined;
|
|
67
|
-
}> | import("zod").ZodObject<{
|
|
68
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
69
|
-
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
70
|
-
} & {
|
|
71
|
-
fromDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
72
|
-
toDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
73
|
-
resourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
74
|
-
status: import("zod").ZodOptional<import("zod").ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed"]>>;
|
|
75
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
76
|
-
offset: number;
|
|
77
|
-
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
|
|
78
|
-
limit?: number | undefined;
|
|
79
|
-
resourceId?: string | undefined;
|
|
80
|
-
fromDate?: Date | undefined;
|
|
81
|
-
toDate?: Date | undefined;
|
|
82
|
-
}, {
|
|
83
|
-
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
|
|
84
|
-
limit?: number | undefined;
|
|
85
|
-
offset?: number | undefined;
|
|
86
|
-
resourceId?: string | undefined;
|
|
87
|
-
fromDate?: Date | undefined;
|
|
88
|
-
toDate?: Date | undefined;
|
|
89
|
-
}>, undefined>, {
|
|
90
|
-
total: number;
|
|
91
|
-
runs: {
|
|
92
|
-
runId: string;
|
|
93
|
-
workflowName: string;
|
|
94
|
-
snapshot: string | {};
|
|
95
|
-
createdAt: Date;
|
|
96
|
-
updatedAt: Date;
|
|
97
|
-
resourceId?: string | undefined;
|
|
98
|
-
}[];
|
|
99
|
-
}, "json">;
|
|
100
|
-
export declare const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
|
|
101
|
-
runId: string;
|
|
102
|
-
actionId: string;
|
|
103
|
-
}, {
|
|
104
|
-
runId: string;
|
|
105
|
-
workflowName: string;
|
|
106
|
-
snapshot: string | {};
|
|
107
|
-
createdAt: Date;
|
|
108
|
-
updatedAt: Date;
|
|
109
|
-
resourceId?: string | undefined;
|
|
110
|
-
}, "json">;
|
|
111
|
-
export declare const GET_AGENT_BUILDER_ACTION_RUN_EXECUTION_RESULT_ROUTE: import("../server-adapter").ServerRoute<{
|
|
112
|
-
runId: string;
|
|
113
|
-
actionId: string;
|
|
114
|
-
}, {
|
|
115
|
-
status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed";
|
|
116
|
-
error?: unknown;
|
|
117
|
-
result?: unknown;
|
|
118
|
-
}, "json">;
|
|
119
|
-
export declare const CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
120
|
-
actionId: import("zod").ZodString;
|
|
121
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
122
|
-
actionId: string;
|
|
123
|
-
}, {
|
|
124
|
-
actionId: string;
|
|
125
|
-
}>, import("zod").ZodObject<{
|
|
126
|
-
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
127
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
128
|
-
runId?: string | undefined;
|
|
129
|
-
}, {
|
|
130
|
-
runId?: string | undefined;
|
|
131
|
-
}>, undefined>, {
|
|
132
|
-
runId: string;
|
|
133
|
-
}, "json">;
|
|
134
|
-
export declare const STREAM_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
135
|
-
actionId: import("zod").ZodString;
|
|
136
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
137
|
-
actionId: string;
|
|
138
|
-
}, {
|
|
139
|
-
actionId: string;
|
|
140
|
-
}>, import("zod").ZodObject<{
|
|
141
|
-
runId: import("zod").ZodString;
|
|
142
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
143
|
-
runId: string;
|
|
144
|
-
}, {
|
|
145
|
-
runId: string;
|
|
146
|
-
}>, import("zod").ZodObject<{
|
|
147
|
-
inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
148
|
-
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
149
|
-
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
150
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
151
|
-
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
152
|
-
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
|
-
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
154
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
155
|
-
metadata?: Record<string, unknown> | undefined;
|
|
156
|
-
requestContextKeys?: string[] | undefined;
|
|
157
|
-
traceId?: string | undefined;
|
|
158
|
-
parentSpanId?: string | undefined;
|
|
159
|
-
}, {
|
|
160
|
-
metadata?: Record<string, unknown> | undefined;
|
|
161
|
-
requestContextKeys?: string[] | undefined;
|
|
162
|
-
traceId?: string | undefined;
|
|
163
|
-
parentSpanId?: string | undefined;
|
|
164
|
-
}>>;
|
|
165
|
-
} & {
|
|
166
|
-
closeOnSuspend: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
167
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
168
|
-
inputData?: unknown;
|
|
169
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
170
|
-
tracingOptions?: {
|
|
171
|
-
metadata?: Record<string, unknown> | undefined;
|
|
172
|
-
requestContextKeys?: string[] | undefined;
|
|
173
|
-
traceId?: string | undefined;
|
|
174
|
-
parentSpanId?: string | undefined;
|
|
175
|
-
} | undefined;
|
|
176
|
-
closeOnSuspend?: boolean | undefined;
|
|
177
|
-
}, {
|
|
178
|
-
inputData?: unknown;
|
|
179
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
180
|
-
tracingOptions?: {
|
|
181
|
-
metadata?: Record<string, unknown> | undefined;
|
|
182
|
-
requestContextKeys?: string[] | undefined;
|
|
183
|
-
traceId?: string | undefined;
|
|
184
|
-
parentSpanId?: string | undefined;
|
|
185
|
-
} | undefined;
|
|
186
|
-
closeOnSuspend?: boolean | undefined;
|
|
187
|
-
}>>, any, "stream">;
|
|
188
|
-
export declare const STREAM_VNEXT_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
189
|
-
actionId: import("zod").ZodString;
|
|
190
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
191
|
-
actionId: string;
|
|
192
|
-
}, {
|
|
193
|
-
actionId: string;
|
|
194
|
-
}>, import("zod").ZodObject<{
|
|
195
|
-
runId: import("zod").ZodString;
|
|
196
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
197
|
-
runId: string;
|
|
198
|
-
}, {
|
|
199
|
-
runId: string;
|
|
200
|
-
}>, import("zod").ZodObject<{
|
|
201
|
-
inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
202
|
-
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
203
|
-
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
204
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
205
|
-
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
206
|
-
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
207
|
-
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
208
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
209
|
-
metadata?: Record<string, unknown> | undefined;
|
|
210
|
-
requestContextKeys?: string[] | undefined;
|
|
211
|
-
traceId?: string | undefined;
|
|
212
|
-
parentSpanId?: string | undefined;
|
|
213
|
-
}, {
|
|
214
|
-
metadata?: Record<string, unknown> | undefined;
|
|
215
|
-
requestContextKeys?: string[] | undefined;
|
|
216
|
-
traceId?: string | undefined;
|
|
217
|
-
parentSpanId?: string | undefined;
|
|
218
|
-
}>>;
|
|
219
|
-
} & {
|
|
220
|
-
closeOnSuspend: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
221
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
23
|
+
result?: Record<string, any>;
|
|
24
|
+
payload?: Record<string, any>;
|
|
25
|
+
error?: string | Error;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const createAgentBuilderActionRunHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & AgentBuilderContext) => Promise<{
|
|
28
|
+
runId: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const startAsyncAgentBuilderActionHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
|
|
222
31
|
inputData?: unknown;
|
|
223
|
-
|
|
224
|
-
tracingOptions?:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
traceId?: string | undefined;
|
|
228
|
-
parentSpanId?: string | undefined;
|
|
229
|
-
} | undefined;
|
|
230
|
-
closeOnSuspend?: boolean | undefined;
|
|
231
|
-
}, {
|
|
32
|
+
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
33
|
+
tracingOptions?: import("@mastra/core/ai-tracing").TracingOptions;
|
|
34
|
+
} & AgentBuilderContext) => Promise<import("@mastra/core").WorkflowResult<any, any, any, any>>;
|
|
35
|
+
export declare const startAgentBuilderActionRunHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
|
|
232
36
|
inputData?: unknown;
|
|
233
|
-
|
|
234
|
-
tracingOptions?:
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
export declare const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
243
|
-
actionId: import("zod").ZodString;
|
|
244
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
245
|
-
actionId: string;
|
|
246
|
-
}, {
|
|
247
|
-
actionId: string;
|
|
248
|
-
}>, import("zod").ZodObject<{
|
|
249
|
-
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
250
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
251
|
-
runId?: string | undefined;
|
|
252
|
-
}, {
|
|
253
|
-
runId?: string | undefined;
|
|
254
|
-
}>, import("zod").ZodObject<{
|
|
255
|
-
inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
256
|
-
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
257
|
-
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
258
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
259
|
-
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
260
|
-
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
261
|
-
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
262
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
263
|
-
metadata?: Record<string, unknown> | undefined;
|
|
264
|
-
requestContextKeys?: string[] | undefined;
|
|
265
|
-
traceId?: string | undefined;
|
|
266
|
-
parentSpanId?: string | undefined;
|
|
267
|
-
}, {
|
|
268
|
-
metadata?: Record<string, unknown> | undefined;
|
|
269
|
-
requestContextKeys?: string[] | undefined;
|
|
270
|
-
traceId?: string | undefined;
|
|
271
|
-
parentSpanId?: string | undefined;
|
|
272
|
-
}>>;
|
|
273
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
274
|
-
inputData?: unknown;
|
|
275
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
276
|
-
tracingOptions?: {
|
|
277
|
-
metadata?: Record<string, unknown> | undefined;
|
|
278
|
-
requestContextKeys?: string[] | undefined;
|
|
279
|
-
traceId?: string | undefined;
|
|
280
|
-
parentSpanId?: string | undefined;
|
|
281
|
-
} | undefined;
|
|
282
|
-
}, {
|
|
283
|
-
inputData?: unknown;
|
|
284
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
285
|
-
tracingOptions?: {
|
|
286
|
-
metadata?: Record<string, unknown> | undefined;
|
|
287
|
-
requestContextKeys?: string[] | undefined;
|
|
288
|
-
traceId?: string | undefined;
|
|
289
|
-
parentSpanId?: string | undefined;
|
|
290
|
-
} | undefined;
|
|
291
|
-
}>>, {
|
|
292
|
-
status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed";
|
|
293
|
-
error?: unknown;
|
|
294
|
-
result?: unknown;
|
|
295
|
-
}, "json">;
|
|
296
|
-
export declare const START_AGENT_BUILDER_ACTION_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
297
|
-
actionId: import("zod").ZodString;
|
|
298
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
299
|
-
actionId: string;
|
|
300
|
-
}, {
|
|
301
|
-
actionId: string;
|
|
302
|
-
}>, import("zod").ZodObject<{
|
|
303
|
-
runId: import("zod").ZodString;
|
|
304
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
305
|
-
runId: string;
|
|
306
|
-
}, {
|
|
307
|
-
runId: string;
|
|
308
|
-
}>, import("zod").ZodObject<{
|
|
309
|
-
inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
310
|
-
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
311
|
-
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
312
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
313
|
-
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
314
|
-
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
315
|
-
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
316
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
317
|
-
metadata?: Record<string, unknown> | undefined;
|
|
318
|
-
requestContextKeys?: string[] | undefined;
|
|
319
|
-
traceId?: string | undefined;
|
|
320
|
-
parentSpanId?: string | undefined;
|
|
321
|
-
}, {
|
|
322
|
-
metadata?: Record<string, unknown> | undefined;
|
|
323
|
-
requestContextKeys?: string[] | undefined;
|
|
324
|
-
traceId?: string | undefined;
|
|
325
|
-
parentSpanId?: string | undefined;
|
|
326
|
-
}>>;
|
|
327
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
37
|
+
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
38
|
+
tracingOptions?: import("@mastra/core/ai-tracing").TracingOptions;
|
|
39
|
+
} & AgentBuilderContext) => Promise<{
|
|
40
|
+
message: string;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const watchAgentBuilderActionHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
|
|
43
|
+
eventType?: "watch" | "watch-v2";
|
|
44
|
+
} & AgentBuilderContext) => Promise<import("stream/web").ReadableStream<string>>;
|
|
45
|
+
export declare const streamAgentBuilderActionHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
|
|
328
46
|
inputData?: unknown;
|
|
329
|
-
|
|
330
|
-
tracingOptions?:
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}, {
|
|
47
|
+
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
48
|
+
tracingOptions?: import("@mastra/core/ai-tracing").TracingOptions;
|
|
49
|
+
} & AgentBuilderContext) => Promise<{
|
|
50
|
+
stream: import("stream/web").ReadableStream<import("@mastra/core").StreamEvent>;
|
|
51
|
+
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<any, any, any, any>>;
|
|
52
|
+
}>;
|
|
53
|
+
export declare const streamVNextAgentBuilderActionHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
|
|
337
54
|
inputData?: unknown;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
55
|
+
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
56
|
+
closeOnSuspend?: boolean;
|
|
57
|
+
tracingOptions?: import("@mastra/core/ai-tracing").TracingOptions;
|
|
58
|
+
} & AgentBuilderContext) => Promise<import("stream/web").ReadableStream<import("@mastra/core").ChunkType>>;
|
|
59
|
+
export declare const resumeAsyncAgentBuilderActionHandler: (builderArgs: workflows.WorkflowContext & {
|
|
60
|
+
body: {
|
|
61
|
+
step: string | string[];
|
|
62
|
+
resumeData?: unknown;
|
|
63
|
+
};
|
|
64
|
+
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
65
|
+
tracingOptions?: import("@mastra/core/ai-tracing").TracingOptions;
|
|
66
|
+
} & AgentBuilderContext) => Promise<import("@mastra/core").WorkflowResult<any, any, any, any>>;
|
|
67
|
+
export declare const resumeAgentBuilderActionHandler: (builderArgs: workflows.WorkflowContext & {
|
|
68
|
+
body: {
|
|
69
|
+
step: string | string[];
|
|
70
|
+
resumeData?: unknown;
|
|
71
|
+
};
|
|
72
|
+
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
73
|
+
tracingOptions?: import("@mastra/core/ai-tracing").TracingOptions;
|
|
74
|
+
} & AgentBuilderContext) => Promise<{
|
|
346
75
|
message: string;
|
|
347
|
-
}
|
|
348
|
-
export declare const
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
357
|
-
runId: string;
|
|
358
|
-
}, {
|
|
359
|
-
runId: string;
|
|
360
|
-
}>, undefined>, any, "stream">;
|
|
361
|
-
export declare const OBSERVE_STREAM_VNEXT_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
362
|
-
actionId: import("zod").ZodString;
|
|
363
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
364
|
-
actionId: string;
|
|
365
|
-
}, {
|
|
366
|
-
actionId: string;
|
|
367
|
-
}>, import("zod").ZodObject<{
|
|
368
|
-
runId: import("zod").ZodString;
|
|
369
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
370
|
-
runId: string;
|
|
371
|
-
}, {
|
|
372
|
-
runId: string;
|
|
373
|
-
}>, undefined>, any, "stream">;
|
|
374
|
-
export declare const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
375
|
-
actionId: import("zod").ZodString;
|
|
376
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
377
|
-
actionId: string;
|
|
378
|
-
}, {
|
|
379
|
-
actionId: string;
|
|
380
|
-
}>, import("zod").ZodObject<{
|
|
381
|
-
runId: import("zod").ZodString;
|
|
382
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
383
|
-
runId: string;
|
|
384
|
-
}, {
|
|
385
|
-
runId: string;
|
|
386
|
-
}>, import("zod").ZodObject<{
|
|
387
|
-
step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
|
388
|
-
resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
389
|
-
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
390
|
-
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
391
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
392
|
-
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
393
|
-
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
394
|
-
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
395
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
396
|
-
metadata?: Record<string, unknown> | undefined;
|
|
397
|
-
requestContextKeys?: string[] | undefined;
|
|
398
|
-
traceId?: string | undefined;
|
|
399
|
-
parentSpanId?: string | undefined;
|
|
400
|
-
}, {
|
|
401
|
-
metadata?: Record<string, unknown> | undefined;
|
|
402
|
-
requestContextKeys?: string[] | undefined;
|
|
403
|
-
traceId?: string | undefined;
|
|
404
|
-
parentSpanId?: string | undefined;
|
|
405
|
-
}>>;
|
|
406
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
407
|
-
step?: string | string[] | undefined;
|
|
408
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
409
|
-
tracingOptions?: {
|
|
410
|
-
metadata?: Record<string, unknown> | undefined;
|
|
411
|
-
requestContextKeys?: string[] | undefined;
|
|
412
|
-
traceId?: string | undefined;
|
|
413
|
-
parentSpanId?: string | undefined;
|
|
414
|
-
} | undefined;
|
|
415
|
-
resumeData?: unknown;
|
|
416
|
-
}, {
|
|
417
|
-
step?: string | string[] | undefined;
|
|
418
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
419
|
-
tracingOptions?: {
|
|
420
|
-
metadata?: Record<string, unknown> | undefined;
|
|
421
|
-
requestContextKeys?: string[] | undefined;
|
|
422
|
-
traceId?: string | undefined;
|
|
423
|
-
parentSpanId?: string | undefined;
|
|
424
|
-
} | undefined;
|
|
425
|
-
resumeData?: unknown;
|
|
426
|
-
}>>, {
|
|
427
|
-
status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed";
|
|
428
|
-
error?: unknown;
|
|
429
|
-
result?: unknown;
|
|
430
|
-
}, "json">;
|
|
431
|
-
export declare const RESUME_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
432
|
-
actionId: import("zod").ZodString;
|
|
433
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
434
|
-
actionId: string;
|
|
435
|
-
}, {
|
|
436
|
-
actionId: string;
|
|
437
|
-
}>, import("zod").ZodObject<{
|
|
438
|
-
runId: import("zod").ZodString;
|
|
439
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
440
|
-
runId: string;
|
|
441
|
-
}, {
|
|
442
|
-
runId: string;
|
|
443
|
-
}>, import("zod").ZodObject<{
|
|
444
|
-
step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
|
445
|
-
resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
446
|
-
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
447
|
-
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
448
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
449
|
-
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
450
|
-
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
451
|
-
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
452
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
453
|
-
metadata?: Record<string, unknown> | undefined;
|
|
454
|
-
requestContextKeys?: string[] | undefined;
|
|
455
|
-
traceId?: string | undefined;
|
|
456
|
-
parentSpanId?: string | undefined;
|
|
457
|
-
}, {
|
|
458
|
-
metadata?: Record<string, unknown> | undefined;
|
|
459
|
-
requestContextKeys?: string[] | undefined;
|
|
460
|
-
traceId?: string | undefined;
|
|
461
|
-
parentSpanId?: string | undefined;
|
|
462
|
-
}>>;
|
|
463
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
464
|
-
step?: string | string[] | undefined;
|
|
465
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
466
|
-
tracingOptions?: {
|
|
467
|
-
metadata?: Record<string, unknown> | undefined;
|
|
468
|
-
requestContextKeys?: string[] | undefined;
|
|
469
|
-
traceId?: string | undefined;
|
|
470
|
-
parentSpanId?: string | undefined;
|
|
471
|
-
} | undefined;
|
|
472
|
-
resumeData?: unknown;
|
|
473
|
-
}, {
|
|
474
|
-
step?: string | string[] | undefined;
|
|
475
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
476
|
-
tracingOptions?: {
|
|
477
|
-
metadata?: Record<string, unknown> | undefined;
|
|
478
|
-
requestContextKeys?: string[] | undefined;
|
|
479
|
-
traceId?: string | undefined;
|
|
480
|
-
parentSpanId?: string | undefined;
|
|
481
|
-
} | undefined;
|
|
482
|
-
resumeData?: unknown;
|
|
483
|
-
}>>, {
|
|
76
|
+
}>;
|
|
77
|
+
export declare const getAgentBuilderActionRunsHandler: (builderArgs: workflows.WorkflowContext & {
|
|
78
|
+
fromDate?: Date;
|
|
79
|
+
toDate?: Date;
|
|
80
|
+
limit?: number;
|
|
81
|
+
offset?: number;
|
|
82
|
+
resourceId?: string;
|
|
83
|
+
} & AgentBuilderContext) => Promise<import("@mastra/core").WorkflowRuns>;
|
|
84
|
+
export declare const cancelAgentBuilderActionRunHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & AgentBuilderContext) => Promise<{
|
|
484
85
|
message: string;
|
|
485
|
-
}
|
|
486
|
-
export declare const
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}, {
|
|
491
|
-
actionId: string;
|
|
492
|
-
}>, import("zod").ZodObject<{
|
|
493
|
-
runId: import("zod").ZodString;
|
|
494
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
495
|
-
runId: string;
|
|
496
|
-
}, {
|
|
497
|
-
runId: string;
|
|
498
|
-
}>, import("zod").ZodObject<{
|
|
499
|
-
step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
|
500
|
-
resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
501
|
-
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
502
|
-
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
503
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
504
|
-
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
505
|
-
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
506
|
-
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
507
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
508
|
-
metadata?: Record<string, unknown> | undefined;
|
|
509
|
-
requestContextKeys?: string[] | undefined;
|
|
510
|
-
traceId?: string | undefined;
|
|
511
|
-
parentSpanId?: string | undefined;
|
|
512
|
-
}, {
|
|
513
|
-
metadata?: Record<string, unknown> | undefined;
|
|
514
|
-
requestContextKeys?: string[] | undefined;
|
|
515
|
-
traceId?: string | undefined;
|
|
516
|
-
parentSpanId?: string | undefined;
|
|
517
|
-
}>>;
|
|
518
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
519
|
-
step?: string | string[] | undefined;
|
|
520
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
521
|
-
tracingOptions?: {
|
|
522
|
-
metadata?: Record<string, unknown> | undefined;
|
|
523
|
-
requestContextKeys?: string[] | undefined;
|
|
524
|
-
traceId?: string | undefined;
|
|
525
|
-
parentSpanId?: string | undefined;
|
|
526
|
-
} | undefined;
|
|
527
|
-
resumeData?: unknown;
|
|
528
|
-
}, {
|
|
529
|
-
step?: string | string[] | undefined;
|
|
530
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
531
|
-
tracingOptions?: {
|
|
532
|
-
metadata?: Record<string, unknown> | undefined;
|
|
533
|
-
requestContextKeys?: string[] | undefined;
|
|
534
|
-
traceId?: string | undefined;
|
|
535
|
-
parentSpanId?: string | undefined;
|
|
536
|
-
} | undefined;
|
|
537
|
-
resumeData?: unknown;
|
|
538
|
-
}>>, any, "stream">;
|
|
539
|
-
export declare const CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE: import("../server-adapter").ServerRoute<{
|
|
540
|
-
runId: string;
|
|
541
|
-
actionId: string;
|
|
542
|
-
}, {
|
|
86
|
+
}>;
|
|
87
|
+
export declare const sendAgentBuilderActionRunEventHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
|
|
88
|
+
event: string;
|
|
89
|
+
data: unknown;
|
|
90
|
+
} & AgentBuilderContext) => Promise<{
|
|
543
91
|
message: string;
|
|
544
|
-
}
|
|
545
|
-
export
|
|
546
|
-
actionId: import("zod").ZodString;
|
|
547
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
548
|
-
actionId: string;
|
|
549
|
-
}, {
|
|
550
|
-
actionId: string;
|
|
551
|
-
}>, import("zod").ZodObject<{
|
|
552
|
-
runId: import("zod").ZodString;
|
|
553
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
554
|
-
runId: string;
|
|
555
|
-
}, {
|
|
556
|
-
runId: string;
|
|
557
|
-
}>, import("zod").ZodObject<{
|
|
558
|
-
inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
559
|
-
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
560
|
-
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
561
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
562
|
-
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
563
|
-
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
564
|
-
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
565
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
566
|
-
metadata?: Record<string, unknown> | undefined;
|
|
567
|
-
requestContextKeys?: string[] | undefined;
|
|
568
|
-
traceId?: string | undefined;
|
|
569
|
-
parentSpanId?: string | undefined;
|
|
570
|
-
}, {
|
|
571
|
-
metadata?: Record<string, unknown> | undefined;
|
|
572
|
-
requestContextKeys?: string[] | undefined;
|
|
573
|
-
traceId?: string | undefined;
|
|
574
|
-
parentSpanId?: string | undefined;
|
|
575
|
-
}>>;
|
|
576
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
577
|
-
inputData?: unknown;
|
|
578
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
579
|
-
tracingOptions?: {
|
|
580
|
-
metadata?: Record<string, unknown> | undefined;
|
|
581
|
-
requestContextKeys?: string[] | undefined;
|
|
582
|
-
traceId?: string | undefined;
|
|
583
|
-
parentSpanId?: string | undefined;
|
|
584
|
-
} | undefined;
|
|
585
|
-
}, {
|
|
586
|
-
inputData?: unknown;
|
|
587
|
-
requestContext?: Record<string, unknown> | undefined;
|
|
588
|
-
tracingOptions?: {
|
|
589
|
-
metadata?: Record<string, unknown> | undefined;
|
|
590
|
-
requestContextKeys?: string[] | undefined;
|
|
591
|
-
traceId?: string | undefined;
|
|
592
|
-
parentSpanId?: string | undefined;
|
|
593
|
-
} | undefined;
|
|
594
|
-
}>>, any, "stream">;
|
|
595
|
-
export declare const OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
596
|
-
actionId: import("zod").ZodString;
|
|
597
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
598
|
-
actionId: string;
|
|
599
|
-
}, {
|
|
600
|
-
actionId: string;
|
|
601
|
-
}>, import("zod").ZodObject<{
|
|
602
|
-
runId: import("zod").ZodString;
|
|
603
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
604
|
-
runId: string;
|
|
605
|
-
}, {
|
|
606
|
-
runId: string;
|
|
607
|
-
}>, undefined>, any, "stream">;
|
|
92
|
+
}>;
|
|
93
|
+
export {};
|
|
608
94
|
//# sourceMappingURL=agent-builder.d.ts.map
|