@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and
24 lines (23 loc) • 1.08 kB
TypeScript
import type { ZodType, ZodTypeDef } from "zod";
import { type Schema, type LanguageModelV1 } from "ai";
import type { AIProviderName } from "../core/types.js";
import type { StreamOptions, StreamResult } from "../types/streamTypes.js";
import { BaseProvider } from "../core/baseProvider.js";
/**
* Anthropic provider implementation using BaseProvider pattern
* Migrated from direct API calls to Vercel AI SDK (@ai-sdk/anthropic)
* Follows exact Google AI interface patterns for compatibility
*/
export declare class AnthropicProviderV2 extends BaseProvider {
constructor(modelName?: string);
protected getProviderName(): AIProviderName;
protected getDefaultModel(): string;
/**
* Returns the Vercel AI SDK model instance for Anthropic
*/
protected getAISDKModel(): LanguageModelV1;
protected handleProviderError(error: unknown): Error;
private getApiKey;
protected executeStream(options: StreamOptions, analysisSchema?: ZodType<unknown, ZodTypeDef, unknown> | Schema<unknown>): Promise<StreamResult>;
}
export default AnthropicProviderV2;