Skip to content

Commit 28f4964

Browse files
author
Rosetta Bot
committed
test(voice): cover dynamic endpointing config merge
1 parent 710d4d3 commit 28f4964

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

agents/src/voice/turn_config/utils.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ describe('migrateLegacyOptions', () => {
4646
expect(result.turnHandling.endpointing!.maxDelay).toBe(5000);
4747
});
4848

49+
it('should preserve dynamic endpointing alpha from turnHandling config', () => {
50+
const { agentSessionOptions: result } = migrateLegacyOptions({
51+
turnHandling: {
52+
endpointing: {
53+
mode: 'dynamic',
54+
alpha: 0.7,
55+
},
56+
},
57+
});
58+
59+
expect(result.turnHandling.endpointing!.mode).toBe('dynamic');
60+
expect(result.turnHandling.endpointing!.alpha).toBe(0.7);
61+
});
62+
4963
it('should set interruption.enabled to false when allowInterruptions is false', () => {
5064
const { agentSessionOptions: result } = migrateLegacyOptions({
5165
voiceOptions: { allowInterruptions: false },

0 commit comments

Comments
 (0)