Class CompressExtractTool
Extracts files from a ZIP archive to a destination directory.
public sealed class CompressExtractTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
CompressExtractTool
- Implements
- Inherited Members
Examples
Unpacking a delivered archive:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.IO;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new CompressExtractTool()))
.Build();
var result = await agent.RunAsync(@"Extract C:\downloads\release.zip into C:\apps\release.");
Constructors
- CompressExtractTool()
Initializes a new instance with default settings.
- CompressExtractTool(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.