Commit c148a13
committed
docs(ai-chat): surface chat.toStreamTextOptions() in entry-point pages
The spread-into-streamText pattern was only mentioned on the
compaction / pending-messages / background-injection feature pages —
buried far enough that customers writing a fresh chat.agent miss it
and silently lose prepareStep wiring (compaction, steering,
background context injection). The deeper pages are the ones that
already include it; the entry points (quick-start, backend, overview)
were the gap.
quick-start: spread the call in the very first `streamText` example
plus a Warning explaining what it wires up.
backend: top-of-page Warning before the first example block, with the
canonical "spread first, override after" snippet. Existing examples
in this file keep the spread implicit for brevity now that the
warning establishes the pattern.
overview: short Warning in "What the backend accumulates" that points
back to backend.mdx.1 parent 3da7717 commit c148a13
3 files changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
19 | 36 | | |
20 | 37 | | |
21 | 38 | | |
| |||
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
| 49 | + | |
32 | 50 | | |
33 | 51 | | |
34 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| |||
0 commit comments