One of my toolkit has a tool call which submits a request to some third party tool which will send response as a callback at the sometime in future. Once I receive the callback response, I need to add it to history and trigger our Team agent again. But once I add it like this:
message = Message(role="tool", content="Callback received successfully.")
team.print_response(message)
I can’t add it as role tool
because I’m getting below error:
{"error": "Invalid parameter: messages with role 'tool' must be a response to a preceeding message with 'tool_calls'."}
How to handle this case ?
@Monali @Dirk @ayush @monalisha @kausmos please assist me with this. This is a blocker and it is super urgent.