UNPKG

@huggingface/mcp-client

Version:
21 lines 848 B
import type { CompatibilityCallToolResult } from "@modelcontextprotocol/sdk/types"; /** * A utility class for formatting CallToolResult contents into human-readable text. * Processes different content types, extracts text, and summarizes binary data. */ export declare class ResultFormatter { /** * Formats a CallToolResult's contents into a single string. * - Text content is included directly * - Binary content (images, audio, blobs) is summarized * * @param result The CallToolResult to format * @returns A human-readable string representation of the result contents */ static format(result: CompatibilityCallToolResult): string; /** * Calculates the approximate size in bytes of base64-encoded data */ private static getBase64Size; } //# sourceMappingURL=ResultFormatter.d.ts.map