Skip to content

Commit 9528955

Browse files
committed
address review comments
1 parent 08e4cbb commit 9528955

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/red-maps-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@livekit/agents-plugin-google': minor
3+
---
4+
5+
expose toolBehavior and toolResponseScheduling

plugins/google/src/beta/realtime/realtime_api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export class RealtimeModel extends llm.RealtimeModel {
296296

297297
/**
298298
* Tool behavior for function calls (BLOCKING or NON_BLOCKING)
299-
* Defaults to NON_BLOCKING to prevent generateReply timeouts
299+
* Defaults to BLOCKING
300300
*/
301301
toolBehavior?: Behavior;
302302

@@ -361,7 +361,7 @@ export class RealtimeModel extends llm.RealtimeModel {
361361
contextWindowCompression: options.contextWindowCompression,
362362
apiVersion: options.apiVersion,
363363
geminiTools: options.geminiTools,
364-
toolBehavior: options.toolBehavior ?? Behavior.NON_BLOCKING,
364+
toolBehavior: options.toolBehavior ?? Behavior.BLOCKING,
365365
toolResponseScheduling:
366366
options.toolResponseScheduling ?? FunctionResponseScheduling.WHEN_IDLE,
367367
};

0 commit comments

Comments
 (0)