Skip to content

CompileError

PromptScript API


Defined in: compiler/src/types.ts:215

Compilation error with additional metadata.

Properties

agentName?

optional agentName?: string

Defined in: compiler/src/types.ts:235

First agent name included in the diagnostic


causeCode?

optional causeCode?: string

Defined in: compiler/src/types.ts:223

Code of the underlying error, such as the parser code behind a resolve error


code

code: string

Defined in: compiler/src/types.ts:219

Error code or rule ID


conflicts?

optional conflicts?: AgentConflict[]

Defined in: compiler/src/types.ts:233

All agent conflicts included in the diagnostic


format?

optional format?: () => string

Defined in: compiler/src/types.ts:237

Format error for display

Returns

string


location?

optional location?: object

Defined in: compiler/src/types.ts:225

Source location

column?

optional column?: number

file?

optional file?: string

line?

optional line?: number


message

message: string

Defined in: compiler/src/types.ts:221

Error message


name

name: string

Defined in: compiler/src/types.ts:217

Error name/type


provenance?

optional provenance?: AgentProvenance[]

Defined in: compiler/src/types.ts:231

Agent provenance when resolution reports a name conflict