@@ -129,7 +129,8 @@ describe("decideTurnPolicy", () => {
129129 data : {
130130 route : "conversation_then_mutation" ,
131131 replyText : "Would you like me to schedule it at 3pm?" ,
132- confirmationRequired : true
132+ confirmationRequired : true ,
133+ slotSnapshot : { }
133134 }
134135 }
135136 ]
@@ -165,7 +166,8 @@ describe("decideTurnPolicy", () => {
165166 route : "conversation_then_mutation" ,
166167 replyText : "Would you like me to move it to 3pm?" ,
167168 confirmationRequired : true ,
168- targetEntityId : "task-1"
169+ targetEntityId : "task-1" ,
170+ slotSnapshot : { }
169171 }
170172 }
171173 ]
@@ -216,7 +218,8 @@ describe("decideTurnPolicy", () => {
216218 route : "conversation_then_mutation" ,
217219 replyText : "Would you like me to schedule it tomorrow at 6pm?" ,
218220 confirmationRequired : true ,
219- targetEntityId : "task-1"
221+ targetEntityId : "task-1" ,
222+ slotSnapshot : { }
220223 }
221224 }
222225 ]
@@ -252,7 +255,8 @@ describe("decideTurnPolicy", () => {
252255 route : "conversation_then_mutation" ,
253256 replyText : "Would you like me to move it to 3:15pm?" ,
254257 confirmationRequired : true ,
255- targetEntityId : "task-1"
258+ targetEntityId : "task-1" ,
259+ slotSnapshot : { }
256260 }
257261 }
258262 ]
@@ -270,7 +274,7 @@ describe("decideTurnPolicy", () => {
270274 const result = decideTurnPolicy (
271275 input (
272276 { turnType : "edit_request" , confidence : 0.9 , resolvedEntityIds : [ "task-1" ] , resolvedProposalId : "proposal-1" } ,
273- { } ,
277+ { committedSlots : { time : "15:00" , day : "tomorrow" } } ,
274278 {
275279 rawText : "make it 3 instead" ,
276280 normalizedText : "make it 3 instead" ,
@@ -289,7 +293,8 @@ describe("decideTurnPolicy", () => {
289293 replyText : "Would you like me to move it to tomorrow 2pm?" ,
290294 confirmationRequired : true ,
291295 targetEntityId : "task-1" ,
292- originatingTurnText : "move it to tomorrow 2pm"
296+ originatingTurnText : "move it to tomorrow 2pm" ,
297+ slotSnapshot : { time : "14:00" , day : "tomorrow" }
293298 }
294299 }
295300 ]
@@ -327,7 +332,8 @@ describe("decideTurnPolicy", () => {
327332 route : "conversation_then_mutation" ,
328333 replyText : "Would you like me to move task one to 2pm?" ,
329334 confirmationRequired : true ,
330- targetEntityId : "task-1"
335+ targetEntityId : "task-1" ,
336+ slotSnapshot : { }
331337 }
332338 }
333339 ]
@@ -364,7 +370,8 @@ describe("decideTurnPolicy", () => {
364370 route : "conversation_then_mutation" ,
365371 replyText : "Would you like me to schedule it tomorrow at 6pm?" ,
366372 confirmationRequired : true ,
367- targetEntityId : "task-1"
373+ targetEntityId : "task-1" ,
374+ slotSnapshot : { }
368375 }
369376 }
370377 ]
@@ -402,7 +409,8 @@ describe("decideTurnPolicy", () => {
402409 route : "conversation_then_mutation" ,
403410 replyText : "Would you like me to schedule it at 5pm?" ,
404411 confirmationRequired : true ,
405- targetEntityId : "task-1"
412+ targetEntityId : "task-1" ,
413+ slotSnapshot : { }
406414 }
407415 }
408416 ]
@@ -438,7 +446,8 @@ describe("decideTurnPolicy", () => {
438446 route : "conversation_then_mutation" ,
439447 replyText : "Would you like me to schedule it tomorrow at 3pm?" ,
440448 confirmationRequired : true ,
441- targetEntityId : "task-1"
449+ targetEntityId : "task-1" ,
450+ slotSnapshot : { day : "tomorrow" , time : "15:00" }
442451 }
443452 }
444453 ]
@@ -476,7 +485,8 @@ describe("decideTurnPolicy", () => {
476485 data : {
477486 route : "conversation_then_mutation" ,
478487 replyText : "Would you like me to schedule it at 3pm?" ,
479- confirmationRequired : true
488+ confirmationRequired : true ,
489+ slotSnapshot : { time : "15:00" }
480490 }
481491 }
482492 ]
0 commit comments