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.1.1.tar.gz (34.5 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.1.1-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rebuno-0.1.1.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for rebuno-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ceb8291d3dfb22d3d9e93d64b754a54ef3e92bc032674f9bde4715f2dd3aa073
MD5 ed4e3cb6de99facf5ca5b2e1cf61363a
BLAKE2b-256 474d1388d86de227f62cd83f20bfc41368e2f47cd1442f299daacd313e86a32d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rebuno-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for rebuno-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69bcf5a2315f99d65c40e4bbd2dfc69b3256885920bbc6100b4b2ed4ed95dff4
MD5 a76c66452105c95089d5075bb3e8db35
BLAKE2b-256 767c4ec4e04944385539e4bdef10ec5763a9cb98edf2d5c31237cb1467c48480

See more details on using hashes here.

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