Class CompressCreateTool
Creates a new ZIP archive from files and directories.
public sealed class CompressCreateTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
CompressCreateTool
- Implements
- Inherited Members
Examples
Packaging a folder as a single ZIP for hand-off:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.IO;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new CompressCreateTool()))
.Build();
var result = await agent.RunAsync(@"Zip C:\reports\2026-Q2 into C:\out\Q2.zip.");
Constructors
- CompressCreateTool()
Initializes a new instance with default settings.
- CompressCreateTool(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.