PromptDraftClient
adaline.prompts.draft reads the current working draft of a prompt — the unsaved version shown in the editor before a save is applied.
Today the only operation is get; the sub-namespace exists to leave room for future draft mutations without reshuffling call sites.
Access
@adaline/api:
get()
Get the current draft for a prompt — the unsaved working version shown in the editor before a save.Parameters
| Name | Type | Required | Description |
|---|---|---|---|
promptId | string | Yes | Prompt identifier. |
Returns
Promise<PromptDraft> with config, messages, tools, and variables mirroring the PromptSnapshot shape.
Example
See Also
- PromptsClient — parent client
- PromptSnapshot
- API reference: Get prompt draft