Add podcast research metadata mapping and summary sections

This commit is contained in:
ي
2026-04-19 16:51:51 +05:30
parent 280159669b
commit 95edd7d470
3 changed files with 89 additions and 0 deletions

View File

@@ -198,6 +198,8 @@ const mapExaResearchResponse = (response: any): Research => {
source_indices: insight.source_indices || []
}));
// Backend keys must match PodcastExaResearchResponse exactly:
// expert_quotes, listener_cta_suggestions, mapped_angles
const expertQuotes = (response.expert_quotes || []).map((eq: any) => ({
quote: eq.quote || eq.text || "",
source_index: eq.source_index ?? 0