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.

54 lines (53 loc) 1.67 kB
import { z } from 'zod'; import { BaseHCS2QueryTool } from './base-hcs2-tools'; import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager'; /** * Schema for updating an entry in HCS-2 */ declare const updateEntrySchema: z.ZodObject<{ registryTopicId: z.ZodString; targetTopicId: z.ZodString; uid: z.ZodString; metadata: z.ZodOptional<z.ZodString>; memo: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { uid: string; registryTopicId: string; targetTopicId: string; metadata?: string | undefined; memo?: string | undefined; }, { uid: string; registryTopicId: string; targetTopicId: string; metadata?: string | undefined; memo?: string | undefined; }>; /** * Tool for updating entries in HCS-2 registries */ export declare class UpdateEntryTool extends BaseHCS2QueryTool<typeof updateEntrySchema> { name: string; description: string; get specificInputSchema(): z.ZodObject<{ registryTopicId: z.ZodString; targetTopicId: z.ZodString; uid: z.ZodString; metadata: z.ZodOptional<z.ZodString>; memo: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { uid: string; registryTopicId: string; targetTopicId: string; metadata?: string | undefined; memo?: string | undefined; }, { uid: string; registryTopicId: string; targetTopicId: string; metadata?: string | undefined; memo?: string | undefined; }>; protected executeQuery(params: z.infer<typeof updateEntrySchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>; } export {};