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.

29 lines (28 loc) 1.1 kB
import { StructuredTool, ToolParams } from '@langchain/core/tools'; import { z } from 'zod'; import { HCS10Client } from '../hcs10/HCS10Client'; import { AIAgentCapability } from '@hashgraphonline/standards-sdk'; export interface FindRegistrationsToolParams extends ToolParams { hcsClient: HCS10Client; } /** * A tool to search for registered HCS-10 agents using the configured registry. */ export declare class FindRegistrationsTool extends StructuredTool { name: string; description: string; schema: z.ZodObject<{ accountId: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof AIAgentCapability>, "many">>; }, "strip", z.ZodTypeAny, { accountId?: string | undefined; tags?: AIAgentCapability[] | undefined; }, { accountId?: string | undefined; tags?: AIAgentCapability[] | undefined; }>; private hcsClient; private logger; constructor({ hcsClient, ...rest }: FindRegistrationsToolParams); protected _call({ accountId, tags, }: z.infer<this['schema']>): Promise<string>; }