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
from google.adk.agents import Agent
from funky import Workspace
# Create a workspace (blocks until ready)
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])
# Delete workspace when done
message = ws.delete()
print(message)
API behavior
Workspace.create(...)callsPOST /workspace, then streamsGET /workspace/{claim_name}/eventsvia SSE until the workspace is ready.Workspace.execute(command)callsPOST /workspaces/{claim_name}/exec?command=....Workspace.delete()callsDELETE /workspaces/{claim_name}and returns the backend response string.- The workspace exposes
claim_name,namespace, andpod_nameafter creation. - 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.2.9.tar.gz
(27.7 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.2.9.tar.gz.
File metadata
- Download URL: funky_sdk-0.2.9.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb3ee5823c1c18569f7570ea662f97209d62cf2dff8587f612b729b2bd3db015
|
|
| MD5 |
9c81708863a950d0193a0c115bbaec66
|
|
| BLAKE2b-256 |
367878eda1aa02d595714fd2972be5055dfe69ac355cc9b01cda085a23b1cb17
|
File details
Details for the file funky_sdk-0.2.9-py3-none-any.whl.
File metadata
- Download URL: funky_sdk-0.2.9-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5070c75249a9676e2ea5c7c7743a39c57606b387bc4653cef8af9190383ad9ed
|
|
| MD5 |
2a7abf64dcc3102f3bf0f75d535a5d6f
|
|
| BLAKE2b-256 |
8115f4652dac28e90235b1f1b828d992d1f2b459d90f4907c8adca17a7150de8
|