Experience

A handle to one experience.

Obtained from ThanklyClient.createExperience or ThanklyClient.experience.

Properties

Link copied to clipboard

Per-experience token; safe to hand to an untrusted client.

Link copied to clipboard

The experience's id.

Functions

Link copied to clipboard
suspend fun await(): ExperienceResult

Poll until generation finishes, then return the result.

Link copied to clipboard
suspend fun refine(capabilityId: String, expectedVersion: Int, prompt: String? = null, accept: List<String> = emptyList(), reject: List<String> = emptyList()): ExperienceResult

Refine one capability's output.

Link copied to clipboard

Emit every poll, including pending ones, until generation finishes.