Class MarkdownToDocxTool
Converts Markdown text to a DOCX file.
public sealed class MarkdownToDocxTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
MarkdownToDocxTool
- Implements
- Inherited Members
Examples
Producing a Word document from a Markdown draft:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Document;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new MarkdownToDocxTool()))
.Build();
var result = await agent.RunAsync(@"Render C:\drafts\report.md as report.docx in the same folder.");
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.