@@ -3823,150 +3823,294 @@ paths:
38233823 schema :
38243824 $ref : ' #/components/schemas/BatchErrorResponse'
38253825
3826- /evaluations :
3826+ /v1/evaluation :
3827+ post :
3828+ tags :
3829+ - evaluation
3830+ summary : Create an evaluation job
3831+ operationId : createEvaluationJob
3832+ requestBody :
3833+ required : true
3834+ content :
3835+ application/json :
3836+ schema :
3837+ $ref : " #/components/schemas/EvaluationTypedRequest"
3838+ responses :
3839+ " 200 " :
3840+ description : " Evaluation job created successfully"
3841+ content :
3842+ application/json :
3843+ schema :
3844+ $ref : " #/components/schemas/EvaluationResponse"
3845+ " 400 " :
3846+ description : " Invalid request format"
3847+ content :
3848+ application/json :
3849+ schema :
3850+ $ref : " #/components/schemas/ErrorData"
3851+ " 500 " :
3852+ description : " Failed to create evaluation job"
3853+ content :
3854+ application/json :
3855+ schema :
3856+ $ref : " #/components/schemas/ErrorData"
38273857 get :
3828- tags : ['Evaluations']
3829- summary : List evaluation jobs
3830- description : Get a list of evaluation jobs with optional filtering
3831- operationId : evaluations-list
3832- x-stainless-resource-name : evaluationList
3858+ tags :
3859+ - evaluation
3860+ summary : Get all evaluation jobs
3861+ operationId : getAllEvaluationJobs
38333862 parameters :
38343863 - name : status
38353864 in : query
3836- description : Filter by job status
3865+ required : false
38373866 schema :
38383867 type : string
3839- enum : [ pending, queued, running, completed, error, user_error]
3868+ default : " pending"
38403869 - name : limit
38413870 in : query
3842- description : Maximum number of results to return (max 100)
3871+ required : false
38433872 schema :
38443873 type : integer
3845- minimum : 1
3846- maximum : 100
38473874 default : 10
3875+ - name : userId
3876+ in : query
3877+ required : false
3878+ description : " Admin users can specify a user ID to filter jobs. Pass empty string to get all jobs."
3879+ schema :
3880+ type : string
38483881 responses :
3849- ' 200 ' :
3850- description : Successful response
3882+ " 200 " :
3883+ description : " evaluation jobs retrieved successfully "
38513884 content :
38523885 application/json :
38533886 schema :
38543887 type : array
38553888 items :
3856- $ref : ' #/components/schemas/EvaluationJob'
3857- ' 400 ' :
3858- description : Bad request
3889+ $ref : " #/components/schemas/EvaluationJob"
3890+ " 400 " :
3891+ description : " Invalid request format "
38593892 content :
38603893 application/json :
38613894 schema :
3862- $ref : ' #/components/schemas/ErrorData'
3895+ $ref : " #/components/schemas/ErrorData"
3896+ " 500 " :
3897+ description : " Error retrieving jobs from manager"
3898+ content :
3899+ application/json :
3900+ schema :
3901+ $ref : " #/components/schemas/ErrorData"
3902+ /v1/evaluation/model-list :
3903+ get :
3904+ tags :
3905+ - evaluation
3906+ summary : Get model list
3907+ operationId : getModelList
3908+ parameters :
3909+ - name : model_source
3910+ in : query
3911+ required : false
3912+ schema :
3913+ type : string
3914+ default : " all"
3915+ responses :
3916+ " 200 " :
3917+ description : " Model list retrieved successfully"
3918+ content :
3919+ application/json :
3920+ schema :
3921+ type : object
3922+ properties :
3923+ model_list :
3924+ type : array
3925+ items :
3926+ type : string
3927+ description : " The name of the model"
3928+ " 400 " :
3929+ description : " Invalid request format"
3930+ content :
3931+ application/json :
3932+ schema :
3933+ $ref : " #/components/schemas/ErrorData"
3934+ " 500 " :
3935+ description : " Error retrieving model list"
3936+ content :
3937+ application/json :
3938+ schema :
3939+ $ref : " #/components/schemas/ErrorData"
3940+ /v1/evaluations :
3941+ get :
3942+ tags :
3943+ - evaluation
3944+ summary : Get all evaluation jobs
3945+ operationId : getAllEvaluationsJobs
3946+ parameters :
3947+ - name : status
3948+ in : query
3949+ required : false
3950+ schema :
3951+ type : string
3952+ default : " pending"
3953+ - name : limit
3954+ in : query
3955+ required : false
3956+ schema :
3957+ type : integer
3958+ default : 10
3959+ - name : userId
3960+ in : query
3961+ required : false
3962+ description : " Admin users can specify a user ID to filter jobs. Pass empty string to get all jobs."
3963+ schema :
3964+ type : string
3965+ responses :
3966+ " 200 " :
3967+ description : " evaluation jobs retrieved successfully"
3968+ content :
3969+ application/json :
3970+ schema :
3971+ type : array
3972+ items :
3973+ $ref : " #/components/schemas/EvaluationJob"
3974+ " 400 " :
3975+ description : " Invalid request format"
3976+ content :
3977+ application/json :
3978+ schema :
3979+ $ref : " #/components/schemas/ErrorData"
3980+ " 500 " :
3981+ description : " Error retrieving jobs from manager"
3982+ content :
3983+ application/json :
3984+ schema :
3985+ $ref : " #/components/schemas/ErrorData"
38633986
3864- /evaluation/{id} :
3987+ /v1/ evaluation/{id} :
38653988 get :
3866- tags : ['Evaluations']
3989+ tags :
3990+ - evaluation
38673991 summary : Get evaluation job details
3868- description : Get details of a specific evaluation job
3869- operationId : evaluation-get
3992+ operationId : getEvaluationJobDetails
38703993 parameters :
38713994 - name : id
38723995 in : path
38733996 required : true
3874- description : The evaluation job ID
38753997 schema :
38763998 type : string
38773999 responses :
3878- ' 200 ' :
3879- description : Successful response
4000+ " 200 " :
4001+ description : " Evaluation job details retrieved successfully "
38804002 content :
38814003 application/json :
38824004 schema :
3883- $ref : ' #/components/schemas/EvaluationJob'
3884- ' 404 ' :
3885- description : Job not found
4005+ $ref : " #/components/schemas/EvaluationJob"
4006+ " 404 " :
4007+ description : " Evaluation job not found"
38864008 content :
38874009 application/json :
38884010 schema :
3889- $ref : ' #/components/schemas/ErrorData'
3890- ' 500 ' :
3891- description : Internal server error
4011+ $ref : " #/components/schemas/ErrorData"
4012+ " 500 " :
4013+ description : " Failed to get evaluation job "
38924014 content :
38934015 application/json :
38944016 schema :
3895- $ref : ' #/components/schemas/ErrorData'
4017+ $ref : " #/components/schemas/ErrorData"
38964018
3897- /evaluation/{id}/status :
4019+ /v1/ evaluation/{id}/status :
38984020 get :
3899- tags : ['Evaluations']
4021+ tags :
4022+ - evaluation
39004023 summary : Get evaluation job status and results
3901- description : Get the status and results of a specific evaluation job
3902- operationId : evaluation-status
4024+ operationId : getEvaluationJobStatusAndResults
39034025 parameters :
39044026 - name : id
39054027 in : path
39064028 required : true
3907- description : The evaluation job ID
39084029 schema :
39094030 type : string
39104031 responses :
3911- ' 200 ' :
3912- description : Successful response
4032+ " 200 " :
4033+ description : " Evaluation job status and results retrieved successfully "
39134034 content :
39144035 application/json :
39154036 schema :
39164037 type : object
39174038 properties :
39184039 status :
39194040 type : string
3920- enum :
3921- [pending, queued, running, completed, error, user_error]
3922- example : completed
4041+ description : " The status of the evaluation job"
4042+ enum : ["completed", "error", "user_error", "running", "queued", "pending"]
39234043 results :
4044+ description : " The results of the evaluation job"
39244045 oneOf :
3925- - $ref : ' #/components/schemas/EvaluationClassifyResults'
3926- - $ref : ' #/components/schemas/EvaluationScoreResults'
3927- - $ref : ' #/components/schemas/EvaluationCompareResults'
3928- - type : object
3929- properties :
3930- error :
3931- type : string
3932- nullable : true
3933- ' 404 ' :
3934- description : Job not found
4046+ - $ref : " #/components/schemas/EvaluationClassifyResults"
4047+ - $ref : " #/components/schemas/EvaluationScoreResults"
4048+ - $ref : " #/components/schemas/EvaluationCompareResults"
4049+ " 404 " :
4050+ description : " Evaluation job not found"
39354051 content :
39364052 application/json :
39374053 schema :
3938- $ref : ' #/components/schemas/ErrorData'
3939- ' 500 ' :
3940- description : Internal server error
4054+ $ref : " #/components/schemas/ErrorData"
4055+ " 500 " :
4056+ description : " Failed to get evaluation job "
39414057 content :
39424058 application/json :
39434059 schema :
3944- $ref : ' #/components/schemas/ErrorData'
4060+ $ref : " #/components/schemas/ErrorData"
39454061
3946- /evaluations/model-list :
3947- get :
3948- tags : ['Evaluations']
3949- summary : Get allowed models list
3950- description : Get the list of models that are allowed for evaluation
3951- operationId : evaluations-model-list
4062+ /v1/evaluation/{id}/update :
4063+ post :
4064+ tags :
4065+ - evaluation
4066+ summary : Update evaluation job status and results
4067+ operationId : updateEvaluationJobStatusAndResults
4068+ parameters :
4069+ - name : id
4070+ in : path
4071+ required : true
4072+ schema :
4073+ type : string
4074+ requestBody :
4075+ required : true
4076+ content :
4077+ application/json :
4078+ schema :
4079+ type : object
4080+ properties :
4081+ status :
4082+ type : string
4083+ enum : [completed, error, user_error, running, queued, pending]
4084+ results :
4085+ type : object
4086+ description : " The results of the evaluation job. The concrete structure depends on the type of evaluation job"
4087+ error :
4088+ type : string
4089+ description : " Error message when status is 'error' or 'user_error'"
39524090 responses :
3953- ' 200 ' :
3954- description : Successful response
4091+ " 200 " :
4092+ description : " Evaluation job status updated successfully "
39554093 content :
39564094 application/json :
39574095 schema :
39584096 type : object
39594097 properties :
3960- model_list :
3961- type : array
3962- items :
3963- type : string
3964- ' 500 ' :
3965- description : Internal server error
4098+ workflow_id :
4099+ type : string
4100+ status :
4101+ type : string
4102+ " 400 " :
4103+ description : " Invalid request format "
39664104 content :
39674105 application/json :
39684106 schema :
3969- $ref : ' #/components/schemas/ErrorData'
4107+ $ref : " #/components/schemas/ErrorData"
4108+ " 500 " :
4109+ description : " Failed to update job status"
4110+ content :
4111+ application/json :
4112+ schema :
4113+ $ref : " #/components/schemas/ErrorData"
39704114
39714115 /realtime :
39724116 get :
0 commit comments