UNPKG

mcp-use

Version:

A utility library for integrating Model Context Protocol (MCP) with LangChain, Zod, and related tools. Provides helpers for schema conversion, event streaming, and SDK usage.

13 lines 864 B
/** * Tests for AI SDK compatibility with MCPAgent streamEvents() * * These tests verify that streamEvents() can be used with the AI SDK's * LangChainAdapter for creating data stream responses compatible with * Vercel AI SDK hooks like useCompletion and useChat. */ import type { StreamEvent } from '../index.js'; declare function streamEventsToAISDK(streamEvents: AsyncGenerator<StreamEvent, void, void>): AsyncGenerator<string, void, void>; declare function streamEventsToCompleteContent(streamEvents: AsyncGenerator<StreamEvent, void, void>): AsyncGenerator<string, void, void>; declare function createReadableStreamFromGenerator(generator: AsyncGenerator<string, void, void>): ReadableStream<string>; export { createReadableStreamFromGenerator, streamEventsToAISDK, streamEventsToCompleteContent }; //# sourceMappingURL=ai_sdk_compatibility.test.d.ts.map