BYO: Prepare Grounded Prompt
ask_prepareBYO step 1 of 2: run the server-side trust plane for a business question (plan, SQL-verified facts, evidence retrieval, answerability gate, prompt composition) and return the composed prompt plus a single-use prepare_key (a signed handoff token; echo it back VERBATIM and in full, or use the short ask_id alias; in prose always say the ask_id, never the token). Read-only: prepare holds no server state and is safe to run without confirmation — the receipt is minted only at ask_submit_draft. Pass the user's question VERBATIM: do not expand, narrow, or reword it — the server plans coverage itself, and an unrequested rewrite misleads the user about what was asked. If you must revise it (e.g. to fold in essential conversation context), you MUST also pass the user's exact wording in original_question so the panel can disclose the revision. YOU (the connected model) then write the draft answer from that prompt and submit it with ask_submit_draft — generation happens on your side, so no LLM credential ever reaches this server. An unanswerable question still receives a prompt for reference; its draft is force-refused at submit and can never earn a verified verdict. Only a policy refusal stops at prepare. Recommended drafting path on this deployment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| history | No | optional prior conversation turns (role user|assistant) to thread into the composed prompt for follow-up questions | |
| question | Yes | the business question to ground, in the USER'S OWN WORDS, verbatim; do not expand, narrow, or reword it — the server plans coverage itself. The server plans, computes SQL facts, retrieves evidence, gates answerability, and composes the prompt YOU should answer from | |
| original_question | No | REQUIRED IF question is not the user's exact wording: the user's original question, verbatim, so the panel can display your revision as a revision. Omit when question is verbatim |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ask_id | No | ||
| refusal | No | ||
| messages | No | ||
| question | No | ||
| session_id | No | ||
| prepare_key | No | ||
| instructions | No | ||
| max_output_tokens | No | ||
| original_question | No | ||
| expires_in_seconds | No |