The following comment in the SDK/docs is unclear:
// Update message such as transcript
// You can get the transcript with update.transcript
// Please note that transcript only contains last 5 sentences to avoid the payload being too large
retellWebClient.on("update", (update) => {
// console.log(update);
});
Source: https://docs.retellai.com/deploy/web-call#listen-to-events
Through testing, the transcript array appears to be capped at 5 entries, where each entry is a { role, content } object. However, it's unclear whether the limit is:
5 turns (array entries)
5 sentences across all content strings
Something else entirely
Could you clarify what exactly "5 sentences" refers to, and update the comment accordingly so developers can build correct mental models when integrating?
The following comment in the SDK/docs is unclear:
Source: https://docs.retellai.com/deploy/web-call#listen-to-events
Through testing, the transcript array appears to be capped at 5 entries, where each entry is a { role, content } object. However, it's unclear whether the limit is:
5 turns (array entries)
5 sentences across all content strings
Something else entirely
Could you clarify what exactly "5 sentences" refers to, and update the comment accordingly so developers can build correct mental models when integrating?