@worktango/ai-assistant 0.0.117 → 0.0.119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/README.md +38 -0
  2. package/dist/{Absenteeism-Cj8_VuuJ.mjs → Absenteeism-B2mbtIJu.mjs} +1 -1
  3. package/dist/{ActivityFeed--T6ecuNi.mjs → ActivityFeed-5mapxUFk.mjs} +1 -1
  4. package/dist/{AddUser-aMUhc27O.mjs → AddUser-a9Lf3EQa.mjs} +1 -1
  5. package/dist/{Admin-Bkny2OSL.mjs → Admin-CrJJSX-J.mjs} +1 -1
  6. package/dist/{Admin-DyQl-Pts.mjs → Admin-DF0oMEOK.mjs} +1 -1
  7. package/dist/{AiGeneral-819Yg5Q9.mjs → AiGeneral-BpF7k_VA.mjs} +1 -1
  8. package/dist/{AiScoring-CzfA8c7U.mjs → AiScoring--W2BoHMT.mjs} +1 -1
  9. package/dist/{AiText-CUyhoYGw.mjs → AiText-DAQ_9doB.mjs} +1 -1
  10. package/dist/{Anniversary-DNHsHQDm.mjs → Anniversary-Ddr70_-n.mjs} +1 -1
  11. package/dist/{Appreciation-DetGIHId.mjs → Appreciation-D1tj9Bx1.mjs} +1 -1
  12. package/dist/{ArrowDown-Bs2hoWh8.mjs → ArrowDown-BcjoNw_F.mjs} +1 -1
  13. package/dist/{ArrowLeft-CsAFnLUK.mjs → ArrowLeft-DMqHWe54.mjs} +1 -1
  14. package/dist/{ArrowRight-CtqKifV1.mjs → ArrowRight-B1G09Tso.mjs} +1 -1
  15. package/dist/{ArrowUp-CmxTlzpq.mjs → ArrowUp-CDbZkBYZ.mjs} +1 -1
  16. package/dist/{Attachment-BSPvN2Hn.mjs → Attachment-NMBPNCkM.mjs} +1 -1
  17. package/dist/{BeQuickDontHurry-oJZiNxTj.mjs → BeQuickDontHurry-DRb4iHzg.mjs} +1 -1
  18. package/dist/{Birthday-CXUipdh1.mjs → Birthday-3G09TXVs.mjs} +1 -1
  19. package/dist/{BrandPromise-CKmxzA48.mjs → BrandPromise-D9dAICcd.mjs} +1 -1
  20. package/dist/{BrandVision-YwQYdc1n.mjs → BrandVision-Dx7nNGIi.mjs} +1 -1
  21. package/dist/{Calendar-Dp_RGGS-.mjs → Calendar-Bj1JNP4_.mjs} +1 -1
  22. package/dist/{CaretDn-CfB-zGYb.mjs → CaretDn-BgS8wtuC.mjs} +1 -1
  23. package/dist/{CaretDown-CSZKQoAC.mjs → CaretDown-C3NxvCVE.mjs} +1 -1
  24. package/dist/{CaretLeft-zCHluQOu.mjs → CaretLeft-DA1H-Rpy.mjs} +1 -1
  25. package/dist/{CaretRight-DeDp4fST.mjs → CaretRight-DAxG6_xU.mjs} +1 -1
  26. package/dist/{CaretUp-teJZ2-rn.mjs → CaretUp-RNCctFm3.mjs} +1 -1
  27. package/dist/{ChallengeAccepted-B52Lr4vL.mjs → ChallengeAccepted-AHkSX3ha.mjs} +1 -1
  28. package/dist/{CheckIn-BNpq45lE.mjs → CheckIn-DTUR8sfX.mjs} +1 -1
  29. package/dist/{CheckIns-DWDYvrr0.mjs → CheckIns-CvVKcSPY.mjs} +1 -1
  30. package/dist/{CheckSeal-DSe6KTtK.mjs → CheckSeal-BymKJMEn.mjs} +1 -1
  31. package/dist/{Checkmark-BcJoI_ug.mjs → Checkmark-DEE_e6Pa.mjs} +1 -1
  32. package/dist/{Clock-RGqQqZrF.mjs → Clock-D8IkP-to.mjs} +1 -1
  33. package/dist/{Close-CppMn1HX.mjs → Close-aF3t32_1.mjs} +1 -1
  34. package/dist/{CloudDownload-JF5nULcD.mjs → CloudDownload-4ccl2xzB.mjs} +1 -1
  35. package/dist/{Comment-DZ4AZMQx.mjs → Comment-DOflwxB7.mjs} +1 -1
  36. package/dist/{Comments-BzkSyKW5.mjs → Comments-ekwv_rr_.mjs} +1 -1
  37. package/dist/{Connections-B3geiykx.mjs → Connections-BvNDuId5.mjs} +1 -1
  38. package/dist/{Copy-BiA429_k.mjs → Copy-D6otiZSn.mjs} +1 -1
  39. package/dist/{CustomQuestion-DokdKP6c.mjs → CustomQuestion-DJMNyYzt.mjs} +1 -1
  40. package/dist/{CustomerSuccess-TkrhdfmW.mjs → CustomerSuccess-D-w5_9x2.mjs} +1 -1
  41. package/dist/{DatePicker-CB25K2Ip.mjs → DatePicker-C7rkYvU5.mjs} +1 -1
  42. package/dist/{Dot-Bs4GyeI4.mjs → Dot-By7OB4c8.mjs} +1 -1
  43. package/dist/{Download-BnxipSmK.mjs → Download-CsUkhkUH.mjs} +1 -1
  44. package/dist/{Drag-DRwLwbHJ.mjs → Drag-o4izGuc4.mjs} +1 -1
  45. package/dist/{DragIndicator-CIefdPBJ.mjs → DragIndicator-CQyD4plS.mjs} +1 -1
  46. package/dist/{Earn-BqniArDh.mjs → Earn-BxYRgwlK.mjs} +1 -1
  47. package/dist/{Email-CQOGODms.mjs → Email-22IXcm9Y.mjs} +1 -1
  48. package/dist/{EmojiDisplay-Cn3xsB9b.mjs → EmojiDisplay-BMVNlN62.mjs} +2 -2
  49. package/dist/{EmojiPicker-CfL4UrB6.mjs → EmojiPicker-D9AUnLKh.mjs} +2 -2
  50. package/dist/{EnpsSurvey-CJNp5fdo.mjs → EnpsSurvey-r4HLvZQX.mjs} +1 -1
  51. package/dist/{Expired-BEEYYZSA.mjs → Expired-BnvWWefG.mjs} +1 -1
  52. package/dist/{Eye-CndykMWP.mjs → Eye-D2M87gvI.mjs} +1 -1
  53. package/dist/{Feedback-DYhPG6aX.mjs → Feedback-Bd1NY7x1.mjs} +1 -1
  54. package/dist/{Feedback-AOH0-TeS.mjs → Feedback-CUXGPaGA.mjs} +1 -1
  55. package/dist/{Filter-Bey7krUj.mjs → Filter-6-N4mO0B.mjs} +1 -1
  56. package/dist/{Flag-UA3921oq.mjs → Flag-mZvORng_.mjs} +1 -1
  57. package/dist/{Giphy-Bio03-4X.mjs → Giphy-Bn2uh9UA.mjs} +1 -1
  58. package/dist/{GoalCount-PTRy4OB1.mjs → GoalCount-DMNh7uf-.mjs} +1 -1
  59. package/dist/{GoalPercent-CIXh7KsA.mjs → GoalPercent-Bnby2nr0.mjs} +1 -1
  60. package/dist/{GoalTask-Y4IQNIGu.mjs → GoalTask-B_FaJr_T.mjs} +1 -1
  61. package/dist/{GoalTask-CIx8tVD7.mjs → GoalTask-CZfWk_WQ.mjs} +1 -1
  62. package/dist/{Goals-CCenvMT4.mjs → Goals-8mfkodJa.mjs} +1 -1
  63. package/dist/{Goals-B-Iizjeh.mjs → Goals-iG7G0onI.mjs} +1 -1
  64. package/dist/{Growth-DvZAenHn.mjs → Growth-FBxpHz4J.mjs} +1 -1
  65. package/dist/{Hamburger-BVD2_o3W.mjs → Hamburger-CYQUN-EW.mjs} +1 -1
  66. package/dist/{Help-Dz51_QyV.mjs → Help-CbSTbS70.mjs} +1 -1
  67. package/dist/{HighFive-DVucCEqN.mjs → HighFive-CSNvJuN9.mjs} +1 -1
  68. package/dist/{HighFive-Cfz77NOg.mjs → HighFive-CitkYeUO.mjs} +1 -1
  69. package/dist/{Home-Bb8K0IW6.mjs → Home-C2HV1CPn.mjs} +1 -1
  70. package/dist/{Home-B14TopwI.mjs → Home-C5z4mED2.mjs} +1 -1
  71. package/dist/{HorizontalLine-DnIuGvqx.mjs → HorizontalLine-BPoQMYj1.mjs} +1 -1
  72. package/dist/{Hourglass-CErLupaT.mjs → Hourglass-BmVJM6vY.mjs} +1 -1
  73. package/dist/{Image-BA_Ym0SW.mjs → Image-CE5uLX9O.mjs} +1 -1
  74. package/dist/{ImageFile-DOrxELjr.mjs → ImageFile-trCTH6fE.mjs} +1 -1
  75. package/dist/{InGoodCompany-DLyFdsp-.mjs → InGoodCompany-Dl8yqUS0.mjs} +1 -1
  76. package/dist/{Incentives-Cb4JqRVV.mjs → Incentives-BX62tMjS.mjs} +1 -1
  77. package/dist/{Info-DQKFxgwk.mjs → Info-9Ngwuwr5.mjs} +1 -1
  78. package/dist/{Insights-SwPZVNl2.mjs → Insights-Ba4WyZPp.mjs} +1 -1
  79. package/dist/{Insights-CV5vG9l8.mjs → Insights-DnWl2K4e.mjs} +1 -1
  80. package/dist/{Integrations-Hw5GgszL.mjs → Integrations-BZbrJy8B.mjs} +1 -1
  81. package/dist/{KazooLogo-D5pAd19v.mjs → KazooLogo-C4_Ee4J8.mjs} +1 -1
  82. package/dist/{KnowYourAudience-xRlkgJBQ.mjs → KnowYourAudience-DLt601Fb.mjs} +1 -1
  83. package/dist/{Launch-ql3ZL3e0.mjs → Launch-CSM20BaP.mjs} +1 -1
  84. package/dist/{Link-CS2kAjo0.mjs → Link-L8AUIg5U.mjs} +1 -1
  85. package/dist/{LinkArrow-CfpSnXmf.mjs → LinkArrow-nSKUwBkf.mjs} +1 -1
  86. package/dist/{Loading-DSzUSgaq.mjs → Loading-CZohNMm_.mjs} +1 -1
  87. package/dist/{Lock-DsnBvKQh.mjs → Lock-B4VRqeUe.mjs} +1 -1
  88. package/dist/{Management-WlhXRwwx.mjs → Management-B_eEaOsU.mjs} +1 -1
  89. package/dist/{MeatballMenu-DkFmfbWZ.mjs → MeatballMenu-D1owTYjN.mjs} +1 -1
  90. package/dist/{Messages-CbQ4J7vM.mjs → Messages-Db7gAKgp.mjs} +1 -1
  91. package/dist/{Microphone-DKI852u4.mjs → Microphone-DKjzw1tD.mjs} +1 -1
  92. package/dist/{Mobile-66ynUqOM.mjs → Mobile-E2-Aqq9_.mjs} +1 -1
  93. package/dist/{Nomination-BNu4FWGP.mjs → Nomination-BqUDPKAy.mjs} +1 -1
  94. package/dist/{NominationsAndAwards-dHQ5zwMJ.mjs → NominationsAndAwards-Ch4oPnma.mjs} +1 -1
  95. package/dist/{Notification-BOspP_yl.mjs → Notification-C5CNBGG_.mjs} +1 -1
  96. package/dist/{Okrs-BmZH_F_W.mjs → Okrs-CE63od5K.mjs} +1 -1
  97. package/dist/{Pause-CTab0-eq.mjs → Pause-CyNsqw5O.mjs} +1 -1
  98. package/dist/{PeerToPeer-C5Rne6Z1.mjs → PeerToPeer-e5zOCSfa.mjs} +1 -1
  99. package/dist/{Pencil-B20FacJ2.mjs → Pencil-D_0lVP0u.mjs} +1 -1
  100. package/dist/{People-Dn7ELvRc.mjs → People-CgZJRnXl.mjs} +1 -1
  101. package/dist/{PerformanceManagement-cvIm5du6.mjs → PerformanceManagement-CP9rd1oO.mjs} +1 -1
  102. package/dist/{Pin-DBu7KbTO.mjs → Pin-BfpHkdrj.mjs} +1 -1
  103. package/dist/{PinnedIconAward-BZ5n2Dry.mjs → PinnedIconAward-PG8ThurD.mjs} +1 -1
  104. package/dist/{PinnedIconBrightIdea-DYD9fLUh.mjs → PinnedIconBrightIdea-CwRZkuXB.mjs} +1 -1
  105. package/dist/{PinnedIconBullseye-BUSEzRmp.mjs → PinnedIconBullseye-DREeKT_Z.mjs} +1 -1
  106. package/dist/{PinnedIconChampagne-DduTZK3J.mjs → PinnedIconChampagne-CmuHt8pq.mjs} +1 -1
  107. package/dist/{PinnedIconCheer-Bslgr3nN.mjs → PinnedIconCheer-D5fZUQ3X.mjs} +1 -1
  108. package/dist/{PinnedIconCrown-BbUmCCjt.mjs → PinnedIconCrown-COyU4Bki.mjs} +1 -1
  109. package/dist/{PinnedIconDiamond-BJ7F5Wqd.mjs → PinnedIconDiamond-Do-XZnQh.mjs} +1 -1
  110. package/dist/{PinnedIconHoleInOne-CofTJvIH.mjs → PinnedIconHoleInOne-kTe8Xxdu.mjs} +1 -1
  111. package/dist/{PinnedIconMedal-DKRT01ED.mjs → PinnedIconMedal-BwsNZEBL.mjs} +1 -1
  112. package/dist/{PinnedIconMetrics-xj8yCJPx.mjs → PinnedIconMetrics-C3cIURvK.mjs} +1 -1
  113. package/dist/{PinnedIconPin-DJrCg0X6.mjs → PinnedIconPin-Bv7hrcDf.mjs} +1 -1
  114. package/dist/{PinnedIconRockAndRoll-B04j5uUv.mjs → PinnedIconRockAndRoll-C1NTfglj.mjs} +1 -1
  115. package/dist/{PinnedIconRocket-BUHKUHoA.mjs → PinnedIconRocket-CKGBp2ST.mjs} +1 -1
  116. package/dist/{PinnedIconStrength-r8ZdgBPW.mjs → PinnedIconStrength-D_uuJwvs.mjs} +1 -1
  117. package/dist/{PinnedIconTeddyBear-_6TKgSpk.mjs → PinnedIconTeddyBear-DSCJCKhC.mjs} +1 -1
  118. package/dist/{PlatformLogo-CgcViTrk.mjs → PlatformLogo-phGKvaJT.mjs} +1 -1
  119. package/dist/{Plus-1a1iKFij.mjs → Plus-oAiKaEmM.mjs} +1 -1
  120. package/dist/{Popper-DTNBCaO3.mjs → Popper-Chqdfk-H.mjs} +1 -1
  121. package/dist/{PrivateEye-NTOqJf9d.mjs → PrivateEye-C9-YTjx6.mjs} +1 -1
  122. package/dist/{PrivatePushPin-Qxi8S9W7.mjs → PrivatePushPin-DlUf4W-0.mjs} +1 -1
  123. package/dist/{Processing-BYEFFF3J.mjs → Processing-CJGJfoPT.mjs} +1 -1
  124. package/dist/{Productivity-C0GqW_gW.mjs → Productivity-CEDv4hMc.mjs} +1 -1
  125. package/dist/{ProgressCircle-4R74KWwj.mjs → ProgressCircle-Cn9lXRir.mjs} +1 -1
  126. package/dist/{PulseSurvey-Dt3AgcLM.mjs → PulseSurvey-mP74oCGq.mjs} +1 -1
  127. package/dist/{PushPin-3vsQ39Tr.mjs → PushPin-Da6Zm5lr.mjs} +1 -1
  128. package/dist/{QuotesLeft-CHx4gAFP.mjs → QuotesLeft-D0ItZ1U1.mjs} +1 -1
  129. package/dist/{QuotesRight-BvmmdPO6.mjs → QuotesRight-ql9U29US.mjs} +1 -1
  130. package/dist/{Recognition-D6wwEXC9.mjs → Recognition-D5EqcNlU.mjs} +1 -1
  131. package/dist/{Recognition-Cm_pmyH0.mjs → Recognition-Ed9sie-h.mjs} +1 -1
  132. package/dist/{Retention-DYdv9N-b.mjs → Retention-DNpcg0IU.mjs} +1 -1
  133. package/dist/{Rewards-C0mIEGMZ.mjs → Rewards-DZeRHf9t.mjs} +1 -1
  134. package/dist/{Rewards-D8NNApub.mjs → Rewards-ZZ04kN2l.mjs} +1 -1
  135. package/dist/{RewardsCatalog-zCF_l5kH.mjs → RewardsCatalog-b-U0Wzlb.mjs} +1 -1
  136. package/dist/{Roadmap-CsfqT1QH.mjs → Roadmap-canyNqfm.mjs} +1 -1
  137. package/dist/{Search-LtrO8QCx.mjs → Search-rK2THIwO.mjs} +1 -1
  138. package/dist/{Security-DIltROqF.mjs → Security-CKiBH7JV.mjs} +1 -1
  139. package/dist/{SendRecognition-CTnjdWMU.mjs → SendRecognition-CPZhEhkM.mjs} +1 -1
  140. package/dist/{ShareLink-Cq0r1JCE.mjs → ShareLink-8WzXg41-.mjs} +1 -1
  141. package/dist/{SidebarCollapse-7H5JSXxx.mjs → SidebarCollapse-NzAm-DBv.mjs} +1 -1
  142. package/dist/{Skill-Dnj7KZxC.mjs → Skill-eqw1paqB.mjs} +1 -1
  143. package/dist/{Skills-Cq4KeOe6.mjs → Skills-yAMZGq52.mjs} +1 -1
  144. package/dist/{Smiley-DUG5ecOf.mjs → Smiley-BzsrnEo2.mjs} +1 -1
  145. package/dist/{Stop-t03eS6H4.mjs → Stop-DEWn7WCW.mjs} +1 -1
  146. package/dist/{Survey-DjzZWIKM.mjs → Survey-rkfygd5-.mjs} +1 -1
  147. package/dist/{Surveys-D_kE7qy8.mjs → Surveys-DYYBDmHZ.mjs} +1 -1
  148. package/dist/{SyncUps-BKJvxkWn.mjs → SyncUps-D-SmAgc3.mjs} +1 -1
  149. package/dist/{Syncs-CUo-vvLP.mjs → Syncs-CGJ7v8mS.mjs} +1 -1
  150. package/dist/{TalentReview-UF28o53k.mjs → TalentReview-9PhH8w_L.mjs} +1 -1
  151. package/dist/{TalentReview-BUO2j7GT.mjs → TalentReview-CE-e4BIq.mjs} +1 -1
  152. package/dist/{TalentReviewInsights-D3dAsMdE.mjs → TalentReviewInsights-0BMSOU5_.mjs} +1 -1
  153. package/dist/{TaskCompleted-Bzygg-2M.mjs → TaskCompleted-lrBgmL0T.mjs} +1 -1
  154. package/dist/{Team-D8tcpG4C.mjs → Team-XAy15OeR.mjs} +1 -1
  155. package/dist/{Teams-DdQs3LLD.mjs → Teams-CDBVF8l7.mjs} +1 -1
  156. package/dist/{TextBold-DKbTEDWr.mjs → TextBold-CEDUyESM.mjs} +1 -1
  157. package/dist/{TextBulletList-Tnr70La5.mjs → TextBulletList-B6DiE3rX.mjs} +1 -1
  158. package/dist/{TextInput-D3Qv3kEx.mjs → TextInput-CJbxwmMn.mjs} +1 -1
  159. package/dist/{TextItalic-B32H0FmA.mjs → TextItalic-BJO0gH1v.mjs} +1 -1
  160. package/dist/{TextNumberList--3ZTYGex.mjs → TextNumberList-H95O5o__.mjs} +1 -1
  161. package/dist/{TextUnderline-Bei4bsmP.mjs → TextUnderline-DibrPlka.mjs} +1 -1
  162. package/dist/{ThumbsDown-ZG1AD2Hx.mjs → ThumbsDown-DYdeNJDQ.mjs} +1 -1
  163. package/dist/{ThumbsUp-CnDZZ6oQ.mjs → ThumbsUp-DnPmeT5I.mjs} +1 -1
  164. package/dist/{Toggle-CX_m3ALA.mjs → Toggle-BeJkDPBZ.mjs} +1 -1
  165. package/dist/{Translate-BeYsuPQc.mjs → Translate-DwJmZaDA.mjs} +1 -1
  166. package/dist/{Trash-C0gT_Q95.mjs → Trash-0r5IoBHp.mjs} +1 -1
  167. package/dist/{TrendDown-Cp9NgPrv.mjs → TrendDown-DqzypKCB.mjs} +1 -1
  168. package/dist/{TrendUp-CDu5Nz01.mjs → TrendUp-DTVMYcc4.mjs} +1 -1
  169. package/dist/{Undo-BqzM44Uc.mjs → Undo-DqM2QZDd.mjs} +1 -1
  170. package/dist/{Unplugged-BzN5xthX.mjs → Unplugged-tacti_DL.mjs} +1 -1
  171. package/dist/{UpDownCaret-ziuh444G.mjs → UpDownCaret-VCSzjCJE.mjs} +1 -1
  172. package/dist/{VerifiedCheckmark-z-ybL9Ul.mjs → VerifiedCheckmark-eRwjEgBJ.mjs} +1 -1
  173. package/dist/{VerticalLine-DnrGQmjJ.mjs → VerticalLine-BclQDDpy.mjs} +1 -1
  174. package/dist/{Warning-CKWPAUfe.mjs → Warning-Bj-6g7BU.mjs} +1 -1
  175. package/dist/{WarningNoOutline-BGMJYMY-.mjs → WarningNoOutline-M-uO8CwH.mjs} +1 -1
  176. package/dist/{YesAnd-DYkUBPZU.mjs → YesAnd-Dsnh32-h.mjs} +1 -1
  177. package/dist/ai-assistant.css +1 -1
  178. package/dist/{emoji-Bqyk06-b.mjs → emoji-CClEa0De.mjs} +1 -1
  179. package/dist/{react-apexcharts.min-DsrQ0uFK.mjs → react-apexcharts.min-uiu9X4Mh.mjs} +1 -1
  180. package/dist/react.es.js +5 -4
  181. package/dist/react.umd.js +120 -112
  182. package/dist/{reactComponent-F2jaOPGQ.mjs → reactComponent-DGJpOZ5R.mjs} +8978 -8891
  183. package/package.json +1 -1
  184. package/react.d.ts +69 -3
  185. package/sharedTypes.ts +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktango/ai-assistant",
