fix: preserve exchange-qualified tickers across agent prompts
This commit is contained in:
1 parent
f362a160c3
commit
08bfe70a69
11 files changed
+91
-24
No files matched your search
@@ -1,11 +1,14 @@
|
||||
import time
|
||||
import json
|
||||
|
||||
from tradingagents.agents.utils.agent_utils import build_instrument_context
|
||||
|
||||
|
||||
def create_risk_manager(llm, memory):
|
||||
def risk_manager_node(state) -> dict:
|
||||
|
||||
company_name = state["company_of_interest"]
|
||||
instrument_context = build_instrument_context(company_name)
|
||||
|
||||
history = state["risk_debate_state"]["history"]
|
||||
risk_debate_state = state["risk_debate_state"]
|
||||
@@ -34,6 +37,8 @@ Deliverables:
|
||||
- A clear and actionable recommendation: Buy, Sell, or Hold.
|
||||
- Detailed reasoning anchored in the debate and past reflections.
|
||||
|
||||
{instrument_context}
|
||||
|
||||
---
|
||||
|
||||
**Analysts Debate History:**
|
||||
|
||||
Reference in new issue
Block a user