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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c369caef6d8f4b79550cf945d72bd84f8477a5b74ba102bf7e10cfb3553b115
|
|
| MD5 |
ea3d328e51459ccd6b49685688b8faca
|
|
| BLAKE2b-256 |
8c046911d96e36e449acbb6f087903cded4d5762fbbf229dcaffa162cb8313ba
|
Provenance
The following attestation bundles were made for rebuno-0.2.0.tar.gz:
Publisher:
publish.yml on rebuno/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rebuno-0.2.0.tar.gz -
Subject digest:
4c369caef6d8f4b79550cf945d72bd84f8477a5b74ba102bf7e10cfb3553b115 - Sigstore transparency entry: 1244350161
- Sigstore integration time:
-
Permalink:
rebuno/sdk-python@59f1df01e8545a8ead9c2ec28fbd26cb78d0605e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/rebuno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@59f1df01e8545a8ead9c2ec28fbd26cb78d0605e -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
927e44baa68a3ec9674c6ef76ba4a746609d7be957c244122faf5a0d44ad2a54
|
|
| MD5 |
332ab7308557bd18c6a6214c4eaeacdc
|
|
| BLAKE2b-256 |
65d15cf796548139f799370ed9cf0a8d23b4ce853c1e115f3006ac603bd93897
|
Provenance
The following attestation bundles were made for rebuno-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on rebuno/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rebuno-0.2.0-py3-none-any.whl -
Subject digest:
927e44baa68a3ec9674c6ef76ba4a746609d7be957c244122faf5a0d44ad2a54 - Sigstore transparency entry: 1244350175
- Sigstore integration time:
-
Permalink:
rebuno/sdk-python@59f1df01e8545a8ead9c2ec28fbd26cb78d0605e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/rebuno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@59f1df01e8545a8ead9c2ec28fbd26cb78d0605e -
Trigger Event:
release
-
Statement type: