Class IpCalcParseTool
A built-in tool for parsing and validating IP addresses.
Get type, version, check if private.
public sealed class IpCalcParseTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
IpCalcParseTool
- Implements
- Inherited Members
Examples
Letting an agent classify whether an address is private or public:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Numeric;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new IpCalcParseTool()))
.Build();
var result = await agent.RunAsync("Is 192.168.1.42 a private address?");
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.