8000 Empty assistant message after a hand-off · Issue #856 · openai/openai-agents-python · GitHub
[go: up one dir, main page]

Skip to content
Empty assistant message after a hand-off #856
Open
@molefrog

Description

@molefrog

Hi! In some rare cases, the agent I am running finishes with an empty message. I have a two-agent setup where one agent is researching information and then performs a hand-off to the agent that is supposed to prepare the final answer (both are using o4-mini models).

This is a rare behaviour, when the second agent just provides no output and stops. I tried to debug the code in my app, but then I looked at the traces and it seemed like the API request went through normally, but just returned nothing.

Image

I suppose this isn't related to the SDK either, but I am just trying to figure out what could be the reasons for the model return an empty message?
We are on the higher tier (30k RPM), so rate limiting shouldn't be an issue.

Environment

  • Agents SDK v0.0.17
  • Python 3.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0