@websolutespa/bom-mixer-llm 0.0.1
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/CHANGELOG.md +7 -0
- package/README.md +11 -0
- package/dist/cjs/index.css +2264 -0
- package/dist/cjs/index.js +3566 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/index.css +2264 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/llm/components/Background/background.js +76 -0
- package/dist/esm/llm/components/Background/background.js.map +1 -0
- package/dist/esm/llm/components/BusyIndicator/busyindicator.js +23 -0
- package/dist/esm/llm/components/BusyIndicator/busyindicator.js.map +1 -0
- package/dist/esm/llm/components/Canvas/canvas.js +223 -0
- package/dist/esm/llm/components/Canvas/canvas.js.map +1 -0
- package/dist/esm/llm/components/Chunk/chunk.js +65 -0
- package/dist/esm/llm/components/Chunk/chunk.js.map +1 -0
- package/dist/esm/llm/components/Cta/cta.js +33 -0
- package/dist/esm/llm/components/Cta/cta.js.map +1 -0
- package/dist/esm/llm/components/Event/event.js +90 -0
- package/dist/esm/llm/components/Event/event.js.map +1 -0
- package/dist/esm/llm/components/EventGroup/eventgroup.js +61 -0
- package/dist/esm/llm/components/EventGroup/eventgroup.js.map +1 -0
- package/dist/esm/llm/components/FormRecap/FormRecap.js +240 -0
- package/dist/esm/llm/components/FormRecap/FormRecap.js.map +1 -0
- package/dist/esm/llm/components/FormRecapError/FormRecapError.js +13 -0
- package/dist/esm/llm/components/FormRecapError/FormRecapError.js.map +1 -0
- package/dist/esm/llm/components/FormRecapSuccess/FormRecapSuccess.js +13 -0
- package/dist/esm/llm/components/FormRecapSuccess/FormRecapSuccess.js.map +1 -0
- package/dist/esm/llm/components/FormRequest/FormRequest.js +34 -0
- package/dist/esm/llm/components/FormRequest/FormRequest.js.map +1 -0
- package/dist/esm/llm/components/Header/header.js +51 -0
- package/dist/esm/llm/components/Header/header.js.map +1 -0
- package/dist/esm/llm/components/Intro/intro.js +77 -0
- package/dist/esm/llm/components/Intro/intro.js.map +1 -0
- package/dist/esm/llm/components/Main/main.js +118 -0
- package/dist/esm/llm/components/Main/main.js.map +1 -0
- package/dist/esm/llm/components/Poi/poi.js +78 -0
- package/dist/esm/llm/components/Poi/poi.js.map +1 -0
- package/dist/esm/llm/components/PoiGroup/poigroup.js +14 -0
- package/dist/esm/llm/components/PoiGroup/poigroup.js.map +1 -0
- package/dist/esm/llm/components/Prompt/prompt.js +86 -0
- package/dist/esm/llm/components/Prompt/prompt.js.map +1 -0
- package/dist/esm/llm/components/Prompt/suggestions.js +45 -0
- package/dist/esm/llm/components/Prompt/suggestions.js.map +1 -0
- package/dist/esm/llm/components/QuickLinks/quicklinks.js +66 -0
- package/dist/esm/llm/components/QuickLinks/quicklinks.js.map +1 -0
- package/dist/esm/llm/components/Stream/stream.js +43 -0
- package/dist/esm/llm/components/Stream/stream.js.map +1 -0
- package/dist/esm/llm/components/Text/text.js +34 -0
- package/dist/esm/llm/components/Text/text.js.map +1 -0
- package/dist/esm/llm/components/Thread/thread.js +26 -0
- package/dist/esm/llm/components/Thread/thread.js.map +1 -0
- package/dist/esm/llm/components/Trigger/blob.js +122 -0
- package/dist/esm/llm/components/Trigger/blob.js.map +1 -0
- package/dist/esm/llm/components/Trigger/trigger.js +63 -0
- package/dist/esm/llm/components/Trigger/trigger.js.map +1 -0
- package/dist/esm/llm/components/Tripadvisor/tripadvisor.js +94 -0
- package/dist/esm/llm/components/Tripadvisor/tripadvisor.js.map +1 -0
- package/dist/esm/llm/hooks/useAutosizeTextArea.js +13 -0
- package/dist/esm/llm/hooks/useAutosizeTextArea.js.map +1 -0
- package/dist/esm/llm/llm.js +48 -0
- package/dist/esm/llm/llm.js.map +1 -0
- package/dist/esm/llm/utils.js +15 -0
- package/dist/esm/llm/utils.js.map +1 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js +135 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/esm/useLlm/emitter.js +32 -0
- package/dist/esm/useLlm/emitter.js.map +1 -0
- package/dist/esm/useLlm/message.service.js +308 -0
- package/dist/esm/useLlm/message.service.js.map +1 -0
- package/dist/esm/useLlm/mock.js +687 -0
- package/dist/esm/useLlm/mock.js.map +1 -0
- package/dist/esm/useLlm/speech.js +306 -0
- package/dist/esm/useLlm/speech.js.map +1 -0
- package/dist/esm/useLlm/useLlm.js +460 -0
- package/dist/esm/useLlm/useLlm.js.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/llm/components/Background/background.d.ts +34 -0
- package/dist/types/llm/components/Background/background.d.ts.map +1 -0
- package/dist/types/llm/components/BusyIndicator/busyindicator.d.ts +2 -0
- package/dist/types/llm/components/BusyIndicator/busyindicator.d.ts.map +1 -0
- package/dist/types/llm/components/Canvas/canvas.d.ts +12 -0
- package/dist/types/llm/components/Canvas/canvas.d.ts.map +1 -0
- package/dist/types/llm/components/Chunk/chunk.d.ts +9 -0
- package/dist/types/llm/components/Chunk/chunk.d.ts.map +1 -0
- package/dist/types/llm/components/Cta/cta.d.ts +10 -0
- package/dist/types/llm/components/Cta/cta.d.ts.map +1 -0
- package/dist/types/llm/components/Event/event.d.ts +3 -0
- package/dist/types/llm/components/Event/event.d.ts.map +1 -0
- package/dist/types/llm/components/EventGroup/eventgroup.d.ts +3 -0
- package/dist/types/llm/components/EventGroup/eventgroup.d.ts.map +1 -0
- package/dist/types/llm/components/FormRecap/FormRecap.d.ts +10 -0
- package/dist/types/llm/components/FormRecap/FormRecap.d.ts.map +1 -0
- package/dist/types/llm/components/FormRecapError/FormRecapError.d.ts +2 -0
- package/dist/types/llm/components/FormRecapError/FormRecapError.d.ts.map +1 -0
- package/dist/types/llm/components/FormRecapSuccess/FormRecapSuccess.d.ts +2 -0
- package/dist/types/llm/components/FormRecapSuccess/FormRecapSuccess.d.ts.map +1 -0
- package/dist/types/llm/components/FormRequest/FormRequest.d.ts +4 -0
- package/dist/types/llm/components/FormRequest/FormRequest.d.ts.map +1 -0
- package/dist/types/llm/components/Header/header.d.ts +4 -0
- package/dist/types/llm/components/Header/header.d.ts.map +1 -0
- package/dist/types/llm/components/Intro/intro.d.ts +2 -0
- package/dist/types/llm/components/Intro/intro.d.ts.map +1 -0
- package/dist/types/llm/components/Main/main.d.ts +2 -0
- package/dist/types/llm/components/Main/main.d.ts.map +1 -0
- package/dist/types/llm/components/Poi/poi.d.ts +3 -0
- package/dist/types/llm/components/Poi/poi.d.ts.map +1 -0
- package/dist/types/llm/components/PoiGroup/poigroup.d.ts +3 -0
- package/dist/types/llm/components/PoiGroup/poigroup.d.ts.map +1 -0
- package/dist/types/llm/components/Prompt/prompt.d.ts +2 -0
- package/dist/types/llm/components/Prompt/prompt.d.ts.map +1 -0
- package/dist/types/llm/components/Prompt/suggestions.d.ts +2 -0
- package/dist/types/llm/components/Prompt/suggestions.d.ts.map +1 -0
- package/dist/types/llm/components/QuickLinks/quicklinks.d.ts +3 -0
- package/dist/types/llm/components/QuickLinks/quicklinks.d.ts.map +1 -0
- package/dist/types/llm/components/Stream/stream.d.ts +4 -0
- package/dist/types/llm/components/Stream/stream.d.ts.map +1 -0
- package/dist/types/llm/components/Text/text.d.ts +7 -0
- package/dist/types/llm/components/Text/text.d.ts.map +1 -0
- package/dist/types/llm/components/Thread/thread.d.ts +4 -0
- package/dist/types/llm/components/Thread/thread.d.ts.map +1 -0
- package/dist/types/llm/components/Trigger/blob.d.ts +2 -0
- package/dist/types/llm/components/Trigger/blob.d.ts.map +1 -0
- package/dist/types/llm/components/Trigger/trigger.d.ts +2 -0
- package/dist/types/llm/components/Trigger/trigger.d.ts.map +1 -0
- package/dist/types/llm/components/Tripadvisor/tripadvisor.d.ts +4 -0
- package/dist/types/llm/components/Tripadvisor/tripadvisor.d.ts.map +1 -0
- package/dist/types/llm/hooks/useAutosizeTextArea.d.ts +3 -0
- package/dist/types/llm/hooks/useAutosizeTextArea.d.ts.map +1 -0
- package/dist/types/llm/llm.d.ts +5 -0
- package/dist/types/llm/llm.d.ts.map +1 -0
- package/dist/types/llm/utils.d.ts +7 -0
- package/dist/types/llm/utils.d.ts.map +1 -0
- package/dist/types/types.d.ts +163 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/useLlm/cors.d.ts +16 -0
- package/dist/types/useLlm/cors.d.ts.map +1 -0
- package/dist/types/useLlm/emitter.d.ts +8 -0
- package/dist/types/useLlm/emitter.d.ts.map +1 -0
- package/dist/types/useLlm/message.service.d.ts +24 -0
- package/dist/types/useLlm/message.service.d.ts.map +1 -0
- package/dist/types/useLlm/mock.d.ts +5 -0
- package/dist/types/useLlm/mock.d.ts.map +1 -0
- package/dist/types/useLlm/speech.d.ts +57 -0
- package/dist/types/useLlm/speech.d.ts.map +1 -0
- package/dist/types/useLlm/useLlm.d.ts +83 -0
- package/dist/types/useLlm/useLlm.d.ts.map +1 -0
- package/package.json +86 -0
- package/src/__tests/example.test.ts +8 -0
- package/src/index.ts +6 -0
- package/src/llm/components/Background/_style.scss +24 -0
- package/src/llm/components/Background/background.tsx +89 -0
- package/src/llm/components/BusyIndicator/_style.scss +73 -0
- package/src/llm/components/BusyIndicator/busyindicator.tsx +13 -0
- package/src/llm/components/Canvas/_style.scss +10 -0
- package/src/llm/components/Canvas/canvas.tsx +257 -0
- package/src/llm/components/Chunk/chunk.tsx +80 -0
- package/src/llm/components/Cta/_style.scss +72 -0
- package/src/llm/components/Cta/cta.tsx +33 -0
- package/src/llm/components/Event/_style.scss +144 -0
- package/src/llm/components/Event/event.tsx +70 -0
- package/src/llm/components/EventGroup/_style.scss +60 -0
- package/src/llm/components/EventGroup/eventgroup.tsx +59 -0
- package/src/llm/components/FormRecap/FormRecap.tsx +221 -0
- package/src/llm/components/FormRecap/_style.scss +101 -0
- package/src/llm/components/FormRecapError/FormRecapError.tsx +10 -0
- package/src/llm/components/FormRecapError/_style.scss +11 -0
- package/src/llm/components/FormRecapSuccess/FormRecapSuccess.tsx +10 -0
- package/src/llm/components/FormRecapSuccess/_style.scss +11 -0
- package/src/llm/components/FormRequest/FormRequest.tsx +21 -0
- package/src/llm/components/FormRequest/_style.scss +21 -0
- package/src/llm/components/Header/_style.scss +72 -0
- package/src/llm/components/Header/header.tsx +38 -0
- package/src/llm/components/Intro/_style.scss +36 -0
- package/src/llm/components/Intro/intro.tsx +65 -0
- package/src/llm/components/Main/_style.scss +75 -0
- package/src/llm/components/Main/main.tsx +125 -0
- package/src/llm/components/Poi/_style.scss +127 -0
- package/src/llm/components/Poi/poi.tsx +58 -0
- package/src/llm/components/PoiGroup/_style.scss +14 -0
- package/src/llm/components/PoiGroup/poigroup.tsx +15 -0
- package/src/llm/components/Prompt/_style.scss +132 -0
- package/src/llm/components/Prompt/prompt.tsx +73 -0
- package/src/llm/components/Prompt/suggestions.tsx +39 -0
- package/src/llm/components/QuickLinks/_style.scss +61 -0
- package/src/llm/components/QuickLinks/quicklinks.tsx +58 -0
- package/src/llm/components/Stream/stream.tsx +37 -0
- package/src/llm/components/Text/_style.scss +89 -0
- package/src/llm/components/Text/text.tsx +28 -0
- package/src/llm/components/Thread/_style.scss +73 -0
- package/src/llm/components/Thread/thread.tsx +27 -0
- package/src/llm/components/Trigger/_style.scss +104 -0
- package/src/llm/components/Trigger/blob.tsx +42 -0
- package/src/llm/components/Trigger/trigger.tsx +50 -0
- package/src/llm/components/Tripadvisor/_style.scss +113 -0
- package/src/llm/components/Tripadvisor/tripadvisor.tsx +72 -0
- package/src/llm/hooks/useAutosizeTextArea.tsx +15 -0
- package/src/llm/llm.tsx +48 -0
- package/src/llm/scss/_base.scss +20 -0
- package/src/llm/scss/_breakpoints.scss +8 -0
- package/src/llm/scss/_layout.scss +39 -0
- package/src/llm/scss/_mixin.scss +67 -0
- package/src/llm/scss/_reset.scss +104 -0
- package/src/llm/scss/_spacing.scss +17 -0
- package/src/llm/scss/_typography.scss +153 -0
- package/src/llm/scss/_vars.scss +23 -0
- package/src/llm/scss/style.scss +29 -0
- package/src/llm/utils.tsx +12 -0
- package/src/types.ts +215 -0
- package/src/useLlm/cors.ts +124 -0
- package/src/useLlm/emitter.ts +29 -0
- package/src/useLlm/message.service.ts +336 -0
- package/src/useLlm/mock.ts +801 -0
- package/src/useLlm/speech.ts +363 -0
- package/src/useLlm/useLlm.tsx +474 -0
|
@@ -0,0 +1,801 @@
|
|
|
1
|
+
import { LlmApp, LlmChunk } from '../types';
|
|
2
|
+
|
|
3
|
+
const APP = {
|
|
4
|
+
it: {
|
|
5
|
+
mode: 'site',
|
|
6
|
+
contents: {
|
|
7
|
+
logo: {
|
|
8
|
+
id: '6560a04654a910c2150ab7a9',
|
|
9
|
+
alt: 'logo Pesaro2024',
|
|
10
|
+
filename: 'logo-pesaro-2025.svg',
|
|
11
|
+
mimeType: 'image/svg+xml',
|
|
12
|
+
filesize: 28279,
|
|
13
|
+
width: 198,
|
|
14
|
+
height: 60,
|
|
15
|
+
sizes: {
|
|
16
|
+
card: {},
|
|
17
|
+
feature: {},
|
|
18
|
+
},
|
|
19
|
+
createdAt: '2023-11-24T13:08:22.746Z',
|
|
20
|
+
updatedAt: '2023-11-24T13:08:22.746Z',
|
|
21
|
+
url: 'https://design.wslabs.it/llm/media/logo-pesaro-2024.svg',
|
|
22
|
+
src: 'https://design.wslabs.it/llm/media/logo-pesaro-2024.svg',
|
|
23
|
+
type: 'image',
|
|
24
|
+
},
|
|
25
|
+
logoMini: {
|
|
26
|
+
id: '6560a04654a910c2150ab7a9',
|
|
27
|
+
alt: 'logo Pesaro2024',
|
|
28
|
+
filename: 'logo-pesaro-2025.svg',
|
|
29
|
+
mimeType: 'image/svg+xml',
|
|
30
|
+
filesize: 28279,
|
|
31
|
+
width: 198,
|
|
32
|
+
height: 60,
|
|
33
|
+
sizes: {
|
|
34
|
+
card: {},
|
|
35
|
+
feature: {},
|
|
36
|
+
},
|
|
37
|
+
createdAt: '2023-11-24T13:08:22.746Z',
|
|
38
|
+
updatedAt: '2023-11-24T13:08:22.746Z',
|
|
39
|
+
url: 'https://design.wslabs.it/llm/media/logo-pesaro-2024-mini.svg',
|
|
40
|
+
src: 'https://design.wslabs.it/llm/media/logo-pesaro-2024-mini.svg',
|
|
41
|
+
type: 'image',
|
|
42
|
+
},
|
|
43
|
+
collapsedWelcomeText: '👋 \\n Ciao, sono il tuo assistente AI',
|
|
44
|
+
collapsedWelcomeTextHover: 'Cliccami e lascia che ti consigli cosa fare e vedere a Pesaro 2024.',
|
|
45
|
+
shortWelcomeText: 'Ciao, sono l\'ambasciatore AI di Pesaro2024.',
|
|
46
|
+
extendedWelcomeText: 'Ciao, sono l\'Ambasciatore AI di Pesaro2024. Più cose mi dirai su ciò che ti piace, più sarò in grado di aiutarti.',
|
|
47
|
+
sampleInputTexts: [
|
|
48
|
+
{
|
|
49
|
+
sampleInputText: 'Quali sono gli eventi che posso raggiungere a piedi dalla stazione dei treni?',
|
|
50
|
+
id: '656095350d5d91982799c3fd',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
sampleInputText: 'Mostra i prossimi eventi di fotografia',
|
|
54
|
+
id: '6560954e0d5d91982799c3fe',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
sampleInputText: 'Chi partecipa a Pesaro2024?',
|
|
58
|
+
id: '6560955b0d5d91982799c3ff',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
layoutBuilder: [
|
|
62
|
+
{
|
|
63
|
+
icon: {
|
|
64
|
+
id: '6560a05454a910c2150ab7b4',
|
|
65
|
+
alt: 'itinerario',
|
|
66
|
+
filename: 'itinerary-1.svg',
|
|
67
|
+
mimeType: 'image/svg+xml',
|
|
68
|
+
filesize: 1174,
|
|
69
|
+
width: 32,
|
|
70
|
+
height: 33,
|
|
71
|
+
sizes: {
|
|
72
|
+
card: {},
|
|
73
|
+
feature: {},
|
|
74
|
+
},
|
|
75
|
+
createdAt: '2023-11-24T13:08:36.444Z',
|
|
76
|
+
updatedAt: '2023-11-24T13:08:36.444Z',
|
|
77
|
+
url: 'https://design.wslabs.it/llm/media/llm-itinerary.svg',
|
|
78
|
+
src: 'https://design.wslabs.it/llm/media/llm-itinerary.svg',
|
|
79
|
+
type: 'image',
|
|
80
|
+
},
|
|
81
|
+
title: 'Pianifica un itinerario',
|
|
82
|
+
body: 'Chiedi supporto per organizzare il tuo weekend o il tuo soggiorno a Pesaro godendo di tutti gli eventi di Pesaro2024.',
|
|
83
|
+
id: '656095900d5d91982799c400',
|
|
84
|
+
blockType: 'card',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
icon: {
|
|
88
|
+
id: '6560a06954a910c2150ab7c9',
|
|
89
|
+
alt: 'pin',
|
|
90
|
+
filename: 'pin-1.svg',
|
|
91
|
+
mimeType: 'image/svg+xml',
|
|
92
|
+
filesize: 1300,
|
|
93
|
+
width: 32,
|
|
94
|
+
height: 32,
|
|
95
|
+
sizes: {
|
|
96
|
+
card: {},
|
|
97
|
+
feature: {},
|
|
98
|
+
},
|
|
99
|
+
createdAt: '2023-11-24T13:08:57.714Z',
|
|
100
|
+
updatedAt: '2023-11-24T13:08:57.714Z',
|
|
101
|
+
url: 'https://design.wslabs.it/llm/media/llm-pin.svg',
|
|
102
|
+
src: 'https://design.wslabs.it/llm/media/llm-pin.svg',
|
|
103
|
+
type: 'image',
|
|
104
|
+
},
|
|
105
|
+
title: 'Esplora Pesaro',
|
|
106
|
+
body: 'Chiedi informazioni sui luoghi di cultura della Città che hanno valso a Pesaro il titolo di Capitale Italiana della Cultura 2024.',
|
|
107
|
+
id: '65609fe4152d35137e46286d',
|
|
108
|
+
blockType: 'card',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
icon: {
|
|
112
|
+
id: '6560a07454a910c2150ab7d3',
|
|
113
|
+
alt: 'cerca',
|
|
114
|
+
filename: 'search.svg',
|
|
115
|
+
mimeType: 'image/svg+xml',
|
|
116
|
+
filesize: 680,
|
|
117
|
+
width: 32,
|
|
118
|
+
height: 32,
|
|
119
|
+
sizes: {
|
|
120
|
+
card: {},
|
|
121
|
+
feature: {},
|
|
122
|
+
},
|
|
123
|
+
createdAt: '2023-11-24T13:09:08.678Z',
|
|
124
|
+
updatedAt: '2023-11-24T13:09:08.678Z',
|
|
125
|
+
url: 'https://design.wslabs.it/llm/media/llm-search.svg',
|
|
126
|
+
src: 'https://design.wslabs.it/llm/media/llm-search.svg',
|
|
127
|
+
type: 'image',
|
|
128
|
+
},
|
|
129
|
+
title: 'Scopri il progetto',
|
|
130
|
+
body: 'Chiedi dettagli su come è nato il progetto Pesaro2024, come funziona e quali sono le tante realtà virtuose del territorio coinvolte.',
|
|
131
|
+
id: '65609fe8152d35137e46286e',
|
|
132
|
+
blockType: 'card',
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
en: {
|
|
138
|
+
mode: 'site',
|
|
139
|
+
contents: {
|
|
140
|
+
logo: {
|
|
141
|
+
id: '6560a04654a910c2150ab7a9',
|
|
142
|
+
alt: 'logo Pesaro2024',
|
|
143
|
+
filename: 'logo-pesaro-2025.svg',
|
|
144
|
+
mimeType: 'image/svg+xml',
|
|
145
|
+
filesize: 28279,
|
|
146
|
+
width: 198,
|
|
147
|
+
height: 60,
|
|
148
|
+
sizes: {
|
|
149
|
+
card: {},
|
|
150
|
+
feature: {},
|
|
151
|
+
},
|
|
152
|
+
createdAt: '2023-11-24T13:08:22.746Z',
|
|
153
|
+
updatedAt: '2023-11-24T13:08:22.746Z',
|
|
154
|
+
url: 'https://design.wslabs.it/llm/media/logo-pesaro-2024.svg',
|
|
155
|
+
src: 'https://design.wslabs.it/llm/media/logo-pesaro-2024.svg',
|
|
156
|
+
type: 'image',
|
|
157
|
+
},
|
|
158
|
+
logoMini: {
|
|
159
|
+
id: '6560a04654a910c2150ab7a9',
|
|
160
|
+
alt: 'logo Pesaro2024',
|
|
161
|
+
filename: 'logo-pesaro-2025.svg',
|
|
162
|
+
mimeType: 'image/svg+xml',
|
|
163
|
+
filesize: 28279,
|
|
164
|
+
width: 198,
|
|
165
|
+
height: 60,
|
|
166
|
+
sizes: {
|
|
167
|
+
card: {},
|
|
168
|
+
feature: {},
|
|
169
|
+
},
|
|
170
|
+
createdAt: '2023-11-24T13:08:22.746Z',
|
|
171
|
+
updatedAt: '2023-11-24T13:08:22.746Z',
|
|
172
|
+
url: 'https://design.wslabs.it/llm/media/logo-pesaro-2024-mini.svg',
|
|
173
|
+
src: 'https://design.wslabs.it/llm/media/logo-pesaro-2024-mini.svg',
|
|
174
|
+
type: 'image',
|
|
175
|
+
},
|
|
176
|
+
collapsedWelcomeText: '👋 \\n Hi, I\'m your AI assistant',
|
|
177
|
+
collapsedWelcomeTextHover: 'Click me and let me advise you on what to do and see in Pesaro 2024.',
|
|
178
|
+
shortWelcomeText: 'Hi, I\'m the AI ambassador of Pesaro2024.',
|
|
179
|
+
extendedWelcomeText: 'Hi, I\'m the AI Ambassador of Pesaro2024. The more you tell me about what you like, the more I will be able to help you.',
|
|
180
|
+
sampleInputTexts: [
|
|
181
|
+
{
|
|
182
|
+
sampleInputText: 'What events can I walk to from the train station?',
|
|
183
|
+
id: '656095350d5d91982799c3fd',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
sampleInputText: 'Shows upcoming photography events',
|
|
187
|
+
id: '6560954e0d5d91982799c3fe',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
sampleInputText: 'Who participates in Pesaro2024?',
|
|
191
|
+
id: '6560955b0d5d91982799c3ff',
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
layoutBuilder: [
|
|
195
|
+
{
|
|
196
|
+
icon: {
|
|
197
|
+
id: '6560a05454a910c2150ab7b4',
|
|
198
|
+
alt: 'itinerario',
|
|
199
|
+
filename: 'itinerary-1.svg',
|
|
200
|
+
mimeType: 'image/svg+xml',
|
|
201
|
+
filesize: 1174,
|
|
202
|
+
width: 32,
|
|
203
|
+
height: 33,
|
|
204
|
+
sizes: {
|
|
205
|
+
card: {},
|
|
206
|
+
feature: {},
|
|
207
|
+
},
|
|
208
|
+
createdAt: '2023-11-24T13:08:36.444Z',
|
|
209
|
+
updatedAt: '2023-11-24T13:08:36.444Z',
|
|
210
|
+
url: 'https://design.wslabs.it/llm/media/llm-itinerary.svg',
|
|
211
|
+
src: 'https://design.wslabs.it/llm/media/llm-itinerary.svg',
|
|
212
|
+
type: 'image',
|
|
213
|
+
},
|
|
214
|
+
title: 'Plan an itinerary',
|
|
215
|
+
body: 'Ask for support to organize your weekend or your stay in Pesaro enjoying all the events of Pesaro2024.',
|
|
216
|
+
id: '656095900d5d91982799c400',
|
|
217
|
+
blockType: 'card',
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
icon: {
|
|
221
|
+
id: '6560a06954a910c2150ab7c9',
|
|
222
|
+
alt: 'pin',
|
|
223
|
+
filename: 'pin-1.svg',
|
|
224
|
+
mimeType: 'image/svg+xml',
|
|
225
|
+
filesize: 1300,
|
|
226
|
+
width: 32,
|
|
227
|
+
height: 32,
|
|
228
|
+
sizes: {
|
|
229
|
+
card: {},
|
|
230
|
+
feature: {},
|
|
231
|
+
},
|
|
232
|
+
createdAt: '2023-11-24T13:08:57.714Z',
|
|
233
|
+
updatedAt: '2023-11-24T13:08:57.714Z',
|
|
234
|
+
url: 'https://design.wslabs.it/llm/media/llm-pin.svg',
|
|
235
|
+
src: 'https://design.wslabs.it/llm/media/llm-pin.svg',
|
|
236
|
+
type: 'image',
|
|
237
|
+
},
|
|
238
|
+
title: 'Explore Pesaro',
|
|
239
|
+
body: 'Ask for information on the cultural places of the city that earned Pesaro the title of Italian Capital of Culture 2024.',
|
|
240
|
+
id: '65609fe4152d35137e46286d',
|
|
241
|
+
blockType: 'card',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
icon: {
|
|
245
|
+
id: '6560a07454a910c2150ab7d3',
|
|
246
|
+
alt: 'cerca',
|
|
247
|
+
filename: 'search.svg',
|
|
248
|
+
mimeType: 'image/svg+xml',
|
|
249
|
+
filesize: 680,
|
|
250
|
+
width: 32,
|
|
251
|
+
height: 32,
|
|
252
|
+
sizes: {
|
|
253
|
+
card: {},
|
|
254
|
+
feature: {},
|
|
255
|
+
},
|
|
256
|
+
createdAt: '2023-11-24T13:09:08.678Z',
|
|
257
|
+
updatedAt: '2023-11-24T13:09:08.678Z',
|
|
258
|
+
url: 'https://design.wslabs.it/llm/media/llm-search.svg',
|
|
259
|
+
src: 'https://design.wslabs.it/llm/media/llm-search.svg',
|
|
260
|
+
type: 'image',
|
|
261
|
+
},
|
|
262
|
+
title: 'Discover the project',
|
|
263
|
+
body: 'Ask for details on how the Pesaro2024 project was born, how it works and which are the many virtuous local realities involved.',
|
|
264
|
+
id: '65609fe8152d35137e46286e',
|
|
265
|
+
blockType: 'card',
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
const THREAD = {
|
|
273
|
+
it: [
|
|
274
|
+
{
|
|
275
|
+
chunks: [
|
|
276
|
+
'Sarò a Pesaro con la mia famiglia a giugno. Siamo tutti appassionati di arte e natura. Cosa ci consigli di fare qui?\n',
|
|
277
|
+
],
|
|
278
|
+
role: 'user',
|
|
279
|
+
},
|
|
280
|
+
/*
|
|
281
|
+
{
|
|
282
|
+
chunks: [
|
|
283
|
+
'Se è la prima volta che vieni a Pesaro, ti consiglio di non perderti queste tappe!\n',
|
|
284
|
+
{
|
|
285
|
+
type: 'poiItem' as const,
|
|
286
|
+
id: '310',
|
|
287
|
+
title: 'Sfera Grande di A. Pomodoro',
|
|
288
|
+
abstract: 'Scultura sferica bronzea, soprannominata "Il pomodoro", in piscina in un parco sul Mar Adriatico.',
|
|
289
|
+
place: 'Piazzale della Libertà, 61121 Pesaro PU',
|
|
290
|
+
url: 'https://design.wslabs.it/llm',
|
|
291
|
+
image: 'https://design.wslabs.it/llm/media/casa-rossini.jpg',
|
|
292
|
+
time: 'Aperto 24 su 24',
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
type: 'poiItem' as const,
|
|
296
|
+
id: 'xxxx',
|
|
297
|
+
title: 'Baia Flaminia',
|
|
298
|
+
abstract: 'Nella spiaggia libera di Baia Flaminia è presente una rara oasi naturalistica urbana, che si trova fra il fiume Foglia e il Parco San Bartolo nel quartiere.',
|
|
299
|
+
place: '61121 Pesaro PU',
|
|
300
|
+
url: 'https://design.wslabs.it/llm',
|
|
301
|
+
image: 'https://design.wslabs.it/llm/media/casa-rossini.jpg',
|
|
302
|
+
time: 'Aperto 24 su 24',
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
type: 'poiItem' as const,
|
|
306
|
+
id: '305',
|
|
307
|
+
title: 'Parco Miralfiore',
|
|
308
|
+
abstract: 'Il Parco Urbano Miralfiore si trova proprio nel cuore di Pesaro, a ridosso della stazione ferroviaria alla quale è collegato con un sottopassaggio.',
|
|
309
|
+
place: 'Via Solferino, 61122 Pesaro PU',
|
|
310
|
+
url: 'https://design.wslabs.it/llm',
|
|
311
|
+
image: 'https://design.wslabs.it/llm/media/casa-rossini.jpg',
|
|
312
|
+
time: 'lun-ven 07-23',
|
|
313
|
+
},
|
|
314
|
+
'Vorresti sapere altro?. 🙂\n',
|
|
315
|
+
],
|
|
316
|
+
role: 'assistant',
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
chunks: [
|
|
320
|
+
'Sarò a Pesaro con la mia famiglia a giugno. Siamo tutti appassionati di arte e natura. Cosa ci consigli di fare qui?\n',
|
|
321
|
+
],
|
|
322
|
+
role: 'user',
|
|
323
|
+
},
|
|
324
|
+
*/
|
|
325
|
+
{
|
|
326
|
+
chunks: [
|
|
327
|
+
'Fammi pensare, quanti anni hanno i tuoi figli?\n',
|
|
328
|
+
],
|
|
329
|
+
role: 'assistant',
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
chunks: [
|
|
333
|
+
'17 e 13.',
|
|
334
|
+
],
|
|
335
|
+
role: 'user',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
chunks: [
|
|
339
|
+
'Ottimo! Niente batte il girovagare tra arte e natura con i propri piccoli! Ho selezionato un sacco di cose da fare, pensate proprio per voi.\n',
|
|
340
|
+
'Dai un\'occhiata, approfondisci gli eventi e le attività che ti attirano di più e se ti serve altro mi trovi qui!\n',
|
|
341
|
+
'Ecco una lista di eventi e attività selezionate dal sito adatte anche a ragazzi di quella età che si tengono a giugno o in generale:\n',
|
|
342
|
+
{
|
|
343
|
+
type: 'eventItem' as const,
|
|
344
|
+
id: 'xxxx',
|
|
345
|
+
title: 'Percorri la Bicipolitana di Pesaro con i tuoi bambini',
|
|
346
|
+
abstract: 'Un’esperienza da non perdere se visiterai la città con i bambini, noleggia la tua bici e esplora Pesaro.',
|
|
347
|
+
place: 'Pesaro',
|
|
348
|
+
url: 'https://design.wslabs.it/llm',
|
|
349
|
+
image: 'https://design.wslabs.it/llm/media/bicipolitana.jpg',
|
|
350
|
+
date: '15-16 giugno 2024',
|
|
351
|
+
time: 'ore 20:00',
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
type: 'eventItem' as const,
|
|
355
|
+
id: '100',
|
|
356
|
+
title: 'Non perderti The Magic Castle di Gradara!',
|
|
357
|
+
abstract: 'The Magic Castle, l’evento per famiglie che ogni estate trasforma magicamente lo splendido borgo di Gradara.',
|
|
358
|
+
place: 'Gradara',
|
|
359
|
+
url: 'https://design.wslabs.it/llm',
|
|
360
|
+
image: 'https://design.wslabs.it/llm/media/gradara.jpg',
|
|
361
|
+
date: '15-16 giugno 2024',
|
|
362
|
+
time: 'ore 20:00',
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
type: 'eventItem' as const,
|
|
366
|
+
id: 'xxxx',
|
|
367
|
+
title: 'Trekking e panorami mozzafiato al San Bartolo',
|
|
368
|
+
abstract: 'Scendendo lungo la costa Adriatica, si erge il San Bartolo, un meraviglioso parco naturale affacciato sul mare.',
|
|
369
|
+
place: 'Parco San Bartolo',
|
|
370
|
+
url: 'https://design.wslabs.it/llm',
|
|
371
|
+
image: 'https://design.wslabs.it/llm/media/san-bartolo.jpg',
|
|
372
|
+
date: '15-16 giugno 2024',
|
|
373
|
+
time: 'ore 20:00',
|
|
374
|
+
},
|
|
375
|
+
'Per qualunque altra cosa sono qui. 🙂\n',
|
|
376
|
+
],
|
|
377
|
+
role: 'assistant',
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
chunks: [
|
|
381
|
+
'E se piove?\n',
|
|
382
|
+
],
|
|
383
|
+
role: 'user',
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
chunks: [
|
|
387
|
+
'D\'estate piove meno, ma quando succede è proprio una scocciatura. Speriamo di evitarla, ma nel caso non ti lascio di certo scoperto!\n',
|
|
388
|
+
'Ti ho preparato una lista di cose da fare al chiuso.\n',
|
|
389
|
+
'Ecco una lista di eventi e attività selezionate dal sito adatte a ragazzi di quella età che si tengono a giugno o in generale ma al chiuso:\n',
|
|
390
|
+
{
|
|
391
|
+
type: 'eventItem' as const,
|
|
392
|
+
id: '310',
|
|
393
|
+
title: 'Esplora la casa del grande compositore Rossini',
|
|
394
|
+
abstract: 'Rossini è stato un grande compositore italiano della prima metà del XIX secolo, vieni ad esplorare la sua casa natale.',
|
|
395
|
+
place: 'Casa Rossini',
|
|
396
|
+
url: 'https://design.wslabs.it/llm',
|
|
397
|
+
image: 'https://design.wslabs.it/llm/media/casa-rossini.jpg',
|
|
398
|
+
date: '15-16 giugno 2024',
|
|
399
|
+
time: 'ore 20:00',
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
type: 'eventItem' as const,
|
|
403
|
+
id: '305',
|
|
404
|
+
title: 'Vivi un’esperienza sonora incredibile alla Sonosfera©',
|
|
405
|
+
abstract: 'Questo Teatro per l’ascolto profondo di ecosistemi e musica è un’esperienza unica al mondo.',
|
|
406
|
+
place: 'Sonosfera',
|
|
407
|
+
url: 'https://design.wslabs.it/llm',
|
|
408
|
+
image: 'https://design.wslabs.it/llm/media/sonosfera.jpg',
|
|
409
|
+
date: '15-16 giugno 2024',
|
|
410
|
+
time: 'ore 20:00',
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
type: 'eventItem' as const,
|
|
414
|
+
id: 'xxxx',
|
|
415
|
+
title: 'Sperimenta con la scienza al Museo del Balì',
|
|
416
|
+
abstract: 'Il museo del Balì rispecchia la filosofia “hands-on”, Vietato NON toccare! Divertiti con le sue installazioni interattive.',
|
|
417
|
+
place: 'Museo del Balì',
|
|
418
|
+
url: 'https://design.wslabs.it/llm',
|
|
419
|
+
image: 'https://design.wslabs.it/llm/media/museo-del-bali.jpg',
|
|
420
|
+
date: '15-16 giugno 2024',
|
|
421
|
+
time: 'ore 20:00',
|
|
422
|
+
},
|
|
423
|
+
'Vorresti sapere altro?. 🙂\n',
|
|
424
|
+
],
|
|
425
|
+
role: 'assistant',
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
chunks: [
|
|
429
|
+
'Ci sono eventi o iniziative specifiche per i bambini alla Casa Rossini durante il mese di giugno?\n',
|
|
430
|
+
],
|
|
431
|
+
role: 'user',
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
chunks: [
|
|
435
|
+
'Certo! A giugno ci sono alcune iniziative che possono essere interessanti e divertenti per i tuoi ragazzi, ho pensato di proporti queste:\n',
|
|
436
|
+
{
|
|
437
|
+
type: 'event' as const,
|
|
438
|
+
id: '234',
|
|
439
|
+
title: 'Rossini Virtual Experience: esplora casa Rossini in AR',
|
|
440
|
+
abstract: 'Lasciati guidare dallo stesso Gioacchino nella sua casa e scopri la sua storia attraverso giocosi aneddoti in AR.',
|
|
441
|
+
place: 'Pesaro',
|
|
442
|
+
url: 'https://design.wslabs.it/llm',
|
|
443
|
+
image: 'https://design.wslabs.it/llm/media/rossini.jpg',
|
|
444
|
+
date: '15-16 giugno 2024',
|
|
445
|
+
time: 'ore 20:00',
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
role: 'assistant',
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
chunks: [
|
|
452
|
+
'Puoi anche consigliarmi dove mangiare del buon cibo tipico, specialmente pesce, a un prezzo ragionevole?\n',
|
|
453
|
+
],
|
|
454
|
+
role: 'user',
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
chunks: [
|
|
458
|
+
'Bene! Mangiando piatti locali assaporerei la vera cultura pesarese!\n',
|
|
459
|
+
'ho pensato per te alcuni ristoranti che fanno pesce in modo tipico, sono adatti alle famiglie con ragazzi e non sono troppo costosi, vediamo se fanno per te:\n',
|
|
460
|
+
{
|
|
461
|
+
type: 'tripadvisor' as const,
|
|
462
|
+
id: 'xxxx',
|
|
463
|
+
title: 'L\'Angolo di Mario',
|
|
464
|
+
rating: 4.8,
|
|
465
|
+
reviews: 2276,
|
|
466
|
+
priceRange: '€€-€€€',
|
|
467
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
468
|
+
address: 'Via Nazario Sauro, 61100 Pesaro PU',
|
|
469
|
+
url: 'https://design.wslabs.it/llm',
|
|
470
|
+
book: 'https://design.wslabs.it/llm',
|
|
471
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-01.jpg',
|
|
472
|
+
}, {
|
|
473
|
+
type: 'tripadvisor' as const,
|
|
474
|
+
id: 'xxxx',
|
|
475
|
+
title: 'L\'Amo Osteria di Mare',
|
|
476
|
+
rating: 4.2,
|
|
477
|
+
reviews: 287,
|
|
478
|
+
priceRange: '€€-€€€',
|
|
479
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
480
|
+
address: 'Via Venturini 4/6, 61121 Pesaro PU',
|
|
481
|
+
url: 'https://design.wslabs.it/llm',
|
|
482
|
+
book: 'https://design.wslabs.it/llm',
|
|
483
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-02.jpg',
|
|
484
|
+
}, {
|
|
485
|
+
type: 'tripadvisor' as const,
|
|
486
|
+
id: 'xxxx',
|
|
487
|
+
title: 'Osteria Marconi',
|
|
488
|
+
rating: 3.5,
|
|
489
|
+
reviews: 175,
|
|
490
|
+
priceRange: '€€-€€€',
|
|
491
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
492
|
+
address: 'Viale Guglielmo Marconi 55, 61121 Pesaro PU',
|
|
493
|
+
url: 'https://design.wslabs.it/llm',
|
|
494
|
+
book: 'https://design.wslabs.it/llm',
|
|
495
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-03.jpg',
|
|
496
|
+
}, {
|
|
497
|
+
type: 'tripadvisor' as const,
|
|
498
|
+
id: 'xxxx',
|
|
499
|
+
title: 'Ristorante Marino',
|
|
500
|
+
rating: 4.5,
|
|
501
|
+
reviews: 25,
|
|
502
|
+
priceRange: '€€-€€€',
|
|
503
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
504
|
+
address: 'Str. Panoramica Adriatica, 61121 Pesaro PU',
|
|
505
|
+
url: 'https://design.wslabs.it/llm',
|
|
506
|
+
book: 'https://design.wslabs.it/llm',
|
|
507
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-04.jpg',
|
|
508
|
+
}, {
|
|
509
|
+
type: 'tripadvisor' as const,
|
|
510
|
+
id: 'xxxx',
|
|
511
|
+
title: 'Ristorante Pizzeria Giro di Boa',
|
|
512
|
+
rating: 4.5,
|
|
513
|
+
reviews: 474,
|
|
514
|
+
priceRange: '€€-€€€',
|
|
515
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
516
|
+
address: 'Viale Trieste, 277, 61121 Pesaro PU',
|
|
517
|
+
url: 'https://design.wslabs.it/llm',
|
|
518
|
+
book: 'https://design.wslabs.it/llm',
|
|
519
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-05.jpg',
|
|
520
|
+
}, {
|
|
521
|
+
type: 'tripadvisor' as const,
|
|
522
|
+
id: 'xxxx',
|
|
523
|
+
title: 'Taverna del Pescatore',
|
|
524
|
+
rating: 4.5,
|
|
525
|
+
reviews: 811,
|
|
526
|
+
priceRange: '€€-€€€',
|
|
527
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
528
|
+
address: 'Borgata Casteldimezzo, 23, 61121 Pesaro PU',
|
|
529
|
+
url: 'https://design.wslabs.it/llm',
|
|
530
|
+
book: 'https://design.wslabs.it/llm',
|
|
531
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-06.jpg',
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
role: 'assistant',
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
chunks: [
|
|
538
|
+
'Sì\n',
|
|
539
|
+
],
|
|
540
|
+
role: 'user',
|
|
541
|
+
},
|
|
542
|
+
],
|
|
543
|
+
en: [
|
|
544
|
+
{
|
|
545
|
+
chunks: [
|
|
546
|
+
'I will be in Pesaro with my family in June. We are all passionate about art and nature. What do you recommend we do here?\n',
|
|
547
|
+
],
|
|
548
|
+
role: 'user',
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
chunks: [
|
|
552
|
+
'Let me think, how old are your kids?\n',
|
|
553
|
+
],
|
|
554
|
+
role: 'assistant',
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
chunks: [
|
|
558
|
+
'17 and 13.',
|
|
559
|
+
],
|
|
560
|
+
role: 'user',
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
chunks: [
|
|
564
|
+
'Optimal! Nothing beats wandering around art and nature with your little ones! I have selected a lot of things to do designed just for you.\n',
|
|
565
|
+
'Take a look, learn more about the events and activities that attract you most and if you need anything else, you can find me here!\n',
|
|
566
|
+
'Here is a list of events and activities selected by the site also suitable for children of that age that take place in June or in general:\n',
|
|
567
|
+
{
|
|
568
|
+
type: 'eventItem' as const,
|
|
569
|
+
id: 'xxxx',
|
|
570
|
+
title: 'Ride along the Bicipolitana of Pesaro with your children',
|
|
571
|
+
abstract: 'An experience not to be missed if you visit the city with children, rent your bike and explore Pesaro.',
|
|
572
|
+
place: 'Pesaro',
|
|
573
|
+
url: 'https://design.wslabs.it/llm',
|
|
574
|
+
image: 'https://design.wslabs.it/llm/media/bicipolitana.jpg',
|
|
575
|
+
date: '15-16 june 2024',
|
|
576
|
+
time: '8:00 pm',
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
type: 'eventItem' as const,
|
|
580
|
+
id: '100',
|
|
581
|
+
title: 'Don\'t miss The Magic Castle of Gradara!',
|
|
582
|
+
abstract: 'The Magic Castle, the family event that magically transforms the splendid village of Gradara every summer.',
|
|
583
|
+
place: 'Gradara',
|
|
584
|
+
url: 'https://design.wslabs.it/llm',
|
|
585
|
+
image: 'https://design.wslabs.it/llm/media/gradara.jpg',
|
|
586
|
+
date: '15-16 june 2024',
|
|
587
|
+
time: '8:00 pm',
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
type: 'eventItem' as const,
|
|
591
|
+
id: 'xxxx',
|
|
592
|
+
title: 'Trekking and breathtaking views at San Bartolo',
|
|
593
|
+
abstract: 'Going down the Adriatic coast, stands San Bartolo, a wonderful natural park overlooking the sea.',
|
|
594
|
+
place: 'Parco San Bartolo',
|
|
595
|
+
url: 'https://design.wslabs.it/llm',
|
|
596
|
+
image: 'https://design.wslabs.it/llm/media/san-bartolo.jpg',
|
|
597
|
+
date: '15-16 june 2024',
|
|
598
|
+
time: '8:00 pm',
|
|
599
|
+
},
|
|
600
|
+
'For anything else I\'m here. 🙂\n',
|
|
601
|
+
],
|
|
602
|
+
role: 'assistant',
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
chunks: [
|
|
606
|
+
'What if it rains?\n',
|
|
607
|
+
],
|
|
608
|
+
role: 'user',
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
chunks: [
|
|
612
|
+
'In the summer it rains less, but when it happens it\'s a real nuisance. We hope to avoid it, but if we do, I certainly won\'t leave you exposed!\n',
|
|
613
|
+
'I\'ve prepared a list of things for you to do indoors.\n',
|
|
614
|
+
'Here is a list of events and activities selected by the site suitable for children of that age that take place in June or in general but indoors:\n',
|
|
615
|
+
{
|
|
616
|
+
type: 'eventItem' as const,
|
|
617
|
+
id: '310',
|
|
618
|
+
title: 'Explore the home of the great composer Rossini',
|
|
619
|
+
abstract: 'Rossini was a great Italian composer of the first half of the 19th century, come and explore his birthplace.',
|
|
620
|
+
place: 'Rossini House',
|
|
621
|
+
url: 'https://design.wslabs.it/llm',
|
|
622
|
+
image: 'https://design.wslabs.it/llm/media/casa-rossini.jpg',
|
|
623
|
+
date: '15-16 jun 2024',
|
|
624
|
+
time: '8:00 pm',
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
type: 'eventItem' as const,
|
|
628
|
+
id: '305',
|
|
629
|
+
title: 'Live an incredible sound experience at Sonosfera©',
|
|
630
|
+
abstract: 'This Theater for deep listening to ecosystems and music is a unique experience in the world.',
|
|
631
|
+
place: 'Sonosfera',
|
|
632
|
+
url: 'https://design.wslabs.it/llm',
|
|
633
|
+
image: 'https://design.wslabs.it/llm/media/sonosfera.jpg',
|
|
634
|
+
date: '15-16 june 2024',
|
|
635
|
+
time: '8:00 pm',
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
type: 'eventItem' as const,
|
|
639
|
+
id: 'xxxx',
|
|
640
|
+
title: 'Experiment with science at the Balì Museum',
|
|
641
|
+
abstract: 'The Balì museum reflects the "hands-on" philosophy, DO NOT touch! Have fun with its interactive installations.',
|
|
642
|
+
place: 'Balì Museum',
|
|
643
|
+
url: 'https://design.wslabs.it/llm',
|
|
644
|
+
image: 'https://design.wslabs.it/llm/media/museo-del-bali.jpg',
|
|
645
|
+
date: '15-16 june 2024',
|
|
646
|
+
time: '8:00 pm',
|
|
647
|
+
},
|
|
648
|
+
'Would you like to know more?. 🙂\n',
|
|
649
|
+
],
|
|
650
|
+
role: 'assistant',
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
chunks: [
|
|
654
|
+
'Are there specific events or initiatives for children at Casa Rossini during the month of June?\n',
|
|
655
|
+
],
|
|
656
|
+
role: 'user',
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
chunks: [
|
|
660
|
+
'Certain! In June there are some initiatives that can be interesting and fun for your kids, I thought I\'d offer you these:\n',
|
|
661
|
+
{
|
|
662
|
+
type: 'event' as const,
|
|
663
|
+
id: '234',
|
|
664
|
+
title: 'Rossini Virtual Experience: explore Rossini\'s home in AR',
|
|
665
|
+
abstract: 'Let Gioacchino himself guide you through his home and discover his story through playful anecdotes in AR.',
|
|
666
|
+
place: 'Pesaro',
|
|
667
|
+
url: 'https://design.wslabs.it/llm',
|
|
668
|
+
image: 'https://design.wslabs.it/llm/media/rossini.jpg',
|
|
669
|
+
date: '15-16 june 2024',
|
|
670
|
+
time: '8:00 pm',
|
|
671
|
+
},
|
|
672
|
+
],
|
|
673
|
+
role: 'assistant',
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
chunks: [
|
|
677
|
+
'Can you also advise me where to eat good typical food, especially fish, at a reasonable price?\n',
|
|
678
|
+
],
|
|
679
|
+
role: 'user',
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
chunks: [
|
|
683
|
+
'Well! By eating local dishes I would savor the true culture of Pesaro!\n',
|
|
684
|
+
'I have thought of some restaurants for you that do fish in a typical way, are suitable for families with children and are not too expensive, let\'s see if they are for you:\n',
|
|
685
|
+
{
|
|
686
|
+
type: 'tripadvisor' as const,
|
|
687
|
+
id: 'xxxx',
|
|
688
|
+
title: 'L\'Angolo di Mario',
|
|
689
|
+
rating: 4.8,
|
|
690
|
+
reviews: 2276,
|
|
691
|
+
priceRange: '€€-€€€',
|
|
692
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
693
|
+
address: 'Via Nazario Sauro, 61100 Pesaro PU',
|
|
694
|
+
url: 'https://design.wslabs.it/llm',
|
|
695
|
+
book: 'https://design.wslabs.it/llm',
|
|
696
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-01.jpg',
|
|
697
|
+
}, {
|
|
698
|
+
type: 'tripadvisor' as const,
|
|
699
|
+
id: 'xxxx',
|
|
700
|
+
title: 'L\'Amo Osteria di Mare',
|
|
701
|
+
rating: 4.2,
|
|
702
|
+
reviews: 287,
|
|
703
|
+
priceRange: '€€-€€€',
|
|
704
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
705
|
+
address: 'Via Venturini 4/6, 61121 Pesaro PU',
|
|
706
|
+
url: 'https://design.wslabs.it/llm',
|
|
707
|
+
book: 'https://design.wslabs.it/llm',
|
|
708
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-02.jpg',
|
|
709
|
+
}, {
|
|
710
|
+
type: 'tripadvisor' as const,
|
|
711
|
+
id: 'xxxx',
|
|
712
|
+
title: 'Osteria Marconi',
|
|
713
|
+
rating: 3.5,
|
|
714
|
+
reviews: 175,
|
|
715
|
+
priceRange: '€€-€€€',
|
|
716
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
717
|
+
address: 'Viale Guglielmo Marconi 55, 61121 Pesaro PU',
|
|
718
|
+
url: 'https://design.wslabs.it/llm',
|
|
719
|
+
book: 'https://design.wslabs.it/llm',
|
|
720
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-03.jpg',
|
|
721
|
+
}, {
|
|
722
|
+
type: 'tripadvisor' as const,
|
|
723
|
+
id: 'xxxx',
|
|
724
|
+
title: 'Ristorante Marino',
|
|
725
|
+
rating: 4.5,
|
|
726
|
+
reviews: 25,
|
|
727
|
+
priceRange: '€€-€€€',
|
|
728
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
729
|
+
address: 'Str. Panoramica Adriatica, 61121 Pesaro PU',
|
|
730
|
+
url: 'https://design.wslabs.it/llm',
|
|
731
|
+
book: 'https://design.wslabs.it/llm',
|
|
732
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-04.jpg',
|
|
733
|
+
}, {
|
|
734
|
+
type: 'tripadvisor' as const,
|
|
735
|
+
id: 'xxxx',
|
|
736
|
+
title: 'Ristorante Pizzeria Giro di Boa',
|
|
737
|
+
rating: 4.5,
|
|
738
|
+
reviews: 474,
|
|
739
|
+
priceRange: '€€-€€€',
|
|
740
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
741
|
+
address: 'Viale Trieste, 277, 61121 Pesaro PU',
|
|
742
|
+
url: 'https://design.wslabs.it/llm',
|
|
743
|
+
book: 'https://design.wslabs.it/llm',
|
|
744
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-05.jpg',
|
|
745
|
+
}, {
|
|
746
|
+
type: 'tripadvisor' as const,
|
|
747
|
+
id: 'xxxx',
|
|
748
|
+
title: 'Taverna del Pescatore',
|
|
749
|
+
rating: 4.5,
|
|
750
|
+
reviews: 811,
|
|
751
|
+
priceRange: '€€-€€€',
|
|
752
|
+
cuisine: 'Italiana, Pesce, Mediterranea',
|
|
753
|
+
address: 'Borgata Casteldimezzo, 23, 61121 Pesaro PU',
|
|
754
|
+
url: 'https://design.wslabs.it/llm',
|
|
755
|
+
book: 'https://design.wslabs.it/llm',
|
|
756
|
+
image: 'https://design.wslabs.it/llm/media/tripadvisor-06.jpg',
|
|
757
|
+
},
|
|
758
|
+
],
|
|
759
|
+
role: 'assistant',
|
|
760
|
+
},
|
|
761
|
+
],
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
export function getMockApp(locale: string, threadId?: string): LlmApp {
|
|
765
|
+
const app = APP[locale as keyof typeof APP] as LlmApp;
|
|
766
|
+
if (threadId) {
|
|
767
|
+
const thread = THREAD[locale as keyof typeof THREAD].slice(0, 4);
|
|
768
|
+
app.thread = {
|
|
769
|
+
messages: thread.map(x => ({
|
|
770
|
+
role: x.role,
|
|
771
|
+
content: x.chunks.map(x => typeof x === 'string' ? x : JSON.stringify(x)).join('\r\n'),
|
|
772
|
+
})),
|
|
773
|
+
threadId,
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
return app;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
export function getMockChunks(index: number, locale: string): LlmChunk[] {
|
|
780
|
+
const chunks: LlmChunk[] = [];
|
|
781
|
+
const message = THREAD[locale as keyof typeof THREAD][index];
|
|
782
|
+
if (message && message.role === 'assistant') {
|
|
783
|
+
message.chunks.forEach(chunk => {
|
|
784
|
+
if (typeof chunk === 'string') {
|
|
785
|
+
chunks.push(...chunk.split(' ').map((x, i, a) => `${x}${i < a.length - 1 ? ' ' : ''}`));
|
|
786
|
+
} else {
|
|
787
|
+
chunks.push(chunk);
|
|
788
|
+
}
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
return chunks;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export function getMockPrompt(index: number, locale: string): string | undefined {
|
|
795
|
+
const message = THREAD[locale as keyof typeof THREAD][index];
|
|
796
|
+
if (message && message.role === 'user') {
|
|
797
|
+
return message.chunks[0] as string;
|
|
798
|
+
}
|
|
799
|
+
return undefined;
|
|
800
|
+
}
|
|
801
|
+
|