package Ġorg . rew ed ig ital . dialog . utils Ċ Ċ import Ġorg . rew ed ig ital . dialog . handler . Dialog flow Handler Ċ import Ġorg . rew ed ig ital . dialog . handler . Dialog flow Response Builder Ċ import Ġorg . rew ed ig ital . dialog . model . google . Google Simple Response Ċ import Ġorg . rew ed ig ital . dialog . model . google . Rich Response Ċ import Ġorg . rew ed ig ital . kon versation . Environment Ċ import Ġorg . rew ed ig ital . kon versation . Kon versation Ċ import Ġorg . rew ed ig ital . kon versation . Output Ċ Ċ fun ĠDialog flow Response Builder . with Google Simple Response ( kon versation : ĠKon versation ) Ġ: ĠDialog flow Response Builder Ġ= Ġapply Ġ{ ĊĠĠĠ Ġwith Google Simple Response ( kon versation . create Output ()) Ċ } Ċ Ċ fun ĠRich Response . with Simple Response ( kon versation : ĠKon versation ) Ġ: ĠRich Response Ġ= Ġapply Ġ{ ĊĠĠĠ Ġwith Simple Response ( kon versation . create Output ()) Ċ } Ċ Ċ fun ĠDialog flow Response Builder . with Google Simple Response ( output : ĠOutput ) Ġ: ĠDialog flow Response Builder Ġ= Ġapply Ġ{ ĊĠĠĠ Ġwith Google Simple Response ( Google Simple Response ( ss ml Ġ= Ġoutput . ss ml , Ġdisplay Text Ġ= Ġoutput . display Text )) Ċ } Ċ Ċ fun ĠRich Response . with Simple Response ( output : ĠOutput ) Ġ: ĠRich Response Ġ= Ġapply Ġ{ ĊĠĠĠ Ġwith Simple Response ( ss ml Ġ= Ġoutput . ss ml , Ġdisplay Text Ġ= Ġoutput . display Text ) Ċ } Ċ Ċ fun ĠDialog flow Handler . load Kon versation ( name : ĠString ) Ġ= ĊĠĠĠ ĠKon versation ( name , ĠEnvironment (" google ", Ġlanguage Code . or Empty ())) Ċ Ċ fun ĠDialog flow Response Builder . with Google Suggestions ( output : ĠOutput ) Ġ: ĠDialog flow Response Builder Ġ= Ġapply Ġ{ ĊĠĠĠ Ġwith Google Suggestions (* output . suggestions . to Typed Array ()) Ċ } Ċ Ċ fun ĠDialog flow Response Builder . with Google Suggestions ( kon versation : ĠKon versation ) Ġ: ĠDialog flow Response Builder Ġ= Ġapply Ġ{ ĊĠĠĠ Ġwith Google Suggestions ( kon versation . create Output ()) Ċ } Ċ Ċ fun ĠDialog flow Response Builder . with Google Re pro mp ts ( kon versation : ĠKon versation ) Ġ: ĠDialog flow Response Builder Ġ= Ġapply Ġ{ ĊĠĠĠ Ġwith Google Re pro mp ts ( kon versation . create Output ()) Ċ } Ċ Ċ fun ĠDialog flow Response Builder . with Google Re pro mp ts ( output : ĠOutput ) Ġ: ĠDialog flow Response Builder Ġ= Ġapply Ġ{ ĊĠĠĠ Ġwith Google Re pro mp ts (* output . re pro mp ts . entries . sorted By Ġ{ Ġit . key Ġ}. map Ġ{ Ġit . value Ġ}. to Typed Array ()) Ċ }