We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 710d4d3 commit 28f4964Copy full SHA for 28f4964
1 file changed
agents/src/voice/turn_config/utils.test.ts
@@ -46,6 +46,20 @@ describe('migrateLegacyOptions', () => {
46
expect(result.turnHandling.endpointing!.maxDelay).toBe(5000);
47
});
48
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
63
it('should set interruption.enabled to false when allowInterruptions is false', () => {
64
const { agentSessionOptions: result } = migrateLegacyOptions({
65
voiceOptions: { allowInterruptions: false },
0 commit comments