Table of Contents

Class CalcAggregateTool

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

A built-in tool for aggregate operations on number arrays.

Supports minimum, maximum, average, and sum over a collection of numbers.

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

Examples

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

// Agent can now calculate: min([3,1,4,1,5]), sum([10,20,30]), average([85,90,78]), etc.

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