xiaoju
|
c04e7c31af
|
refactor: move llmExtract, extractMeta, buildDescriptor, types to workflow-util-role
workflow-role-llm now only contains LLM-as-agent specifics:
- createRole (wires agent + extract)
- createLlmAdapter (OpenAI chat completions agent)
workflow-util-role now provides all role infrastructure:
- decorators (decorateRole, withDryRun, onFail)
- llmExtract / extractMetaOrThrow (structured extraction)
- buildDescriptorFromRoles (zod → JSON Schema)
- LlmProvider, LlmMessage types
|
2026-05-06 08:13:27 +00:00 |
|