Table of Contents

Class EmlToPdfTool

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

Converts an EML (email) file into a PDF document with embedded attachments.

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

Examples

Archiving an email thread as a single PDF:

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

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

var result = await agent.RunAsync(@"Convert C:\mail\thread.eml to a PDF for archiving.");

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