Downloads · 30 days
0
kattastrofik-kattastrofey/my-new-repo
my-new-repo is a machine learning model from kattastrofik-kattastrofey. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A flexible, modular AI agent platform that supports multiple LLM providers, including local deployment via Ollama.
Downloads · 30 days
0
Access
Public
Updated Mar 4, 2025
Repo size
29.4 MB
Likes
1
Public
Click a slice to open those files.
.py261 KB · 52%
From the Hugging Face model README
A flexible, modular AI agent platform that supports multiple LLM providers, including local deployment via Ollama.
Meta-Agent is a framework for creating, managing, and interacting with AI agents. It provides a consistent API interface regardless of which AI provider powers your agents, allowing you to:
Meta-Agent is designed with a provider-agnostic architecture that supports multiple AI backends:
Clone the repository:
git clone <repository-url>
cd meta-agent-project
Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Set up environment variables (or use defaults in config.py):
# Create a .env file with your configuration
touch .env
The application uses a hierarchical configuration system with these options (in order of precedence):
Ollama is the default provider when no OpenAI API key is provided, offering free, locally-hosted models.
ollama pull llama2
ollama serve
In your .env file or environment variables:
OLLAMA_BASE_URL=http://localhost:11434 # Default Ollama server URL
OLLAMA_MODEL=llama2 # Default model
To use OpenAI as your provider:
.env file:
OPENAI_API_KEY=your_api_key_here
AI_PROVIDER=openai # Override default provider
meta-agent-project/
├── main.py # Application entry point
├── README.md # This documentation
├── requirements.txt # Project dependencies
├── setup.sh # Setup script
├── src/
│ ├── api/ # API endpoints and routes
│ │ ├── app.py # FastAPI application
│ │ ├── auth/ # Authentication modules
│ │ └── routes/ # API routes (users, agents, templates)
│ ├── config.py # Configuration management
│ ├── models/ # Data models and schemas
│ └── services/ # Service modules
│ ├── agent_customization/
│ ├── emotion_recognition/
│ ├── integration/ # External service integrations
│ │ ├── ai_service.py # Abstract base class
│ │ ├── ai_service_factory.py # Provider factory
│ │ ├── ollama_service.py # Ollama implementation
│ │ └── openai_service.py # OpenAI implementation
│ ├── storage/ # Database and persistence
│ │ └── database/
│ ├── template_management/
│ ├── user_management/
│ └── voice_processing/
└── tests/ # Test modules
python main.py
The API will be available at http://localhost:8000 by default.
/api/users/ - User management/api/agents/ - Agent creation and management/api/templates/ - Template management/api/conversations/ - Interact with agents[License Information]
[Contribution Guidelines]