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 Client
client = Client(base_url="http://localhost:8080")
execution = await client.create("my-agent", input={"prompt": "hello"})
print(execution.id)
Client defaults to REBUNO_URL and REBUNO_API_KEY env vars when no args are passed.
Building an Agent
from rebuno import Agent, execution
agent = Agent("my-agent")
async def process(prompt: str) -> dict:
print("running execution", execution.id)
return {"answer": prompt.upper()}
agent.run(process)
The handler signature is the input schema — process(prompt: str) makes prompt a required field. Pass a pydantic.BaseModel parameter for validation, or input: dict for the raw claim. Use from rebuno import execution to access the current execution's id, session_id, history, etc.
Tools
from rebuno import tool
@tool("web.search")
async def search(query: str, limit: int = 10) -> list[str]:
return [...]
Tools are plain module-level functions. The wrapper submits an intent to the kernel before running the body. Hand them to your framework as a list:
graph = create_agent(llm, [search, ...])
Building a Runner
from rebuno import Runner, tool
@tool("compute.heavy")
async def heavy(data: str) -> str:
return process(data)
Runner("compute-1").run()
The runner advertises every @tool it imports, publishes their schemas to the kernel, and services job assignments. @tool(remote=True) lets you declare a stub in agent code for type-checked imperative calls.
Local MCP
The agent connects to the MCP server directly. Install with pip install rebuno[mcp]:
from rebuno import MCPServer
github = MCPServer(
"github",
url="https://api.githubcopilot.com/mcp/",
headers={"Authorization": "Bearer xxx"},
)
# Inside your handler:
graph = create_agent(llm, [..., *github.tools])
Remote tools (incl. remote MCP)
Discover tools that runners host elsewhere — the agent never holds credentials, never opens MCP transport. Schemas come from the kernel directory.
from rebuno import remote
github = remote.Tools("github")
compute = remote.Tools("compute")
# Inside your handler:
graph = create_agent(llm, [..., *github.tools, *compute.tools])
Each call routes through the kernel to whichever runner advertises that tool ID. Works for any source — @tool Python functions on a runner, MCP servers hosted by a runner, or both.
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.3.0.tar.gz.
File metadata
- Download URL: rebuno-0.3.0.tar.gz
- Upload date:
- Size: 114.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f05943beaabbcee2b62feaf8ae1fd50b4d409ac7a5d1e6ac6024959070e004c5
|
|
| MD5 |
ea65cf13b1a3ec0dbc5b1877ed4e8672
|
|
| BLAKE2b-256 |
4498892f26e202ac04635c62fabc62401865b56cfabfc7043ffc55861437c936
|
Provenance
The following attestation bundles were made for rebuno-0.3.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.3.0.tar.gz -
Subject digest:
f05943beaabbcee2b62feaf8ae1fd50b4d409ac7a5d1e6ac6024959070e004c5 - Sigstore transparency entry: 1429506218
- Sigstore integration time:
-
Permalink:
rebuno/sdk-python@f5b176f902aabdc6a2cb11e5c9de125265ba8f27 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/rebuno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f5b176f902aabdc6a2cb11e5c9de125265ba8f27 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rebuno-0.3.0-py3-none-any.whl.
File metadata
- Download URL: rebuno-0.3.0-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d223ee49dfaecd56b2772e260d362f02cb4a167a16dfe1107f986f65e723b81
|
|
| MD5 |
074482f0349ad0ef6ce0478400d20ac4
|
|
| BLAKE2b-256 |
e5f2b40855761c5ba6f4b2357273cd54fefbe5519d6d07a6d6e8e6d4295b5c03
|
Provenance
The following attestation bundles were made for rebuno-0.3.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.3.0-py3-none-any.whl -
Subject digest:
7d223ee49dfaecd56b2772e260d362f02cb4a167a16dfe1107f986f65e723b81 - Sigstore transparency entry: 1429506227
- Sigstore integration time:
-
Permalink:
rebuno/sdk-python@f5b176f902aabdc6a2cb11e5c9de125265ba8f27 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/rebuno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f5b176f902aabdc6a2cb11e5c9de125265ba8f27 -
Trigger Event:
release
-
Statement type: