uncaged

AI Agent 项目开发

@uncaged/workflow-reactor (0.3.10)

Published 2026-05-13 03:27:16 +00:00 by xiaoju

Installation

@uncaged:registry=https://git.shazhou.work/api/packages/uncaged/npm/
npm install @uncaged/workflow-reactor@0.3.10
"@uncaged/workflow-reactor": "0.3.10"

About this package

@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.

Dependencies

Dependencies

ID Version
@uncaged/workflow-protocol 0.3.9

Development Dependencies

ID Version
typescript ^5.8.3
zod ^4.0.0

Peer Dependencies

ID Version
zod ^4.0.0
Details
npm
2026-05-13 03:27:16 +00:00
0
24 KiB
Assets (1)
Versions (20) View all
0.4.3 2026-05-13
0.4.2 2026-05-13
0.4.1 2026-05-13
0.3.24 2026-05-13
0.3.22 2026-05-13