@doclo/flows 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -620,8 +620,9 @@ type ExtractConfig = {
|
|
|
620
620
|
};
|
|
621
621
|
reasoning?: {
|
|
622
622
|
enabled?: boolean;
|
|
623
|
-
effort?: '
|
|
623
|
+
effort?: 'xhigh' | 'high' | 'medium' | 'low' | 'minimal' | 'none';
|
|
624
624
|
max_tokens?: number;
|
|
625
|
+
exclude?: boolean;
|
|
625
626
|
};
|
|
626
627
|
maxTokens?: number;
|
|
627
628
|
promptRef?: string;
|
package/dist/index.js
CHANGED
|
@@ -2502,11 +2502,12 @@ function validateFlow(flowDef, options = {}) {
|
|
|
2502
2502
|
}
|
|
2503
2503
|
}
|
|
2504
2504
|
if (cfg.reasoning) {
|
|
2505
|
-
|
|
2505
|
+
const validEfforts = ["xhigh", "high", "medium", "low", "minimal", "none"];
|
|
2506
|
+
if (cfg.reasoning.effort && !validEfforts.includes(cfg.reasoning.effort)) {
|
|
2506
2507
|
errors.push({
|
|
2507
2508
|
type: "invalid_config",
|
|
2508
2509
|
stepId,
|
|
2509
|
-
message: `Invalid reasoning effort: ${cfg.reasoning.effort}. Must be:
|
|
2510
|
+
message: `Invalid reasoning effort: ${cfg.reasoning.effort}. Must be one of: ${validEfforts.join(", ")}`
|
|
2510
2511
|
});
|
|
2511
2512
|
}
|
|
2512
2513
|
}
|