Table of Contents

Class BuiltInToolRegistrationOptions

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

Per-registration options that can override how selected built-in tools are instantiated.

public sealed class BuiltInToolRegistrationOptions
Inheritance
BuiltInToolRegistrationOptions
Inherited Members

Examples

Substituting a custom factory for a specific built-in tool:

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

var options = new BuiltInToolRegistrationOptions() .Override("websearch", () => BuiltInTools.CreateWebSearch(WebSearchTool.Provider.Brave, apiKey));

var agent = Agent.CreateBuilder(model) .WithTools(tools => tools.AddBuiltInProfile(BuiltInProfiles.All, options)) .Build();

Methods

Override(string, Func<ITool>)

Overrides the factory used to create a specific tool by name.

Xml(XmlToolOptions)

Configures XML optionized tools to be created with the provided XML options.

Share