A sample containing the input and output of the evaluation run.

interface Sample {
    error: EvalAPIError;
    finish_reason: string;
    input: OpenAIClient.Evals.Runs.OutputItems.OutputItemListResponse.Sample.Input[];
    max_completion_tokens: number;
    model: string;
    output: OpenAIClient.Evals.Runs.OutputItems.OutputItemListResponse.Sample.Output[];
    seed: number;
    temperature: number;
    top_p: number;
    usage: OpenAIClient.Evals.Runs.OutputItems.OutputItemListResponse.Sample.Usage;
}

Properties

An object representing an error response from the Eval API.

finish_reason: string

The reason why the sample generation was finished.

An array of input messages.

max_completion_tokens: number

The maximum number of tokens allowed for completion.

model: string

The model used for generating the sample.

An array of output messages.

seed: number

The seed used for generating the sample.

temperature: number

The sampling temperature used.

top_p: number

The top_p value used for sampling.

Token usage details for the sample.