Skip to content

EvalFindingV1

PromptScript API


Defined in: core/src/types/eval.ts:662

One finding of the dataset scan.

Properties

allowedBecause?

optional allowedBecause?: string

Defined in: core/src/types/eval.ts:696

Reason from the suite’s allow entry when the finding was downgraded


code

code: string

Defined in: core/src/types/eval.ts:668

Eval code of the finding.

Pattern

^PS\d{3,4}$

Example

"PS6110"

line?

optional line?: number

Defined in: core/src/types/eval.ts:694

Line of the row in the dataset file.

As Type

integer

Minimum

1


path?

optional path?: string

Defined in: core/src/types/eval.ts:688

JSON path of the value inside the row.

Example

"inputs.message"

rowId?

optional rowId?: string

Defined in: core/src/types/eval.ts:683

Dataset row id


rule?

optional rule?: string

Defined in: core/src/types/eval.ts:674

Validator rule that fired, for a scan finding.

Pattern

^PS\d{3,4}$

Example

"PS005"

ruleName?

optional ruleName?: string

Defined in: core/src/types/eval.ts:679

Validator rule name, for a scan finding.

Example

"blocked-patterns"

severity

severity: EvalFindingSeverity

Defined in: core/src/types/eval.ts:681

Severity after any downgrade