Class MimeInfoTool
Gets MIME type details: category, whether text or binary.
public sealed class MimeInfoTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
MimeInfoTool
- Implements
- Inherited Members
Examples
Letting an agent decide whether to read a file as text or bytes:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Utility;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new MimeInfoTool()))
.Build();
var result = await agent.RunAsync("Is application/zip a text or binary MIME type?");
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.