PromptPlaygroundsClient
adaline.prompts.playgrounds reads the playgrounds attached to a prompt — the saved test scenarios with their own messages, variables, and run history.
Access
@adaline/api:
list()
List all playgrounds attached to a prompt.Parameters
| Name | Type | Required | Description |
|---|---|---|---|
promptId | string | Yes | Prompt identifier. |
Returns
Promise<ListPlaygroundsResponse> with { data: Playground[] }.
Example
get()
Retrieve a single playground by ID.Parameters
| Name | Type | Required | Description |
|---|---|---|---|
promptId | string | Yes | Prompt identifier. |
playgroundId | string | Yes | Playground identifier. |
Returns
Promise<PlaygroundDetail> — the full playground with its messages, variables, and recent runs.
Example
See Also
- PromptsClient — parent client
- API reference: List playgrounds · Get playground