json.dumps escapes Chinese characters to \\uXXXX in tool/skill outputs
Author: xingjy10Created Aug 10, 2026Updated Sep 30, 2026
Description
json.dumps() defaults to ensure_ascii=True, which escapes non-ASCII characters to \\\uXXXX format. When tool return values, skill instructions, or agent messages contain Chinese characters, LLMs receive garbled text.
Steps to Reproduce
- Create a skill with Chinese instructions
- Agent calls
get_skill_instructions - The returned JSON contains
\\\uXXXXinstead of readable Chinese
Expected Behavior
Chinese characters should be preserved as-is in JSON output.
Affected Areas
All json.dumps() calls in LLM/human-readable paths:
tools/— Tool return valuesskills/agent_skills.py— Skill instructionsagent/,team/— Agent messagesutils/— Prompts, loggingos/— API responses
Source: agno-agi/agno