Document (DOCX) operations for LLM agents: open/create, paragraphs, tables,
headers/footers, charts, images. Implements AIOrchestrator.API.IAgentTool.
A plugin for hosts built on Graphene.AIOrchestrator
(e.g. AIOffice): the assembly is loaded dynamically from the host's Tools/ folder
at startup (or hot-added via a filesystem watcher) and its public methods become
LLM-callable tools through the UISupportGeneric.Analyzer.GeToolDefinitions
reflection pipeline.
- Host with dynamic loading (AIOffice): drop
DocumentTool.dll+DocumentTool.xmlinto the host'sTools/directory. The host scans the folder at startup and on new files (30 s debounce). - Host with static reference:
ProjectReferencethe project (orPackageReference Graphene.DocumentTool) and registertypeof(AIOrchestrator.API.DocumentTool)in the agent types array passed toAgentHarness.ExecuteAction.
dotnet build -c Release
Compiled as AnyCPU, RID-neutral: the same .dll runs on Linux, Windows, macOS
and iOS. The XML documentation file (DocumentTool.xml) is generated and must ship next
to the assembly — UISupportGeneric reads method/parameter descriptions from it.
Graphene.DocumentTool, date-versioned 1.yy.MM.dd, published automatically on every
master push (.github/workflows/publish.yml, NUGET_API_KEY repo secret).
Local pack pushes with the NuGetApiKey env var; skip with -p:SkipNuGetPush=true.
See LICENSE.md.