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.1.tar.gz
(23.9 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.1.tar.gz.
File metadata
- Download URL: funky_sdk-0.2.1.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54bc251be7d22a9c99ee9d93665ebd79bf41784ff2ef8008f73eb0af21e61f04
|
|
| MD5 |
5c56a67af0a48f1536f2e16dbe8312a0
|
|
| BLAKE2b-256 |
8b50d9c488810431d57ede2c011c1e7fb85c71fce14713d9a669facd977937b0
|
File details
Details for the file funky_sdk-0.2.1-py3-none-any.whl.
File metadata
- Download URL: funky_sdk-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59a87f55e717ff63de9511274d0c63a06dda66c5876db5fb14d1164eedcd69ab
|
|
| MD5 |
f49c640761aa6c00feb31d56d4bf22c6
|
|
| BLAKE2b-256 |
2b25f505ab44ce86d2e3f7ee16e3a604da2ef9a923cfe0a969224a679a86712f
|