Interface: PromptSection
Defined in: src/types/PromptSection.ts:8
A single, independent block of a generated prompt.
The PromptBuilder assembles a prompt out of an ordered list of sections instead of concatenating raw strings, so every piece of context (history, scene, speaker, ...) stays isolated and easy to reason about.
Properties
content
> content: string
Defined in: src/types/PromptSection.ts:22
Body of the section. Plain text or a serialized JSON string.
description?
> optional description?: string
Defined in: src/types/PromptSection.ts:18
Explains what content is and how to interpret it, for content that isn't self-descriptive (e.g. a serialized JSON object or array). Omit when the title and content are already clear on their own (e.g. plain developer-provided text).
title
> title: string
Defined in: src/types/PromptSection.ts:12
Heading of the section (e.g. "Scene", "Narrative History").