fix: process all chunk messages for tool call logging, harden memory score normalization (#534, #531)

This commit is contained in:
Yijia-Xiao
2026-04-13 07:21:33 +00:00
parent b0f6058299
commit fa4d01c23a
2 changed files with 19 additions and 23 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class FinancialSituationMemory:
# Build results
results = []
max_score = max(scores) if max(scores) > 0 else 1 # Normalize scores
max_score = float(scores.max()) if len(scores) > 0 and scores.max() > 0 else 1.0
for idx in top_indices:
# Normalize score to 0-1 range for consistency