> ## Documentation Index
> Fetch the complete documentation index at: https://www.adaline.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt playgrounds

# PromptPlaygroundsClient

`adaline.prompts.playgrounds` reads the playgrounds attached to a prompt — the saved test scenarios with their own messages, variables, and run history. Every method is async.

## Access

```python theme={null}
from adaline.main import Adaline

adaline = Adaline()
playgrounds = adaline.prompts.playgrounds  # PromptPlaygroundsClient
```

The class is also exported directly:

```python theme={null}
from adaline.clients import PromptPlaygroundsClient
```

Types from `adaline_api`:

```python theme={null}
from adaline_api.models.list_playgrounds_response import ListPlaygroundsResponse
from adaline_api.models.playground_detail import PlaygroundDetail
```

***

## list()

List all playgrounds attached to a prompt.

```python theme={null}
async def list(*, prompt_id: str) -> ListPlaygroundsResponse
```

### Example

```python theme={null}
response = await adaline.prompts.playgrounds.list(prompt_id="prompt_abc123")

for playground in response.data:
    print(playground.id, playground.title)
```

***

## get()

Retrieve a single playground by ID.

```python theme={null}
async def get(
    *,
    prompt_id: str,
    playground_id: str,
) -> PlaygroundDetail
```

### Example

```python theme={null}
playground = await adaline.prompts.playgrounds.get(
    prompt_id="prompt_abc123",
    playground_id="playground_xyz789",
)

print(playground.variables)
```

***

## See Also

* [PromptsClient](/docs/reference/sdk/v2/python/classes/prompts) — parent client
* API reference: [List playgrounds](/docs/reference/api/v2/openapi/list-playgrounds) · [Get playground](/docs/reference/api/v2/openapi/get-playground)
