@thanh01.pmt/curriculum-kit 1.4.30 → 1.4.31
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1089,7 +1089,12 @@ interface SlideProductionWorkflowOptions {
|
|
|
1089
1089
|
maxRetries?: number;
|
|
1090
1090
|
/** Max output tokens for hybrid generateText calls. Default 65536. */
|
|
1091
1091
|
maxOutputTokens?: number;
|
|
1092
|
-
/** When true
|
|
1092
|
+
/** When true, ALSO allows the legacy raw-fetch runner as a structured-output
|
|
1093
|
+
* fallback after generateObject fails. Default FALSE (telemetry mandate,
|
|
1094
|
+
* 2026-09-14): the raw path is invisible to the unified OpenTelemetry →
|
|
1095
|
+
* Langfuse trace, so it must never run unless explicitly opted in. When
|
|
1096
|
+
* enabled, pass runnerOptions.customInference so the fallback stays traced
|
|
1097
|
+
* (and satisfies CURRICULUM_KIT_REQUIRE_CUSTOM_INFERENCE=1). */
|
|
1093
1098
|
allowLegacyFallback?: boolean;
|
|
1094
1099
|
runnerOptions?: any;
|
|
1095
1100
|
onProgress?: (agent: string, message: string, meta?: any) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1089,7 +1089,12 @@ interface SlideProductionWorkflowOptions {
|
|
|
1089
1089
|
maxRetries?: number;
|
|
1090
1090
|
/** Max output tokens for hybrid generateText calls. Default 65536. */
|
|
1091
1091
|
maxOutputTokens?: number;
|
|
1092
|
-
/** When true
|
|
1092
|
+
/** When true, ALSO allows the legacy raw-fetch runner as a structured-output
|
|
1093
|
+
* fallback after generateObject fails. Default FALSE (telemetry mandate,
|
|
1094
|
+
* 2026-09-14): the raw path is invisible to the unified OpenTelemetry →
|
|
1095
|
+
* Langfuse trace, so it must never run unless explicitly opted in. When
|
|
1096
|
+
* enabled, pass runnerOptions.customInference so the fallback stays traced
|
|
1097
|
+
* (and satisfies CURRICULUM_KIT_REQUIRE_CUSTOM_INFERENCE=1). */
|
|
1093
1098
|
allowLegacyFallback?: boolean;
|
|
1094
1099
|
runnerOptions?: any;
|
|
1095
1100
|
onProgress?: (agent: string, message: string, meta?: any) => void;
|
package/dist/index.mjs
CHANGED
|
@@ -1827,7 +1827,7 @@ async function inferStructured(schema, systemPrompt, userPrompt, options, label)
|
|
|
1827
1827
|
} catch (aiSdkErr) {
|
|
1828
1828
|
console.warn(`[SlideProductionWorkflow] AI SDK generateObject failed for ${label}:`, aiSdkErr?.message || aiSdkErr);
|
|
1829
1829
|
}
|
|
1830
|
-
if (options.allowLegacyFallback
|
|
1830
|
+
if (options.allowLegacyFallback !== true) return null;
|
|
1831
1831
|
try {
|
|
1832
1832
|
const messages = [
|
|
1833
1833
|
{ role: "user", content: [systemPrompt, userPrompt].filter(Boolean).join("\n\n") }
|