Commit Graph

5 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 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