@moda-ai/cli 1.55.0 → 1.55.2
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/cli.js +2 -1
- package/package.json +1 -1
- package/skills/integration/index.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -601,7 +601,8 @@ function frustrationsFromEmotions(response) {
|
|
|
601
601
|
const pagination = asRecord(response.pagination) ?? {};
|
|
602
602
|
const byFamily = asRecord(summary.by_family) ?? {};
|
|
603
603
|
const totalAnalyzed = asNumber(summary.conversations_analyzed) ?? 0;
|
|
604
|
-
const
|
|
604
|
+
const byFamilyConversations = asRecord(summary.conversations_by_family);
|
|
605
|
+
const frustrated = asNumber(byFamilyConversations?.frustration) ?? asNumber(byFamily.frustration) ?? 0;
|
|
605
606
|
const frustrations = response.detections.map((item) => asRecord(item)).filter((row) => row !== null && (row.family === undefined || row.family === "frustration")).map(({ conversation_context, score, is_detected, ...row }) => ({
|
|
606
607
|
...row,
|
|
607
608
|
is_frustrated: is_detected === true,
|
package/package.json
CHANGED