Developers
Put Babu inside your application
The Ask Babu library is the open-source core of AskBabu: a permission-aware assistant for your own software, MIT licensed. It is in alpha, so its APIs may still change before 1.0.
Quick start
pip install "ask-babu[fastapi]" # from source until the PyPI release
from babu import Agent, tool
@tool(permission="math.use")
def add(a: int, b: int) -> int:
"""Add two numbers."""
return a + b
babu = Agent(model="ollama:llama3.2", tools=[add])
print(babu.run("What is 2 + 3?"))Provider-agnostic
Ollama, OpenAI, OpenAI-compatible servers and Gemini, chosen with one model string.
Permissions first
Tools are denied unless your application grants the permission, checked before every call.
Reviewed actions
Changes to business data are prepared as an editable preview and submitted only by the user.
Documents and forms
Reads PDF, DOCX, XLSX, PPTX, CSV and more, and fills forms without inventing missing values.
Framework adapters
FastAPI, Flask and Django, an embeddable React assistant, and an HTTP service for any language.
Local first
Runs entirely on your machines with a local model when nothing may leave them.
Platform API
This website runs on the AskBabu platform API (/api/v1): health, the service catalog and chat. It is the website's own backend, not yet a public developer API; there are no public API keys.