@hashgraphonline/hedera-agent-kit
Version:
Build LLM-powered applications that interact with the Hedera Network. Create conversational agents that can understand user requests in natural language and execute Hedera transactions, or build backend systems that leverage AI for on-chain operations.
29 lines (27 loc) • 1.06 kB
TypeScript
import { z } from 'zod';
import { Tool, ToolParams } from '@langchain/core/tools';
import { HederaAgentKit } from '../../../agent/agent';
import { Logger as StandardsSdkLogger } from '@hashgraphonline/standards-sdk';
declare const GetFileContentsZodSchema: z.ZodObject<{
fileId: z.ZodString;
outputEncoding: z.ZodDefault<z.ZodOptional<z.ZodEnum<["utf8", "base64"]>>>;
}, "strip", z.ZodTypeAny, {
fileId: string;
outputEncoding: "utf8" | "base64";
}, {
fileId: string;
outputEncoding?: "utf8" | "base64" | undefined;
}>;
export interface HederaGetFileContentsToolParams extends ToolParams {
hederaKit: HederaAgentKit;
logger?: StandardsSdkLogger;
}
export declare class HederaGetFileContentsTool extends Tool {
protected hederaKit: HederaAgentKit;
protected logger: StandardsSdkLogger;
name: string;
description: string;
constructor({ hederaKit, logger, ...rest }: HederaGetFileContentsToolParams);
protected _call(input: string | z.infer<typeof GetFileContentsZodSchema>): Promise<string>;
}
export {};