Skip to content

Issue with Client tool, Agent Disconnected on Sending Response using ClientToolResult.failure(response)Β #8

@amitappening

Description

@amitappening

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions