Table of Contents

Class OcrRecognizeTool

Namespace
LMKit.Agents.Tools.BuiltIn.Document
Assembly
LM-Kit.NET.dll

Extract text from images using OCR (Optical Character Recognition).

Supports 34 languages including English, French, German, Chinese, Japanese, Arabic, and more.

public sealed class OcrRecognizeTool : IBuiltInTool, ITool, IToolMetadata, IDisposable
Inheritance
OcrRecognizeTool
Implements
Inherited Members

Examples

var helpers = new OcrToolHelpers();
var recognizeTool = new OcrRecognizeTool(helpers);
var infoTool = new OcrInfoTool();
registry.Register(recognizeTool);
registry.Register(infoTool);

Constructors

OcrRecognizeTool()

Initializes a new instance with default settings.

Properties

Description

Gets a concise description of what the tool does.

InputSchema

Gets the JSON Schema defining the expected input arguments.

Name

Gets the stable, unique identifier for this tool.

Methods

Dispose()
InvokeAsync(string, CancellationToken)

Executes the tool with the specified JSON arguments.

Share