Skip to content

ssarimm/AutoCrew-Financial-Agent-System-BasePaper-Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 AutoCrew: Autonomous Financial Modeling System

🌟 Project Overview

AutoCrew is an automated system designed to streamline and govern the end-to-end process of financial model development. Leveraging Large Language Models (LLMs) orchestrated by the CrewAI framework, AutoCrew takes a natural language task description (e.g., "Build a credit risk model") and autonomously executes a multi-step workflow, culminating in a fully validated and audited model.

The system is built around two specialized, sequential Agent Crews to ensure regulatory compliance and robust Model Risk Management (MRM).

💡 Key Features

  • Autonomous Workflow: Executes the entire modeling pipeline from data preparation to final risk sign-off without human intervention.
  • Dual-Crew Architecture: Enforces separation of duties via a Modeling Crew (construction) and an MRM Crew (validation and audit).
  • LLM Acceleration: Utilizes high-performance LLMs (Meta Llama 3.1 8B via Groq LPU and Google Gemini 1.5 Flash).
  • Built-in Simulator: Includes a Stress Testing Engineer for economic shock simulations to validate model stability.
  • Compliance Ready: Generates an audit trail through the Compliance Officer.

🏗️ System Architecture

AutoCrew employs a hierarchical agent system managed by CrewAI.

Crew Agents Included Primary Responsibility
Modeling Crew Data Analyst, ML Engineer, Technical Writer Data cleaning, feature engineering, model training, documentation
MRM Crew Compliance Officer, Stress Testing Engineer, Chief Risk Officer Code audit, stress testing simulation, regulatory approval

🚀 Getting Started

1. Prerequisites

  • Python 3.10+
  • Git

2. Clone the Repository

git clone https://github.com/YourUsername/AutoCrew-Financial-Agent-System.git
cd AutoCrew-Financial-Agent-System

3. Setup Virtual Environment & Dependencies

python -m venv venv
source venv/bin/activate   # On Windows: venv\Scripts\activate
pip install -r requirements.txt

4. Configure API Keys (Critical Security Step)

Create a file named .env in the project root (never commit it to GitHub):

GROQ_API_KEY=YOUR_GROQ_API_KEY_HERE
GOOGLE_API_KEY=YOUR_GEMINI_API_KEY_HERE

5. Run AutoCrew

Execute the main script. You will be prompted to select an LLM (Groq recommended):

python -m src.main

🎯 Example Workflow

Upon running, AutoCrew processes the Credit Default Prediction dataset, producing a trained model and a detailed report approved by the Chief Risk Officer.

🛑 Security and Compliance

  • API keys are protected by the .gitignore.
  • All agent actions are logged for auditability, meeting Model Risk Management standards.

🤝 Contact

Sarim Shahsarimoman@gmail.com

About

AutoCrew: Autonomous Financial Modeling System Description: A multi-agent system utilizing CrewAI and LLMs (Llama 3.1 8B / Gemini 1.5 Flash) to autonomously construct, validate, and audit financial models for credit risk assessment, ensuring MRM compliance.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages