Skip to content

[Bug]: OpenAIResponses + FunctionAgent always returns an empty string response when NOT streaming #19909

@jbrowning

Description

@jbrowning

Bug Description

When the following conditions are met:

  1. A FunctionAgent with tools
  2. When OpenAIResponses is the llm
  3. When the response is NOT streamed...

LlamaIndex will return an empty string response immediately after the tool call instead of fetching the LLM's final response.

Version

0.14.2

Steps to Reproduce

Example repo: https://github.com/jbrowning/llama-index-openairesponses-bug

Relevant Logs/Tracbacks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs to be triaged/prioritized

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions