Table of Contents

Class NetworkTool

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

A built-in tool for network diagnostics and connectivity checks.

Provides ping, DNS lookup, port checking, and connectivity testing.

public sealed class NetworkTool : ITool
Inheritance
NetworkTool
Implements
Inherited Members

Examples

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

// Agent can now: ping hosts, resolve DNS, check if ports are open

Constructors

NetworkTool()

Initializes a new instance with default settings.

NetworkTool(NetworkToolOptions)

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.