mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 19:35:28 -06:00
fix(talk): satisfy Google tool owner contracts
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user