Table of Contents

Class HttpTool

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

A built-in tool for making HTTP requests.

Enables agents to fetch web content, call APIs, and interact with web services.

public sealed class HttpTool : ITool, IDisposable
Inheritance
HttpTool
Implements
Inherited Members

Examples

var tool = new HttpTool();
registry.Register(tool);

// Agent can now fetch URLs, call REST APIs, post data

Remarks

This tool provides real network capabilities that LLMs cannot perform on their own. Consider security implications when enabling this tool.

Constructors

HttpTool()

Initializes a new instance with default settings.

HttpTool(HttpToolOptions)

Initializes a new instance with custom options.

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

Name

Gets the stable, unique identifier for this tool.

Methods

Dispose()
InvokeAsync(string, CancellationToken)

Executes the tool with the specified JSON arguments.