Skip to the content.

๐Ÿš€ Agentic Corporate Simulation: A Cognitive Multi-Agent Framework

In a modern corporate landscape, decision-making often requires the intersection of various expertiseโ€”Strategic, Human Resources, and Operational. This project builds an Agentic AI Ecosystem that simulates a professional board of directors.

Instead of a simple chatbot, this system implements a Cognitive Architecture where specialized AI Agents (CEO, CHRO, Manager) collaborate to solve business problems. By treating agents as modular tools and implementing a sophisticated memory management cycle, the framework ensures high-quality reasoning while maintaining efficiency in production environments.

This repository features a sophisticated Agentic AI System designed to simulate a corporate decision-making environment. It leverages a Supervisor-Worker architecture, served via FastAPI, and is fully containerized using Docker.


๐Ÿ”„ 1. System Workflow: The Lifecycle of a Request

The system utilizes a LangGraph state machine to ensure logical consistency and context efficiency through a predefined execution path:

๐Ÿ”น Entry Point (Summarizer Node)

๐Ÿ”น Routing (Orchestrator / Supervisor Node)

๐Ÿ”น Execution (Worker Nodes)

๐Ÿ”น Persistence


๐Ÿง  2. Intelligent Memory Management

๐Ÿ”น Short-Term Memory

๐Ÿ”น Progressive Memory

๐Ÿ”น Stateful Persistence


๐Ÿ› ๏ธ 3. Tech Stack & Infrastructure


๐Ÿ”ฎ 4. Future Roadmap: Towards a Cognitive Engine

๐Ÿ”น Modular Agent Toolsets

๐Ÿ”น Comprehensive Memory Model


๐Ÿš€ Quick Start

๐Ÿ”น Prerequisites

Ensure you have Docker and Docker Compose installed.

๐Ÿ”น Step 1: Environment Configuration

Create a .env file in the root directory and add:

OPENROUTER_API_KEY=your_api_key_here

๐Ÿ”น Step 2: Build and Run

cd infra
docker-compose up --build -d

๐Ÿ”น Step 3: Access & Testing

Interactive API Docs: http://localhost:8000/docs Stopping the system:

docker-compose down

๐Ÿ—„๏ธ 5. Database Management (pgAdmin)

๐Ÿ”น Connecting to the Database

Field Value
Host db-persistence (or localhost if using host)
Port 5432
Maintenance Database ai_memory
Username user
Password password

๐Ÿ”ฎ 6. Extended Future Roadmap

๐Ÿ”น Modular Toolsets

๐Ÿ”น Cognitive Memory Tiers


Project Structure

