@11labs/react
Advanced tools
Comparing version 0.0.3-beta.1 to 0.0.3-beta.2
{ | ||
"name": "@11labs/react", | ||
"version": "0.0.3-beta.1", | ||
"version": "0.0.3-beta.2", | ||
"description": "ElevenLabs React Library", | ||
@@ -22,3 +22,3 @@ "main": "./dist/lib.umd.js", | ||
"dependencies": { | ||
"@11labs/client": "0.0.3-beta.1" | ||
"@11labs/client": "0.0.3-beta.2" | ||
}, | ||
@@ -25,0 +25,0 @@ "peerDependencies": { |
@@ -54,2 +54,3 @@ # ElevenLabs React Library | ||
* **clientTools** - object definition for client tools that can be invoked by agent. [See below](#client-tools) for details. | ||
* **overrides** - object definition conversations settings overrides. [See below](#conversation-overrides) for details. | ||
* **onConnect** - handler called when the conversation websocket connection is established. | ||
@@ -81,3 +82,29 @@ * **onDisconnect** - handler called when the conversation websocket connection is ended. | ||
#### Conversation overrides | ||
You may choose to override various settings of the conversation and set them dynamically based other user interactions. | ||
We support overriding various settings. | ||
These settings are optional and can be used to customize the conversation experience. | ||
The following settings are available: | ||
```ts | ||
const conversation = useConversation({ | ||
overrides: { | ||
customLlmExtraBody: { | ||
customField: "custom value", | ||
}, | ||
agent: { | ||
prompt: { | ||
prompt: "My custom prompt", | ||
}, | ||
firstMessage: "My custom first message", | ||
language: "en", | ||
}, | ||
tts: { | ||
voiceId: "custom voice id" | ||
}, | ||
}, | ||
}); | ||
``` | ||
#### Methods | ||
@@ -84,0 +111,0 @@ |
38333
194
+ Added@11labs/client@0.0.3-beta.2(transitive)
- Removed@11labs/client@0.0.3-beta.1(transitive)
Updated@11labs/client@0.0.3-beta.2