Table of Contents

Class CountryLookupTool

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

A built-in tool for looking up country information.

Look up country information by name, code, phone prefix, currency, or language.

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

Examples

Looking up a country by ISO code:

using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Data;

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

var result = await agent.RunAsync("What's the capital and currency for ISO code JP?");

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