File tree 2 files changed +47
-3
lines changed
2 files changed +47
-3
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,14 @@ paths:
78
78
- public
79
79
80
80
/api/prompts/{prompt_id}/versions/{version_id}/refine :
81
+ get :
82
+ $ref : " ./resources/prompts.yaml#/paths/~1api~1prompts~1{prompt_id}~1versions~1{version_id}~1refine/get"
83
+ x-fern-sdk-group-name :
84
+ - prompts
85
+ - versions
86
+ x-fern-sdk-method-name : get_refined_prompt
87
+ x-fern-audiences :
88
+ - public
81
89
post :
82
90
$ref : " ./resources/prompts.yaml#/paths/~1api~1prompts~1{prompt_id}~1versions~1{version_id}~1refine/post"
83
91
x-fern-sdk-group-name :
Original file line number Diff line number Diff line change @@ -281,6 +281,34 @@ paths:
281
281
$ref : " #/components/schemas/InferenceRun"
282
282
283
283
/api/prompts/{prompt_id}/versions/{version_id}/refine :
284
+ get :
285
+ summary : Get refined prompt
286
+ description : >
287
+ Get the refined prompt based on the `refinement_job_id`.
288
+ parameters :
289
+ - name : prompt_id
290
+ in : path
291
+ description : Prompt ID
292
+ required : true
293
+ schema :
294
+ type : integer
295
+ - name : version_id
296
+ in : path
297
+ description : Prompt Version ID
298
+ required : true
299
+ schema :
300
+ type : integer
301
+ - name : refinement_job_id
302
+ in : query
303
+ description : Refinement Job ID acquired from the `POST /api/prompts/{prompt_id}/versions/{version_id}/refine` endpoint
304
+ responses :
305
+ " 200 " :
306
+ description : " "
307
+ content :
308
+ application/json :
309
+ schema :
310
+ $ref : " #/components/schemas/RefinedPromptResponse"
311
+
284
312
post :
285
313
summary : Refine a prompt version
286
314
description : >
@@ -668,11 +696,19 @@ components:
668
696
title : Refinement Job ID
669
697
description : Unique identifier for the refinement job
670
698
readOnly : true
699
+ refinement_status :
700
+ type : string
701
+ title : Refinement Status
702
+ description : Status of the refinement job
703
+ enum :
704
+ - Pending
705
+ - InProgress
706
+ - Completed
707
+ - Failed
708
+ readOnly : true
709
+ default : Pending
671
710
required :
672
- - title
673
- - reasoning
674
711
- prompt
675
- - refinement_job_id
676
712
677
713
requestBodies :
678
714
api_prompts_batch_predictions_create :
You can’t perform that action at this time.
0 commit comments