@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
53 lines (52 loc) • 2.08 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 SendMessageToConnectionZodSchema: z.ZodObject<{
targetIdentifier: z.ZodOptional<z.ZodString>;
connectionId: z.ZodOptional<z.ZodString>;
agentId: z.ZodOptional<z.ZodString>;
message: z.ZodString;
disableMonitoring: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
message: string;
disableMonitoring: boolean;
targetIdentifier?: string | undefined;
connectionId?: string | undefined;
agentId?: string | undefined;
}, {
message: string;
targetIdentifier?: string | undefined;
connectionId?: string | undefined;
agentId?: string | undefined;
disableMonitoring?: boolean | undefined;
}>;
/**
* A tool to send a message to an agent over an established HCS-10 connection.
*/
export declare class SendMessageToConnectionTool extends BaseHCS10TransactionTool<typeof SendMessageToConnectionZodSchema> {
name: string;
description: string;
specificInputSchema: z.ZodObject<{
targetIdentifier: z.ZodOptional<z.ZodString>;
connectionId: z.ZodOptional<z.ZodString>;
agentId: z.ZodOptional<z.ZodString>;
message: z.ZodString;
disableMonitoring: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
message: string;
disableMonitoring: boolean;
targetIdentifier?: string | undefined;
connectionId?: string | undefined;
agentId?: string | undefined;
}, {
message: string;
targetIdentifier?: string | undefined;
connectionId?: string | undefined;
agentId?: string | undefined;
disableMonitoring?: boolean | undefined;
}>;
constructor(params: HCS10TransactionToolParams);
protected callBuilderMethod(builder: BaseServiceBuilder, specificArgs: z.infer<typeof SendMessageToConnectionZodSchema>): Promise<void>;
}
export {};