feat: ReAct ExtractFn with tool-use #53

Merged
xiaoju merged 1 commits from feat/44-react-extract into main 2026-05-07 13:28:22 +00:00
Owner

What

extractMode: "react" enables multi-turn LLM extract with cas_get tool for Merkle DAG traversal.

Changes

  • types.ts — extractMode on RoleDefinition
  • react-extract.ts — ReAct loop with cas_get tool, max 10 rounds
  • create-workflow.ts — routes to reactExtract for react mode
  • All existing roles: extractMode "single" (no change)
  • 162 tests

Ref

Fixes #44, Refs #40

## What extractMode: "react" enables multi-turn LLM extract with cas_get tool for Merkle DAG traversal. ## Changes - `types.ts` — extractMode on RoleDefinition - `react-extract.ts` — ReAct loop with cas_get tool, max 10 rounds - `create-workflow.ts` — routes to reactExtract for react mode - All existing roles: extractMode "single" (no change) - 162 tests ## Ref Fixes #44, Refs #40
xiaoju added 1 commit 2026-05-07 13:28:13 +00:00
- RoleDefinition.extractMode: "single" | "react"
- reactExtract: multi-turn LLM with cas_get tool for DAG traversal
- Max 10 tool-call rounds, schema validation on final output
- create-workflow routes to reactExtract when extractMode is "react"
- All existing roles set to "single" (no behavior change)
- 162 tests passing

Fixes #44
xiaoju merged commit 7f64541c5b into main 2026-05-07 13:28:22 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#53