Skip to main content

Python SDK for the Rebuno execution runtime

Project description

Rebuno Python SDK

Python client library for the Rebuno agent execution runtime.

Installation

pip install rebuno

Quick Start

from rebuno import RebunoClient

client = RebunoClient(base_url="http://localhost:8080")

# Create an execution
result = client.create_execution(agent_id="my-agent", input={"task": "hello"})
print(result["execution_id"])

Building an Agent

from rebuno.agent import BaseAgent

class MyAgent(BaseAgent):
    def process(self, ctx):
        result = ctx.invoke_tool("web.search", {"query": "hello"})
        return {"answer": result}

agent = MyAgent(
    agent_id="my-agent",
    kernel_url="http://localhost:8080",
)
agent.run()

Building a Runner

from rebuno.runner import BaseRunner

class MyRunner(BaseRunner):
    def execute(self, tool_id, arguments):
        if tool_id == "web.search":
            return {"results": ["..."]}
        raise ValueError(f"Unknown tool: {tool_id}")

runner = MyRunner(
    runner_id="my-runner",
    kernel_url="http://localhost:8080",
    capabilities=["web.search"],
)
runner.run()

MCP Support

Connect to MCP servers to expose their tools through the kernel:

pip install rebuno[mcp]
import asyncio
from rebuno import AsyncBaseRunner

runner = AsyncBaseRunner(
    runner_id="mcp-tools",
    kernel_url="http://localhost:8080",
)
runner.mcp_server(
    "filesystem",
    command="npx",
    args=["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
)
asyncio.run(runner.run())

Agents can also use MCP tools as local tools:

agent.mcp_server("filesystem", command="npx", args=["-y", "@modelcontextprotocol/server-filesystem", "/tmp"])

See the full documentation for details on partial failure tolerance, config-based setup, and runner MCP routing.

Documentation

See the full documentation.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rebuno-0.2.0.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rebuno-0.2.0-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file rebuno-0.2.0.tar.gz.

File metadata

  • Download URL: rebuno-0.2.0.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rebuno-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4c369caef6d8f4b79550cf945d72bd84f8477a5b74ba102bf7e10cfb3553b115
MD5 ea3d328e51459ccd6b49685688b8faca
BLAKE2b-256 8c046911d96e36e449acbb6f087903cded4d5762fbbf229dcaffa162cb8313ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for rebuno-0.2.0.tar.gz:

Publisher: publish.yml on rebuno/sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rebuno-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rebuno-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rebuno-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 927e44baa68a3ec9674c6ef76ba4a746609d7be957c244122faf5a0d44ad2a54
MD5 332ab7308557bd18c6a6214c4eaeacdc
BLAKE2b-256 65d15cf796548139f799370ed9cf0a8d23b4ce853c1e115f3006ac603bd93897

See more details on using hashes here.

Provenance

The following attestation bundles were made for rebuno-0.2.0-py3-none-any.whl:

Publisher: publish.yml on rebuno/sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page