UNPKG

mcp-use

Version:

Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.

17 lines 919 B
/** * Langfuse observability integration for MCP-use. * * This module provides automatic instrumentation and callback handler * for Langfuse observability platform. * * Note: This module expects environment variables to be loaded before import. * Users should load their environment variables using their preferred method * (e.g., dotenv, direct process.env assignment, or system environment). */ import type { BaseCallbackHandler } from "@langchain/core/callbacks/base"; declare function initializeLangfuse(agentId?: string, metadata?: Record<string, any>, metadataProvider?: () => Record<string, any>, tagsProvider?: () => string[]): Promise<void>; export declare const langfuseHandler: () => BaseCallbackHandler | null; export declare const langfuseClient: () => any; export declare const langfuseInitPromise: () => Promise<void> | null; export { initializeLangfuse }; //# sourceMappingURL=langfuse.d.ts.map