UNPKG

@hashgraphonline/hedera-agent-kit

Version:

Build LLM-powered applications that interact with the Hedera Network. Create conversational agents that can understand user requests in natural language and execute Hedera transactions, or build backend systems that leverage AI for on-chain operations.

114 lines (112 loc) 4.58 kB
import { z } from 'zod'; import { BaseHederaTransactionTool, BaseHederaTransactionToolParams } from '../common/base-hedera-transaction-tool'; import { BaseServiceBuilder } from '../../../builders/base-service-builder'; declare const CreateTopicZodSchemaCore: z.ZodObject<{ memo: z.ZodOptional<z.ZodString>; adminKey: z.ZodOptional<z.ZodString>; submitKey: z.ZodOptional<z.ZodString>; autoRenewPeriod: z.ZodOptional<z.ZodNumber>; autoRenewAccountId: z.ZodOptional<z.ZodString>; feeScheduleKey: z.ZodOptional<z.ZodString>; customFees: z.ZodOptional<z.ZodArray<z.ZodObject<{ feeCollectorAccountId: z.ZodString; denominatingTokenId: z.ZodOptional<z.ZodString>; amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>; }, "strip", z.ZodTypeAny, { feeCollectorAccountId: string; amount: string | number; denominatingTokenId?: string | undefined; }, { feeCollectorAccountId: string; amount: string | number; denominatingTokenId?: string | undefined; }>, "many">>; exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { memo?: string | undefined; adminKey?: string | undefined; submitKey?: string | undefined; autoRenewAccountId?: string | undefined; exemptAccountIds?: string[] | undefined; feeScheduleKey?: string | undefined; autoRenewPeriod?: number | undefined; customFees?: { feeCollectorAccountId: string; amount: string | number; denominatingTokenId?: string | undefined; }[] | undefined; }, { memo?: string | undefined; adminKey?: string | undefined; submitKey?: string | undefined; autoRenewAccountId?: string | undefined; exemptAccountIds?: string[] | undefined; feeScheduleKey?: string | undefined; autoRenewPeriod?: number | undefined; customFees?: { feeCollectorAccountId: string; amount: string | number; denominatingTokenId?: string | undefined; }[] | undefined; }>; export declare class HederaCreateTopicTool extends BaseHederaTransactionTool<typeof CreateTopicZodSchemaCore> { name: string; description: string; specificInputSchema: z.ZodObject<{ memo: z.ZodOptional<z.ZodString>; adminKey: z.ZodOptional<z.ZodString>; submitKey: z.ZodOptional<z.ZodString>; autoRenewPeriod: z.ZodOptional<z.ZodNumber>; autoRenewAccountId: z.ZodOptional<z.ZodString>; feeScheduleKey: z.ZodOptional<z.ZodString>; customFees: z.ZodOptional<z.ZodArray<z.ZodObject<{ feeCollectorAccountId: z.ZodString; denominatingTokenId: z.ZodOptional<z.ZodString>; amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>; }, "strip", z.ZodTypeAny, { feeCollectorAccountId: string; amount: string | number; denominatingTokenId?: string | undefined; }, { feeCollectorAccountId: string; amount: string | number; denominatingTokenId?: string | undefined; }>, "many">>; exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { memo?: string | undefined; adminKey?: string | undefined; submitKey?: string | undefined; autoRenewAccountId?: string | undefined; exemptAccountIds?: string[] | undefined; feeScheduleKey?: string | undefined; autoRenewPeriod?: number | undefined; customFees?: { feeCollectorAccountId: string; amount: string | number; denominatingTokenId?: string | undefined; }[] | undefined; }, { memo?: string | undefined; adminKey?: string | undefined; submitKey?: string | undefined; autoRenewAccountId?: string | undefined; exemptAccountIds?: string[] | undefined; feeScheduleKey?: string | undefined; autoRenewPeriod?: number | undefined; customFees?: { feeCollectorAccountId: string; amount: string | number; denominatingTokenId?: string | undefined; }[] | undefined; }>; namespace: string; /** * Topic Creation cannot be scheduled yet. */ protected neverScheduleThisTool: boolean; constructor(params: BaseHederaTransactionToolParams); protected getServiceBuilder(): BaseServiceBuilder; protected callBuilderMethod(builder: BaseServiceBuilder, specificArgs: z.infer<typeof CreateTopicZodSchemaCore>): Promise<void>; } export {};