Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
background
Currently variable replace mechanism is a little rough, which convert AgentValue to string by json.dumps, then replace all variable reference in string, finally convert string to original type by json.loads. Often there's \n character in variable value, which let json.loads failed.
enhance
This issure propose a new mechanism which recursive scan all field in input paramter, render only str value with convert_template
2. Additional context or comments
No response
3. Can you help us with this feature?