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.
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.