Spaces:
Sleeping
Sleeping
File size: 580 Bytes
e5e35a3 6710fbe e5e35a3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | from typing import Any, Dict, List, Optional, TypedDict
class FinanceState(TypedDict, total=False):
# Core request/response
user_query: str
response: str
trace_id: str
# Routing
intent: str
agents: List[str]
# Entities
symbol: Optional[str]
crypto_symbol: Optional[str]
portfolio: Optional[List[Dict[str, Any]]]
# Context/state (passed from the UI)
conversation_history: List[Dict[str, str]]
user_profile: Dict[str, Any]
# Optional telemetry/debug
retrieved_sources: List[Dict[str, Any]]
errors: List[str]
|