A multi-agent simulation framework with LLM-powered agents and Godot frontend visualization. Features a house with multi-stage, interactable objects and items and a visualisation system made in Godot. Made with Kani.
- Backend: FastAPI, Kani (LLM), OpenAI API
- Frontend: Godot Engine
git clone <repository-url>
cd multi_agent_playground
# Install dependencies with uv (recommended)
uv sync
# Or use pip
pip install -r requirements.txt# Create .env file with your OpenAI API key
echo "OPENAI_API_KEY=your-api-key-here" > .env# Start server (recommended)
uv run python -m uvicorn backend.main:app --reload
# Alternative manual startup
uv run python tests/manual/run_backend.py- Install Godot Engine 4.x
- Open
frontend/Godot-Multi-Agent-Playground/project.godot - Run scene
scenes/test/test_scene_multi_agent.tscn
Agent configurations are externalized to YAML files:
backend/config/llm.yaml: LLM engine settingsbackend/config/agents.yaml: Agent personas and preferencesbackend/config/prompts.yaml: System prompt templatesbackend/config/defaults.yaml: Fallback values
All tests use uv run for proper dependency management:
# Run all tests
uv run python -m pytest tests/
# Backend API tests
uv run python -m pytest tests/test_backend_endpoints.py
# Agent behavior tests
uv run python -m pytest tests/integration/test_agent_runner.py
# Integration tests
uv run python -m pytest tests/integration/
# Quick API test
uv run python tests/integration/test_api.py