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)
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:
adk-python/src/google/adk/flows/llm_flows/_output_schema_processor.py
Line 110 in 168c724
This line could be changed with ensure_ascii=False:
json.dumps(func_response.response, ensure_ascii=False)