@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
135 lines (134 loc) • 5.01 kB
TypeScript
import { z } from 'zod';
import { BaseHCS10TransactionTool } from './base-hcs10-tools';
import { HCS10TransactionToolParams } from './hcs10-tool-params';
import { BaseServiceBuilder } from 'hedera-agent-kit';
declare const ConnectionMonitorZodSchema: z.ZodObject<{
acceptAll: z.ZodOptional<z.ZodBoolean>;
targetAccountId: z.ZodOptional<z.ZodString>;
hbarFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
amount: z.ZodNumber;
collectorAccount: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
amount: number;
collectorAccount?: string | undefined;
}, {
amount: number;
collectorAccount?: string | undefined;
}>, "many">>;
tokenFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
amount: z.ZodNumber;
tokenId: z.ZodString;
collectorAccount: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
amount: number;
tokenId: string;
collectorAccount?: string | undefined;
}, {
amount: number;
tokenId: string;
collectorAccount?: string | undefined;
}>, "many">>;
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
monitorDurationSeconds: z.ZodOptional<z.ZodNumber>;
defaultCollectorAccount: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
acceptAll?: boolean | undefined;
targetAccountId?: string | undefined;
monitorDurationSeconds?: number | undefined;
hbarFees?: {
amount: number;
collectorAccount?: string | undefined;
}[] | undefined;
tokenFees?: {
amount: number;
tokenId: string;
collectorAccount?: string | undefined;
}[] | undefined;
exemptAccountIds?: string[] | undefined;
defaultCollectorAccount?: string | undefined;
}, {
acceptAll?: boolean | undefined;
targetAccountId?: string | undefined;
monitorDurationSeconds?: number | undefined;
hbarFees?: {
amount: number;
collectorAccount?: string | undefined;
}[] | undefined;
tokenFees?: {
amount: number;
tokenId: string;
collectorAccount?: string | undefined;
}[] | undefined;
exemptAccountIds?: string[] | undefined;
defaultCollectorAccount?: string | undefined;
}>;
/**
* A tool for monitoring incoming connection requests and accepting them with optional fee settings.
*/
export declare class ConnectionMonitorTool extends BaseHCS10TransactionTool<typeof ConnectionMonitorZodSchema> {
name: string;
description: string;
specificInputSchema: z.ZodObject<{
acceptAll: z.ZodOptional<z.ZodBoolean>;
targetAccountId: z.ZodOptional<z.ZodString>;
hbarFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
amount: z.ZodNumber;
collectorAccount: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
amount: number;
collectorAccount?: string | undefined;
}, {
amount: number;
collectorAccount?: string | undefined;
}>, "many">>;
tokenFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
amount: z.ZodNumber;
tokenId: z.ZodString;
collectorAccount: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
amount: number;
tokenId: string;
collectorAccount?: string | undefined;
}, {
amount: number;
tokenId: string;
collectorAccount?: string | undefined;
}>, "many">>;
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
monitorDurationSeconds: z.ZodOptional<z.ZodNumber>;
defaultCollectorAccount: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
acceptAll?: boolean | undefined;
targetAccountId?: string | undefined;
monitorDurationSeconds?: number | undefined;
hbarFees?: {
amount: number;
collectorAccount?: string | undefined;
}[] | undefined;
tokenFees?: {
amount: number;
tokenId: string;
collectorAccount?: string | undefined;
}[] | undefined;
exemptAccountIds?: string[] | undefined;
defaultCollectorAccount?: string | undefined;
}, {
acceptAll?: boolean | undefined;
targetAccountId?: string | undefined;
monitorDurationSeconds?: number | undefined;
hbarFees?: {
amount: number;
collectorAccount?: string | undefined;
}[] | undefined;
tokenFees?: {
amount: number;
tokenId: string;
collectorAccount?: string | undefined;
}[] | undefined;
exemptAccountIds?: string[] | undefined;
defaultCollectorAccount?: string | undefined;
}>;
constructor(params: HCS10TransactionToolParams);
protected callBuilderMethod(builder: BaseServiceBuilder, specificArgs: z.infer<typeof ConnectionMonitorZodSchema>): Promise<void>;
}
export {};