Table of Contents

Class ColorModifyTool

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

Modifies colors: lighten, darken, saturate, desaturate, complement, blend.

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

Examples

Generating a hover-state color from a brand color:

using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Utility;

var agent = Agent.CreateBuilder(model) .WithTools(t => t.Register(new ColorModifyTool())) .Build();

var result = await agent.RunAsync("Darken #1E90FF by 12% for a hover state.");

Constructors

ColorModifyTool()

Initializes a new instance of the ColorModifyTool class.

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