Class QrCodeGenerateTool
A built-in tool for generating QR code data.
Generate QR codes as SVG for various content types: text, URL, WiFi, vCard, SMS, email, phone.
public sealed class QrCodeGenerateTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
QrCodeGenerateTool
- Implements
- Inherited Members
Examples
Producing a Wi-Fi QR code from inside a setup-assistant agent:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Data;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new QrCodeGenerateTool()))
.Build();
var result = await agent.RunAsync("Generate a Wi-Fi QR code for SSID 'GuestNet', WPA2, password 'welcome123'.");
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.