Function: score() - TypeSafe AI

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

function score<T>(instructions, criteria): ScoreQuestion<T>;

Create a score question using an ordered rubric.

Type Parameters

T

T extends ScoreCriteria

Parameters

instructions

EntryType The question as text, a JSON object or array, or null.

criteria

T At least two descriptions indexed by score from zero; entries may be null.

Returns

ScoreQuestion <T>