Skip to content

ADK web sends confirmation response with snake_case #386

@r4inee

Description

@r4inee

Problem
When using the built in ADK web UI and a using a tool which requires confirmation (https://google.github.io/adk-docs/tools-custom/confirmation/), the component makes a request which sends function_response in snake_case https://github.com/google/adk-web/blob/f3d8b4173aa89ea6189cdf30d3f7b0ee7b0e88a5/src/app/core/services/pending-event.service.ts#L35C8-L35C25

Image

This works for adk-python but when using adk-java, the server deserialises the payload to GenAI types and expects json attributes in camel case https://github.com/google/adk-java/blob/6fa34397b73a363271d11feedfe31b9fdb45f640/dev/src/main/java/com/google/adk/web/dto/AgentRunRequest.java#L39, thus the confirmation flow is unable to continue.

Workaround
Using the remote confirmation request as per https://google.github.io/adk-docs/tools-custom/confirmation/.

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