@worktango/ai-assistant 0.0.68 → 0.0.70
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.
- package/dist/{Absenteeism-Dj6e9Fyi.mjs → Absenteeism-B8zHBQI5.mjs} +1 -1
- package/dist/{ActivityFeed-_i2n25Rr.mjs → ActivityFeed-ymxaqCIv.mjs} +1 -1
- package/dist/{AddUser-fJkD6fWF.mjs → AddUser-Cz-3AWM0.mjs} +1 -1
- package/dist/{Admin-Cb6jR3KU.mjs → Admin-B9Iinp76.mjs} +1 -1
- package/dist/{Admin-5_97oMSe.mjs → Admin-CrO303UM.mjs} +1 -1
- package/dist/{AiGeneral-m7tNh_KD.mjs → AiGeneral-qv_QrnA6.mjs} +1 -1
- package/dist/{AiScoring-CjO8MbiJ.mjs → AiScoring-Dy2ipnuV.mjs} +1 -1
- package/dist/{AiText-C3EWim9N.mjs → AiText-B0xHjF-V.mjs} +1 -1
- package/dist/{Anniversary-C7R1t_nK.mjs → Anniversary-1jZnrCDW.mjs} +1 -1
- package/dist/{Appreciation-CK6_oa5p.mjs → Appreciation-BaznLvd5.mjs} +1 -1
- package/dist/{ArrowDown-CBr_B5Q_.mjs → ArrowDown-BxrC5ODj.mjs} +1 -1
- package/dist/{ArrowLeft-xu09hcIg.mjs → ArrowLeft-Cjz4Cgsr.mjs} +1 -1
- package/dist/{ArrowRight-Cc5Q2H-I.mjs → ArrowRight-CF2rgRUN.mjs} +1 -1
- package/dist/{ArrowUp-D8mnkSPT.mjs → ArrowUp-CEFJoYak.mjs} +1 -1
- package/dist/{Attachment-CMxtj03h.mjs → Attachment-9GmnfEF0.mjs} +1 -1
- package/dist/{BeQuickDontHurry-LjVKpJ-3.mjs → BeQuickDontHurry-IfrBbrMf.mjs} +1 -1
- package/dist/{Birthday-CRXvtL1A.mjs → Birthday-DOvQr-FQ.mjs} +1 -1
- package/dist/{BrandPromise-D2yXYAoQ.mjs → BrandPromise-BS5uJSIk.mjs} +1 -1
- package/dist/{BrandVision-e4Ze_rzH.mjs → BrandVision-DeJilePq.mjs} +1 -1
- package/dist/{Calendar-B6SEf6TP.mjs → Calendar-Cq75DDuR.mjs} +1 -1
- package/dist/{CaretDn-kj48ih5h.mjs → CaretDn-tMXT42G8.mjs} +1 -1
- package/dist/{CaretDown-CVaYAdac.mjs → CaretDown-CpI-XkVq.mjs} +1 -1
- package/dist/{CaretLeft-qlHzksP7.mjs → CaretLeft-BFn3WQ5K.mjs} +1 -1
- package/dist/{CaretRight-C0pHIzIK.mjs → CaretRight-CIdV0Z8Y.mjs} +1 -1
- package/dist/{CaretUp-BBnlSt8E.mjs → CaretUp-DP0pwL60.mjs} +1 -1
- package/dist/{ChallengeAccepted-CAAfHmis.mjs → ChallengeAccepted-Cv8fwv5E.mjs} +1 -1
- package/dist/{CheckIn-BgaXJ3F5.mjs → CheckIn-Dj5EhH9q.mjs} +1 -1
- package/dist/{CheckIns-Cy95dZjd.mjs → CheckIns-AjMXWzX6.mjs} +1 -1
- package/dist/{CheckSeal-DEffDZnq.mjs → CheckSeal-CP0qxJlq.mjs} +1 -1
- package/dist/{Checkmark-Ct0mwSof.mjs → Checkmark-zn-qgNjF.mjs} +1 -1
- package/dist/{Clock-ZYXVHsAd.mjs → Clock-Ct821I-s.mjs} +1 -1
- package/dist/{Close-DlvwS9R5.mjs → Close-Bw5snNmh.mjs} +1 -1
- package/dist/{CloudDownload-5Rg89a1V.mjs → CloudDownload-C8-lqjMV.mjs} +1 -1
- package/dist/{Comment-B5MD1lCz.mjs → Comment-B08PRIoq.mjs} +1 -1
- package/dist/{Comments-4USnrmup.mjs → Comments-Bm1eaDrF.mjs} +1 -1
- package/dist/{Connections-9gNvZ09e.mjs → Connections-Bb0l2JR_.mjs} +1 -1
- package/dist/{Copy-Vx2PYHS-.mjs → Copy-Dc2BFZGF.mjs} +1 -1
- package/dist/{CustomQuestion-B_eqMOF0.mjs → CustomQuestion-DgGI36d6.mjs} +1 -1
- package/dist/{CustomerSuccess-BC2MNsma.mjs → CustomerSuccess-DY1wvAOd.mjs} +1 -1
- package/dist/{DatePicker-DN-rF4qV.mjs → DatePicker-BN4v7etH.mjs} +1 -1
- package/dist/{Dot-7IOMkwJp.mjs → Dot-C9mcrGjb.mjs} +1 -1
- package/dist/{Download-aFxDpx_j.mjs → Download-BPhht08q.mjs} +1 -1
- package/dist/{Drag-BVxUkw0u.mjs → Drag-BrdZoy8t.mjs} +1 -1
- package/dist/{Earn-DQOaTWQI.mjs → Earn-BK58KEOv.mjs} +1 -1
- package/dist/{Email-BuD3ofoH.mjs → Email-DR-ChS3X.mjs} +1 -1
- package/dist/{EmojiDisplay-BGIZwQgb.mjs → EmojiDisplay-CvJ56ohC.mjs} +2 -2
- package/dist/{EmojiPicker-BOiKNoBw.mjs → EmojiPicker-DC83KBGY.mjs} +2 -2
- package/dist/{EnpsSurvey-DkIKB1la.mjs → EnpsSurvey-DOqNdx-u.mjs} +1 -1
- package/dist/{Expired-Z84QGb2V.mjs → Expired-BfCs2U59.mjs} +1 -1
- package/dist/{Eye-Dssi0IG9.mjs → Eye-VKRhZcqg.mjs} +1 -1
- package/dist/{Feedback-CBzOWl1-.mjs → Feedback-BQr-nYeS.mjs} +1 -1
- package/dist/{Feedback-CvAOVQjJ.mjs → Feedback-CCa50G9c.mjs} +1 -1
- package/dist/{Filter-G5o3bfxL.mjs → Filter-D8nEMEM9.mjs} +1 -1
- package/dist/{Flag-Bv9Vvfh6.mjs → Flag-CW6CB9KV.mjs} +1 -1
- package/dist/{Giphy-CznIbVzC.mjs → Giphy-CczeO5zL.mjs} +1 -1
- package/dist/{GoalCount-Du5fwrdw.mjs → GoalCount-Djy0ofWi.mjs} +1 -1
- package/dist/{GoalPercent-CHvMvG7e.mjs → GoalPercent-tcPWsVn-.mjs} +1 -1
- package/dist/{GoalTask-DameoO5S.mjs → GoalTask-DiAFlw3C.mjs} +1 -1
- package/dist/{GoalTask-Dr1leden.mjs → GoalTask-qTcMWoK-.mjs} +1 -1
- package/dist/{Goals-BOcQhMQm.mjs → Goals-S4npZQfJ.mjs} +1 -1
- package/dist/{Goals-B1wB2KQS.mjs → Goals-gWkc4Bcm.mjs} +1 -1
- package/dist/{Growth-h-9QKg1j.mjs → Growth-DGWneydC.mjs} +1 -1
- package/dist/{Hamburger-CxbDuVN4.mjs → Hamburger-BZugx4Rf.mjs} +1 -1
- package/dist/{Help-CbBI7q3t.mjs → Help-DB5iBJ1i.mjs} +1 -1
- package/dist/{HighFive-Bl5XFuNa.mjs → HighFive-C5Qoq4xY.mjs} +1 -1
- package/dist/{HighFive-Da6O_e9g.mjs → HighFive-EHavycEb.mjs} +1 -1
- package/dist/{Home-5fnLqxd1.mjs → Home-DWhphorr.mjs} +1 -1
- package/dist/{Home-MJ-7gMPr.mjs → Home-ePCKRnN6.mjs} +1 -1
- package/dist/{HorizontalLine-24IEBDLJ.mjs → HorizontalLine-DvqM1uMH.mjs} +1 -1
- package/dist/{Hourglass-Q5f2h3oc.mjs → Hourglass-DN9jP4b4.mjs} +1 -1
- package/dist/{Image-DQzPnN1y.mjs → Image-C-D1I9-B.mjs} +1 -1
- package/dist/{ImageFile-Z8QPT-7l.mjs → ImageFile-BkttvKgI.mjs} +1 -1
- package/dist/{InGoodCompany-BwPOO-Qf.mjs → InGoodCompany-BdHhVppn.mjs} +1 -1
- package/dist/{Incentives-xqcnJa3p.mjs → Incentives-CMgZ1qFl.mjs} +1 -1
- package/dist/{Info-BdxK39Z4.mjs → Info-Bg5sPUR4.mjs} +1 -1
- package/dist/{Insights-qLXbFXBI.mjs → Insights-BxPBWl5D.mjs} +1 -1
- package/dist/{Insights-tfiTeQKd.mjs → Insights-IVWtNh5U.mjs} +1 -1
- package/dist/{Integrations-DBJlLpxX.mjs → Integrations-0FlSCDjv.mjs} +1 -1
- package/dist/{KazooLogo-YHrAXsZA.mjs → KazooLogo-Dv8fjSMu.mjs} +1 -1
- package/dist/{KnowYourAudience-DVxRDE1W.mjs → KnowYourAudience-BHcVkz4b.mjs} +1 -1
- package/dist/{Launch-DeuRoKwp.mjs → Launch-f8YkkgGu.mjs} +1 -1
- package/dist/{Link-B9HFkiy-.mjs → Link-DrrRMcdT.mjs} +1 -1
- package/dist/{LinkArrow-uyA5JO-z.mjs → LinkArrow-BRnKCWtp.mjs} +1 -1
- package/dist/{Loading-DacIHY6W.mjs → Loading-DmrRW0dh.mjs} +1 -1
- package/dist/{Lock-BApTbtQu.mjs → Lock-BDrNd3h4.mjs} +1 -1
- package/dist/{Management-DocYE4iU.mjs → Management-B1rYqhve.mjs} +1 -1
- package/dist/{MeatballMenu-D-6J_iho.mjs → MeatballMenu-CbPK_R6k.mjs} +1 -1
- package/dist/{Messages-BV_wbZVO.mjs → Messages-CMqnLSc1.mjs} +1 -1
- package/dist/{Microphone-C7Cdsnv8.mjs → Microphone-s5acy5gE.mjs} +1 -1
- package/dist/{Mobile-BCPBNhtO.mjs → Mobile-Bkcb2paD.mjs} +1 -1
- package/dist/{Nomination-D743RiTP.mjs → Nomination-B8as8Hrv.mjs} +1 -1
- package/dist/{NominationsAndAwards-B7Y4XOQh.mjs → NominationsAndAwards-Du9O5oHU.mjs} +1 -1
- package/dist/{Notification-D7b-5W3A.mjs → Notification-CxkvzFhn.mjs} +1 -1
- package/dist/{Okrs-Btr-BLvD.mjs → Okrs-GVi5lA8U.mjs} +1 -1
- package/dist/{PeerToPeer-BSgmNZe7.mjs → PeerToPeer-ClFbM4s9.mjs} +1 -1
- package/dist/{Pencil-kNu5f_Qu.mjs → Pencil-DAGjkGCX.mjs} +1 -1
- package/dist/{People-DTgALLXm.mjs → People-BjIWvWVx.mjs} +1 -1
- package/dist/{PerformanceManagement-CcFSTi5R.mjs → PerformanceManagement-DLaF-Q37.mjs} +1 -1
- package/dist/{Pin-D5v53Jp6.mjs → Pin-DpS93f33.mjs} +1 -1
- package/dist/{PinnedIconAward-B_dXUowH.mjs → PinnedIconAward-BZpW6dpf.mjs} +1 -1
- package/dist/{PinnedIconBrightIdea-D-Memf7X.mjs → PinnedIconBrightIdea-PUFMYCc6.mjs} +1 -1
- package/dist/{PinnedIconBullseye-BVWABT4i.mjs → PinnedIconBullseye-CH1V91R5.mjs} +1 -1
- package/dist/{PinnedIconChampagne-ByBWQfAO.mjs → PinnedIconChampagne-C5Qm1D9B.mjs} +1 -1
- package/dist/{PinnedIconCheer-1BTgaTD0.mjs → PinnedIconCheer-C4YallMe.mjs} +1 -1
- package/dist/{PinnedIconCrown-BcSF1JBt.mjs → PinnedIconCrown-D0zO8C7D.mjs} +1 -1
- package/dist/{PinnedIconDiamond-DSf_RfE7.mjs → PinnedIconDiamond-D48eEcGP.mjs} +1 -1
- package/dist/{PinnedIconHoleInOne-Baj_y2og.mjs → PinnedIconHoleInOne-xffC7jth.mjs} +1 -1
- package/dist/{PinnedIconMedal-DLzhgBo7.mjs → PinnedIconMedal-TV7JAtAM.mjs} +1 -1
- package/dist/{PinnedIconMetrics-BJM6BldN.mjs → PinnedIconMetrics-CQ8dTBZu.mjs} +1 -1
- package/dist/{PinnedIconPin-CJaI4RgI.mjs → PinnedIconPin-NFhWkZEb.mjs} +1 -1
- package/dist/{PinnedIconRockAndRoll-DE20Mn_O.mjs → PinnedIconRockAndRoll-B3H0P1n0.mjs} +1 -1
- package/dist/{PinnedIconRocket-BU4NRXSN.mjs → PinnedIconRocket-C3jKXT9I.mjs} +1 -1
- package/dist/{PinnedIconStrength-euifwcgS.mjs → PinnedIconStrength-BdQGBncD.mjs} +1 -1
- package/dist/{PinnedIconTeddyBear-Cnvevh5E.mjs → PinnedIconTeddyBear-CQVP8YO5.mjs} +1 -1
- package/dist/{PlatformLogo-BRUe8qhp.mjs → PlatformLogo-DV5zS4Ye.mjs} +1 -1
- package/dist/{Plus-h-f2x2y3.mjs → Plus-yJtUAonX.mjs} +1 -1
- package/dist/{Popper-ACQi2mVK.mjs → Popper-BHSspc5e.mjs} +1 -1
- package/dist/{PrivateEye-AHWtNYKU.mjs → PrivateEye-BuLJvdJw.mjs} +1 -1
- package/dist/{PrivatePushPin-BWK3qbhb.mjs → PrivatePushPin-eWeLfa83.mjs} +1 -1
- package/dist/{Processing-CSB6YgNs.mjs → Processing-DBEMZiXd.mjs} +1 -1
- package/dist/{Productivity-BVbSUG93.mjs → Productivity-BMBIScxs.mjs} +1 -1
- package/dist/{ProgressCircle-DfMR8daV.mjs → ProgressCircle-vYIWtKI8.mjs} +1 -1
- package/dist/{PulseSurvey-CUysSVjZ.mjs → PulseSurvey-CrDDd1na.mjs} +1 -1
- package/dist/{PushPin-Br3n9caX.mjs → PushPin-BGiHec4b.mjs} +1 -1
- package/dist/{Recognition-BLNOBDJB.mjs → Recognition-CtxrkE11.mjs} +1 -1
- package/dist/{Recognition-C91prrzY.mjs → Recognition-DEXZW0FF.mjs} +1 -1
- package/dist/{Retention-DYscPjoT.mjs → Retention-COwtOLUL.mjs} +1 -1
- package/dist/{Rewards-dXCI_xJI.mjs → Rewards-CHCxTgd4.mjs} +1 -1
- package/dist/{Rewards-x-acX0h2.mjs → Rewards-CxOhbzrB.mjs} +1 -1
- package/dist/{RewardsCatalog-bLgJaxQW.mjs → RewardsCatalog-DDZX2DDj.mjs} +1 -1
- package/dist/{Roadmap-t7DTYBjW.mjs → Roadmap-DMNMXNwI.mjs} +1 -1
- package/dist/{Search-Ddl88IVa.mjs → Search-BElyy7Rl.mjs} +1 -1
- package/dist/{Security-CkAtGAMY.mjs → Security-D3GxNOKD.mjs} +1 -1
- package/dist/{SendRecognition-DBwWgEkn.mjs → SendRecognition-B1a9_UpO.mjs} +1 -1
- package/dist/{ShareLink-RQEmAHWX.mjs → ShareLink-BdYtUZNn.mjs} +1 -1
- package/dist/{Skill-Dqs_C3Bb.mjs → Skill-BmYKwcDn.mjs} +1 -1
- package/dist/{Skills-BEVgqQnw.mjs → Skills-DYdAbUXK.mjs} +1 -1
- package/dist/{Smiley-CLWBGY8i.mjs → Smiley-CwKuzgNP.mjs} +1 -1
- package/dist/{Stop-CTgMYG-e.mjs → Stop-CuHdTX1F.mjs} +1 -1
- package/dist/{Survey-DEZc5hRS.mjs → Survey-B396ApRr.mjs} +1 -1
- package/dist/{Surveys-FxMj5rHX.mjs → Surveys-J-Ta5I0U.mjs} +1 -1
- package/dist/{SyncUps-BOLmK5T7.mjs → SyncUps-mJO7Wrr-.mjs} +1 -1
- package/dist/{Syncs-CArAamP5.mjs → Syncs-oeaNrrde.mjs} +1 -1
- package/dist/{TalentReview-tvsw6RZY.mjs → TalentReview-BN4rVbfv.mjs} +1 -1
- package/dist/{TalentReview-vqM8ZTEc.mjs → TalentReview-LXvNicMb.mjs} +1 -1
- package/dist/{TalentReviewInsights-CJeUtHw6.mjs → TalentReviewInsights-Bv8Zzq-J.mjs} +1 -1
- package/dist/{TaskCompleted-CPdWMQU3.mjs → TaskCompleted-DdrBZ9yH.mjs} +1 -1
- package/dist/{Team-CWlRypRh.mjs → Team-C9iNL3J1.mjs} +1 -1
- package/dist/{Teams-D5FU45QW.mjs → Teams-DYHzL5bZ.mjs} +1 -1
- package/dist/{TextBold-CloDFHMf.mjs → TextBold-Cazylaa4.mjs} +1 -1
- package/dist/{TextBulletList-CE0smWh6.mjs → TextBulletList-C1ezA6Ml.mjs} +1 -1
- package/dist/{TextInput-VX4dYphD.mjs → TextInput-CaF2XDDZ.mjs} +1 -1
- package/dist/{TextItalic-mOjyZ1y7.mjs → TextItalic-BYHbGBMu.mjs} +1 -1
- package/dist/{TextNumberList-vuvz26LI.mjs → TextNumberList-BdHO8PNW.mjs} +1 -1
- package/dist/{TextUnderline-CpV-NAQp.mjs → TextUnderline-Do3EiIWM.mjs} +1 -1
- package/dist/{Toggle-D0DA-rRJ.mjs → Toggle-CQ4KEjZD.mjs} +1 -1
- package/dist/{Translate-BYFvwl28.mjs → Translate-BcWgbOeZ.mjs} +1 -1
- package/dist/{Trash-BKy5reBl.mjs → Trash-C5P05R3V.mjs} +1 -1
- package/dist/{TrendDown-D0AF2SRM.mjs → TrendDown-Cl5XOgpt.mjs} +1 -1
- package/dist/{TrendUp-5AuYRfoJ.mjs → TrendUp-A_s2nsIk.mjs} +1 -1
- package/dist/{Undo-DJv2hp0E.mjs → Undo-CtulXEwQ.mjs} +1 -1
- package/dist/{Unplugged-DXapWF8_.mjs → Unplugged-C8YyBtd1.mjs} +1 -1
- package/dist/{UpDownCaret-C97VhQQN.mjs → UpDownCaret-C_JAPTni.mjs} +1 -1
- package/dist/{VerticalLine-C8kdoTkH.mjs → VerticalLine-B5C_K49a.mjs} +1 -1
- package/dist/{Warning-BLxReWaL.mjs → Warning-B7zBN1qk.mjs} +1 -1
- package/dist/{WarningNoOutline-CWWvQC7T.mjs → WarningNoOutline-CgfKfOVF.mjs} +1 -1
- package/dist/{YesAnd-BggczhTD.mjs → YesAnd-BdUhex42.mjs} +1 -1
- package/dist/ai-assistant.css +1 -1
- package/dist/{emoji-CEhPDhSL.mjs → emoji-BmhMw4Ak.mjs} +1 -1
- package/dist/{react-apexcharts.min-onOv4qB8.mjs → react-apexcharts.min-BWVor6_A.mjs} +1 -1
- package/dist/react.es.js +7 -5
- package/dist/react.umd.js +287 -280
- package/dist/{reactComponent-CKkL0RWI.mjs → reactComponent-BaYgrUle.mjs} +17612 -15759
- package/package.json +3 -2
- package/react.d.ts +42 -112
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktango/ai-assistant",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.70",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"express.d.ts",
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/client": "^3.0.0",
|
|
24
24
|
"@ricky0123/vad-react": "^0.0.28",
|
|
25
|
+
"@sinclair/typebox": "^0.34",
|
|
25
26
|
"apexcharts": "^4.7.0",
|
|
27
|
+
"classnames": "^2.2.6",
|
|
26
28
|
"dom-to-semantic-markdown": "^1.3",
|
|
27
29
|
"html2canvas": "^1.4.1",
|
|
28
30
|
"http-proxy-middleware": "^3",
|
|
@@ -31,7 +33,6 @@
|
|
|
31
33
|
"react-apexcharts": "^1.7.0"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
|
-
"@sinclair/typebox": "^0.34",
|
|
35
36
|
"@vitejs/plugin-react": "^4.2.1",
|
|
36
37
|
"esbuild": "^0.17.11",
|
|
37
38
|
"ts-node": "^10.9.1",
|
package/react.d.ts
CHANGED
|
@@ -1,104 +1,12 @@
|
|
|
1
1
|
import type { TSchema, Type, Static, TObject } from "@sinclair/typebox";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
description: string;
|
|
11
|
-
parameters?: any;
|
|
12
|
-
chatItemMatches?: (chatItem: {
|
|
13
|
-
role: "user" | "model" | "tool";
|
|
14
|
-
parts: ChatData[];
|
|
15
|
-
}) => boolean;
|
|
16
|
-
fulfill: (result: any) => Promise<string | ChatDataFile>;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
type ChatData =
|
|
20
|
-
| ChatDataText
|
|
21
|
-
| ChatDataToolCall
|
|
22
|
-
| ChatDataToolResult
|
|
23
|
-
| ChatDataFile;
|
|
24
|
-
|
|
25
|
-
type ChatDataText = { type: "text"; text: string };
|
|
26
|
-
|
|
27
|
-
type ChatDataFile = {
|
|
28
|
-
type: "file";
|
|
29
|
-
fileUri: string;
|
|
30
|
-
mimeType: string;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
type ChatDataToolCall = {
|
|
34
|
-
type: "toolCall";
|
|
35
|
-
toolName: string;
|
|
36
|
-
args: Record<string, unknown>;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
type ChatDataToolResult = {
|
|
40
|
-
type: "toolResult";
|
|
41
|
-
toolName: string;
|
|
42
|
-
result: any;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export type ChatHistoryItem = {
|
|
46
|
-
title: string;
|
|
47
|
-
messages: any[];
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export type ChatHistory = Record<string, ChatHistoryItem[]>;
|
|
52
|
-
|
|
53
|
-
export type ChatSizes = "small" | "default" | "large" | "full";
|
|
54
|
-
|
|
55
|
-
export type AiAssistantControls = {
|
|
56
|
-
setPrompt?: (prompt: string) => void;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export type AiAssistantProps = {
|
|
60
|
-
/**
|
|
61
|
-
* The title to display in the window. Default: "WorkTango AI Assistant".
|
|
62
|
-
*/
|
|
63
|
-
windowTitle?: React.ReactNode;
|
|
64
|
-
tools?: ToolDeclaration[];
|
|
65
|
-
enableDebug: boolean;
|
|
66
|
-
onClose: () => void;
|
|
67
|
-
hasCloseButton?: boolean;
|
|
68
|
-
chatWindowZeroState?: React.ReactNode;
|
|
69
|
-
hasToggleChatSizeButton?: boolean;
|
|
70
|
-
hasChatHistory?: boolean;
|
|
71
|
-
chatHistory?: ChatHistory;
|
|
72
|
-
startingWidth?: ChatSizes;
|
|
73
|
-
/**
|
|
74
|
-
* The system instruction to use for the AI assistant.
|
|
75
|
-
*/
|
|
76
|
-
systemInstruction?: () => string | Promise<string>;
|
|
77
|
-
/**
|
|
78
|
-
* The initial prompt to use for the AI assistant.
|
|
79
|
-
*/
|
|
80
|
-
initialPrompt?: string;
|
|
81
|
-
/**
|
|
82
|
-
* A ref to the controls object for the AI assistant. Used to allow some form
|
|
83
|
-
* of control over the AI assistant from outside the component, allowing things
|
|
84
|
-
* like recommended prompts to be set from outside the component.
|
|
85
|
-
*/
|
|
86
|
-
controls?: React.MutableRefObject<AiAssistantControls>;
|
|
87
|
-
/**
|
|
88
|
-
* Whether to show the chat history by default. Default: true.
|
|
89
|
-
*/
|
|
90
|
-
chatHistoryShownByDefault?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Otherwise, if there's a chat history, we start with the latest history, so
|
|
93
|
-
* the user can continue the previous conversation.
|
|
94
|
-
*/
|
|
95
|
-
startWithNewChat?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* The minimum number of characters that must be entered before the user can
|
|
98
|
-
* submit a message. Default: 5.
|
|
99
|
-
*/
|
|
100
|
-
minimumCharacterCount?: number;
|
|
101
|
-
};
|
|
2
|
+
import {
|
|
3
|
+
AiAssistantProps,
|
|
4
|
+
ChatData,
|
|
5
|
+
ChatItem,
|
|
6
|
+
GetChatCompletionOptions,
|
|
7
|
+
GetStructuredResponseOptions,
|
|
8
|
+
ToolDeclaration,
|
|
9
|
+
} from "./sharedTypes";
|
|
102
10
|
|
|
103
11
|
export function AiAssistant(args: AiAssistantProps): JSX.Element;
|
|
104
12
|
|
|
@@ -112,13 +20,7 @@ export const tools: {
|
|
|
112
20
|
askSingleShotQuestion: ToolDeclaration;
|
|
113
21
|
analyzeCurrentPage: ToolDeclaration;
|
|
114
22
|
};
|
|
115
|
-
createTool<TParams extends TSchema = TSchema>({
|
|
116
|
-
name,
|
|
117
|
-
description,
|
|
118
|
-
parameters: userParameters,
|
|
119
|
-
fulfill,
|
|
120
|
-
chatItemMatches,
|
|
121
|
-
}: {
|
|
23
|
+
createTool<TParams extends TSchema = TSchema>(args: {
|
|
122
24
|
name: string;
|
|
123
25
|
description: string;
|
|
124
26
|
parameters?: (t: typeof Type) => TParams;
|
|
@@ -170,8 +72,36 @@ export const config: {
|
|
|
170
72
|
getScreenshotMainContentSelector: () => string;
|
|
171
73
|
};
|
|
172
74
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Makes a structured response request to the LLM API.
|
|
77
|
+
*/
|
|
78
|
+
export function getStructuredResponse<T extends TSchema>(
|
|
79
|
+
args: GetStructuredResponseOptions<T>
|
|
80
|
+
): Promise<Static<T>>;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Makes a chat completion request to the LLM API. Can be used both with streaming and non-streaming responses.
|
|
84
|
+
* For streaming responses, provides callbacks for handling chunks and errors.
|
|
85
|
+
*/
|
|
86
|
+
export function getChatCompletion(
|
|
87
|
+
args: GetChatCompletionOptions
|
|
88
|
+
): Promise<ChatData[]>;
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
AiAssistantControls,
|
|
92
|
+
ChatData,
|
|
93
|
+
ChatItem,
|
|
94
|
+
GetChatCompletionOptions,
|
|
95
|
+
GetStructuredResponseOptions,
|
|
96
|
+
ToolDeclaration,
|
|
97
|
+
AiAssistantProps,
|
|
98
|
+
ChatDataFile,
|
|
99
|
+
ChatDataText,
|
|
100
|
+
ChatDataToolCall,
|
|
101
|
+
ChatDataToolResult,
|
|
102
|
+
ChatHistory,
|
|
103
|
+
ChatHistoryItem,
|
|
104
|
+
ChatSizes,
|
|
105
|
+
Conversation,
|
|
106
|
+
SupportedTextModel,
|
|
107
|
+
} from "./sharedTypes";
|