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. https://hol.org

34 lines (33 loc) 1.35 kB
import { z } from 'zod'; import { BaseHCS2QueryTool } from './base-hcs2-tools'; import { HCS2RegistryType } from '@hashgraphonline/standards-sdk'; import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager'; /** * Schema for creating an HCS-2 registry */ declare const createRegistrySchema: z.ZodObject<{ registryType: z.ZodOptional<z.ZodNativeEnum<typeof HCS2RegistryType>>; ttl: z.ZodOptional<z.ZodNumber>; adminKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>; submitKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>; }, "strip", z.ZodTypeAny, { ttl?: number | undefined; registryType?: HCS2RegistryType | undefined; adminKey?: string | boolean | undefined; submitKey?: string | boolean | undefined; }, { ttl?: number | undefined; registryType?: HCS2RegistryType | undefined; adminKey?: string | boolean | undefined; submitKey?: string | boolean | undefined; }>; /** * Tool for creating HCS-2 registries */ export declare class CreateRegistryTool extends BaseHCS2QueryTool<typeof createRegistrySchema> { name: string; description: string; get specificInputSchema(): typeof createRegistrySchema; protected executeQuery(params: z.infer<typeof createRegistrySchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>; } export {};