@cloudflare/ai-chat@0.10.2
Patch Changes
-
#2023
2b2b598Thanks @threepointone! - TreatuseAgentChatobserver error frames as terminal responses.Plain-text error bodies are no longer parsed as stream chunks or merged into an empty assistant message. Error frames now clear observer streaming, replay, recovery, and tool-continuation state even when they omit
done, matching the transport-owned stream behavior.Existing observer UIs that displayed error bodies as assistant messages must move those diagnostics to a dedicated error surface.
-
#2052
f9d71d6Thanks @cjol! - ExposeWebSocketChatTransportand its connection types from the framework-neutralagents/chat/transportentry point. React peers are now optional for framework-neutral clients and servers.Existing users of
agents/chat/reactor@cloudflare/ai-chat/reactmust continue to declare compatiblereactand@ai-sdk/reactdependencies explicitly. -
#2091
4d2084cThanks @cjol! - Accept AI SDK flexible schemas inagentTool, including Valibot adapters, while preserving schema-driven input inference and structured output validation. Zod is no longer a peer requirement of@cloudflare/ai-chat.Existing custom schemas that no longer type-check as AI SDK
FlexibleSchemamust use the schema library's AI SDK adapter or wrap raw JSON Schema withjsonSchema(). Validation-only Standard Schema implementations are insufficient because tool inputs must expose JSON Schema to the model.