@deepgram/react 0.2.0: @deepgram/react 0.2.0 adds runtime Voice Agent controls and makes React session lifecycle…
Version 0.2.0 adds live runtime controls for Voice Agent sessions and safer start, stop, and reconnect handling in React.
The React package for Deepgram's Voice Agent API now lets developers change a connected session at runtime instead of recreating the provider. Version 0.2.0 also updates the package for @deepgram/agents 0.1.2 and @deepgram/sdk 5.9.0.
- sendAgentMessage() injects a message into the agent with "default", "queue", or "interrupt" behavior.
- updateListen(), updateThink(), updateSpeak(), and updatePrompt() change agent settings mid-session, with typed callbacks confirming each update.
- useAgentMode() and useDeepgramAgent() now expose a "thinking" mode and an isThinking state.
- 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 log to the console if no callback is set, and a manual start() call now rejects instead. The migration guide notes this is a breaking release: exhaustive AgentMode switches must handle "thinking", typed context and hook result types add required members, registerClientTool() now returns an unsubscribe function, and useDeepgramAgent().start() clears conversation before starting a fresh session.