Skip to content

Keys in Live API tool responses are incorrectly re-cased #1514

@vsomayaji

Description

@vsomayaji

Starting in 1.42.0, keys in Live API tool responses are getting re-cased from snake case to camel case.

For example, the user_name in this response:

function_responses.append(types.FunctionResponse(
    id=fc.id,
    name=fc.name,
    response={"user_name": "Buffy"},
    scheduling=types.FunctionResponseScheduling.SILENT,
))

Now gets converted to userName, breaking previously working integrations.

This new behavior was introduced in #1420:

6c46d54#diff-159b877dd147790014e1eceed4e04d6dc6bb4edaa64155847082e6d3dff03cc9R416-R417

Metadata

Metadata

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions