GET
/
sdk
/
v1
/
evaluation-assertions
import PromptFoundry from '@prompt-foundry/typescript-sdk';

const client = new PromptFoundry({
  apiKey: process.env['PROMPT_FOUNDRY_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const evaluationAssertions = await client.evaluationAssertions.list();

  console.log(evaluationAssertions);
}

main();
[
  {
    "type": "EXACT_MATCH",
    "evaluationId": "<string>",
    "weight": 1,
    "targetValue": "<string>",
    "jsonPath": "$",
    "ignoreCase": false,
    "negate": false,
    "id": "<string>"
  }
]

Query Parameters

evaluationId
string

Optional ID to filter the assertions by specific evaluation ID

Example:

"eval-1234"

Response

200
application/json

Successful operation