Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/react/src/lib/useVoiceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,20 @@
// otherwise, report error
if (response.type === 'tool_response') {
socket.sendToolResponseMessage(response);

Check failure on line 233 in packages/react/src/lib/useVoiceClient.ts

View workflow job for this annotation

GitHub Actions / pr-check

Delete `····················`
onMessage.current?.({
...response,
receivedAt: new Date(),
});

Check failure on line 237 in packages/react/src/lib/useVoiceClient.ts

View workflow job for this annotation

GitHub Actions / pr-check

Delete `⏎`

} else if (response.type === 'tool_error') {
socket.sendToolErrorMessage(response);

onMessage.current?.({
...response,
receivedAt: new Date(),
});

Check failure on line 245 in packages/react/src/lib/useVoiceClient.ts

View workflow job for this annotation

GitHub Actions / pr-check

Delete `⏎····················`

} else {
onToolCallError.current?.(
'Invalid response from tool call',
Expand Down
Loading