@mastra/agent-builder 0.0.0-error-handler-fix-20251020202607 → 0.0.0-esbuild-bundle-worker-20260807182016

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +1937 -4
  2. package/LICENSE.md +15 -0
  3. package/dist/agent/index.d.ts +24 -5
  4. package/dist/agent/index.d.ts.map +1 -1
  5. package/dist/defaults.d.ts +112 -2761
  6. package/dist/defaults.d.ts.map +1 -1
  7. package/dist/index.js +9091 -4980
  8. package/dist/index.js.map +1 -1
  9. package/dist/processors/tool-summary.d.ts +12 -6
  10. package/dist/processors/tool-summary.d.ts.map +1 -1
  11. package/dist/types.d.ts +216 -867
  12. package/dist/types.d.ts.map +1 -1
  13. package/dist/utils.d.ts +12 -11
  14. package/dist/utils.d.ts.map +1 -1
  15. package/dist/workflows/shared/schema.d.ts +42 -114
  16. package/dist/workflows/shared/schema.d.ts.map +1 -1
  17. package/dist/workflows/task-planning/schema.d.ts +91 -472
  18. package/dist/workflows/task-planning/schema.d.ts.map +1 -1
  19. package/dist/workflows/task-planning/task-planning.d.ts +115 -909
  20. package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
  21. package/dist/workflows/template-builder/template-builder.d.ts +136 -1719
  22. package/dist/workflows/template-builder/template-builder.d.ts.map +1 -1
  23. package/dist/workflows/workflow-builder/prompts.d.ts +1 -1
  24. package/dist/workflows/workflow-builder/prompts.d.ts.map +1 -1
  25. package/dist/workflows/workflow-builder/schema.d.ts +165 -1002
  26. package/dist/workflows/workflow-builder/schema.d.ts.map +1 -1
  27. package/dist/workflows/workflow-builder/tools.d.ts +5 -288
  28. package/dist/workflows/workflow-builder/tools.d.ts.map +1 -1
  29. package/dist/workflows/workflow-builder/workflow-builder.d.ts +313 -2504
  30. package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
  31. package/package.json +28 -24
package/LICENSE.md CHANGED
@@ -1,3 +1,18 @@
1
+ Portions of this software are licensed as follows:
2
+
3
+ - All content that resides under any directory named "ee/" within this
4
+ repository, including but not limited to:
5
+ - `packages/core/src/auth/ee/`
6
+ - `packages/server/src/server/auth/ee/`
7
+ is licensed under the license defined in `ee/LICENSE`.
8
+
9
+ - All third-party components incorporated into the Mastra Software are
10
+ licensed under the original license provided by the owner of the
11
+ applicable component.
12
+
13
+ - Content outside of the above-mentioned directories or restrictions is
14
+ available under the "Apache License 2.0" as defined below.
15
+
1
16
  # Apache License 2.0
2
17
 
3
18
  Copyright (c) 2025 Kepler Software, Inc.
@@ -1,9 +1,10 @@
1
1
  import { Agent } from '@mastra/core/agent';
2
- import type { AgentExecutionOptions } from '@mastra/core/agent';
2
+ import type { AgentExecutionOptionsBase, ToolsInput, PublicStructuredOutputOptions } from '@mastra/core/agent';
3
3
  import type { MessageListInput } from '@mastra/core/agent/message-list';
4
- import type { AISDKV5OutputStream, MastraModelOutput, OutputSchema } from '@mastra/core/stream';
4
+ import type { MastraModelOutput, FullOutput } from '@mastra/core/stream';
5
+ import type { InferStandardSchemaOutput, StandardSchemaWithJSON } from '@mastra/schema-compat/schema';
5
6
  import type { AgentBuilderConfig } from '../types.js';
6
- export declare class AgentBuilder extends Agent {
7
+ export declare class AgentBuilder<TTools extends ToolsInput = ToolsInput, TOutput = undefined> extends Agent<'agent-builder', TTools, TOutput> {
7
8
  private builderConfig;
8
9
  /**
9
10
  * Constructor for AgentBuilder
@@ -23,7 +24,25 @@ export declare class AgentBuilder extends Agent {
23
24
  * Enhanced stream method with AgentBuilder-specific configuration
24
25
  * Overrides the base Agent stream method to provide additional project context
25
26
  */
26
- 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>>;
27
- 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']>>>;
27
+ stream<OUTPUT extends StandardSchemaWithJSON<any, any>, T extends InferStandardSchemaOutput<OUTPUT> = InferStandardSchemaOutput<OUTPUT>>(messages: MessageListInput, streamOptions: AgentExecutionOptionsBase<T> & {
28
+ structuredOutput: PublicStructuredOutputOptions<T>;
29
+ }): Promise<MastraModelOutput<T>>;
30
+ stream<OUTPUT extends {}>(messages: MessageListInput, streamOptions: AgentExecutionOptionsBase<OUTPUT> & {
31
+ structuredOutput: PublicStructuredOutputOptions<OUTPUT>;
32
+ }): Promise<MastraModelOutput<OUTPUT>>;
33
+ stream(messages: MessageListInput, streamOptions: AgentExecutionOptionsBase<unknown> & {
34
+ structuredOutput?: never;
35
+ }): Promise<MastraModelOutput<TOutput>>;
36
+ stream(messages: MessageListInput): Promise<MastraModelOutput<TOutput>>;
37
+ generate<OUTPUT extends StandardSchemaWithJSON<any, any>, T extends InferStandardSchemaOutput<OUTPUT> = InferStandardSchemaOutput<OUTPUT>>(messages: MessageListInput, options: AgentExecutionOptionsBase<T> & {
38
+ structuredOutput: PublicStructuredOutputOptions<T>;
39
+ }): Promise<FullOutput<T>>;
40
+ generate<OUTPUT extends {}>(messages: MessageListInput, options: AgentExecutionOptionsBase<OUTPUT> & {
41
+ structuredOutput: PublicStructuredOutputOptions<OUTPUT>;
42
+ }): Promise<FullOutput<OUTPUT>>;
43
+ generate(messages: MessageListInput, options: AgentExecutionOptionsBase<unknown> & {
44
+ structuredOutput?: never;
45
+ }): Promise<FullOutput<TOutput>>;
46
+ generate<OUTPUT = TOutput>(messages: MessageListInput): Promise<FullOutput<OUTPUT>>;
28
47
  }
29
48
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@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