Skip to content

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?"))

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.