c04e7c31af
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
22 lines
563 B
TypeScript
22 lines
563 B
TypeScript
export {
|
|
buildDescriptorFromRoles,
|
|
decorateRole,
|
|
extractMetaOrThrow,
|
|
type LlmError,
|
|
type LlmExtractArgs,
|
|
type LlmMessage,
|
|
type LlmProvider,
|
|
llmErrorToCause,
|
|
llmExtract,
|
|
llmExtractWithRetry,
|
|
type MetaExtractConfig,
|
|
type OnFailOptions,
|
|
onFail,
|
|
type RoleDecorator,
|
|
type RoleDescriptorInput,
|
|
type WithDryRunOptions,
|
|
withDryRun,
|
|
} from "@uncaged/workflow-util-role";
|
|
export { chatCompletionText, createLlmAdapter, type LlmChatError } from "./create-llm-adapter.js";
|
|
export { type CreateRoleArgs, createRole } from "./create-role.js";
|