Variable MJAIAgentRunStepSchemaConst
MJAIAgentRunStepSchema: ZodObject<
{
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
AgentRun: ZodNullable<ZodString>;
AgentRunID: ZodString;
Comments: ZodNullable<ZodString>;
CompletedAt: ZodNullable<ZodDate>;
ErrorMessage: ZodNullable<ZodString>;
FinalPayloadValidationMessages: ZodNullable<ZodString>;
FinalPayloadValidationResult: ZodNullable<
ZodUnion<
[
ZodLiteral<"Fail">,
ZodLiteral<"Fail">,
ZodLiteral<"Pass">,
ZodLiteral<"Pass">,
ZodLiteral<"Retry">,
ZodLiteral<"Retry">,
ZodLiteral<"Warn">,
ZodLiteral<"Warn">,
],
>,
>;
ID: ZodString;
InputData: ZodNullable<ZodString>;
OutputData: ZodNullable<ZodString>;
Parent: ZodNullable<ZodString>;
ParentID: ZodNullable<ZodString>;
PayloadAtEnd: ZodNullable<ZodString>;
PayloadAtStart: ZodNullable<ZodString>;
RootParentID: ZodNullable<ZodString>;
Skills: ZodNullable<ZodAny>;
StartedAt: ZodDate;
Status: ZodUnion<
[
ZodLiteral<"Cancelled">,
ZodLiteral<"Completed">,
ZodLiteral<"Failed">,
ZodLiteral<"Running">,
],
>;
StepName: ZodString;
StepNumber: ZodNumber;
StepType: ZodUnion<
[
ZodLiteral<"Actions">,
ZodLiteral<"Chat">,
ZodLiteral<"Compaction">,
ZodLiteral<"Decision">,
ZodLiteral<"ForEach">,
ZodLiteral<"Plan">,
ZodLiteral<"Prompt">,
],
>;
Success: ZodNullable<ZodBoolean>;
TargetID: ZodNullable<ZodString>;
TargetLogID: ZodNullable<ZodString>;
},
"strip",
ZodTypeAny,
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
AgentRun?: string;
AgentRunID?: string;
Comments?: string;
CompletedAt?: Date;
ErrorMessage?: string;
FinalPayloadValidationMessages?: string;
FinalPayloadValidationResult?: "Fail"
| "Pass"
| "Retry"
| "Warn";
ID?: string;
InputData?: string;
OutputData?: string;
Parent?: string;
ParentID?: string;
PayloadAtEnd?: string;
PayloadAtStart?: string;
RootParentID?: string;
Skills?: any;
StartedAt?: Date;
Status?: "Failed" | "Cancelled" | "Completed" | "Running";
StepName?: string;
StepNumber?: number;
StepType?:
| "Prompt"
| "Actions"
| "Chat"
| "Compaction"
| "Decision"
| "ForEach"
| "Plan"
| "Skill"
| "Sub-Agent"
| "Tool"
| "Validation"
| "While";
Success?: boolean;
TargetID?: string;
TargetLogID?: string;
},
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
AgentRun?: string;
AgentRunID?: string;
Comments?: string;
CompletedAt?: Date;
ErrorMessage?: string;
FinalPayloadValidationMessages?: string;
FinalPayloadValidationResult?: "Fail"
| "Pass"
| "Retry"
| "Warn";
ID?: string;
InputData?: string;
OutputData?: string;
Parent?: string;
ParentID?: string;
PayloadAtEnd?: string;
PayloadAtStart?: string;
RootParentID?: string;
Skills?: any;
StartedAt?: Date;
Status?: "Failed" | "Cancelled" | "Completed" | "Running";
StepName?: string;
StepNumber?: number;
StepType?:
| "Prompt"
| "Actions"
| "Chat"
| "Compaction"
| "Decision"
| "ForEach"
| "Plan"
| "Skill"
| "Sub-Agent"
| "Tool"
| "Validation"
| "While";
Success?: boolean;
TargetID?: string;
TargetLogID?: string;
},
> = ...
zod schema definition for the entity MJ: AI Agent Run Steps