Use this API to refine an existing analysis prompt based on feedback from demo runs. You provide the current prompt and a list of demos with the user’s feedback on what went wrong; the engine returns a refined analysis prompt and updated response descriptions. This is the iteration step in the prompt-design loop: run Validate Prompt to expand a simple instruction, run the demos against the resulting prompt, then refine when the demos don’t pass.Documentation Index
Fetch the complete documentation index at: https://velt-raghul-agent-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
POST https://api.velt.dev/v2/agents/prompt/refine
| Field | Type | Description |
|---|---|---|
data.refinerResult.analysis_prompt | string | The refined analysis prompt. |
data.refinerResult.response_descriptions | object | Updated per-field descriptions for AI response shaping. |
INVALID_ARGUMENT (missing required fields, empty demoFeedback array, or any demo entry missing required fields).