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

49 lines (48 loc) 1.85 kB
import { z } from 'zod'; import { BaseInscriberQueryTool } from './base-inscriber-tools'; import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager'; /** * Schema for inscribing from file */ declare const inscribeFromFileSchema: z.ZodObject<{ filePath: z.ZodString; mode: z.ZodOptional<z.ZodEnum<["file", "hashinal"]>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; chunkSize: z.ZodOptional<z.ZodNumber>; waitForConfirmation: z.ZodOptional<z.ZodBoolean>; timeoutMs: z.ZodOptional<z.ZodNumber>; apiKey: z.ZodOptional<z.ZodString>; quoteOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { quoteOnly: boolean; filePath: string; metadata?: Record<string, unknown> | undefined; tags?: string[] | undefined; mode?: "file" | "hashinal" | undefined; chunkSize?: number | undefined; waitForConfirmation?: boolean | undefined; timeoutMs?: number | undefined; apiKey?: string | undefined; }, { filePath: string; metadata?: Record<string, unknown> | undefined; tags?: string[] | undefined; mode?: "file" | "hashinal" | undefined; chunkSize?: number | undefined; waitForConfirmation?: boolean | undefined; timeoutMs?: number | undefined; apiKey?: string | undefined; quoteOnly?: boolean | undefined; }>; /** * Tool for inscribing content from file */ export declare class InscribeFromFileTool extends BaseInscriberQueryTool<typeof inscribeFromFileSchema> { name: string; description: string; get specificInputSchema(): typeof inscribeFromFileSchema; protected executeQuery(params: z.infer<typeof inscribeFromFileSchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>; private getMimeType; } export {};