Skip to content

Commit

Permalink
fix (docs): correct annotations json structure (#4058)
Browse files Browse the repository at this point in the history
Co-authored-by: Lars Grammel <lars.grammel@gmail.com>
  • Loading branch information
Ojansen and lgrammel authored Dec 10, 2024
1 parent f47b74e commit 6520873
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/docs/04-ai-sdk-ui/50-stream-protocol.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ Example: `2:[{"key":"object1"},{"anotherKey":"object2"}]\n`

### Message Annotation Part

The message annotation parts are appended to the message as they are received.
The message annotation parts are appended to the message as they are received. The annotation part is available through `annotations`.

Format: `8:JSONValue\n`
Format: `8:Array<JSONValue>\n`

Example: `8:{"id":"message-123","other":"annotation"}\n`
Example: `8:[{"id":"message-123","other":"annotation"}]\n`

### Error Part

Expand Down

0 comments on commit 6520873

Please sign in to comment.