After a tool call, the docs say I think I need to send a BidiGenerateContentToolResponse to the weboscket. I do not know the format, and the dosc are unclear. Any help would be appreciated, thanks!
The cookbook here used this, but its not for websockets:
function_response = types.FunctionResponse(
id=fc.id,
name=fc.name,
response={“result”: “ok”},
)
Im trying different variations of this:
tool_response_payload = {
“functionResponse”: {
“functionCallId”: tool_call_id,
“functionName”: tool_name,
}
}
print(f"📤 Sending tool response: {json.dumps(tool_response_payload, indent=2)}")
await ws.send(json.dumps(tool_response_payload))
}