Skip to content

Commit b80d6c4

Browse files
committed
docs(ai-chat): soften the incomingMessages cardinality claim
The head-start addition contradicted the absolute 0-or-1-length wording in the same cell. Now reads as usually 0-or-1 with the head-start first turn called out as the exception.
1 parent e4c81d0 commit b80d6c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/ai-chat/lifecycle-hooks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Use this when the backend should be the source of truth for message history: abu
273273
| `chatId` | `string` | Chat session ID |
274274
| `turn` | `number` | Turn number (0-indexed) |
275275
| `trigger` | `"submit-message" \| "regenerate-message" \| "action"` | The trigger type for this turn |
276-
| `incomingMessages` | `UIMessage[]` | Validated wire messages from the frontend — 0-or-1-length (empty for actions, regenerates, and continuations; one element for normal `submit-message` and tool-approval responses). On a [Head Start](/ai-chat/fast-starts#with-hydratemessages) first turn, carries the route handler's first-turn history |
276+
| `incomingMessages` | `UIMessage[]` | Validated incoming messages for this turn. Usually 0-or-1 (empty for actions, regenerates, and continuations; one element for normal `submit-message` and tool-approval responses). On a [Head Start](/ai-chat/fast-starts#with-hydratemessages) first turn, this can contain the route handler's first-turn history. |
277277
| `previousMessages` | `UIMessage[]` | Accumulated UI messages before this turn (`[]` on turn 0) |
278278
| `clientData` | Typed by `clientDataSchema` | Custom data from the frontend |
279279
| `continuation` | `boolean` | Whether this run is continuing an existing chat |

0 commit comments

Comments
 (0)