Skip to content

@cloudflare/ai-chat@0.10.2

Choose a tag to compare

@github-actions github-actions released this 18 Aug 09:08
· 5 commits to main since this release
d424945

Patch Changes

  • #2023 2b2b598 Thanks @threepointone! - Treat useAgentChat observer 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 f9d71d6 Thanks @cjol! - Expose WebSocketChatTransport and its connection types from the framework-neutral agents/chat/transport entry point. React peers are now optional for framework-neutral clients and servers.

    Existing users of agents/chat/react or @cloudflare/ai-chat/react must continue to declare compatible react and @ai-sdk/react dependencies explicitly.

  • #2091 4d2084c Thanks @cjol! - Accept AI SDK flexible schemas in agentTool, 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 FlexibleSchema must use the schema library's AI SDK adapter or wrap raw JSON Schema with jsonSchema(). Validation-only Standard Schema implementations are insufficient because tool inputs must expose JSON Schema to the model.