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

NormalizedSystemPrompt.md

37 lines882 Bytes

1---
2id: NormalizedSystemPrompt
3title: NormalizedSystemPrompt
4---
5​
6Defined in: [packages/ai/src/system-prompts.ts:52](https://github.com/TanStack/ai/blob/main/packages/ai/src/system-prompts.ts#L52)
7​
8Normalised shape adapters see after the chat layer turns string entries
9into `{ content }` objects. Adapters call `normalizeSystemPrompts` once at
10the top of their option-mapping pipeline so the rest of the code only has
11to handle one shape.
12​
13## Type Parameters
14​
15### TMetadata
16​
17`TMetadata` = `unknown`
18​
19## Properties
20​
21### content
22​
23```ts
24content: string;
25```
26​
27Defined in: [packages/ai/src/system-prompts.ts:53](https://github.com/TanStack/ai/blob/main/packages/ai/src/system-prompts.ts#L53)
28​
29***
30​
31### metadata?
32​
33```ts
34optional metadata?: TMetadata;
35```
36​
37Defined in: [packages/ai/src/system-prompts.ts:54](https://github.com/TanStack/ai/blob/main/packages/ai/src/system-prompts.ts#L54)