@mastra/agent-builder 0.0.0-toolOptionTypes-20250917085558 → 0.0.0-top-level-fix-20251211111608

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.
@@ -1,9 +1,7 @@
1
1
  import { Agent } from '@mastra/core/agent';
2
2
  import type { AgentExecutionOptions } 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';
5
- import type { JSONSchema7 } from 'ai';
6
- import type { ZodSchema } from 'zod';
4
+ import type { MastraModelOutput, OutputSchema } from '@mastra/core/stream';
7
5
  import type { AgentBuilderConfig } from '../types.js';
8
6
  export declare class AgentBuilder extends Agent {
9
7
  private builderConfig;
@@ -15,17 +13,17 @@ export declare class AgentBuilder extends Agent {
15
13
  * Enhanced generate method with AgentBuilder-specific configuration
16
14
  * Overrides the base Agent generate method to provide additional project context
17
15
  */
18
- generate: Agent['generate'];
16
+ generateLegacy: Agent['generateLegacy'];
19
17
  /**
20
18
  * Enhanced stream method with AgentBuilder-specific configuration
21
19
  * Overrides the base Agent stream method to provide additional project context
22
20
  */
23
- stream: Agent['stream'];
21
+ streamLegacy: Agent['streamLegacy'];
24
22
  /**
25
23
  * Enhanced stream method with AgentBuilder-specific configuration
26
24
  * Overrides the base Agent stream method to provide additional project context
27
25
  */
28
- streamVNext<OUTPUT extends OutputSchema | undefined = undefined, STRUCTURED_OUTPUT extends ZodSchema | JSONSchema7 | undefined = undefined, FORMAT extends 'mastra' | 'aisdk' | undefined = undefined>(messages: MessageListInput, streamOptions?: AgentExecutionOptions<OUTPUT, STRUCTURED_OUTPUT, FORMAT>): Promise<FORMAT extends 'aisdk' ? AISDKV5OutputStream<OUTPUT> : MastraModelOutput<OUTPUT>>;
29
- generateVNext<OUTPUT extends OutputSchema | undefined = undefined, STRUCTURED_OUTPUT extends ZodSchema | JSONSchema7 | undefined = undefined, FORMAT extends 'aisdk' | 'mastra' = 'mastra'>(messages: MessageListInput, options?: AgentExecutionOptions<OUTPUT, STRUCTURED_OUTPUT, FORMAT>): Promise<FORMAT extends 'aisdk' ? Awaited<ReturnType<AISDKV5OutputStream<OUTPUT>['getFullOutput']>> : Awaited<ReturnType<MastraModelOutput<OUTPUT>['getFullOutput']>>>;
26
+ stream<OUTPUT extends OutputSchema = undefined>(messages: MessageListInput, streamOptions?: AgentExecutionOptions<OUTPUT>): Promise<MastraModelOutput<OUTPUT>>;
27
+ generate<OUTPUT extends OutputSchema = undefined>(messages: MessageListInput, options?: AgentExecutionOptions<OUTPUT>): Promise<Awaited<ReturnType<MastraModelOutput<OUTPUT>['getFullOutput']>>>;
30
28
  }
31
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAIV,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGhG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAGrC,OAAO,KAAK,EAAE,kBAAkB,EAAwB,MAAM,UAAU,CAAC;AA+BzE,qBAAa,YAAa,SAAQ,KAAK;IACrC,OAAO,CAAC,aAAa,CAAqB;IAE1C;;OAEG;gBACS,MAAM,EAAE,kBAAkB;IAgCtC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,CA6BzB;IAEF;;;OAGG;IACH,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CA4BrB;IAE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