> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://developers.deepgram.com/changelog/2026/9/10/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.deepgram.com/_mcp/server. ## `@deepgram/react` 0.2.0 `@deepgram/react` 0.2.0 adds runtime Voice Agent controls and makes React session lifecycle handling safer. The release updates the React layer for `@deepgram/agents` 0.1.2 and `@deepgram/sdk` 5.9.0. ### Runtime controls and notifications Use `sendAgentMessage()` to inject an agent message with `"default"`, `"queue"`, or `"interrupt"` behavior. Use `updateListen()`, `updateThink()`, `updateSpeak()`, and `updatePrompt()` to change supported agent settings during a session. The provider and standalone hook now expose typed callbacks for protocol notifications, including confirmations for each runtime settings update. `useAgentMode()` and `useDeepgramAgent()` also expose the `"thinking"` mode and `isThinking` state. ### Lifecycle and upgrade notes Start, stop, reconnect, and React StrictMode handling now clean up canceled or failed microphone, playback, and client-tool resources. Automatic start failures call `onSdkError`, or `console.error` when no callback is set. A manual `start()` call rejects instead. This is a `0.2.0` release. Update exhaustive `AgentMode` switches to handle `"thinking"`; public context and hook result types add required members; `registerClientTool()` returns an unsubscribe function; and `useDeepgramAgent().start()` starts a fresh session and clears `conversation`. See [React Hooks & Provider](/docs/browser-agent-react) and the [migration guide](https://github.com/deepgram/react/blob/main/MIGRATION.md) for API details and upgrade examples.