@elevenlabs/client@1.18.0
Minor Changes
-
93cf08c: Add the experimental
rich_contentevent types and anonRichContentcallback,
called when the agent sends a component for the client to display, such as an
item card. The callback receives{ rich_content_id, component, props, event_id }
and nothing is sent back, so the agent's turn does not wait on the client.This backs the embedded widget, which is the only client the server offers
components to today, so the callback does not fire for other consumers. Treat
propsas agent-authored and untrusted when rendering it into a document. -
1a1f440: Add
workletPaths.scribeAudioProcessortoScribe.connect({ microphone })so the Scribe audio worklet can be self-hosted, matching the existingConversationworkletPathsoption. This lets strict CSPs (script-src/script-src-elemwithoutblob:/data:) load the worklet from a same-origin URL instead of falling back to a blob or data URL.The generated worklet processors (including
scribeAudioProcessor.js) are now also published as static assets under@elevenlabs/client/worklets/*, so bundlers can copy them into your own static assets and serve them underscript-src 'self'. -
fb06e12: Add self-hosted orchestrator session support. Passing
orchestratorConfigtoConversation.startSessionroutes the conversation WebSocket to a self-hosted (private deployment) orchestrator and sends the agent configuration at connection time, mirroring the Python SDK'sOnPremInitiationData.
Patch Changes
-
92e70c6: Fix conversation state consistency through disconnect:
BaseConversationnow always reaches thedisconnectedstatus and firesonDisconnect, even when session teardown throws.ConversationProviderno longer lets a lateonDisconnectfrom a previous session clear a newer session's state, and no longer leaks unhandled rejections fromendSession().useConversationStatusnow reportsdisconnectedas soon as teardown starts, instead of holdingconnectedwhile the conversation was already released — consumers guarding conversation access withstatus === "connected"could previously crash during disconnect.
-
Updated dependencies [93cf08c]
- @elevenlabs/types@0.20.0