Skip to content

PromptScript API


Interface: ExampleDefinition

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

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:478

Optional description


input

input: string | TextContent

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

Input data for the example


output

output: string | TextContent

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

Expected output