Table of Contents

Class RandomChoiceTool

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

Performs random choice operations: UUID generation, pick/shuffle items, dice rolls, and coin flips.

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

Examples

var tool = new RandomChoiceTool();
registry.Register(tool);

// Agent can now: generate UUIDs, pick random items, shuffle, roll dice, flip coins

Constructors

RandomChoiceTool()

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.

Share