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.

34 lines (33 loc) 1.25 kB
import { StructuredTool, ToolParams } from '@langchain/core/tools'; import { z } from 'zod'; import { HCS10Client } from '../hcs10/HCS10Client'; import { IStateManager } from '../state/state-types'; export interface AcceptConnectionRequestToolParams extends ToolParams { hcsClient: HCS10Client; stateManager: IStateManager; } /** * A tool specifically for accepting incoming connection requests. */ export declare class AcceptConnectionRequestTool extends StructuredTool { name: string; description: string; schema: z.ZodObject<{ requestId: z.ZodNumber; hbarFee: z.ZodOptional<z.ZodNumber>; exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { requestId: number; hbarFee?: number | undefined; exemptAccountIds?: string[] | undefined; }, { requestId: number; hbarFee?: number | undefined; exemptAccountIds?: string[] | undefined; }>; private hcsClient; private stateManager; private logger; constructor({ hcsClient, stateManager, ...rest }: AcceptConnectionRequestToolParams); protected _call({ requestId, hbarFee, exemptAccountIds, }: z.infer<this['schema']>): Promise<string>; }