Skip to content

When using realtime agent with websocket, truncate events are sent even when no interruption #2370

@nbondoux

Description

@nbondoux

Describe the bug

When using realtime agent with websocket, and not using playback tracker, truncate events are sent even when there is no interruption.

  1. the llm answers an error message since the audio_end_ms parameter is bigger than the length of the message to truncate
  2. it seems truncate events have side effect, even when they don't truncate anything. We observed a change of behaviour from the model, with the tendency to repeat itself.
    I would suggest to send truncate events only when it is needed

Debug information

  • Agents SDK version: 0.6.9
  • Python version: Python 3.13

Repro steps

Expected behavior

truncate event to be generated only when truncation is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions