fix(talk): satisfy Google tool owner contracts

This commit is contained in:
Vincent Koc
2026-08-02 16:03:57 +08:00
parent 8fb98084d0
commit 8bb3e2c1d5
2 changed files with 7 additions and 3 deletions
@@ -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);
+1 -1
View File
@@ -24,7 +24,7 @@ export type RealtimeTalkCallbacks = {
onVideoError?: (error: unknown) => void;
};
type RealtimeTalkEventInput<TPayload = unknown> = {
export type RealtimeTalkEventInput<TPayload = unknown> = {
type: RealtimeTalkEvent["type"];
payload?: TPayload;
turnId?: string;