Class IpCalcAdjacentTool
A built-in tool for navigating to adjacent IP addresses.
Get the next or previous IP address.
public sealed class IpCalcAdjacentTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
IpCalcAdjacentTool
- Implements
- Inherited Members
Examples
Asking an agent for the IP address that immediately follows another:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Numeric;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new IpCalcAdjacentTool()))
.Build();
var result = await agent.RunAsync("What is the next IP after 10.0.0.255?");
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.