Metadata-Version: 2.4
Name: funky-sdk
Version: 0.2.14
Summary: SDK for spawning sub-agents with full isolation
Author-email: JasonJin <jason@funky.dev>
Requires-Python: >=3.13
Requires-Dist: certifi>=2026.1.4
Description-Content-Type: text/markdown

# funky-sdk

Python SDK for spawning isolated Funky sub-agents.

## Install

```bash
pip install funky-sdk
```

## Getting started

```python
from funky import Funky

client = Funky(
    api_key=os.environ.get("FUNKY_API_KEY"),  # This is the default and can be omitted
)

sub_agent = client.create_subagent(model="claude-opus-4-7")
try:
    messages = sub_agent.send_message("What is 2 * 2?")
    print(messages[-1].text)
finally:
    sub_agent.terminate()
```

`create_subagent` also accepts an optional `system_prompt`:

```python
sub_agent = client.create_subagent(
    model="claude-opus-4-7",
    system_prompt="You are a terse coding assistant.",
)
```

## Requirements

Python 3.13+
