Skip to content

PromptScript API


Interface: AgentProvenance

Defined in: core/src/types/ast.ts:131

Provenance retained for a resolved agent definition.

Properties

action

action: "local" | "imported" | "qualified" | "native"

Defined in: core/src/types/ast.ts:141

How the definition entered the resolved program


importPath?

optional importPath?: string

Defined in: core/src/types/ast.ts:137

Import path used to bring the definition into the current program


loc?

optional loc?: SourceLocation

Defined in: core/src/types/ast.ts:143

Source location of the definition or import


name

name: string

Defined in: core/src/types/ast.ts:133

Resolved agent name


namespace?

optional namespace?: string

Defined in: core/src/types/ast.ts:139

Namespace added by an aliased import


source

source: string

Defined in: core/src/types/ast.ts:135

Source file that defined the agent