UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

21 lines 992 B
import { MockLanguageModelV1 } from 'ai/test'; import { MockLanguageModelV2 } from 'ai-v5/test'; import { MastraLLMV1 } from '../llm/model/model.js'; export declare function createMockModel({ objectGenerationMode, mockText, spyGenerate, spyStream, version, }: { objectGenerationMode?: 'json'; mockText: string | Record<string, any>; spyGenerate?: (props: any) => void; spyStream?: (props: any) => void; version?: 'v1' | 'v2'; }): MockLanguageModelV1 | MockLanguageModelV2; export declare class MockProvider extends MastraLLMV1 { constructor({ spyGenerate, spyStream, objectGenerationMode, mockText, }: { spyGenerate?: (props: any) => void; spyStream?: (props: any) => void; objectGenerationMode?: 'json'; mockText?: string | Record<string, any>; }); stream(...args: any): PromiseLike<StreamReturn<any, any, any>>; __streamObject(...args: any[]): PromiseLike<StreamObjectResult<any>>; } //# sourceMappingURL=llm-mock.d.ts.map