Skip to content

enhance agent node convert_template by recursive render all str fields in AgentInput #30527

@hoffermei

Description

@hoffermei

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • Please do not modify this template :) and fill in all the required fields.

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?

  • I am interested in contributing to this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions