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 evaluationAssertion = await client.evaluationAssertions.update('1212121', { evaluationId: 'evaluationId', targetValue: 'targetValue', type: 'EXACT_MATCH', }); console.log(evaluationAssertion);}main();
Update an existing evaluation assertion by providing its ID and new data.
PUT
/
sdk
/
v1
/
evaluation-assertions
/
{id}
JavaScript
Copy
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 evaluationAssertion = await client.evaluationAssertions.update('1212121', { evaluationId: 'evaluationId', targetValue: 'targetValue', type: 'EXACT_MATCH', }); console.log(evaluationAssertion);}main();