Table of Contents

Class SmtpSendTool

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

A built-in tool for sending emails via SMTP.

Enables agents to compose and send email messages with optional CC, BCC, reply-to, priority, and HTML body support.

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

Examples

var tool = new SmtpSendTool(new SmtpToolOptions
{
    Host = "smtp.example.com",
    Port = 587,
    Username = "user@example.com",
    Password = "password",
    UseSsl = true
});
registry.Register(tool);

Constructors

SmtpSendTool(SmtpToolOptions)

Initializes a new instance with the specified options.

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