UNPKG

@hashgraphonline/standards-agent-kit

Version:

A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication.

35 lines (34 loc) 1.24 kB
import { StructuredTool } from '@langchain/core/tools'; import { z } from 'zod'; import { HCS10Client } from '../hcs10/HCS10Client'; /** * Tool for retrieving the HCS-11 profile associated with a Hedera account ID. * Utilizes the HCS10Client's retrieveProfile method, which handles fetching. */ export declare class RetrieveProfileTool extends StructuredTool { name: string; description: string; private client; private logger; schema: z.ZodObject<{ accountId: z.ZodOptional<z.ZodString>; disableCache: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { accountId?: string | undefined; disableCache?: boolean | undefined; }, { accountId?: string | undefined; disableCache?: boolean | undefined; }>; /** * Creates a new RetrieveProfileTool instance. * @param client - An instance of HCS10Client. */ constructor(client: HCS10Client); /** * Executes the profile retrieval. * @param input - The input object containing accountId and optional disableCache flag. * @returns A JSON string of the profile on success, or an error message string. */ _call(input: z.infer<typeof this.schema>): Promise<string>; }