Skip to content

Bug: Sub Agent tool fails with Unexpected response type: <class 'starlette.responses.PlainTextResponse'> #11

Description

@nengoxx

Issue:

When running the sub-agent with long tool calls and web searches the last response back to the original LLM throws "Unexpected response type: <class 'starlette.responses.PlainTextResponse'>"

Logs (had the debug option disabled sadly, I might update with the option on, takes a while to run the whole thing):

Here are the logs where I asked it to search for something:

log.txt

Additional info:

Apparently it only happened in the last iteration, or when it reaches max iterations. The sub-agent successfully created the research note I asked for, but since it threw the error, it started from scratch again with the main agent.

How to reproduce:

Currently testing it, but I just gave it a long research task with an elaborate prompt that maxed the sub-agent iterations while also writing a note.

For shorter tasks that go for lower steps, the agent seems to have no problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions