From bdaa5569fcb628da4ee6de47a8aee6ada2069f67 Mon Sep 17 00:00:00 2001 From: cyw <86410452+oso95@users.noreply.github.com> Date: Sun, 8 Mar 2026 14:35:24 -0500 Subject: [PATCH] fix: add missing state field to check_business_registration exception return --- .../ai_fraud_investigation_agent/fraud_investigation_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced_ai_agents/single_agent_apps/ai_fraud_investigation_agent/fraud_investigation_agent.py b/advanced_ai_agents/single_agent_apps/ai_fraud_investigation_agent/fraud_investigation_agent.py index 1e0af444..03422494 100644 --- a/advanced_ai_agents/single_agent_apps/ai_fraud_investigation_agent/fraud_investigation_agent.py +++ b/advanced_ai_agents/single_agent_apps/ai_fraud_investigation_agent/fraud_investigation_agent.py @@ -743,7 +743,7 @@ def check_business_registration(name: str, state: str = "IL") -> str: "note": "IL SOS API unreachable. Manual lookup: https://apps.ilsos.gov/corporatellc/", }) except Exception as exc: - return json.dumps({"status": "error", "query": name, "error": str(exc)}) + return json.dumps({"status": "error", "query": name, "state": state_key, "error": str(exc)}) # ── Streamlit App ─────────────────────────────────────────────────────────────