API Reference
Update Evaluation
Update an evaluation by ID.
PUT
/
sdk
/
v1
/
evaluations
/
{id}
Path Parameters
id
string
requiredBody
application/json
promptId
string
requiredappendedMessages
object[]
requiredThe messages to append to the completion messages when running the evaluation.
variables
object
requiredThe template variables added to the prompt when executing the prompt.
weight
number
default: 1How heavily to weigh the evaluation within the prompt.
Required range:
0 < x < 1
threshold
number
default: 1What percentage of assertions must pass for the evaluation to pass.
Required range:
0 < x < 1
Response
200 - application/json
id
string
requiredpromptId
string
requiredappendedMessages
object[]
requiredThe messages to append to the completion messages when running the evaluation.
variables
object
requiredThe template variables added to the prompt when executing the prompt.
weight
number
default: 1How heavily to weigh the evaluation within the prompt.
Required range:
0 < x < 1
threshold
number
default: 1What percentage of assertions must pass for the evaluation to pass.
Required range:
0 < x < 1
Was this page helpful?