UNPKG

@stll/folio-agents

Version:

Framework-neutral LLM tool layer over folio's ai-edits engine: function-calling tools so an agent can read and mutate .docx documents through @stll/folio-core.

12 lines • 684 B
import { FolioAgentChange } from "../types.js"; import { FolioReviewChange } from "@stll/folio-core/server"; /** * Map a core {@link FolioReviewChange} — from `FolioDocxReviewer.getChanges` * (headless bridge, `bridges/reviewer.ts`) or `DocxEditorRef.getTrackedChanges` * (live-editor bridge, `bridges/editor-ref.ts`) — to the tool-facing * {@link FolioAgentChange} shape. Both bridges read the same underlying * tracked-change record (`getTrackedChangesFromDoc` in * `@stll/folio-core/ai-edits`), so they share this one mapping instead of * drifting into two subtly different shapes. */ export declare const toAgentChange: (change: FolioReviewChange) => FolioAgentChange;