C:.
โ”‚   .gitignore
โ”‚   README.md
โ”‚
โ”œโ”€โ”€โ”€backend
โ”‚   โ”‚   .env
โ”‚   โ”‚   requirements.txt
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€โ”€app
โ”‚   โ”‚   โ”‚   main.py
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”œโ”€โ”€โ”€api
โ”‚   โ”‚   โ”‚   โ”‚   deps.py
โ”‚   โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€โ”€routes
โ”‚   โ”‚   โ”‚       โ”‚   chat.py
โ”‚   โ”‚   โ”‚       โ”‚   health.py
โ”‚   โ”‚   โ”‚       โ”‚
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€โ”€__pycache__
โ”‚   โ”‚   โ”‚               chat.cpython-311.pyc
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”œโ”€โ”€โ”€core
โ”‚   โ”‚   โ”‚       config.py
โ”‚   โ”‚   โ”‚       logger.py
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”œโ”€โ”€โ”€schemas
โ”‚   โ”‚   โ”‚   โ”‚   agent.py
โ”‚   โ”‚   โ”‚   โ”‚   chat.py
โ”‚   โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚   โ”‚   โ”‚           chat.cpython-311.pyc
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚   โ”‚           main.cpython-311.pyc
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€โ”€engine
โ”‚       โ”‚   README.md
โ”‚       โ”‚   state.py
โ”‚       โ”‚
โ”‚       โ”œโ”€โ”€โ”€agents
โ”‚       โ”‚   โ”‚   base.py
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ”œโ”€โ”€โ”€ceo
โ”‚       โ”‚   โ”‚   โ”‚   agent.py
โ”‚       โ”‚   โ”‚   โ”‚   config.yaml
โ”‚       โ”‚   โ”‚   โ”‚   prompt.txt
โ”‚       โ”‚   โ”‚   โ”‚
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚   โ”‚           agent.cpython-311.pyc
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ”œโ”€โ”€โ”€chro
โ”‚       โ”‚   โ”‚   โ”‚   agent.py
โ”‚       โ”‚   โ”‚   โ”‚   config.yaml
โ”‚       โ”‚   โ”‚   โ”‚   prompt.txt
โ”‚       โ”‚   โ”‚   โ”‚
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚   โ”‚           agent.cpython-311.pyc
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ”œโ”€โ”€โ”€manager
โ”‚       โ”‚   โ”‚   โ”‚   agent.py
โ”‚       โ”‚   โ”‚   โ”‚   config.yaml
โ”‚       โ”‚   โ”‚   โ”‚   prompt.txt
โ”‚       โ”‚   โ”‚   โ”‚
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚   โ”‚           agent.cpython-311.pyc
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ”œโ”€โ”€โ”€orchestrator
โ”‚       โ”‚   โ”‚   โ”‚   agent.py
โ”‚       โ”‚   โ”‚   โ”‚   config.yaml
โ”‚       โ”‚   โ”‚   โ”‚   prompt.txt
โ”‚       โ”‚   โ”‚   โ”‚   routerDecision.py
โ”‚       โ”‚   โ”‚   โ”‚
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚   โ”‚           agent.cpython-311.pyc
โ”‚       โ”‚   โ”‚           orchestrator.cpython-311.pyc
โ”‚       โ”‚   โ”‚           routerDecision.cpython-311.pyc
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ”œโ”€โ”€โ”€SummarizerAgent
โ”‚       โ”‚   โ”‚   โ”‚   agent.py
โ”‚       โ”‚   โ”‚   โ”‚   config.yaml
โ”‚       โ”‚   โ”‚   โ”‚   prompt.txt
โ”‚       โ”‚   โ”‚   โ”‚
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚   โ”‚           agent.cpython-311.pyc
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚           base.cpython-311.pyc
โ”‚       โ”‚
โ”‚       โ”œโ”€โ”€โ”€configs
โ”‚       โ”œโ”€โ”€โ”€llm
โ”‚       โ”‚   โ”‚   client.py
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ”œโ”€โ”€โ”€providers
โ”‚       โ”‚   โ”‚   โ”‚   groq.py
โ”‚       โ”‚   โ”‚   โ”‚   openRouter.py
โ”‚       โ”‚   โ”‚   โ”‚
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚   โ”‚           groq.cpython-311.pyc
โ”‚       โ”‚   โ”‚           openRouter.cpython-311.pyc
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚           client.cpython-311.pyc
โ”‚       โ”‚
โ”‚       โ”œโ”€โ”€โ”€memory
โ”‚       โ”‚   โ”‚   long_term.py
โ”‚       โ”‚   โ”‚   short_term.py
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚           short_term.cpython-311.pyc
โ”‚       โ”‚
โ”‚       โ”œโ”€โ”€โ”€orchestrator
โ”‚       โ”‚   โ”‚   orchestrator.py
โ”‚       โ”‚   โ”‚   router.py
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚           orchestrator.cpython-311.pyc
โ”‚       โ”‚
โ”‚       โ”œโ”€โ”€โ”€scripts
โ”‚       โ”œโ”€โ”€โ”€supervisor
โ”‚       โ”œโ”€โ”€โ”€tests
โ”‚       โ”œโ”€โ”€โ”€tools
โ”‚       โ”‚   โ”‚   registry.py
โ”‚       โ”‚   โ”‚
โ”‚       โ”‚   โ””โ”€โ”€โ”€__pycache__
โ”‚       โ”‚           registry.cpython-311.pyc
โ”‚       โ”‚
โ”‚       โ””โ”€โ”€โ”€__pycache__
โ”‚               state.cpython-311.pyc
โ”‚
โ”œโ”€โ”€โ”€frontend
โ””โ”€โ”€โ”€infra
        docker-compose.yml
        Dockerfile.backend
        Dockerfile.frontend