shariq-pi-extensions 0.2.32 → 0.2.33
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.
|
@@ -292,7 +292,8 @@ const REQUIRED_SECTION_PATTERNS = [
|
|
|
292
292
|
|
|
293
293
|
export function validateSummaryOutput(response: AssistantMessage): string {
|
|
294
294
|
if (response.stopReason !== "stop") {
|
|
295
|
-
|
|
295
|
+
const errorDetails = response.errorMessage ? `: ${response.errorMessage}` : "";
|
|
296
|
+
throw new Error(`Compaction model did not complete successfully (stopReason="${response.stopReason}"${errorDetails}).`);
|
|
296
297
|
}
|
|
297
298
|
|
|
298
299
|
// Reject accidental tool calls
|