I integrated a client tool into my project, and it successfully triggered on device. However, whenever I send a response back to the tool using ClientToolResult.success(response), the agent disconnects. Here are the logs.
[log] Tool: Result created successfully, returning to agent
D/FlutterWebRTCPlugin( 6742): trackDispose() track is null
I/flutter ( 6742): Elevenlabs::π Disconnected: agent
Even the example app using the client tool shows the same issue
Logs:
[log] Tool: getUserLocation called
[log] Tool: Getting current location...
[log] Tool: Location retrieved - lat: 38.458458, lng: 71.6194892
I/ViewRootImpl@b7c2534MainActivity: onDisplayChanged oldDisplayState=2 newDisplayState=2
D/FlutterWebRTCPlugin(31656): onConnectionChangeCLOSED
and same agent and client tool working with web app