Table of Contents

Class IpCalcSubnetTool

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

A built-in tool for IP subnet calculations.

Network/broadcast address, contains check, IP range, CIDR/mask conversion.

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

Examples

Asking an agent to verify that a host falls within a subnet:

using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Numeric;

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

var result = await agent.RunAsync("Does 10.0.5.7 belong to the 10.0.0.0/16 subnet?");

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