UNPKG

@mastra/core

Version:

The core foundation of the Mastra framework, providing essential components and interfaces for building AI-powered applications.

62 lines (58 loc) 1.71 kB
import '../base-DT2poiVK.js'; import { I as Workflow, z as ToolAction } from '../base-BS0LLAna.js'; import '@opentelemetry/api'; import '../index-CquI0inB.js'; import 'stream'; import 'pino'; import '@opentelemetry/sdk-trace-base'; import 'ai'; import '../types-BtMyV38I.js'; import 'sift'; import 'zod'; import 'json-schema'; import '../runtime-context/index.js'; import 'xstate'; import 'node:events'; import '../vector/index.js'; import '../vector/filter/index.js'; import '../tts/index.js'; import 'events'; import '../deployer/index.js'; import '../bundler/index.js'; import 'hono'; import 'hono/cors'; import 'hono-openapi'; import 'ai/test'; declare class Integration<ToolsParams = void, ApiClient = void> { name: string; private workflows; constructor(); /** * Workflows */ registerWorkflow(name: string, fn: Workflow): void; getWorkflows({ serialized }: { serialized?: boolean; }): Record<string, Workflow>; /** * TOOLS */ getStaticTools(_params?: ToolsParams): Record<string, ToolAction<any, any, any>>; getTools(_params?: ToolsParams): Promise<Record<string, ToolAction<any, any, any>>>; getApiClient(): Promise<ApiClient>; } declare abstract class OpenAPIToolset { abstract readonly name: string; abstract readonly tools: Record<string, ToolAction<any, any, any>>; authType: string; constructor(); protected get toolSchemas(): any; protected get toolDocumentations(): Record<string, { comment: string; doc?: string; }>; protected get baseClient(): any; getApiClient(): Promise<any>; protected _generateIntegrationTools<T>(): T; } export { Integration, OpenAPIToolset };