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.

84 lines (83 loc) 3.25 kB
import { z } from 'zod'; import { BaseInscriberQueryTool } from './base-inscriber-tools'; import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager'; /** * Schema for inscribing from buffer */ declare const inscribeFromBufferSchema: z.ZodObject<{ base64Data: z.ZodString; fileName: z.ZodString; mimeType: z.ZodOptional<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>; }, "strip", z.ZodTypeAny, { fileName: string; base64Data: string; tags?: string[] | undefined; metadata?: Record<string, unknown> | undefined; mimeType?: string | undefined; mode?: "file" | "hashinal" | undefined; chunkSize?: number | undefined; waitForConfirmation?: boolean | undefined; timeoutMs?: number | undefined; apiKey?: string | undefined; }, { fileName: string; base64Data: string; tags?: string[] | undefined; metadata?: Record<string, unknown> | undefined; mimeType?: string | undefined; mode?: "file" | "hashinal" | undefined; chunkSize?: number | undefined; waitForConfirmation?: boolean | undefined; timeoutMs?: number | undefined; apiKey?: string | undefined; }>; /** * Tool for inscribing content from buffer */ export declare class InscribeFromBufferTool extends BaseInscriberQueryTool<typeof inscribeFromBufferSchema> { name: string; description: string; get specificInputSchema(): z.ZodObject<{ base64Data: z.ZodString; fileName: z.ZodString; mimeType: z.ZodOptional<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>; }, "strip", z.ZodTypeAny, { fileName: string; base64Data: string; tags?: string[] | undefined; metadata?: Record<string, unknown> | undefined; mimeType?: string | undefined; mode?: "file" | "hashinal" | undefined; chunkSize?: number | undefined; waitForConfirmation?: boolean | undefined; timeoutMs?: number | undefined; apiKey?: string | undefined; }, { fileName: string; base64Data: string; tags?: string[] | undefined; metadata?: Record<string, unknown> | undefined; mimeType?: string | undefined; mode?: "file" | "hashinal" | undefined; chunkSize?: number | undefined; waitForConfirmation?: boolean | undefined; timeoutMs?: number | undefined; apiKey?: string | undefined; }>; protected executeQuery(params: z.infer<typeof inscribeFromBufferSchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>; } export {};