Commit Graph

12 Commits

Author SHA1 Message Date
octo-patch 25cc0e144c fix: strip trailing newlines from past_memory_str and gate thesis instruction
Addresses gemini-code-assist review feedback:
- All five files (portfolio_manager, research_manager, bear/bull researchers,
  trader) now call .strip() on past_memory_str before injecting it into prompts,
  removing the trailing '\n\n' artifacts from the construction loop.
- portfolio_manager now also makes the 'past reflections' phrasing in the
  Investment Thesis instruction conditional on past_memories being non-empty,
  so an empty memory section can't trigger hallucinated past reflections.
2026-04-23 13:16:32 +08:00
octo-patch 42dafee655 fix: suppress memory prompt when past_memories is empty (fixes #572)
Conditionally include both the memory content and the surrounding
instruction only when past_memories is non-empty. Prevents agents from
hallucinating past lessons when no memories have been stored yet.

Affected agents: Bull Researcher, Bear Researcher, Research Manager,
Portfolio Manager, Trader.
2026-04-23 10:06:42 +08:00
Yijia-Xiao bdb9c29d44
refactor: remove stale imports, use configurable results path (#499) 2026-04-04 07:35:35 +00:00
Yijia-Xiao 7269f877c1
fix: portfolio manager reads trader's proposal and research plan (#503) 2026-04-04 07:22:01 +00:00
Yijia-Xiao 6cddd26d6e
feat: multi-language output support for analyst reports and final decision (#472) 2026-03-29 19:19:01 +00:00
Yijia-Xiao b8b2825783 refactor: standardize portfolio manager, five-tier rating scale, fix analyst status tracking 2026-03-22 23:30:29 +00:00
Yijia-Xiao 318adda0c6 refactor: five-tier rating scale and streamlined agent prompts 2026-03-22 23:07:20 +00:00
CadeYu 7d200d834a style: inline single-use instrument context vars 2026-03-21 21:31:38 +08:00
CadeYu 08bfe70a69 fix: preserve exchange-qualified tickers across agent prompts 2026-03-21 21:10:13 +08:00
Ljx-007 35856ff33e fix(risk_manager): 修复基本面报告数据源错误
- 修正了fundamentals_report从news_report获取数据的问题
- 确保fundamentals_report正确使用fundamentals_report数据源
2026-02-09 18:21:21 +08:00
Yijia Xiao 50961b2477
refactor: rename risky/safe agents to aggressive/conservative 2026-02-03 22:27:20 +00:00
Yijia-Xiao cc97cb6d5d chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00