import { CallbackManagerForToolRun } from "@langchain/core/callbacks/manager"; import { Tool, type ToolParams } from "@langchain/core/tools"; import { JigsawStack } from "jigsawstack"; type JigsawStackType = ReturnType; export type VOCRInputParams = Omit["0"], "url">; export type VOCROutputParams = Awaited>; export interface JigsawStackVOCRParams extends ToolParams { /** * The API key to use. * @default {process.env.JIGSAWSTACK_API_KEY} */ apiKey?: string; /** * VOCR input parameters. if `file_store_key` is specified, provide an empty string to the `url` input. */ params: VOCRInputParams; } /** * A tool that leverages the JigsawStack VOCR API. * * This tool allows you to recognize, describe, and retrieve data from images with great accuracy. * * To use this tool, ensure that the `JIGSAWSTACK_API_KEY` environment variable is set. * You can create a free API key at [JigsawStack](https://jigsawstack.com). * * @example * ```typescript * const tool = new JigsawStackVOCR({ * params: { * prompt: "Describe the image in detail", * }, * }); * const res = await tool.invoke("https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/Collabo%201080x842.jpg?t=2024-03-22T09%3A22%3A48.442Z"); * console.log({ res }); * ``` */ export declare class JigsawStackVOCR extends Tool { client: JigsawStackType; static lc_name(): string; description: string; name: string; params: VOCRInputParams; constructor(fields: JigsawStackVOCRParams); protected _call(url: string, _runManager?: CallbackManagerForToolRun): Promise; } export {};