Class MarkdownToPdfTool
Converts Markdown content to a PDF file with full formatting support.
public sealed class MarkdownToPdfTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
MarkdownToPdfTool
- Implements
- Inherited Members
Examples
Producing a printable PDF from a Markdown report:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Document;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new MarkdownToPdfTool()))
.Build();
var result = await agent.RunAsync(@"Render C:\reports\quarterly.md as quarterly.pdf.");
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.