Fully completed and production-ready independent AI service featuring advanced multi-agent architecture, intelligent memory systems, and comprehensive third-party integrations. Powered by OpenAI, Anthropic Claude, and Ollama integrations with enterprise-grade security features and scalable architecture.
- OpenAI: GPT-4, GPT-4o, GPT-4 Turbo and other models
- Anthropic Claude: Claude 4, Claude 3.5 Sonnet, Haiku
- Ollama: Llama 3.3, DeepSeek R1, Qwen and other local models
- Unified API: Single interface for all LLM providers
- Automatic Failover: Load balancing and fault tolerance
- Multi-Agent Architecture: Independent agents with specialized roles
- Agent Lifecycle Management: Complete agent management and orchestration
- Role-Based System: Researcher, Analyst, Coder, Coordinator roles
- Task Management: Advanced task queue and workflow engine
- Agent Collaboration: A2A (Agent-to-Agent) protocol
- Episodic Memory: Store and learn from agent experiences
- Semantic Memory: Structured storage of knowledge and concepts
- Working Memory: Short-term context and conversation management
- RAG System: Retrieval Augmented Generation
- Vector Database: FAISS and ChromaDB support
- Self-Learning: Automatic learning from experiences
- REST API Gateway: Unified interface for external APIs
- Webhook System: Real-time event management
- Database Connectors: PostgreSQL, MongoDB, MySQL support
- Cloud Services: AWS, Azure, GCP integration
- Third-Party Adapters: Slack, Discord, Twitter, Email, etc.
- Plugin Architecture: Extensible plugin system
- JWT Authentication: Secure token-based authentication
- RBAC: Role-based access control
- API Key Management: Secure key management
- Encryption: Data encryption and security protocols
- Audit Logging: Comprehensive security and operation logs
- Rate Limiting: Traffic control and DDoS protection
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AI Service β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β API Layer (FastAPI) β
β βββ LLM Endpoints βββ Agent Endpoints β
β βββ Memory Endpoints βββ Integration Endpoints β
β βββ Collaboration βββ Plugin Endpoints β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Agent Management Layer β
β βββ Agent Manager βββ Task Queue β
β βββ Workflow Engine βββ A2A Protocol β
β βββ Message Broker βββ Agent Registry β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Memory Systems β
β βββ Episodic Memory βββ Semantic Memory β
β βββ Working Memory βββ RAG System β
β βββ Learning System βββ Vector Store β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β LLM Provider Layer β
β βββ OpenAI βββ Anthropic β
β βββ Ollama βββ Provider Manager β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Integration Layer β
β βββ API Gateway βββ Webhook System β
β βββ Database Conn. βββ Cloud Services β
β βββ Third-Party βββ Plugin Manager β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Infrastructure β
β βββ Redis βββ Vector DB β
β βββ Security βββ Monitoring β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Framework: FastAPI (Python 3.9+)
- Agent Framework: LangGraph + LangChain
- Database: Redis, PostgreSQL, MongoDB
- Vector DB: FAISS, ChromaDB
- Authentication: JWT, bcrypt
- OpenAI: GPT-4, GPT-4o, GPT-4 Turbo
- Anthropic: Claude 4, Claude 3.5 Sonnet, Haiku
- Ollama: Llama 3.3, DeepSeek R1, Qwen, etc.
- Containerization: Docker, Docker Compose
- Orchestration: Kubernetes
- Monitoring: Prometheus, Grafana
- CI/CD: GitHub Actions
- UI Library: Tailwind CSS + Shadcn/ui
- State Management: Zustand / Redux Toolkit
- Containerization: Docker + Docker Compose
- Orchestration: Kubernetes (optional)
- Monitoring: Prometheus + Grafana
- CI/CD: GitHub Actions
ai-service/
βββ backend/
β βββ app/
β β βββ agents/ # Agent yΓΆnetimi
β β βββ llm_providers/ # LLM entegrasyonlarΔ±
β β βββ memory/ # HafΔ±za sistemleri
β β βββ collaboration/ # Agent iΕbirliΔi
β β βββ integrations/ # 3. parti entegrasyonlar
β β βββ security/ # GΓΌvenlik ve auth
β β βββ tests/ # Test dosyalarΔ±
β βββ requirements.txt
β βββ Dockerfile
βββ frontend/
β βββ src/
β β βββ components/ # React bileΕenleri
β β βββ pages/ # Sayfa bileΕenleri
β β βββ hooks/ # Custom hooks
β β βββ services/ # API servisleri
β β βββ utils/ # YardΔ±mcΔ± fonksiyonlar
β βββ package.json
β βββ Dockerfile
βββ docs/ # DokΓΌmantasyon
βββ scripts/ # Deployment scriptleri
βββ docker-compose.yml
βββ README.md
- β OpenAI API integration (GPT-4, GPT-4o, GPT-4 Turbo)
- β Anthropic Claude integration (Claude 4, Claude 3.5 Sonnet, Haiku)
- β Ollama local LLM support (Llama 3.3, DeepSeek R1, Qwen, etc.)
- β Unified LLM provider abstraction layer
- β Dynamic model switching and load balancing
- β Failover and retry mechanisms
- β LangGraph-based agent framework
- β Agent lifecycle management (create, start, stop, remove)
- β Role-based agent capabilities (7 different roles)
- β Task queue and workflow engine
- β Agent state management
- β Capability registry system
- β Vector database integration (FAISS, ChromaDB)
- β Episodic memory (agent experiences)
- β Semantic memory (knowledge and concepts)
- β Working memory management (short-term context)
- β RAG (Retrieval Augmented Generation)
- β Self-learning algorithms
- β Knowledge graph structure
- β A2A (Agent2Agent) protocol implementation
- β Agent discovery and registry
- β Message passing system
- β Collaboration patterns
- β Conflict resolution
- β Multi-agent orchestration
- β Group messaging and broadcast
- β RESTful API gateway
- β Webhook system (incoming/outgoing)
- β Database connectors (PostgreSQL, MongoDB, MySQL, SQLite)
- β Cloud services integration (AWS, Azure, GCP)
- β Third-party API adapters (Slack, Discord, Twitter, Email, etc.)
- β Plugin architecture (extensible plugin system)
- β JWT authentication
- β Role-based access control (RBAC)
- β API key management
- β User management system
- β Encryption and security protocols
- β Audit logging
- β Rate limiting and throttling
- β Comprehensive unit tests
- β Integration testing
- β Performance testing
- β Security testing
- β 80%+ test coverage
- β Automated testing pipeline
- β Docker containerization
- β Kubernetes manifests
- β CI/CD pipeline (GitHub Actions)
- β Monitoring (Prometheus, Grafana)
- β Health checks
- β Auto-scaling (HPA)
- β Setup and deployment scripts
- Python 3.9+
- Docker & Docker Compose (recommended)
- Redis (automatically installed with Docker)
- Git
- Clone the repository
git clone https://github.com/your-username/ai-service.git
cd ai-service- Run the automated setup script
# Automatically sets up the entire system
./scripts/setup.sh
# After setup, add your API keys
nano backend/.env- Start the service
# Development environment
./scripts/deploy.sh dev
# Production environment
./scripts/deploy.sh prod
# Kubernetes deployment
./scripts/deploy.sh k8s- Create Python virtual environment
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt- Configure environment file
cp .env.example .env
# Add your API keys to the .env file- Start with Docker Compose
docker-compose up -dOnce the service is running, visit:
- Swagger UI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc
POST /api/v1/agents/create- Create new agentGET /api/v1/agents/- List all agentsPOST /api/v1/agents/tasks/submit- Submit task
POST /api/v1/memory/experiences- Store experiencePOST /api/v1/memory/knowledge- Store knowledgePOST /api/v1/memory/ask- Ask question with RAG
POST /api/v1/llm/generate- Generate textPOST /api/v1/llm/generate/stream- Stream generationGET /api/v1/models/- List available models
POST /api/v1/collaboration/messages/send- Send messagePOST /api/v1/collaboration/registry/register- Register agent
# Run all tests
./backend/scripts/run_tests.py
# Run specific test categories
./backend/scripts/run_tests.py --unit
./backend/scripts/run_tests.py --integration
./backend/scripts/run_tests.py --performance
# Run with coverage
./backend/scripts/run_tests.py --coverageai-service/
βββ backend/ # Backend API service
β βββ app/
β β βββ agents/ # Agent system
β β βββ llm_providers/ # LLM integrations
β β βββ memory/ # Memory systems
β β βββ collaboration/ # Agent collaboration
β β βββ integrations/ # Third-party integrations
β β βββ plugins/ # Plugin system
β β βββ security/ # Security & auth
β β βββ api/ # API endpoints
β β βββ core/ # Core utilities
β βββ tests/ # Test suite
β βββ scripts/ # Utility scripts
βββ k8s/ # Kubernetes manifests
βββ scripts/ # Setup & deployment scripts
βββ docker-compose.yml # Docker Compose config
βββ Dockerfile # Docker build config
βββ README.md # This file
Create a .env file in the backend/ directory:
# Environment
ENVIRONMENT=development
DEBUG=true
LOG_LEVEL=INFO
# Database
REDIS_URL=redis://localhost:6379/0
VECTOR_DB_TYPE=faiss
VECTOR_DB_PATH=./data/vector_db
# Security
JWT_SECRET_KEY=your-secret-key-change-in-production
# LLM Provider API Keys
OPENAI_API_KEY=your_openai_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key
# Optional: Database connections
DATABASE_URL=postgresql://user:password@localhost:5432/ai_service
MONGODB_URL=mongodb://localhost:27017/ai_servicedocker-compose up -dkubectl apply -f k8s/# Setup
./scripts/setup.sh
# Deploy
./scripts/deploy.sh prod- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Available at
/docsendpoint when running
- OpenAI for GPT models
- Anthropic for Claude models
- Ollama for local LLM support
- LangChain and LangGraph communities
- All contributors and the open-source community