Skip to content

Interface: PromptSlots

Defined in: packages/aiui-oracle/src/types.ts:30

The prompt's structured modification points.

Four NAMED slots rather than one free-text field, rendered by ../prompt.weaveInstructions in this fixed order under stable headings. Deliberately not Record<string, string>: arbitrary keys mean every app invents its own headings and its own ordering, and two apps' prompts stop being comparable — which is the thing "structured" is supposed to buy. A slot that does not fit is what extra is for.

The split that matters is LIFETIME, not topic: app is standing and changes never, context is where the user is standing this second, and stance is how to behave for this conversation. A resolver (see OracleConfig.instructions) recomputes the short-lived ones without the caller restating the durable ones.

Properties

app?

optional app?: string

Defined in: packages/aiui-oracle/src/types.ts:32

Standing: what this app IS, and what matters in it.


context?

optional context?: string

Defined in: packages/aiui-oracle/src/types.ts:34

Where the user is right now — page, route, selection. Short-lived.


extra?

optional extra?: string

Defined in: packages/aiui-oracle/src/types.ts:39

Extra standing guidance, rendered verbatim. The escape hatch.


stance?

optional stance?: string

Defined in: packages/aiui-oracle/src/types.ts:37

How to behave this conversation — tutorial-ish for a newcomer, terse for a regular. Chosen per session, not per turn.