Prompts

✨ Get refined prompt

Changed on
<Card href="https://humansignal.com/goenterprise"> <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/> <p style="margin-top: 10px; font-size: 14px;"> This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) </p> </Card> Get the refined prompt based on the `refinement_job_id`.
get/api/prompts/{prompt_id}/versions/{version_id}/refine

Request

Path parameters

prompt_idinteger required
version_idinteger required

Query parameters

refinement_job_idstring

Refinement Job ID acquired from the POST /api/prompts/{prompt_id}/versions/{version_id}/refine endpoint

Response

Refined prompt response

promptstring required

The refined prompt text

reasoningstring nullable required

Reasoning behind the refinement

refinement_job_idstring nullable required

Unique identifier for the refinement job

refinement_statusstring nullable required

Status of the refinement job

titlestring nullable required

Title of the refined prompt

total_coststring nullable required

Total cost of the refinement job (in USD)

Changes

    • info

      the response optional property ///// became read-only for the status

    • info

      the response optional property ///// became read-only for the status

    • info

      the response property ///// became required for the status

    • info

      the response property ///// became required for the status

    • breaking

      the response property ////////// became nullable for the status

    • breaking

      the response property ////////// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the ///// response's property type changed from string to number, and format from no format to double for status

    • breaking

      the ///// response's property type changed from string to number, and format from no format to double for status