@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.
49 lines (48 loc) • 2.02 kB
TypeScript
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, {
registryType?: HCS2RegistryType | undefined;
ttl?: number | undefined;
adminKey?: string | boolean | undefined;
submitKey?: string | boolean | undefined;
}, {
registryType?: HCS2RegistryType | undefined;
ttl?: number | 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(): 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, {
registryType?: HCS2RegistryType | undefined;
ttl?: number | undefined;
adminKey?: string | boolean | undefined;
submitKey?: string | boolean | undefined;
}, {
registryType?: HCS2RegistryType | undefined;
ttl?: number | undefined;
adminKey?: string | boolean | undefined;
submitKey?: string | boolean | undefined;
}>;
protected executeQuery(params: z.infer<typeof createRegistrySchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>;
}
export {};