UNPKG

@hashgraphonline/conversational-agent

Version:

Hashgraph Online conversational AI agent implementing HCS-10 communication, HCS-2 registries, and content inscription on Hedera. https://hol.org

27 lines (26 loc) 1 kB
/** * Utility class for formatting tool responses into user-friendly messages */ export declare class ResponseFormatter { /** * Checks if a parsed response contains HashLink block data for interactive rendering */ static isHashLinkResponse(parsed: unknown): boolean; /** * Formats HashLink block response with simple text confirmation * HTML template rendering is handled by HashLinkBlockRenderer component via metadata */ static formatHashLinkResponse(parsed: Record<string, unknown>): string; /** * Checks if a parsed response is an inscription response that needs formatting */ static isInscriptionResponse(parsed: unknown): boolean; /** * Formats inscription response into user-friendly message */ static formatInscriptionResponse(parsed: Record<string, unknown>): string; /** * Main formatting method that determines the best response format */ static formatResponse(toolOutput: string): string; }