wenjin272 opened a new pull request, #792:
URL: https://github.com/apache/flink-agents/pull/792
## What is the purpose of the change
Fix #785. `Prompt.format_string(text=...)` raised `TypeError:
format_string() got multiple values for argument 'text'` whenever the template
used `{text}` (or `{template}`) as a variable, because the internal positional
parameter `text` collided with the user-passed kwarg.
## Brief change log
- Rename the positional parameter in `utils.format_string` from `text` to
`_template` — internal, non-public, called positionally everywhere, so no
compatibility impact.
- Add a regression test covering `{text}`/`{template}` template variables.
## Verifying this change
`python -m pytest flink_agents/api/tests/test_prompt.py` — 7 passed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]