Skip to content

Misleading comment: "last 5 sentences" — please clarify what the limit refers to #20

@pranavAtOlto

Description

@pranavAtOlto

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions