feat: give relevance in ui to final decision
This commit is contained in:
parent
c2470c4833
commit
c335c0c627
|
|
@ -142,8 +142,8 @@ The left panel should display a hierarchical tree structure as follows:
|
||||||
├── 🛡️ Conservative Risk Analyst
|
├── 🛡️ Conservative Risk Analyst
|
||||||
│ ├── 📄 Risk Assessment (Conservative)
|
│ ├── 📄 Risk Assessment (Conservative)
|
||||||
│ └── 💬 Agent Messages
|
│ └── 💬 Agent Messages
|
||||||
└── ⚠️ Risk Judge
|
└── 🧠 Portfolio Manager (Final Decision)
|
||||||
├── 📄 Final Risk Decision
|
├── 📄 Portfolio Manager's Decision
|
||||||
└── 💬 Agent Messages
|
└── 💬 Agent Messages
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,9 @@ PHASE_SEQUENCE = [
|
||||||
"research_phase",
|
"research_phase",
|
||||||
"planning_phase",
|
"planning_phase",
|
||||||
"execution_phase",
|
"execution_phase",
|
||||||
"risk_analysis_phase"
|
"risk_analysis_phase",
|
||||||
|
# New dedicated top-level phase for the final portfolio decision
|
||||||
|
"final_decision_phase"
|
||||||
]
|
]
|
||||||
|
|
||||||
# Mount the static directory to serve CSS, JS, etc.
|
# Mount the static directory to serve CSS, JS, etc.
|
||||||
|
|
@ -162,10 +164,11 @@ def update_execution_state(state: Dict[str, Any]):
|
||||||
"report_name": "Risk Assessment (Conservative)"
|
"report_name": "Risk Assessment (Conservative)"
|
||||||
},
|
},
|
||||||
"Risk Judge": {
|
"Risk Judge": {
|
||||||
"phase": "risk_analysis",
|
# Moved to its own dedicated phase for prominence
|
||||||
|
"phase": "final_decision",
|
||||||
"agent_id": "risk_judge",
|
"agent_id": "risk_judge",
|
||||||
"report_key": "final_trade_decision",
|
"report_key": "final_trade_decision",
|
||||||
"report_name": "Final Risk Decision"
|
"report_name": "Portfolio Manager's Decision"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -240,8 +243,16 @@ def initialize_complete_execution_tree():
|
||||||
"children": [
|
"children": [
|
||||||
create_agent_node("risky_analyst", "🚨 Aggressive Risk Analyst"),
|
create_agent_node("risky_analyst", "🚨 Aggressive Risk Analyst"),
|
||||||
create_agent_node("neutral_analyst", "⚖️ Neutral Risk Analyst"),
|
create_agent_node("neutral_analyst", "⚖️ Neutral Risk Analyst"),
|
||||||
create_agent_node("safe_analyst", "🛡️ Conservative Risk Analyst"),
|
create_agent_node("safe_analyst", "🛡️ Conservative Risk Analyst")
|
||||||
create_agent_node("risk_judge", "⚠️ Risk Judge")
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "final_decision_phase",
|
||||||
|
"name": "🧠 Portfolio Manager's Decision",
|
||||||
|
"status": "pending",
|
||||||
|
"content": "Final portfolio / trade decision synthesized from all prior phases",
|
||||||
|
"children": [
|
||||||
|
create_agent_node("risk_judge", "🧠 Portfolio Manager")
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue