Browse Source

fix: route 'total net worth' to property_net_worth not wealth_portfolio_summary

Remove 'total net worth' and 'everything i own' from wealth_net_worth_kws
so they fall through to property_net_worth_kws which runs property tracker
and shows the complete financial picture template.
Add 'show my total net worth' and related phrases to property_net_worth_kws.

Made-with: Cursor
pull/6453/head
Priyanka Punukollu 1 month ago
parent
commit
cb3674314d
  1. 6
      agent/graph.py

6
agent/graph.py

@ -557,7 +557,7 @@ async def classify_node(state: AgentState) -> AgentState:
"how expensive is", "city comparison", "teleport", "how expensive is", "city comparison", "teleport",
] ]
wealth_net_worth_kws = [ wealth_net_worth_kws = [
"total net worth", "everything i own", "net worth including portfolio", "net worth including portfolio",
"my portfolio real estate", "portfolio and real estate", "my portfolio real estate", "portfolio and real estate",
] ]
if any(kw in query for kw in wealth_down_payment_kws): if any(kw in query for kw in wealth_down_payment_kws):
@ -587,7 +587,9 @@ async def classify_node(state: AgentState) -> AgentState:
"net worth including", "net worth with real estate", "net worth including", "net worth with real estate",
"total net worth", "total wealth", "all my assets", "total net worth", "total wealth", "all my assets",
"real estate net worth", "net worth and real estate", "real estate net worth", "net worth and real estate",
"everything i own", "everything i own", "show my total net worth",
"complete financial picture", "net worth including my home",
"net worth including my investment",
] ]
property_update_kws = [ property_update_kws = [
"update my home", "update my property", "update my house", "update my home", "update my property", "update my house",

Loading…
Cancel
Save