Class MarkdownToHtmlTool
Converts Markdown text to HTML.
public sealed class MarkdownToHtmlTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
MarkdownToHtmlTool
- Implements
- Inherited Members
Examples
Rendering Markdown to HTML for a static-site preview:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Document;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new MarkdownToHtmlTool()))
.Build();
var result = await agent.RunAsync(@"Convert C:\posts\hello.md to hello.html.");
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.