3
- "version": "0.0.117",
3
+ "version": "0.0.119",
4
4
  "files": [
5
5
  "constants.js",
6
6
  "dist",
package/react.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { TSchema, Type, Static, TObject } from "@sinclair/typebox";
1
+ import type { TSchema, Type, Static } from "@sinclair/typebox";
2
2
  import {
3
3
  AiAssistantProps,
4
4
  ChatData,
@@ -9,8 +9,6 @@ import {
9
9
  AiAssistantSuggestedPromptsProps,
10
10
  GetFollowUpSuggestions,
11
11
  ChatDataFile,
12
- AiAssistantControls,
13
- FollowUpSuggestion,
14
12
  } from "./sharedTypes";
15
13
 
16
14
  export const getDefaultGetFollowUpSuggestions: (args: {
@@ -23,6 +21,36 @@ export function AiAssistantSuggestedPrompts(
23
21
  args: AiAssistantSuggestedPromptsProps
24
22
  ): JSX.Element;
25
23
 
24
+ export interface AiResponseRating {
25
+ id: string;
26
+ userRating?: "THUMBS_UP" | "THUMBS_DOWN" | null;
27
+ userComment?: string | null;
28
+ }
29
+
30
+ export interface GenAIRatingComponentProps {
31
+ responseType: "WTC_MESSAGE" | "SURVEY_SUMMARY" | "COMMENTS_SUMMARY";
32
+ responseId: string;
33
+ genAiMessage: string;
34
+ genAiMessageTimestamp: string;
35
+ onSubmitRating: (input: any) => Promise<any>;
36
+ isLoading?: boolean;
37
+ error?: Error;
38
+ aiResponseRating?: AiResponseRating | null;
39
+ }
40
+
41
+ export type GenAIRatingComponentApolloWrappedProps = Omit<
42
+ GenAIRatingComponentProps,
43
+ "onSubmitRating" | "isLoading" | "error"
44
+ >;
45
+
46
+ export function GenAIRatingComponent(
47
+ args: GenAIRatingComponentProps
48
+ ): JSX.Element;
49
+
50
+ export function GenAIRatingComponentApolloWrapped(
51
+ args: GenAIRatingComponentApolloWrappedProps
52
+ ): JSX.Element;
53
+
26
54
  export const tools: {
27
55
  kazooTools: {
28
56
  getRewardsAndRecognitionCurrentUserTool: ToolDeclaration;
@@ -33,11 +61,49 @@ export const tools: {
33
61
  askSingleShotQuestion: ToolDeclaration;
34
62
  analyzeCurrentPage: ToolDeclaration;
35
63
  };
64
+ /**
65
+ * Helper function to define a new tool for the AI Assistant.
66
+ *
67
+ * The tool's name, description, and the full schema of its parameters (including
68
+ * their descriptions) are sent to the LLM at the beginning of every interaction.
69
+ * The LLM uses this information to understand what the tool does and decide
70
+ * when and how to call it.
71
+ *
72
+ * Providing a clear, descriptive tool `description` and detailed descriptions
73
+ * for each field in the `parameters` object is essential for reliable tool calling.
74
+ */
36
75
  createTool<TParams extends TSchema = TSchema>(args: {
37
76
  name: string;
77
+ /**
78
+ * A description of the tool that is provided to the LLM.
79
+ * This tells the LLM what the tool is capable of getting or doing, helping it
80
+ * decide when to invoke it.
81
+ */
38
82
  description: string;
83
+ /**
84
+ * A user-friendly, present-tense name for the tool (e.g., "Performing calculations").
85
+ * This is shown in the AI Assistant UI while the tool is executing.
86
+ */
87
+ displayName: string;
88
+ /**
89
+ * A user-friendly, past-tense name for the tool (e.g., "Performed calculations").
90
+ * This is shown in the AI Assistant's debug mode after the tool has finished executing.
91
+ */
92
+ pastTenseDisplayName: string;
93
+ /**
94
+ * A function that returns a JSON schema (using TypeBox) defining the arguments
95
+ * required by the tool. Each field in the schema should include a `description`
96
+ * to help the LLM provide accurate values.
97
+ */
39
98
  parameters?: (t: typeof Type) => TParams;
99
+ /**
100
+ * The implementation function for the tool. This is called when the LLM
101
+ * decides to invoke the tool.
102
+ */
40
103
  fulfill: (args: Static<TParams>) => Promise<string | ChatDataFile>;
104
+ /**
105
+ * Currently unused. Investigate intent and potential removal before using.
106
+ */
41
107
  chatItemMatches?: (chatItem: ChatItem) => boolean;
42
108
  }): ToolDeclaration;
43
109
  } = {};
package/sharedTypes.ts CHANGED
@@ -69,7 +69,20 @@ export type ChatItem = {
69
69
  export type ToolDeclaration<TParams extends TSchema = TSchema> = {
70
70
  name: string;
71
71
  description: string;
72
+ /**
73
+ * A user-friendly, present-tense name for the tool (e.g., "Performing calculations").
74
+ * This is shown in the AI Assistant UI while the tool is executing.
75
+ */
76
+ displayName: string;
77
+ /**
78
+ * A user-friendly, past-tense name for the tool (e.g., "Performed calculations").
79
+ * This is shown in the AI Assistant's debug mode after the tool has finished executing.
80
+ */
81
+ pastTenseDisplayName: string;
72
82
  parameters?: any;
83
+ /**
84
+ * Currently unused. Investigate intent and potential removal before using.
85
+ */
73
86
  chatItemMatches?: (chatItem: {
74
87
  role: "user" | "model" | "tool";
75
88
  parts: ChatData[];