c2a8f2d81b
Migrated from nerve/workflow-utils: - createRole with zod@4 schema → typed meta + JSON Schema - createLlmAdapter — LLM provider abstraction - llmExtract/llmExtractWithRetry — structured output extraction - decorateRole/withDryRun/onFail — role decorators - buildDescriptorFromRoles — auto-generate descriptor from zod schemas - Zero nerve-core dependencies - 83 tests pass, biome clean Closes #9 小橘 <xiaoju@shazhou.work>
23 lines
698 B
TypeScript
23 lines
698 B
TypeScript
export { buildDescriptorFromRoles, type RoleDescriptorInput } from "./build-descriptor.js";
|
|
export { chatCompletionText, createLlmAdapter, type LlmChatError } from "./create-llm-adapter.js";
|
|
export { type CreateRoleArgs, createRole } from "./create-role.js";
|
|
export {
|
|
decorateRole,
|
|
type OnFailOptions,
|
|
onFail,
|
|
type RoleDecorator,
|
|
type WithDryRunOptions,
|
|
withDryRun,
|
|
} from "./decorators.js";
|
|
export {
|
|
extractMetaOrThrow,
|
|
type LlmError,
|
|
type LlmExtractArgs,
|
|
type LlmProvider,
|
|
llmErrorToCause,
|
|
llmExtract,
|
|
llmExtractWithRetry,
|
|
} from "./llm-extract.js";
|
|
export { schemaDefaults } from "./schema-defaults.js";
|
|
export type { LlmMessage, MetaExtractConfig } from "./types.js";
|