RD-Agent icon indicating copy to clipboard operation
RD-Agent copied to clipboard

Fix TypeError in fin_quant coding step (#1224)

Open utsab345 opened this issue 2 months ago • 3 comments

This PR fixes the TypeError: data must be str, not dict issue reported in #1224. I modified the assign_code_list_to_evo function in factor_coder/evolving_strategy.py and model_coder/evolving_strategy.py to handle dictionary responses from the LLM. Tests in test_evolving_strategy_fix.py now pass.

@microsoft/rdagent-maintainers Please review.


📚 Documentation preview 📚: https://RDAgent--1265.org.readthedocs.build/en/1265/

utsab345 avatar Oct 14 '25 06:10 utsab345

Any reviews?? @you-n-g @chaosddp @corygehr

utsab345 avatar Oct 17 '25 07:10 utsab345

@you-n-g @chaosddp @corygehr @cslwqxx ??

utsab345 avatar Nov 04 '25 15:11 utsab345

Hi, @utsab345 Thank you for your contribution to RD-Agent. There is more than just the TypeError issue fixed in this PR. There are also some changes based on pydantic version adaptation.

  • The TypeError issue is fixed in PR 1279. So the changes have been duplicated here.
  • The modification about pydantic can be kept as it adapts to the new version of pydantic.

SunsetWolf avatar Nov 05 '25 13:11 SunsetWolf