Variable aIEvaluationAnswerSchemaConst
aIEvaluationAnswerSchema: ZodDiscriminatedUnion<
"type",
[
ZodObject<
{ id: ZodString; probability: ZodNumber; type: ZodLiteral<"boolean"> },
"strip",
ZodTypeAny,
{ id: string; probability: number; type: "boolean" },
{ id: string; probability: number; type: "boolean" },
>,
ZodObject<
{
choice: ZodString;
confidence: ZodOptional<ZodNumber>;
id: ZodString;
probabilities: ZodRecord<
ZodString,
ZodType<{} | null, ZodTypeDef, {} | null>,
>;
type: ZodLiteral<"choice">;
},
"strip",
ZodTypeAny,
{
choice: string;
confidence?: number;
id: string;
probabilities: Record<string, {} | null>;
type: "choice";
},
{
choice: string;
confidence?: number;
id: string;
probabilities: Record<string, {} | null>;
type: "choice";
},
>,
ZodObject<
{
confidence: ZodOptional<ZodNumber>;
id: ZodString;
legend: ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>;
probabilities: ZodRecord<
ZodString,
ZodType<{} | null, ZodTypeDef, {} | null>,
>;
score: ZodNumber;
type: ZodLiteral<"score">;
},
"strip",
ZodTypeAny,
{
confidence?: number;
id: string;
legend: Record<string, {} | null>;
probabilities: Record<string, {} | null>;
score: number;
type: "score";
},
{
confidence?: number;
id: string;
legend: Record<string, {} | null>;
probabilities: Record<string, {} | null>;
score: number;
type: "score";
},
>,
],
> = ...
One typed evaluation answer.
typeselects boolean, choice, or score.idmatches the question id.