SDK for connecting a Funky workspace to agents
Project description
funky-sdk
SDK for connecting a Funky workspace to agents through the backend API.
Install (uv)
uv sync --group dev
Usage
Set your API secret first:
export FUNKY_API_SECRET="your-secret"
from google.adk.agents import Agent
from funky import Workspace
# Initialize your SDK
ws = Workspace.create()
# Define the tool using your simple API
def run_remote_code(command: str):
"""Executes bash commands in the secure Funky workspace."""
result = ws.execute(command)
return result.stdout
# Attach to Agent
agent = Agent(tools=[run_remote_code])
You can also pass the secret directly:
ws = Workspace.create(api_secret="your-secret")
API behavior
Workspace.create(...)callsPOST /workspacesand stores the returnedworkspace_id.Workspace.execute(command)callsPOST /workspaces/{workspace_id}/exec?command=....- Responses are exposed via
ExecutionResult:stdout: command output from backendstderr: currently empty stringexit_code: currently0on successful API response
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
funky_sdk-0.1.1.tar.gz
(23.2 kB
view details)
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 funky_sdk-0.1.1.tar.gz.
File metadata
- Download URL: funky_sdk-0.1.1.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
748fdc24d4f90999ea95c2819eb45f1293c8f42544e31aa571eebe36b45daeb9
|
|
| MD5 |
36b7afe928de7fd7c356f3a5ad31912e
|
|
| BLAKE2b-256 |
9eaa1fc7d7d7c764f57c7aae7eeb86393fdf2b0233e561ab2e0feca1fddc30e4
|
File details
Details for the file funky_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: funky_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99f944b7a4404e4de8cfa8207ea944dbc1faa84d3c778fafac24e51329131e77
|
|
| MD5 |
cd4741e03f074e8450a2c782dacebd71
|
|
| BLAKE2b-256 |
3d2c7788b4f0e57ecc6700a7463a2701b4c84141c1e5e87e5a34761014d7e44a
|