Table of Contents

Class BitwiseConvertTool

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

A built-in tool for converting between integer and binary string, or decomposing flags.

Converts integers to binary representation, binary strings to integers, and analyzes flag bitmasks.

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

Examples

Decomposing a flag bitmask via natural language:

using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Numeric;

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

var result = await agent.RunAsync("Show me the binary representation of 0xCAFE.");

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