Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

NormalizedSystemPrompt.md

39 lines997 Bytes

Interface: NormalizedSystemPrompt<TMetadata>

Defined in: packages/typescript/ai/src/system-prompts.ts:52

Normalised shape adapters see after the chat layer turns string entries into { content } objects. Adapters call normalizeSystemPrompts once at the top of their option-mapping pipeline so the rest of the code only has to handle one shape.

Type Parameters

TMetadata

TMetadata = unknown

Properties

content

content: string;

Defined in: packages/typescript/ai/src/system-prompts.ts:53


metadata?

optional metadata: TMetadata;

Defined in: packages/typescript/ai/src/system-prompts.ts:54