UNPKG

@mastra/core

Version:

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

34 lines 1.66 kB
import type { LanguageModelV2Prompt } from '@ai-sdk/provider-v5'; import type { IdGenerator, ToolChoice, ToolSet } from '../../../_types/@internal_ai-sdk-v5/dist/index.js'; import type { StructuredOutputOptions } from '../../../agent/types.js'; import type { ModelMethodType } from '../../../llm/model/model.loop.types.js'; import type { MastraLanguageModel, SharedProviderOptions } from '../../../llm/model/shared.types.js'; import type { LoopOptions } from '../../../loop/types.js'; import type { OnResult } from '../../types.js'; type ExecutionProps<OUTPUT = undefined> = { runId: string; model: MastraLanguageModel; providerOptions?: SharedProviderOptions; inputMessages: LanguageModelV2Prompt; tools?: ToolSet; toolChoice?: ToolChoice<ToolSet>; activeTools?: string[]; options?: { abortSignal?: AbortSignal; }; includeRawChunks?: boolean; modelSettings?: LoopOptions['modelSettings']; onResult: OnResult; structuredOutput?: StructuredOutputOptions<OUTPUT>; /** Additional HTTP headers to be sent with the request. Only applicable for HTTP-based providers. */ headers?: Record<string, string | undefined>; shouldThrowError?: boolean; methodType: ModelMethodType; generateId?: IdGenerator; }; export declare function execute<OUTPUT = undefined>({ runId, model, providerOptions, inputMessages, tools, toolChoice, activeTools, options, onResult, includeRawChunks, modelSettings, structuredOutput, headers, shouldThrowError, methodType, generateId, }: ExecutionProps<OUTPUT>): ReadableStream<import("../..").ChunkType>; export {}; //# sourceMappingURL=execute.d.ts.map