@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
TypeScript
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<{
requestKey: z.ZodString;
hbarFee: z.ZodOptional<z.ZodNumber>;
exemptAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
requestKey: string;
hbarFee?: number | undefined;
exemptAccountIds?: string[] | undefined;
}, {
requestKey: string;
hbarFee?: number | undefined;
exemptAccountIds?: string[] | undefined;
}>;
private hcsClient;
private stateManager;
private logger;
constructor({ hcsClient, stateManager, ...rest }: AcceptConnectionRequestToolParams);
protected _call({ requestKey, hbarFee, exemptAccountIds, }: z.infer<this['schema']>): Promise<string>;
}