feat: add AI Fraud Investigation Agent#570
Merged
Shubhamsaboo merged 10 commits intoShubhamsaboo:mainfrom Mar 17, 2026
Merged
Conversation
Autonomous fraud investigation agent that cross-references childcare provider licensing records against physical building data to detect anomalies. Uses public data: Illinois DCFS licensing, Cook County property records, Google Maps (Street View + Places), and IL Secretary of State business registration. Built on Surelock Homes (https://github.com/osobodev/Surelock-Homes).
- Fix NameError: replace _config dict write with st.session_state write - Fix streaming: use getattr(chunk, 'content', None) for safe chunk access - Fix streaming: use list+join instead of string concat in hot loop - Fix model IDs: use correct OpenRouter format (anthropic/claude-sonnet-4.6)
- Remove unused Any import - Fix stale date: _build_system_prompt() computes date per investigation - Fix Street View: store images in session state, return metadata-only to LLM - Display Street View images in Streamlit UI after investigation - Remove dead search_type param from check_business_registration
…ge investigations
- Remove invalid show_tool_calls Agent param - Replace hard ZIP limit of 10 with MAX_PROVIDER_CAP=100 safety cap - Switch ZIP input from free text to selectbox (10 Cook County neighborhoods) - Add new models: google/gemini-3.1-flash-lite-preview, openai/gpt-5.4 - Fix repo links: osobodev -> oso95 - Update README geographic scope with ZIP/neighborhood table - Default ZIP changed to 60623 (Little Village)
advanced_ai_agents/single_agent_apps/ai_fraud_investigation_agent/README.md
Outdated
Show resolved
Hide resolved
Owner
Shubhamsaboo
left a comment
There was a problem hiding this comment.
Minor change and the PR will be good to merge.
Removed reference to Surelock Homes from the README.
Contributor
Author
Requested change has been made. |
Owner
Shubhamsaboo
left a comment
There was a problem hiding this comment.
One more thing to fix sorry.
Owner
There was a problem hiding this comment.
Please add specific versioning of these dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
advanced_ai_agents/single_agent_apps/ai_fraud_investigation_agent/— a single-agent Streamlit appWhat it does
(sqft × 0.65) ÷ 35A 900 sq ft building cannot legally serve 50 children. This agent finds those mathematical impossibilities automatically.
Tech stack
Test plan
pip install -r requirements.txtstreamlit run fraud_investigation_agent.py60623) and click Investigate