Class CompressListTool
Lists entries in a ZIP archive and shows archive information.
public sealed class CompressListTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
CompressListTool
- Implements
- Inherited Members
Examples
Inspecting an archive's contents before extraction:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.IO;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new CompressListTool()))
.Build();
var result = await agent.RunAsync(@"List the contents of C:\downloads\release.zip and tell me the largest entry.");
Constructors
- CompressListTool()
Initializes a new instance with default settings.
- CompressListTool(CompressToolOptions)
Initializes a new instance with custom options.
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.