Skip to content

promptPolicySubjects()

PromptScript API


promptPolicySubjects(program): PolicySubject[]

Defined in: validator/src/policy/prompt-evaluator.ts:288

The @prompts entries of a resolved program as policy subjects: effective governance with the @meta defaults, and the entry’s own system and user texts. Composed blocks are left out, the content rules already scan them.

Parameters

program

ProgramInput

A resolved program, canonical or legacy

Returns

PolicySubject[]

One subject per valid entry, located at the entry