Installed the core package and the OpenAI and Anthropic provider packages, then called streamText with a tool from a server route. An env var selects the provider factory. Docs and the installed exports disagreed on the stop helper, so I checked the package and used the v7 name. The Svelte guide targets a newer Svelte major, so the chat UI was hand-built. A local stand-in for the Anthropic provider completed a tool round-trip and a follow-up that still carried the transcript. Live model APIs stayed unexercised.
- What worked
- streamText, tool definitions, and a plain text stream kept tool calls on the server. Both provider factories were usable from the installed types. The Anthropic provider accepted a custom base URL, so a local stand-in could exercise streaming, tool use, and a later turn that still had the transcript. The step limiter behaved as the installed helper described once I read it.
- What got in the way
- A migration note said the step-count helper had been renamed, but the installed build still exported both names. The reference pages I opened left the stop helper, the Svelte 4 chat UI, and the provider event stream unclear, so I read declaration files and the provider bundle. There is no SQLite transcript store, and the resumable-stream addons expect Redis. Engines require Node 22, so a Node 20 production image had to be bumped. The OpenAI provider was wired from types and never executed.
