Open-source toolkit for building voice agents that speak and understand Kiswahili and other African languages. Powered by LLMs + LangChain.
# Kiswahili Voice Agent Toolkit ππ€
**Build powerful voice & text agents that speak and understand Kiswahili.**
Open-source toolkit for creating real agentic applications for East Africa and beyond.
Now with **LangGraph**, **tool calling**, **multi-provider support**, and a beautiful **web demo**.
---
## β¨ What's New (Powerful Mode)
- **LangGraph orchestration** β proper agent loops with tool calling
- **Real tools** out of the box:
- Hali ya hewa (weather) β any city
- Muda wa sasa (current time)
- Hesabu (calculator)
- **Multi-provider**: Groq (fast & cheap) or OpenAI
- **5 specialized agents**: General, Farm Advisor, Customer Support, Education Tutor, Health Info
- **Beautiful Gradio web interface**
- Clean, production-ready structure
## Quick Start
```bash
git clone
github.com
cd kiswahili-voice-agent-toolkit
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env
# Add GROQ_API_KEY or OPENAI_API_KEY
```
### Run the CLI agent
```bash
python examples/basic_kiswahili_agent.py
```
### Run the powerful demo
```bash
python examples/powerful_demo.py
```
### Launch the Web UI
```bash
python web/app.py
```
Then open
localhost
## Project Structure
```
kiswahili-voice-agent-toolkit/
βββ agents/
β βββ base_agent.py # LangGraph-powered agent
βββ prompts/
β βββ kiswahili_system.py # High-quality role prompts
βββ tools/
β βββ common_tools.py # Weather, time, calculator...
βββ examples/
β βββ basic_kiswahili_agent.py
β βββ farm_advisor.py
β βββ powerful_demo.py
βββ web/
β βββ app.py # Gradio interface
βββ requirements.txt
βββ README.md
```
## Example Capabilities
| Feature | Example Prompt | Result |
|---------------------------|-----------------------------------------|--------------------------- β¦