@saturn-universe/core 0.1.0 → 0.1.1
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/execution.js +3 -0
- package/package.json +1 -1
package/dist/execution.js
CHANGED
|
@@ -20,6 +20,9 @@ export function defaultModelTotalTimeoutMs(baselineMs, effort) {
|
|
|
20
20
|
}
|
|
21
21
|
export const maxModelReasoningSummaryLength = 32 * 1024;
|
|
22
22
|
export function modelReasoningSummary(response, streamed) {
|
|
23
|
+
const captured = response.continuation.providerMetadata.reasoningSummary;
|
|
24
|
+
if (typeof captured === 'string' && captured.trim())
|
|
25
|
+
return captured.slice(0, maxModelReasoningSummaryLength);
|
|
23
26
|
const canonical = response.continuation.outputItems
|
|
24
27
|
.flatMap((item) => item.kind === 'reasoning'
|
|
25
28
|
? item.value.summary.flatMap((part) => part.type === 'summary_text' && typeof part.text === 'string' ? [part.text] : [])
|