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.

15 lines 750 B
import { FolioAgentChange } from "../types.js"; import { FolioReviewChange } from "@stll/folio-core/server"; //#region src/bridges/shared.d.ts /** * 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. */ declare const toAgentChange: (change: FolioReviewChange) => FolioAgentChange; //#endregion export { toAgentChange };