PUT
/
sdk
/
v1
/
evaluations
/
{id}
curl --request PUT \
  --url https://api.promptfoundry.ai/sdk/v1/evaluations/{id} \
  --header 'Content-Type: application/json'
{
  "id": "<string>",
  "promptId": "<string>",
  "appendedMessages": [
    {
      "content": "<string>",
      "role": "assistant",
      "toolCallId": "<string>",
      "toolCalls": [
        {
          "toolCallId": "<string>",
          "type": "function",
          "function": {
            "arguments": "<string>",
            "name": "<string>"
          }
        }
      ]
    }
  ],
  "variables": {}
}

Path Parameters

id
string
required

Body

application/json
promptId
string
required
appendedMessages
object[]
required

The messages to append to the completion messages when running the evaluation.

variables
object
required

The template variables added to the prompt when executing the prompt.

Response

200 - application/json
id
string
required
promptId
string
required
appendedMessages
object[]
required

The messages to append to the completion messages when running the evaluation.

variables
object
required

The template variables added to the prompt when executing the prompt.