Skip to main content

Install

Requires Python 3.11 or later. The SDK pulls in httpx2, pydantic (v2), fastapi, and uvicorn.

Configuration

Every entry point takes constructor arguments first, then environment variables.

The loop

Your backend and your agent communicate through the kernel.
  1. A client calls client.create(agent_id, input=...). The kernel records the execution and POSTs a signed webhook to your agent.
  2. Your agent verifies the signature, looks up the execution, and runs your handler. Each effect goes to the kernel as a step before it runs. The kernel decides whether it proceeds, replays a recorded result, is denied by policy, or waits for approval.
  3. When the handler returns, the agent reports the output and the execution completes. If it blocked on an approval or crashed, the kernel re-dispatches later and the recorded steps replay.

A complete example

Running locally

The kernel is a separate service. Point REBUNO_URL or base_url at it. Next: Agents.