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.

12 lines 519 B
/** * This example demonstrates how to use the stream method of MCPAgent to get * intermediate steps and observe the agent's reasoning process in real-time. * * The stream method returns an AsyncGenerator that yields AgentStep objects * for each intermediate step, and finally returns the complete result. * * This example also demonstrates the streamEvents method which yields * LangChain StreamEvent objects for more granular, token-level streaming. */ export {}; //# sourceMappingURL=stream_example.d.ts.map