Table of Contents

Class CompressAddTool

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

Adds files to an existing ZIP archive.

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

Examples

Appending newly generated artifacts to an existing archive:

using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.IO;

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

var result = await agent.RunAsync(@"Add C:\out\extra.pdf into C:\out\Q2.zip.");

Constructors

CompressAddTool()

Initializes a new instance with default settings.

CompressAddTool(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.

Share