Table of Contents

Class CountryListTool

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

A built-in tool for listing countries or getting flag emojis.

List countries filtered by region, or get the flag emoji for a country code.

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

Examples

Listing the countries of a continent for a travel agent:

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

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

var result = await agent.RunAsync("List the South American countries with their flag emojis.");

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