@mastra/core 0.20.0 → 0.20.1-alpha.2
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 +46 -0
- package/dist/agent/agent.d.ts +375 -9
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +11 -11
- package/dist/agent/index.js +2 -2
- package/dist/agent/input-processor/index.cjs +6 -6
- package/dist/agent/input-processor/index.js +1 -1
- package/dist/agent/types.d.ts +66 -0
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +19 -3
- package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts +5 -1
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts +5 -1
- package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/stream-step.d.ts +5 -1
- package/dist/agent/workflows/prepare-stream/stream-step.d.ts.map +1 -1
- package/dist/ai-tracing/index.cjs +32 -32
- package/dist/ai-tracing/index.js +1 -1
- package/dist/{chunk-3NNB72OL.cjs → chunk-33DTPWTJ.cjs} +7 -7
- package/dist/{chunk-3NNB72OL.cjs.map → chunk-33DTPWTJ.cjs.map} +1 -1
- package/dist/{chunk-CJDOU6WP.js → chunk-3KBXOXG6.js} +3 -3
- package/dist/{chunk-CJDOU6WP.js.map → chunk-3KBXOXG6.js.map} +1 -1
- package/dist/{chunk-ZNK5RN5D.cjs → chunk-3Z3DP6S2.cjs} +6 -6
- package/dist/{chunk-ZNK5RN5D.cjs.map → chunk-3Z3DP6S2.cjs.map} +1 -1
- package/dist/{chunk-KGBDRSMX.js → chunk-5I6DXBUR.js} +4 -4
- package/dist/{chunk-KGBDRSMX.js.map → chunk-5I6DXBUR.js.map} +1 -1
- package/dist/{chunk-7EUC32F3.cjs → chunk-6K7IMZVR.cjs} +617 -24
- package/dist/chunk-6K7IMZVR.cjs.map +1 -0
- package/dist/{chunk-FV4QVXO4.js → chunk-6OLRLZJ3.js} +37 -2
- package/dist/chunk-6OLRLZJ3.js.map +1 -0
- package/dist/{chunk-OXLN4CWA.js → chunk-B5GBHE4E.js} +3 -3
- package/dist/{chunk-OXLN4CWA.js.map → chunk-B5GBHE4E.js.map} +1 -1
- package/dist/{chunk-2SH5WPUA.cjs → chunk-BG5FC6ZZ.cjs} +407 -803
- package/dist/chunk-BG5FC6ZZ.cjs.map +1 -0
- package/dist/{chunk-COYTVUIL.js → chunk-EKFF7JLS.js} +610 -17
- package/dist/chunk-EKFF7JLS.js.map +1 -0
- package/dist/{chunk-BOJNXNRV.js → chunk-FJIABZVI.js} +3 -3
- package/dist/{chunk-BOJNXNRV.js.map → chunk-FJIABZVI.js.map} +1 -1
- package/dist/{chunk-RYFQKXXS.js → chunk-H4KO46HZ.js} +3 -3
- package/dist/{chunk-RYFQKXXS.js.map → chunk-H4KO46HZ.js.map} +1 -1
- package/dist/{chunk-T4H33PBR.cjs → chunk-IKLSJCMT.cjs} +360 -69
- package/dist/chunk-IKLSJCMT.cjs.map +1 -0
- package/dist/{chunk-K4AYIXVH.cjs → chunk-L5A4MRCK.cjs} +4 -4
- package/dist/{chunk-K4AYIXVH.cjs.map → chunk-L5A4MRCK.cjs.map} +1 -1
- package/dist/{chunk-DVHBWEYY.cjs → chunk-LCJHFYJS.cjs} +7 -7
- package/dist/{chunk-DVHBWEYY.cjs.map → chunk-LCJHFYJS.cjs.map} +1 -1
- package/dist/{chunk-I6TOPBP6.cjs → chunk-MHHMY2K4.cjs} +49 -18
- package/dist/chunk-MHHMY2K4.cjs.map +1 -0
- package/dist/{chunk-DQISKQDE.js → chunk-OBAFLVGD.js} +342 -51
- package/dist/chunk-OBAFLVGD.js.map +1 -0
- package/dist/{chunk-6R46VE63.js → chunk-OPHFW56S.js} +39 -8
- package/dist/chunk-OPHFW56S.js.map +1 -0
- package/dist/{chunk-LCJP7LWN.cjs → chunk-P4ZPZKZY.cjs} +6 -6
- package/dist/{chunk-LCJP7LWN.cjs.map → chunk-P4ZPZKZY.cjs.map} +1 -1
- package/dist/{chunk-QR5VZWWT.js → chunk-P7WEYMRS.js} +3 -3
- package/dist/{chunk-QR5VZWWT.js.map → chunk-P7WEYMRS.js.map} +1 -1
- package/dist/{chunk-YEEAHLAK.cjs → chunk-PWPESTZZ.cjs} +4 -4
- package/dist/{chunk-YEEAHLAK.cjs.map → chunk-PWPESTZZ.cjs.map} +1 -1
- package/dist/{chunk-7HUKQ6SZ.cjs → chunk-Q3S3BXHO.cjs} +4 -4
- package/dist/{chunk-7HUKQ6SZ.cjs.map → chunk-Q3S3BXHO.cjs.map} +1 -1
- package/dist/{chunk-WP2KQXPV.js → chunk-RMMGYPXG.js} +3 -3
- package/dist/{chunk-WP2KQXPV.js.map → chunk-RMMGYPXG.js.map} +1 -1
- package/dist/{chunk-A4RAEU6X.cjs → chunk-SE4PA467.cjs} +37 -2
- package/dist/chunk-SE4PA467.cjs.map +1 -0
- package/dist/{chunk-AND6J5LG.js → chunk-W2WXYTYI.js} +407 -803
- package/dist/chunk-W2WXYTYI.js.map +1 -0
- package/dist/{chunk-OKIHIKXV.cjs → chunk-WE6ILDQY.cjs} +4 -4
- package/dist/{chunk-OKIHIKXV.cjs.map → chunk-WE6ILDQY.cjs.map} +1 -1
- package/dist/{chunk-ZJ2UFCTS.js → chunk-Y2TIJVKC.js} +3 -3
- package/dist/{chunk-ZJ2UFCTS.js.map → chunk-Y2TIJVKC.js.map} +1 -1
- package/dist/index.cjs +52 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +6 -6
- package/dist/llm/index.d.ts +1 -1
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/llm/model/gateway-resolver.d.ts +7 -5
- package/dist/llm/model/gateway-resolver.d.ts.map +1 -1
- package/dist/llm/model/gateways/base.d.ts +8 -6
- package/dist/llm/model/gateways/base.d.ts.map +1 -1
- package/dist/llm/model/gateways/constants.d.ts +3 -0
- package/dist/llm/model/gateways/constants.d.ts.map +1 -0
- package/dist/llm/model/gateways/index.d.ts +5 -0
- package/dist/llm/model/gateways/index.d.ts.map +1 -1
- package/dist/llm/model/gateways/models-dev.d.ts +8 -2
- package/dist/llm/model/gateways/models-dev.d.ts.map +1 -1
- package/dist/llm/model/gateways/netlify.d.ts +11 -2
- package/dist/llm/model/gateways/netlify.d.ts.map +1 -1
- package/dist/llm/model/index.d.ts +1 -1
- package/dist/llm/model/index.d.ts.map +1 -1
- package/dist/llm/model/model.loop.d.ts +1 -1
- package/dist/llm/model/model.loop.d.ts.map +1 -1
- package/dist/llm/model/provider-registry.generated.d.ts +6 -7
- package/dist/llm/model/provider-registry.generated.d.ts.map +1 -1
- package/dist/llm/model/router.d.ts +23 -0
- package/dist/llm/model/router.d.ts.map +1 -0
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts +5 -1
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +5 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +5 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +5 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts +5 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +5 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +695 -12
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/processors/index.cjs +11 -11
- package/dist/processors/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +9 -9
- package/dist/scores/index.js +2 -2
- package/dist/scores/run-experiment/index.d.ts +2 -2
- package/dist/scores/run-experiment/index.d.ts.map +1 -1
- package/dist/scores/scoreTraces/index.cjs +8 -8
- package/dist/scores/scoreTraces/index.js +3 -3
- package/dist/scores/scoreTraces/scoreTracesWorkflow.d.ts +10 -2
- package/dist/scores/scoreTraces/scoreTracesWorkflow.d.ts.map +1 -1
- package/dist/storage/domains/operations/base.d.ts +6 -0
- package/dist/storage/domains/operations/base.d.ts.map +1 -1
- package/dist/storage/index.cjs +11 -3
- package/dist/storage/index.cjs.map +1 -1
- package/dist/storage/index.js +9 -1
- package/dist/storage/index.js.map +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts +5 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts.map +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts +3 -3
- package/dist/stream/MastraWorkflowStream.d.ts.map +1 -1
- package/dist/stream/index.cjs +4 -4
- package/dist/stream/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +2 -2
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.js +1 -1
- package/dist/tools/is-vercel-tool.cjs +2 -2
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/tools/tool.d.ts +163 -0
- package/dist/tools/tool.d.ts.map +1 -1
- package/dist/utils.cjs +17 -17
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/workflows/default.d.ts +13 -7
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/step-executor.d.ts +7 -3
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/loop.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/parallel.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/utils.d.ts +1 -1
- package/dist/workflows/evented/workflow.d.ts +23 -19
- package/dist/workflows/evented/workflow.d.ts.map +1 -1
- package/dist/workflows/execution-engine.d.ts +5 -1
- package/dist/workflows/execution-engine.d.ts.map +1 -1
- package/dist/workflows/index.cjs +12 -12
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/dist/workflows/step.d.ts +11 -4
- package/dist/workflows/step.d.ts.map +1 -1
- package/dist/workflows/types.d.ts +33 -9
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts +85 -56
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/dist/workflows/workflow.warning.d.ts +2 -2
- package/dist/workflows/workflow.warning.d.ts.map +1 -1
- package/package.json +9 -4
- package/dist/chunk-2SH5WPUA.cjs.map +0 -1
- package/dist/chunk-45CV4JYJ.cjs +0 -4
- package/dist/chunk-45CV4JYJ.cjs.map +0 -1
- package/dist/chunk-6R46VE63.js.map +0 -1
- package/dist/chunk-7EUC32F3.cjs.map +0 -1
- package/dist/chunk-A4RAEU6X.cjs.map +0 -1
- package/dist/chunk-AND6J5LG.js.map +0 -1
- package/dist/chunk-COYTVUIL.js.map +0 -1
- package/dist/chunk-DQISKQDE.js.map +0 -1
- package/dist/chunk-FV4QVXO4.js.map +0 -1
- package/dist/chunk-I6TOPBP6.cjs.map +0 -1
- package/dist/chunk-RFGQ3EQV.js +0 -3
- package/dist/chunk-RFGQ3EQV.js.map +0 -1
- package/dist/chunk-T4H33PBR.cjs.map +0 -1
- package/dist/llm/model/openai-compatible.d.ts +0 -37
- package/dist/llm/model/openai-compatible.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 0.20.1-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added AI SDK provider packages to model router for anthropic/google/openai/openrouter/xai ([#8559](https://github.com/mastra-ai/mastra/pull/8559))
|
|
8
|
+
|
|
9
|
+
## 0.20.1-alpha.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- workflow run thread more visible ([#8539](https://github.com/mastra-ai/mastra/pull/8539))
|
|
14
|
+
|
|
15
|
+
- Add iterationCount to loop condition params ([#8579](https://github.com/mastra-ai/mastra/pull/8579))
|
|
16
|
+
|
|
17
|
+
- Mutable shared workflow run state ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
|
|
18
|
+
|
|
19
|
+
- avoid refetching memory threads and messages on window focus ([#8519](https://github.com/mastra-ai/mastra/pull/8519))
|
|
20
|
+
|
|
21
|
+
- add tripwire reason in playground ([#8568](https://github.com/mastra-ai/mastra/pull/8568))
|
|
22
|
+
|
|
23
|
+
- Add validation for index creation ([#8552](https://github.com/mastra-ai/mastra/pull/8552))
|
|
24
|
+
|
|
25
|
+
- Save waiting step status in snapshot ([#8576](https://github.com/mastra-ai/mastra/pull/8576))
|
|
26
|
+
|
|
27
|
+
- type fixes and missing changeset ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
|
|
28
|
+
|
|
29
|
+
- Convert WorkflowWatchResult to WorkflowResult in workflow graph ([#8541](https://github.com/mastra-ai/mastra/pull/8541))
|
|
30
|
+
|
|
31
|
+
- add new deploy to cloud button ([#8549](https://github.com/mastra-ai/mastra/pull/8549))
|
|
32
|
+
|
|
33
|
+
- remove icons in entity lists ([#8520](https://github.com/mastra-ai/mastra/pull/8520))
|
|
34
|
+
|
|
35
|
+
- add client search to all entities ([#8523](https://github.com/mastra-ai/mastra/pull/8523))
|
|
36
|
+
|
|
37
|
+
- Improve JSDoc documentation for Agent ([#8389](https://github.com/mastra-ai/mastra/pull/8389))
|
|
38
|
+
|
|
39
|
+
- UX for the agents page ([#8517](https://github.com/mastra-ai/mastra/pull/8517))
|
|
40
|
+
|
|
41
|
+
- add icons into playground titles + a link to the entity doc ([#8518](https://github.com/mastra-ai/mastra/pull/8518))
|
|
42
|
+
|
|
43
|
+
## 0.20.1-alpha.0
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Properly fix cloudflare randomUUID in global scope issue ([#8450](https://github.com/mastra-ai/mastra/pull/8450))
|
|
48
|
+
|
|
3
49
|
## 0.20.0
|
|
4
50
|
|
|
5
51
|
### Minor Changes
|
package/dist/agent/agent.d.ts
CHANGED
|
@@ -38,6 +38,26 @@ type ModelFallbacks = {
|
|
|
38
38
|
maxRetries: number;
|
|
39
39
|
enabled: boolean;
|
|
40
40
|
}[];
|
|
41
|
+
/**
|
|
42
|
+
* The Agent class is the foundation for creating AI agents in Mastra. It provides methods for generating responses,
|
|
43
|
+
* streaming interactions, managing memory, and handling voice capabilities.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import { Agent } from '@mastra/core/agent';
|
|
48
|
+
* import { Memory } from '@mastra/memory';
|
|
49
|
+
*
|
|
50
|
+
* const agent = new Agent({
|
|
51
|
+
* name: 'my-agent',
|
|
52
|
+
* instructions: 'You are a helpful assistant',
|
|
53
|
+
* model: 'openai/gpt-5',
|
|
54
|
+
* tools: {
|
|
55
|
+
* calculator: calculatorTool,
|
|
56
|
+
* },
|
|
57
|
+
* memory: new Memory(),
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
41
61
|
export declare class Agent<TAgentId extends string = string, TTools extends ToolsInput = ToolsInput, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends MastraBase {
|
|
42
62
|
#private;
|
|
43
63
|
id: TAgentId;
|
|
@@ -46,73 +66,249 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
46
66
|
maxRetries?: number;
|
|
47
67
|
evals: TMetrics;
|
|
48
68
|
private _agentNetworkAppend;
|
|
69
|
+
/**
|
|
70
|
+
* Creates a new Agent instance with the specified configuration.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* import { Agent } from '@mastra/core/agent';
|
|
75
|
+
* import { Memory } from '@mastra/memory';
|
|
76
|
+
*
|
|
77
|
+
* const agent = new Agent({
|
|
78
|
+
* name: 'weatherAgent',
|
|
79
|
+
* instructions: 'You help users with weather information',
|
|
80
|
+
* model: 'openai/gpt-5',
|
|
81
|
+
* tools: { getWeather },
|
|
82
|
+
* memory: new Memory(),
|
|
83
|
+
* maxRetries: 2,
|
|
84
|
+
* });
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
49
87
|
constructor(config: AgentConfig<TAgentId, TTools, TMetrics>);
|
|
50
|
-
getMastraInstance(): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, import("../workflows/legacy").LegacyWorkflow<Step<string, any, any, import("../workflows/legacy").StepExecutionContext<any, import("../workflows/legacy").WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<any, any, any, any, any, any>>, Record<string, import("../vector").MastraVector<import("../vector/filter").VectorFilter>>, Record<string, import("../tts").MastraTTS>, import("../logger").IMastraLogger, Record<string, import("../mcp").MCPServerBase>, Record<string, MastraScorer<any, any, any, any>>> | undefined;
|
|
88
|
+
getMastraInstance(): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, import("../workflows/legacy").LegacyWorkflow<Step<string, any, any, import("../workflows/legacy").StepExecutionContext<any, import("../workflows/legacy").WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<any, any, any, any, any, any, any>>, Record<string, import("../vector").MastraVector<import("../vector/filter").VectorFilter>>, Record<string, import("../tts").MastraTTS>, import("../logger").IMastraLogger, Record<string, import("../mcp").MCPServerBase>, Record<string, MastraScorer<any, any, any, any>>> | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Returns the agents configured for this agent, resolving function-based agents if necessary.
|
|
91
|
+
* Used in multi-agent collaboration scenarios where this agent can delegate to other agents.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* const agents = await agent.listAgents();
|
|
96
|
+
* console.log(Object.keys(agents)); // ['agent1', 'agent2']
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
51
99
|
listAgents({ runtimeContext }?: {
|
|
52
100
|
runtimeContext?: RuntimeContext;
|
|
53
101
|
}): Record<string, Agent<string, ToolsInput, Record<string, Metric>>> | Promise<Record<string, Agent<string, ToolsInput, Record<string, Metric>>>>;
|
|
102
|
+
/**
|
|
103
|
+
* Creates and returns a ProcessorRunner with resolved input/output processors.
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
54
106
|
private getProcessorRunner;
|
|
107
|
+
/**
|
|
108
|
+
* Resolves and returns output processors from agent configuration.
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
55
111
|
private getResolvedOutputProcessors;
|
|
112
|
+
/**
|
|
113
|
+
* Returns whether this agent has its own memory configured.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```typescript
|
|
117
|
+
* if (agent.hasOwnMemory()) {
|
|
118
|
+
* const memory = await agent.getMemory();
|
|
119
|
+
* }
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
56
122
|
hasOwnMemory(): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Gets the memory instance for this agent, resolving function-based memory if necessary.
|
|
125
|
+
* The memory system enables conversation persistence, semantic recall, and working memory.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* ```typescript
|
|
129
|
+
* const memory = await agent.getMemory();
|
|
130
|
+
* if (memory) {
|
|
131
|
+
* // Memory is configured
|
|
132
|
+
* }
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
57
135
|
getMemory({ runtimeContext }?: {
|
|
58
136
|
runtimeContext?: RuntimeContext;
|
|
59
137
|
}): Promise<MastraMemory | undefined>;
|
|
60
138
|
get voice(): CompositeVoice;
|
|
139
|
+
/**
|
|
140
|
+
* Gets the workflows configured for this agent, resolving function-based workflows if necessary.
|
|
141
|
+
* Workflows are step-based execution flows that can be triggered by the agent.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```typescript
|
|
145
|
+
* const workflows = await agent.getWorkflows();
|
|
146
|
+
* const workflow = workflows['myWorkflow'];
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
61
149
|
getWorkflows({ runtimeContext, }?: {
|
|
62
150
|
runtimeContext?: RuntimeContext;
|
|
63
151
|
}): Promise<Record<string, Workflow<any, any, any, any, any, any>>>;
|
|
64
152
|
getScorers({ runtimeContext, }?: {
|
|
65
153
|
runtimeContext?: RuntimeContext;
|
|
66
154
|
}): Promise<MastraScorers>;
|
|
155
|
+
/**
|
|
156
|
+
* Gets the voice instance for this agent with tools and instructions configured.
|
|
157
|
+
* The voice instance enables text-to-speech and speech-to-text capabilities.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* const voice = await agent.getVoice();
|
|
162
|
+
* const audioStream = await voice.speak('Hello world');
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
67
165
|
getVoice({ runtimeContext }?: {
|
|
68
166
|
runtimeContext?: RuntimeContext;
|
|
69
167
|
}): Promise<CompositeVoice | DefaultVoice>;
|
|
70
168
|
get instructions(): string;
|
|
169
|
+
/**
|
|
170
|
+
* Gets the instructions for this agent, resolving function-based instructions if necessary.
|
|
171
|
+
* Instructions define the agent's behavior and capabilities.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* const instructions = await agent.getInstructions();
|
|
176
|
+
* console.log(instructions); // 'You are a helpful assistant'
|
|
177
|
+
* ```
|
|
178
|
+
*/
|
|
71
179
|
getInstructions({ runtimeContext }?: {
|
|
72
180
|
runtimeContext?: RuntimeContext;
|
|
73
181
|
}): AgentInstructions | Promise<AgentInstructions>;
|
|
182
|
+
/**
|
|
183
|
+
* Returns the description of the agent.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```typescript
|
|
187
|
+
* const description = agent.getDescription();
|
|
188
|
+
* console.log(description); // 'A helpful weather assistant'
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
74
191
|
getDescription(): string;
|
|
192
|
+
/**
|
|
193
|
+
* Gets the default generate options for this agent, resolving function-based options if necessary.
|
|
194
|
+
* These options are used as defaults when calling `generate()` without explicit options.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```typescript
|
|
198
|
+
* const options = await agent.getDefaultGenerateOptions();
|
|
199
|
+
* console.log(options.maxSteps); // 5
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
75
202
|
getDefaultGenerateOptions({ runtimeContext, }?: {
|
|
76
203
|
runtimeContext?: RuntimeContext;
|
|
77
204
|
}): AgentGenerateOptions | Promise<AgentGenerateOptions>;
|
|
205
|
+
/**
|
|
206
|
+
* Gets the default stream options for this agent, resolving function-based options if necessary.
|
|
207
|
+
* These options are used as defaults when calling `stream()` without explicit options.
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* ```typescript
|
|
211
|
+
* const options = await agent.getDefaultStreamOptions();
|
|
212
|
+
* console.log(options.temperature); // 0.7
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
78
215
|
getDefaultStreamOptions({ runtimeContext }?: {
|
|
79
216
|
runtimeContext?: RuntimeContext;
|
|
80
217
|
}): AgentStreamOptions | Promise<AgentStreamOptions>;
|
|
218
|
+
/**
|
|
219
|
+
* Gets the default VNext stream options for this agent, resolving function-based options if necessary.
|
|
220
|
+
* These options are used as defaults when calling `streamVNext()` or `generateVNext()` without explicit options.
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* ```typescript
|
|
224
|
+
* const options = await agent.getDefaultVNextStreamOptions();
|
|
225
|
+
* console.log(options.maxSteps); // 5
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
81
228
|
getDefaultVNextStreamOptions<OUTPUT extends OutputSchema = undefined>({ runtimeContext, }?: {
|
|
82
229
|
runtimeContext?: RuntimeContext;
|
|
83
230
|
}): AgentExecutionOptions<OUTPUT> | Promise<AgentExecutionOptions<OUTPUT>>;
|
|
84
231
|
get tools(): TTools;
|
|
232
|
+
/**
|
|
233
|
+
* Gets the tools configured for this agent, resolving function-based tools if necessary.
|
|
234
|
+
* Tools extend the agent's capabilities, allowing it to perform specific actions or access external systems.
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* ```typescript
|
|
238
|
+
* const tools = await agent.getTools();
|
|
239
|
+
* console.log(Object.keys(tools)); // ['calculator', 'weather']
|
|
240
|
+
* ```
|
|
241
|
+
*/
|
|
85
242
|
getTools({ runtimeContext }?: {
|
|
86
243
|
runtimeContext?: RuntimeContext;
|
|
87
244
|
}): TTools | Promise<TTools>;
|
|
88
245
|
get llm(): MastraLLM | Promise<MastraLLM>;
|
|
89
246
|
/**
|
|
90
|
-
* Gets or creates an LLM instance based on the
|
|
91
|
-
*
|
|
92
|
-
*
|
|
247
|
+
* Gets or creates an LLM instance based on the provided or configured model.
|
|
248
|
+
* The LLM wraps the language model with additional capabilities like telemetry and error handling.
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* ```typescript
|
|
252
|
+
* const llm = await agent.getLLM();
|
|
253
|
+
* // Use with custom model
|
|
254
|
+
* const customLlm = await agent.getLLM({ model: 'openai/gpt-5' });
|
|
255
|
+
* ```
|
|
93
256
|
*/
|
|
94
257
|
getLLM({ runtimeContext, model, }?: {
|
|
95
258
|
runtimeContext?: RuntimeContext;
|
|
96
259
|
model?: DynamicArgument<MastraModelConfig>;
|
|
97
260
|
}): MastraLLM | Promise<MastraLLM>;
|
|
261
|
+
/**
|
|
262
|
+
* Returns true for model router config object
|
|
263
|
+
* @internal
|
|
264
|
+
*/
|
|
98
265
|
private isOpenaiCompatibleObjectConfig;
|
|
99
266
|
/**
|
|
100
267
|
* Resolves a model configuration to a LanguageModel instance
|
|
101
268
|
* @param modelConfig The model configuration (magic string, config object, or LanguageModel)
|
|
102
269
|
* @returns A LanguageModel instance
|
|
270
|
+
* @internal
|
|
103
271
|
*/
|
|
104
272
|
private resolveModelConfig;
|
|
105
273
|
/**
|
|
106
|
-
* Gets the model, resolving it if it's a function
|
|
107
|
-
*
|
|
108
|
-
*
|
|
274
|
+
* Gets the model instance, resolving it if it's a function or model configuration.
|
|
275
|
+
* When the agent has multiple models configured, returns the first enabled model.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```typescript
|
|
279
|
+
* const model = await agent.getModel();
|
|
280
|
+
* // Get with custom model config
|
|
281
|
+
* const customModel = await agent.getModel({
|
|
282
|
+
* modelConfig: 'openai/gpt-5'
|
|
283
|
+
* });
|
|
284
|
+
* ```
|
|
109
285
|
*/
|
|
110
286
|
getModel({ runtimeContext, modelConfig, }?: {
|
|
111
287
|
runtimeContext?: RuntimeContext;
|
|
112
288
|
modelConfig?: Agent['model'];
|
|
113
289
|
}): MastraLanguageModel | Promise<MastraLanguageModel>;
|
|
290
|
+
/**
|
|
291
|
+
* Gets the list of configured models if the agent has multiple models, otherwise returns null.
|
|
292
|
+
* Used for model fallback and load balancing scenarios.
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* ```typescript
|
|
296
|
+
* const models = await agent.getModelList();
|
|
297
|
+
* if (models) {
|
|
298
|
+
* console.log(models.map(m => m.id));
|
|
299
|
+
* }
|
|
300
|
+
* ```
|
|
301
|
+
*/
|
|
114
302
|
getModelList(runtimeContext?: RuntimeContext): Promise<Array<AgentModelManagerConfig> | null>;
|
|
303
|
+
/**
|
|
304
|
+
* Updates the agent's instructions.
|
|
305
|
+
* @internal
|
|
306
|
+
*/
|
|
115
307
|
__updateInstructions(newInstructions: string): void;
|
|
308
|
+
/**
|
|
309
|
+
* Updates the agent's model configuration.
|
|
310
|
+
* @internal
|
|
311
|
+
*/
|
|
116
312
|
__updateModel({ model }: {
|
|
117
313
|
model: DynamicArgument<MastraModelConfig>;
|
|
118
314
|
}): void;
|
|
@@ -123,11 +319,20 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
123
319
|
enabled?: boolean;
|
|
124
320
|
maxRetries?: number;
|
|
125
321
|
}): void;
|
|
322
|
+
/**
|
|
323
|
+
* Registers telemetry and logger primitives with the agent.
|
|
324
|
+
* @internal
|
|
325
|
+
*/
|
|
126
326
|
__registerPrimitives(p: MastraPrimitives): void;
|
|
327
|
+
/**
|
|
328
|
+
* Registers the Mastra instance with the agent.
|
|
329
|
+
* @internal
|
|
330
|
+
*/
|
|
127
331
|
__registerMastra(mastra: Mastra): void;
|
|
128
332
|
/**
|
|
129
333
|
* Set the concrete tools for the agent
|
|
130
334
|
* @param tools
|
|
335
|
+
* @internal
|
|
131
336
|
*/
|
|
132
337
|
__setTools(tools: TTools): void;
|
|
133
338
|
generateTitleFromUserMessage({ message, runtimeContext, tracingContext, model, instructions, }: {
|
|
@@ -153,15 +358,55 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
153
358
|
threadId: string;
|
|
154
359
|
messages: CoreMessage[];
|
|
155
360
|
}>;
|
|
361
|
+
/**
|
|
362
|
+
* Retrieves and converts memory tools to CoreTool format.
|
|
363
|
+
* @internal
|
|
364
|
+
*/
|
|
156
365
|
private getMemoryTools;
|
|
366
|
+
/**
|
|
367
|
+
* Executes input processors on the message list before LLM processing.
|
|
368
|
+
* @internal
|
|
369
|
+
*/
|
|
157
370
|
private __runInputProcessors;
|
|
371
|
+
/**
|
|
372
|
+
* Executes output processors on the message list after LLM processing.
|
|
373
|
+
* @internal
|
|
374
|
+
*/
|
|
158
375
|
private __runOutputProcessors;
|
|
376
|
+
/**
|
|
377
|
+
* Fetches remembered messages from memory for the current thread.
|
|
378
|
+
* @internal
|
|
379
|
+
*/
|
|
159
380
|
private getMemoryMessages;
|
|
381
|
+
/**
|
|
382
|
+
* Retrieves and converts assigned tools to CoreTool format.
|
|
383
|
+
* @internal
|
|
384
|
+
*/
|
|
160
385
|
private getAssignedTools;
|
|
386
|
+
/**
|
|
387
|
+
* Retrieves and converts toolset tools to CoreTool format.
|
|
388
|
+
* @internal
|
|
389
|
+
*/
|
|
161
390
|
private getToolsets;
|
|
391
|
+
/**
|
|
392
|
+
* Retrieves and converts client-side tools to CoreTool format.
|
|
393
|
+
* @internal
|
|
394
|
+
*/
|
|
162
395
|
private getClientTools;
|
|
396
|
+
/**
|
|
397
|
+
* Retrieves and converts workflow tools to CoreTool format.
|
|
398
|
+
* @internal
|
|
399
|
+
*/
|
|
163
400
|
private getWorkflowTools;
|
|
401
|
+
/**
|
|
402
|
+
* Assembles all tools from various sources into a unified CoreTool dictionary.
|
|
403
|
+
* @internal
|
|
404
|
+
*/
|
|
164
405
|
private convertTools;
|
|
406
|
+
/**
|
|
407
|
+
* Formats and validates tool names to comply with naming restrictions.
|
|
408
|
+
* @internal
|
|
409
|
+
*/
|
|
165
410
|
private formatTools;
|
|
166
411
|
/**
|
|
167
412
|
* Adds response messages from a step to the MessageList and schedules persistence.
|
|
@@ -173,8 +418,13 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
173
418
|
* @param threadId - The thread ID.
|
|
174
419
|
* @param memoryConfig - The memory configuration for saving.
|
|
175
420
|
* @param runId - (Optional) The run ID for logging.
|
|
421
|
+
* @internal
|
|
176
422
|
*/
|
|
177
423
|
private saveStepMessages;
|
|
424
|
+
/**
|
|
425
|
+
* Prepares message list and tools before LLM execution and handles memory persistence after.
|
|
426
|
+
* @internal
|
|
427
|
+
*/
|
|
178
428
|
__primitive({ instructions, messages, context, thread, memoryConfig, resourceId, runId, toolsets, clientTools, runtimeContext, saveQueueManager, writableStream, methodType, tracingContext, tracingOptions, }: {
|
|
179
429
|
instructions: AgentInstructions;
|
|
180
430
|
toolsets?: ToolsetsInput;
|
|
@@ -232,27 +482,113 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
232
482
|
};
|
|
233
483
|
}>;
|
|
234
484
|
};
|
|
485
|
+
/**
|
|
486
|
+
* Resolves scorer name references to actual scorer instances from Mastra.
|
|
487
|
+
* @internal
|
|
488
|
+
*/
|
|
235
489
|
private resolveOverrideScorerReferences;
|
|
490
|
+
/**
|
|
491
|
+
* Prepares options and handlers for LLM text/object generation or streaming.
|
|
492
|
+
* @internal
|
|
493
|
+
*/
|
|
236
494
|
private prepareLLMOptions;
|
|
495
|
+
/**
|
|
496
|
+
* Resolves and prepares model configurations for the LLM.
|
|
497
|
+
* @internal
|
|
498
|
+
*/
|
|
237
499
|
private prepareModels;
|
|
500
|
+
/**
|
|
501
|
+
* Executes a network loop where multiple agents can collaborate to handle messages.
|
|
502
|
+
* The routing agent delegates tasks to appropriate sub-agents based on the conversation.
|
|
503
|
+
*
|
|
504
|
+
* @experimental
|
|
505
|
+
*
|
|
506
|
+
* @example
|
|
507
|
+
* ```typescript
|
|
508
|
+
* const result = await agent.network('Find the weather in Tokyo and plan an activity', {
|
|
509
|
+
* memory: {
|
|
510
|
+
* thread: 'user-123',
|
|
511
|
+
* resource: 'my-app'
|
|
512
|
+
* },
|
|
513
|
+
* maxSteps: 10
|
|
514
|
+
* });
|
|
515
|
+
*
|
|
516
|
+
* for await (const chunk of result.stream) {
|
|
517
|
+
* console.log(chunk);
|
|
518
|
+
* }
|
|
519
|
+
* ```
|
|
520
|
+
*/
|
|
238
521
|
network(messages: MessageListInput, options?: MultiPrimitiveExecutionOptions): Promise<import("../stream/MastraAgentNetworkStream").MastraAgentNetworkStream>;
|
|
239
522
|
/**
|
|
240
|
-
* @deprecated generateVNext has been renamed to generate
|
|
523
|
+
* @deprecated `generateVNext()` has been renamed to `generate()`. Please use `generate()` instead.
|
|
241
524
|
*/
|
|
242
525
|
generateVNext<OUTPUT extends OutputSchema = undefined, FORMAT extends 'aisdk' | 'mastra' = 'mastra'>(_messages: MessageListInput, _options?: AgentExecutionOptions<OUTPUT, FORMAT>): Promise<FORMAT extends 'aisdk' ? Awaited<ReturnType<AISDKV5OutputStream<OUTPUT>['getFullOutput']>> : Awaited<ReturnType<MastraModelOutput<OUTPUT>['getFullOutput']>>>;
|
|
243
526
|
generate<OUTPUT extends OutputSchema = undefined, FORMAT extends 'aisdk' | 'mastra' = 'mastra'>(messages: MessageListInput, options?: AgentExecutionOptions<OUTPUT, FORMAT>): Promise<FORMAT extends 'aisdk' ? Awaited<ReturnType<AISDKV5OutputStream<OUTPUT>['getFullOutput']>> : Awaited<ReturnType<MastraModelOutput<OUTPUT>['getFullOutput']>>>;
|
|
244
527
|
/**
|
|
245
|
-
* @deprecated streamVNext has been renamed to stream
|
|
528
|
+
* @deprecated `streamVNext()` has been renamed to `stream()`. Please use `stream()` instead.
|
|
246
529
|
*/
|
|
247
530
|
streamVNext<OUTPUT extends OutputSchema = undefined, FORMAT extends 'mastra' | 'aisdk' | undefined = undefined>(_messages: MessageListInput, _streamOptions?: AgentExecutionOptions<OUTPUT, FORMAT>): Promise<FORMAT extends 'aisdk' ? AISDKV5OutputStream<OUTPUT> : MastraModelOutput<OUTPUT>>;
|
|
248
531
|
stream<OUTPUT extends OutputSchema = undefined, FORMAT extends 'mastra' | 'aisdk' | undefined = undefined>(messages: MessageListInput, streamOptions?: AgentExecutionOptions<OUTPUT, FORMAT>): Promise<FORMAT extends 'aisdk' ? AISDKV5OutputStream<OUTPUT> : MastraModelOutput<OUTPUT>>;
|
|
532
|
+
/**
|
|
533
|
+
* Resumes a previously suspended VNext stream execution.
|
|
534
|
+
* Used to continue execution after a suspension point (e.g., tool approval, workflow suspend).
|
|
535
|
+
*
|
|
536
|
+
* @example
|
|
537
|
+
* ```typescript
|
|
538
|
+
* // Resume after suspension
|
|
539
|
+
* const stream = await agent.resumeStreamVNext(
|
|
540
|
+
* { approved: true },
|
|
541
|
+
* { runId: 'previous-run-id' }
|
|
542
|
+
* );
|
|
543
|
+
* ```
|
|
544
|
+
*/
|
|
249
545
|
resumeStreamVNext<OUTPUT extends OutputSchema | undefined = undefined, FORMAT extends 'mastra' | 'aisdk' | undefined = undefined>(resumeContext: any, streamOptions?: AgentExecutionOptions<OUTPUT, FORMAT>): Promise<FORMAT extends 'aisdk' ? AISDKV5OutputStream<OUTPUT> : MastraModelOutput<OUTPUT>>;
|
|
546
|
+
/**
|
|
547
|
+
* Approves a pending tool call and resumes execution.
|
|
548
|
+
* Used when `requireToolApproval` is enabled to allow the agent to proceed with a tool call.
|
|
549
|
+
*
|
|
550
|
+
* @example
|
|
551
|
+
* ```typescript
|
|
552
|
+
* const stream = await agent.approveToolCall({
|
|
553
|
+
* runId: 'pending-run-id'
|
|
554
|
+
* });
|
|
555
|
+
*
|
|
556
|
+
* for await (const chunk of stream) {
|
|
557
|
+
* console.log(chunk);
|
|
558
|
+
* }
|
|
559
|
+
* ```
|
|
560
|
+
*/
|
|
250
561
|
approveToolCall<OUTPUT extends OutputSchema | undefined = undefined, FORMAT extends 'mastra' | 'aisdk' | undefined = undefined>(options: AgentExecutionOptions<OUTPUT, FORMAT> & {
|
|
251
562
|
runId: string;
|
|
252
563
|
}): Promise<FORMAT extends 'aisdk' ? AISDKV5OutputStream<OUTPUT> : MastraModelOutput<OUTPUT>>;
|
|
564
|
+
/**
|
|
565
|
+
* Declines a pending tool call and resumes execution.
|
|
566
|
+
* Used when `requireToolApproval` is enabled to prevent the agent from executing a tool call.
|
|
567
|
+
*
|
|
568
|
+
* @example
|
|
569
|
+
* ```typescript
|
|
570
|
+
* const stream = await agent.declineToolCall({
|
|
571
|
+
* runId: 'pending-run-id'
|
|
572
|
+
* });
|
|
573
|
+
*
|
|
574
|
+
* for await (const chunk of stream) {
|
|
575
|
+
* console.log(chunk);
|
|
576
|
+
* }
|
|
577
|
+
* ```
|
|
578
|
+
*/
|
|
253
579
|
declineToolCall<OUTPUT extends OutputSchema | undefined = undefined, FORMAT extends 'mastra' | 'aisdk' | undefined = undefined>(options: AgentExecutionOptions<OUTPUT, FORMAT> & {
|
|
254
580
|
runId: string;
|
|
255
581
|
}): Promise<FORMAT extends 'aisdk' ? AISDKV5OutputStream<OUTPUT> : MastraModelOutput<OUTPUT>>;
|
|
582
|
+
/**
|
|
583
|
+
* Legacy implementation of generate method using AI SDK v4 models.
|
|
584
|
+
* Use this method if you need to continue using AI SDK v4 models after `generate()` switches to VNext.
|
|
585
|
+
*
|
|
586
|
+
* @example
|
|
587
|
+
* ```typescript
|
|
588
|
+
* const result = await agent.generateLegacy('What is 2+2?');
|
|
589
|
+
* console.log(result.text);
|
|
590
|
+
* ```
|
|
591
|
+
*/
|
|
256
592
|
generateLegacy(messages: MessageListInput, args?: AgentGenerateOptions<undefined, undefined> & {
|
|
257
593
|
output?: never;
|
|
258
594
|
experimental_output?: never;
|
|
@@ -265,6 +601,18 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
265
601
|
output?: never;
|
|
266
602
|
experimental_output?: EXPERIMENTAL_OUTPUT;
|
|
267
603
|
}): Promise<GenerateTextResult<any, EXPERIMENTAL_OUTPUT>>;
|
|
604
|
+
/**
|
|
605
|
+
* Legacy implementation of stream method using AI SDK v4 models.
|
|
606
|
+
* Use this method if you need to continue using AI SDK v4 models after `stream()` switches to VNext.
|
|
607
|
+
*
|
|
608
|
+
* @example
|
|
609
|
+
* ```typescript
|
|
610
|
+
* const result = await agent.streamLegacy('Tell me a story');
|
|
611
|
+
* for await (const chunk of result.textStream) {
|
|
612
|
+
* process.stdout.write(chunk);
|
|
613
|
+
* }
|
|
614
|
+
* ```
|
|
615
|
+
*/
|
|
268
616
|
streamLegacy<OUTPUT extends ZodSchema | JSONSchema7 | undefined = undefined, EXPERIMENTAL_OUTPUT extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: MessageListInput, args?: AgentStreamOptions<OUTPUT, EXPERIMENTAL_OUTPUT> & {
|
|
269
617
|
output?: never;
|
|
270
618
|
experimental_output?: never;
|
|
@@ -309,6 +657,22 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
309
657
|
getSpeakers(): Promise<{
|
|
310
658
|
voiceId: string;
|
|
311
659
|
}[]>;
|
|
660
|
+
/**
|
|
661
|
+
* Converts the agent to a workflow step for use in legacy workflows.
|
|
662
|
+
* The step accepts a prompt and returns text output.
|
|
663
|
+
*
|
|
664
|
+
* @deprecated Use agent directly in workflows instead
|
|
665
|
+
*
|
|
666
|
+
* @example
|
|
667
|
+
* ```typescript
|
|
668
|
+
* const agentStep = agent.toStep();
|
|
669
|
+
* const workflow = new Workflow({
|
|
670
|
+
* steps: {
|
|
671
|
+
* analyze: agentStep
|
|
672
|
+
* }
|
|
673
|
+
* });
|
|
674
|
+
* ```
|
|
675
|
+
*/
|
|
312
676
|
toStep(): Step<TAgentId, z.ZodObject<{
|
|
313
677
|
prompt: z.ZodString;
|
|
314
678
|
}>, z.ZodObject<{
|
|
@@ -317,11 +681,13 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
317
681
|
/**
|
|
318
682
|
* Resolves the configuration for title generation.
|
|
319
683
|
* @private
|
|
684
|
+
* @internal
|
|
320
685
|
*/
|
|
321
686
|
private resolveTitleGenerationConfig;
|
|
322
687
|
/**
|
|
323
688
|
* Resolves title generation instructions, handling both static strings and dynamic functions
|
|
324
689
|
* @private
|
|
690
|
+
* @internal
|
|
325
691
|
*/
|
|
326
692
|
private resolveTitleInstructions;
|
|
327
693
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/agent/agent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