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

84 lines (83 loc) 3.42 kB
import { z } from 'zod'; import { BaseInscriberQueryTool } from './base-inscriber-tools'; import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager'; declare const inscribeFromBufferSchema: z.ZodObject<{ base64Data: z.ZodUnion<[z.ZodString, z.ZodString]>; fileName: z.ZodString; mimeType: z.ZodOptional<z.ZodString>; 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; fileName: string; base64Data: string; metadata?: Record<string, unknown> | undefined; tags?: string[] | undefined; mimeType?: string | undefined; chunkSize?: number | undefined; waitForConfirmation?: boolean | undefined; timeoutMs?: number | undefined; apiKey?: string | undefined; }, { fileName: string; base64Data: string; metadata?: Record<string, unknown> | undefined; tags?: string[] | undefined; mimeType?: string | undefined; chunkSize?: number | undefined; waitForConfirmation?: boolean | undefined; timeoutMs?: number | undefined; apiKey?: string | undefined; quoteOnly?: boolean | undefined; }>; export declare class InscribeFromBufferTool extends BaseInscriberQueryTool<typeof inscribeFromBufferSchema> { name: string; description: string; private config; get specificInputSchema(): z.ZodObject<{ base64Data: z.ZodUnion<[z.ZodString, z.ZodString]>; fileName: z.ZodString; mimeType: z.ZodOptional<z.ZodString>; 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; fileName: string; base64Data: string; metadata?: Record<string, unknown> | undefined; tags?: string[] | undefined; mimeType?: string | undefined; chunkSize?: number | undefined; waitForConfirmation?: boolean | undefined; timeoutMs?: number | undefined; apiKey?: string | undefined; }, { fileName: string; base64Data: string; metadata?: Record<string, unknown> | undefined; tags?: string[] | undefined; mimeType?: string | undefined; chunkSize?: number | undefined; waitForConfirmation?: boolean | undefined; timeoutMs?: number | undefined; apiKey?: string | undefined; quoteOnly?: boolean | undefined; }>; protected _call(args: z.infer<typeof inscribeFromBufferSchema>, _runManager?: CallbackManagerForToolRun): Promise<string>; protected executeQuery(params: z.infer<typeof inscribeFromBufferSchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>; private validateInput; private validateContent; private executeInscription; private formatInscriptionResult; } export {};