Class RandomNumberTool
Generates random floating-point or integer numbers within a range.
public sealed class RandomNumberTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
RandomNumberTool
- Implements
- Inherited Members
Examples
var tool = new RandomNumberTool();
registry.Register(tool);
// Agent can now: generate random numbers and integers
Constructors
- RandomNumberTool()
Initializes a new instance with default settings.
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.