Skip to content

PolicySubject

PromptScript API


Defined in: core/src/types/policy.ts:286

A prompt as prompt policies see it, built from source or from a release bundle.

Properties

governance

governance: GovernanceMeta

Defined in: core/src/types/policy.ts:290

Effective governance


id

id: string

Defined in: core/src/types/policy.ts:288

Prompt id, <@meta.id>/<key>


inputs

inputs: Record<string, { options?: string[]; type: PromptScalarType; }>

Defined in: core/src/types/policy.ts:294

Inputs by name


loc?

optional loc?: SourceLocation

Defined in: core/src/types/policy.ts:298

The entry, or the bundle file


model?

optional model?: object

Defined in: core/src/types/policy.ts:292

Model reference and the catalog profile it resolved to

profile?

optional profile?: string

ref

ref: string


texts

texts: object[]

Defined in: core/src/types/policy.ts:296

Message texts the content checks scan

content

content: string

role

role: "system" | "user"