ca644dabaa
- All @uncaged/* packages → 0.4.0 - Internal deps: workspace:* → workspace:^ (resolves to ^0.4.0 on publish) - Fix exports: add 'bun' condition for local dev (src), 'import' for consumers (dist) - Remove stale 'main: src/index.ts' from 6 packages - Fix publish.sh topo sort to match workspace:^ prefix 星月 <xingyue@shazhou.work>
@uncaged/workflow-reactor
LLM calling abstraction and thread “reactor” for structured tool invocation.
What This Package Does
It exposes createLlmFn (chat completion wrapper) and createThreadReactor (multi-turn tool loop configuration) plus supporting message/tool types. @uncaged/workflow-execute consumes this for extractor and supervisor paths that talk to OpenAI-style APIs with tools.
Key Exports
From src/index.ts:
- Functions:
createLlmFn,createThreadReactor - Types:
ChatMessage,LlmFn,StructuredToolSpec,ThreadReactorConfig,ThreadReactorFn,ThreadReactorInvokeArgs,ToolCall,ToolDefinition
Dependencies
- Workspace:
@uncaged/workflow-protocol - Peer:
zod^4
Usage
import { createLlmFn, createThreadReactor } from "@uncaged/workflow-reactor";
// Usually composed inside @uncaged/workflow-execute rather than directly by applications.