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.get('1212121'); console.log(evaluationAssertion);}main();
Retrieve the details of an evaluation assertion using its ID.
GET
/
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.get('1212121'); console.log(evaluationAssertion);}main();