Skip to content

100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.

fix: add missing state field to check_business_registration exception return

cywbdaa5569fcb6
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 ─────────────────────────────────────────────────────────────