Skip to content

@grabm/abm / Variable: decisionOutcomeSchema ​

ts
const decisionOutcomeSchema: ZodObject<{
  activityId: ZodString;
  agentId: ZodString;
  candidateCounts: ZodRecord<ZodString, ZodNumber>;
  cause: ZodEnum<{
     anchor: "anchor";
     break-outbound: "break-outbound";
     break-return: "break-return";
     discretionary: "discretionary";
     gateway-entry: "gateway-entry";
     gateway-exit: "gateway-exit";
     home-return: "home-return";
  }>;
  destinationFacilityId: ZodNullable<ZodString>;
  minute: ZodNumber;
  mode: ZodNullable<ZodString>;
  outcome: ZodEnum<{
     cancelled: "cancelled";
     capacity-rejected: "capacity-rejected";
     completed: "completed";
     insufficient-time: "insufficient-time";
     protected-skip: "protected-skip";
     started: "started";
     stayed: "stayed";
     unavailable: "unavailable";
     unreachable: "unreachable";
  }>;
  pickupWaitMinutes: ZodOptional<ZodNumber>;
  reason: ZodString;
  scheduleItemId: ZodNullable<ZodString>;
}, $strict>;

Concise public outcome; aggregate diagnostics are derived from these records.

Documentation for the grABM library.