UNPKG

@hashgraphonline/conversational-agent

Version:

Hashgraph Online conversational AI agent implementing HCS-10 communication, HCS-2 registries, and content inscription on Hedera

27 lines (25 loc) 747 B
import { EntityAssociation } from '../memory/SmartMemoryManager'; export interface EntityResolverConfig { apiKey: string; modelName?: string; } /** * LLM-based entity resolver that replaces brittle regex patterns */ export declare class EntityResolver { private llm; constructor(config: EntityResolverConfig); /** * Resolve entity references using LLM instead of regex */ resolveReferences(message: string, entities: EntityAssociation[]): Promise<string>; /** * Extract entities from agent response using LLM */ extractEntities(response: unknown, userMessage: string): Promise<Array<{ id: string; name: string; type: string; transactionId?: string; }>>; }