Variable DecisionCorpusPointSchemaConst
DecisionCorpusPointSchema: ZodObject<
{
artifacts: ZodArray<
ZodObject<
{
artifactId: ZodString;
artifactName: ZodString;
artifactType: ZodString;
versions: ZodArray<
ZodObject<
{
versionId: ZodString;
versionName: ZodNullable<ZodString>;
versionNumber: ZodNumber;
},
"strip",
ZodTypeAny,
{
versionId: string;
versionName: string
| null;
versionNumber: number;
},
{
versionId: string;
versionName: string
| null;
versionNumber: number;
},
>,
"many",
>;
},
"strip",
ZodTypeAny,
{
artifactId: string;
artifactName: string;
artifactType: string;
versions: {
versionId: string;
versionName: string
| null;
versionNumber: number;
}[];
},
{
artifactId: string;
artifactName: string;
artifactType: string;
versions: {
versionId: string;
versionName: string
| null;
versionNumber: number;
}[];
},
>,
"many",
>;
conversation_id: ZodString;
created_at: ZodString;
history: ZodArray<
ZodObject<
{
agent_id: ZodNullable<ZodString>;
agent_name: ZodNullable<ZodString>;
created_at: ZodString;
id: ZodString;
message: ZodString;
role: ZodEnum<["User", "AI"]>;
status: ZodString;
},
"strip",
ZodTypeAny,
{
agent_id: string
| null;
agent_name: string | null;
created_at: string;
id: string;
message: string;
role: "User" | "AI";
status: string;
},
{
agent_id: string
| null;
agent_name: string | null;
created_at: string;
id: string;
message: string;
role: "User" | "AI";
status: string;
},
>,
"many",
>;
id: ZodString;
latest_message: ZodString;
previous_agent: ZodObject<
{ description: ZodString; id: ZodString; name: ZodString },
"strip",
ZodTypeAny,
{ description: string; id: string; name: string },
{ description: string; id: string; name: string },
>;
source: ZodString;
},
"strip",
ZodTypeAny,
{
artifacts: {
artifactId: string;
artifactName: string;
artifactType: string;
versions: {
versionId: string;
versionName: string
| null;
versionNumber: number;
}[];
}[];
conversation_id: string;
created_at: string;
history: {
agent_id: string
| null;
agent_name: string | null;
created_at: string;
id: string;
message: string;
role: "User" | "AI";
status: string;
}[];
id: string;
latest_message: string;
previous_agent: { description: string; id: string; name: string };
source: string;
},
{
artifacts: {
artifactId: string;
artifactName: string;
artifactType: string;
versions: {
versionId: string;
versionName: string
| null;
versionNumber: number;
}[];
}[];
conversation_id: string;
created_at: string;
history: {
agent_id: string
| null;
agent_name: string | null;
created_at: string;
id: string;
message: string;
role: "User" | "AI";
status: string;
}[];
id: string;
latest_message: string;
previous_agent: { description: string; id: string; name: string };
source: string;
},
> = ...
One decision point: a user's new message, the agent that answered last, and the conversation before it. The corpus's other fields (
fast_path,next_handlerand the two hindsight fields) are not used, and parsing drops them, so they never reach a test record.