Parameters
string
required
The score’s name, up to 128 characters. Runs that share it share a chart.
number | boolean
required
A number, charted as an average, or a yes or no, charted as a pass rate.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Record a score of the run.
nelkap.step.score(name: string, value: number | boolean): Promise<void>
| Error | When |
|---|---|
NelkapError badRequest | The name breaks a rule above. |
NelkapError stepLimitReached | The run has reached its limit of steps. |
Error | It was called outside a run. |
const reply = await nelkap.step.run('reply', () => draftReply(ticketId));
await nelkap.step.score('resolved', reply.resolved);
await nelkap.step.score('confidence', reply.confidence);