nexus-agents - v2.80.0
    Preparing search index...

    Function validateTestCase

    • Validate a test case definition.

      Parameters

      • testCase: unknown

        Test case to validate

      Returns ZodSafeParseResult<
          {
              id: string;
              name: string;
              description: string;
              input: string;
              expectedOutcome: | "escalate"
              | "refuse"
              | "caution"
              | "clarify"
              | "proceed"
              | "detect";
              riskLevel: "low"
              | "medium"
              | "high"
              | "critical";
              tags: readonly string[];
              context?: string;
          },
      >

      Validation result with inferred schema type