Table of Contents

Class MimeLookupTool

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

Looks up MIME types from file extensions, filenames, or content bytes.

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

Examples

Resolving a file's MIME type for an upload form:

using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Utility;

var agent = Agent.CreateBuilder(model) .WithTools(t => t.Register(new MimeLookupTool())) .Build();

var result = await agent.RunAsync("What MIME type should I send for a .webp upload?");

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

InvokeAsync(string, CancellationToken)

Executes the tool with the specified JSON arguments.

Share