Spaces:
Runtime error
Runtime error
Commit ·
8c1b8b7
1
Parent(s): 9d72398
Updated Agent Orchestrator
Browse files92 unmodified lines9394959697989910010110210310410510610710810911011111211311411592 unmodified lines# 1. Formulate a search query to find up-to-date plans# ------------ 1) Capture today's date in a friendly format ------------current_date = datetime.date.today().strftime("%B %d %Y") # e.g., "July 21 2025"# ------------ 2) Tavern / Tavily search-query template ------------query_template = ('"Individual health-insurance plans" ''"{county} County {state} {zip_code}" "{current_date}" ''"{age}-year-old" "household size {household_size}" "income {income}" ''"employment {employment_status}" "citizenship {citizenship}" ''"coverage for {medical_history}" "formulary {medications}" "{special_cases}" ''"ACA marketplace OR Healthcare.gov OR CMS Landscape File" ''"off-exchange OR private health insurance OR direct-to-consumer plan OR short-term medical" ''"premium" "deductible" "out-of-pocket max" "metal tier bronze silver gold platinum" ''"network HMO PPO EPO" "Summary of Benefits and Coverage" "CMS 2025 final rate filings"')# ------------ 3) Inject user-specific values ------------search_query = query_template.format(current_date=current_date, **user_profile)logger.info(f"Plan Recommender search query: '{search_query}'")92 unmodified lines9394959697989910010110210310410510610710810911011111211311411592 unmodified lines# 1. Formulate a search query to find up-to-date plans# ------------ A) Capture today's date in a friendly format ------------current_date = datetime.date.today().strftime("%B %d %Y") # e.g., "July 21 2025"# ------------ B) Tavern / Tavily search-query template ------------query_template = ('"Individual health-insurance plans" ''"{county} County {state} {zip_code}" "{current_date}" ''"{age}-year-old" "household size {household_size}" "income {income}" ''"employment {employment_status}" "citizenship {citizenship}" ''"medical history {medical_history}" "formulary {medications}" "{special_cases}" ''"ACA marketplace OR Healthcare.gov OR CMS Landscape File" ''"off-exchange OR private health insurance OR direct-to-consumer plan OR short-term medical" ''"premium" "deductible" "out-of-pocket max" "metal tier bronze silver gold platinum" ''"network HMO PPO EPO" "Summary of Benefits and Coverage" "CMS 2025 final rate filings"')# ------------ C) Inject user-specific values ------------search_query = query_template.format(current_date=current_date, **user_profile)logger.info(f"Plan Recommender search query: '{search_query}'")
insucompass/core/agent_orchestrator.py+4-4