Skip to content

PromptScript API


Interface: ExampleDefinition

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

Typed representation of an example in the

Examples

block or within @skills. This is a helper extraction type (like SkillDefinition), NOT an AST node.

Properties

description?

optional description?: string

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

Optional description


input

input: string | TextContent

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

Input data for the example


output

output: string | TextContent

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

Expected output