@elevenlabs/react-native 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -148,6 +148,9 @@ export const MessageHandler = ({
148
148
  case "client_tool_call":
149
149
  handleClientToolCall(message);
150
150
  break;
151
+ case "agent_chat_response_part":
152
+ callbacks.onAgentChatResponsePart?.(message.text_response_part);
153
+ break;
151
154
  default:
152
155
  callbacks.onDebug?.(message);
153
156
  break;
package/src/types.ts CHANGED
@@ -97,6 +97,8 @@ export type PingEvent = Ping;
97
97
  export type ClientToolCallEvent = Incoming.ClientToolCallClientEvent;
98
98
  export type VadScoreEvent = Incoming.VadScoreClientEvent;
99
99
  export type MCPToolCallClientEvent = Incoming.McpToolCallClientEvent;
100
+ export type AgentChatResponsePartEvent =
101
+ Incoming.AgentChatResponsePartClientEvent;
100
102
 
101
103
  // Outgoing event types
102
104
  export type PongEvent = Outgoing.PongClientToOrchestratorEvent;
@@ -124,4 +126,5 @@ export type ConversationEvent =
124
126
  | PingEvent
125
127
  | ClientToolCallEvent
126
128
  | VadScoreEvent
127
- | MCPToolCallClientEvent;
129
+ | MCPToolCallClientEvent
130
+ | AgentChatResponsePartEvent;
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // This file is auto-generated during build
2
- export const PACKAGE_VERSION = "0.3.2";
2
+ export const PACKAGE_VERSION = "0.4.0";