diff --git a/ui/src/pages/chat/realtime-talk-google-live-tools.ts b/ui/src/pages/chat/realtime-talk-google-live-tools.ts index 4da40ea5b847..92b788282c2e 100644 --- a/ui/src/pages/chat/realtime-talk-google-live-tools.ts +++ b/ui/src/pages/chat/realtime-talk-google-live-tools.ts @@ -145,7 +145,9 @@ export class GoogleLiveToolOwner { args: args ?? {}, signal: abortController.signal, emitTalkEvent: this.options.emitTalkEvent, - submit: (toolCallId, result) => this.submitResult(toolCallId, result), + submit: (toolCallId, result) => { + this.submitResult(toolCallId, result); + }, }); } finally { this.finishExecution(callId, abortController); @@ -183,7 +185,9 @@ export class GoogleLiveToolOwner { signal: abortController.signal, submitAbortResult: false, emitTalkEvent: this.options.emitTalkEvent, - submit: (toolCallId, result) => this.submitResult(toolCallId, result), + submit: (toolCallId, result) => { + this.submitResult(toolCallId, result); + }, }); } finally { this.finishExecution(callId, abortController); diff --git a/ui/src/pages/chat/realtime-talk-shared.ts b/ui/src/pages/chat/realtime-talk-shared.ts index 86ebb28b93a6..a0b543a03873 100644 --- a/ui/src/pages/chat/realtime-talk-shared.ts +++ b/ui/src/pages/chat/realtime-talk-shared.ts @@ -24,7 +24,7 @@ export type RealtimeTalkCallbacks = { onVideoError?: (error: unknown) => void; }; -type RealtimeTalkEventInput = { +export type RealtimeTalkEventInput = { type: RealtimeTalkEvent["type"]; payload?: TPayload; turnId?: string;