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

44 lines (43 loc) 1.72 kB
import { z } from 'zod'; import { BaseHCS10TransactionTool } from './base-hcs10-tools'; import { HCS10TransactionToolParams } from './hcs10-tool-params'; import { BaseServiceBuilder } from 'hedera-agent-kit'; declare const InitiateConnectionZodSchema: z.ZodObject<{ targetAccountId: z.ZodString; disableMonitor: z.ZodOptional<z.ZodBoolean>; memo: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { targetAccountId: string; memo?: string | undefined; disableMonitor?: boolean | undefined; }, { targetAccountId: string; memo?: string | undefined; disableMonitor?: boolean | undefined; }>; /** * A tool to actively START a NEW HCS-10 connection TO a target agent. * Requires the target agent's account ID. * It retrieves their profile, sends a connection request, and optionally waits for confirmation. * Use this tool ONLY to actively INITIATE an OUTGOING connection. */ export declare class InitiateConnectionTool extends BaseHCS10TransactionTool<typeof InitiateConnectionZodSchema> { name: string; description: string; specificInputSchema: z.ZodObject<{ targetAccountId: z.ZodString; disableMonitor: z.ZodOptional<z.ZodBoolean>; memo: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { targetAccountId: string; memo?: string | undefined; disableMonitor?: boolean | undefined; }, { targetAccountId: string; memo?: string | undefined; disableMonitor?: boolean | undefined; }>; constructor(params: HCS10TransactionToolParams); protected callBuilderMethod(builder: BaseServiceBuilder, specificArgs: z.infer<typeof InitiateConnectionZodSchema>): Promise<void>; } export {};