@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
25 lines • 912 B
TypeScript
import { MastraModelGateway } from './base.js';
import type { ProviderConfig, GatewayLanguageModel } from './base.js';
export interface MastraGatewayConfig {
apiKey?: string;
baseUrl?: string;
customFetch?: typeof globalThis.fetch;
}
export declare class MastraGateway extends MastraModelGateway {
private config?;
readonly id = "mastra";
readonly name = "Memory Gateway";
constructor(config?: MastraGatewayConfig | undefined);
private getBaseUrl;
shouldEnable(): boolean;
fetchProviders(): Promise<Record<string, ProviderConfig>>;
buildUrl(_modelId: string): Promise<string>;
getApiKey(): Promise<string>;
resolveLanguageModel({ modelId, providerId, apiKey, headers, }: {
modelId: string;
providerId: string;
apiKey: string;
headers?: Record<string, string>;
}): GatewayLanguageModel;
}
//# sourceMappingURL=mastra.d.ts.map