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
type
enum<string>
required
Available options:
EXACT_MATCH
evaluationId
string
required
targetValue
string
required

The value to match.

id
string
required
weight
number
default:
1

How heavily to weigh the assertion within the evaluation.

Required range: 0 <= x <= 1
jsonPath
string | null
default:
$

A JSON path to use when matching a JSON response.

ignoreCase
boolean
default:
false

Whether to ignore case when comparing strings.

negate
boolean
default:
false

Whether to negate the assertion. "true" means the assertion must NOT be true.