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.0.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.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rebuno-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 10512ee5efbcbe81794431ee8c19d0dbbdd7783f379c44da4625ff56755db28e
MD5 bff715bdebdef16dab5f2a5ade5b1d45
BLAKE2b-256 7924e6c498e534910ff09e3a38f4a93907bd0592c6171fc261962f42f054cb57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rebuno-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 addebf33da2fd139b0a768eee13a760008178cae064f3f821298253a6fa12238
MD5 22ab8bfb0098347b618e9457e4bdd7e1
BLAKE2b-256 0728cff697733cc0647cdba76d50c821a54c6a16931d9ace820a86ea53f033b8

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