Evaluations - Get
info
This function is only available in the gentrace-node
SDK.
- TypeScript
The function getEvaluations()
returns an array of EvaluationType
for a given
resultId
.
Example
typescript
import { getEvaluations, EvaluationType } from '@gentrace/core';const EXAMPLE_RESULT_ID = '492ef124-aca1-4640-8c9c-641c874acdb7';const evaluations: EvaluationType[] = await getEvaluations({resultId: EXAMPLE_RESULT_ID,});console.log('Evaluations: ', evaluations);
Arguments
params: Object
Required parameter to filter the evaluations.
resultId: string
The result ID to filter evaluations by. Learn about creating test results here.
Types
🛠️ EvaluationType
id: string
createdAt: number
updatedAt: number
isPending: boolean
isFiltered: boolean
debug?: { [key: string]: any } | null
evaluatorId: string
runId: string
comparisonRunId?: string | null
name: string | null
evalLabel: string | null
evalValue: number | null
manualCreatedByEmail?: string | null
note: string