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.

23 lines 981 B
import { FolioAgentToolDefinition } from "./types.js"; //#region src/providers.d.ts /** Anthropic Messages API tool-definition shape (`input_schema`, snake_case). */ type AnthropicToolDefinition = { name: string; description: string; input_schema: Record<string, unknown>; }; /** Map folio's provider-neutral tool definitions onto Anthropic's tool shape. */ declare const toAnthropicTools: (definitions: FolioAgentToolDefinition[]) => AnthropicToolDefinition[]; /** OpenAI Chat Completions / Responses API function-tool shape. */ type OpenAIToolDefinition = { type: "function"; function: { name: string; description: string; parameters: Record<string, unknown>; }; }; /** Map folio's provider-neutral tool definitions onto OpenAI's function-tool shape. */ declare const toOpenAITools: (definitions: FolioAgentToolDefinition[]) => OpenAIToolDefinition[]; //#endregion export { AnthropicToolDefinition, OpenAIToolDefinition, toAnthropicTools, toOpenAITools };