Skip to content

set_model_response escape latin characters in final response #2936

@amenegola

Description

@amenegola

When defining output_schema in a LlmAgent with other tools, output schema processor executes json.dumps with ensure_ascii = True, making the agent respond with escaped latin characters, and therefore presenting responses not human readable:

return json.dumps(func_response.response)

This line could be changed with ensure_ascii=False:

json.dumps(func_response.response, ensure_ascii=False)

Metadata

Metadata

Assignees

Labels

bot triaged[Bot] This issue is triaged by ADK botcore[Component] This issue is related to the core interface and implementation

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions