INNER CODE UNIT · Python
_show
alex-jb/orallexa-ai-trading-agent · desktop_agent/main.py:167
def _show():
if result:
dec = result.decision
rec = getattr(result, "recommendation", "")
short = f"{dec}"
if rec:
short += f"\n{rec[:55]}{'...' if len(rec) > 55 else ''}"
from desktop_agent.chat_popover import COL_BUY, COL_SELL, COL_WAIT
bull.set_state_from_decision(dec, result.risk_level)
bull._show_bubble(short,
accent={"BUY": COL_BUY, "SELL": COL_SELL
}.get(dec, COL_WAIT))
if popover and popover.is_visible():
popover._show_decision_card(result)
popover._add_message("bull", reply)
popover._update_header()