Class SemverParseTool
Parse, validate, and compare semantic version strings.
public sealed class SemverParseTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
SemverParseTool
- Implements
- Inherited Members
Examples
Comparing two release versions:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Utility;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new SemverParseTool()))
.Build();
var result = await agent.RunAsync("Is 1.2.10 newer than 1.2.9?");
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.