Skip to main content

PromptPlaygroundsClient

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

Access

The class is also exported directly:
Types from @adaline/api:

list()

List all playgrounds attached to a prompt.

Parameters

Returns

Promise<ListPlaygroundsResponse> with { data: Playground[] }.

Example


get()

Retrieve a single playground by ID.

Parameters

Returns

Promise<PlaygroundDetail> — the full playground with its messages, variables, and recent runs.

Example


See Also