Table of Contents

Class HttpDownloadTool

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

Downloads a file from a URL to the local filesystem with streaming and size limits.

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

Constructors

HttpDownloadTool()

Initializes a new instance with default settings.

HttpDownloadTool(HttpToolOptions)

Initializes a new instance with custom options.

HttpDownloadTool(HttpClient, HttpToolOptions)

Initializes a new instance with an existing HttpClient.

Properties

Description

Gets a concise description of what the tool does.

InputSchema

Gets the JSON Schema defining the expected input arguments.

MaxDownloadSize

Gets or sets the maximum download size in bytes. 0 for unlimited. Default is 100 MB.

Name

Gets the stable, unique identifier for this tool.

Methods

Dispose()
InvokeAsync(string, CancellationToken)

Executes the tool with the specified JSON arguments.

Share