Skip to content

Commit 6da2022

Browse files
committed
enhance example to use multiple dialogues
1 parent 45bbddd commit 6da2022

File tree

3 files changed

+336
-5
lines changed

3 files changed

+336
-5
lines changed

dialog2graph/pipelines/helpers/parse_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
logger = Logger(__name__)
2121

22-
RawDialogsType = dict | list[list] | list[dict] | Dialog | list[Dialog] | PosixPath
22+
RawDialogsType = dict | list[list] | list[dict] | list[list[dict]] | Dialog | list[Dialog] | PosixPath
2323
ValidatedDialogType = (
2424
List[DialogMessage] | List[List[DialogMessage]] | Dialog | List[Dialog]
2525
)
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
[
2+
[
3+
{
4+
"text": "Hello! How can I assist you with your calendar today?",
5+
"participant": "assistant"
6+
},
7+
{
8+
"text": "I'm having trouble with my calendar not syncing properly.",
9+
"participant": "user"
10+
},
11+
{
12+
"text": "I'm sorry to hear you're experiencing a sync delay. Can you tell me more about the issue?",
13+
"participant": "assistant"
14+
},
15+
{
16+
"text": "Yes, I checked but it still doesn't sync.",
17+
"participant": "user"
18+
},
19+
{
20+
"text": "Could you verify that the time zone settings are properly configured on your devices?",
21+
"participant": "assistant"
22+
},
23+
{
24+
"text": "Alright, please guide me through the steps.",
25+
"participant": "user"
26+
},
27+
{
28+
"text": "Sure, let me guide you through adjusting your time zone settings.",
29+
"participant": "assistant"
30+
},
31+
{
32+
"text": "I want to change the time zone instead.",
33+
"participant": "user"
34+
},
35+
{
36+
"text": "Of course! Which device would you like to adjust the time zone settings on?",
37+
"participant": "assistant"
38+
},
39+
{
40+
"text": "Sure, let's adjust the time zone settings.",
41+
"participant": "user"
42+
},
43+
{
44+
"text": "Sure, let me guide you through adjusting your time zone settings.",
45+
"participant": "assistant"
46+
},
47+
{
48+
"text": "I've followed the steps and it seems to be working now.",
49+
"participant": "user"
50+
},
51+
{
52+
"text": "Great! Is your calendar syncing correctly now?",
53+
"participant": "assistant"
54+
},
55+
{
56+
"text": "Actually, it's still not syncing. I want to try something else.",
57+
"participant": "user"
58+
},
59+
{
60+
"text": "I'm sorry we couldn't resolve the issue. If you need further assistance, feel free to reach out anytime. Have a great day!",
61+
"participant": "assistant"
62+
}
63+
],
64+
[
65+
{
66+
"text": "Hello! How can I assist you with your calendar today?",
67+
"participant": "assistant"
68+
},
69+
{
70+
"text": "I'm having trouble with my calendar not syncing properly.",
71+
"participant": "user"
72+
},
73+
{
74+
"text": "I'm sorry to hear you're experiencing a sync delay. Can you tell me more about the issue?",
75+
"participant": "assistant"
76+
},
77+
{
78+
"text": "Yes, I checked but it still doesn't sync.",
79+
"participant": "user"
80+
},
81+
{
82+
"text": "Have you checked if your time zone settings are correct on all your devices?",
83+
"participant": "assistant"
84+
},
85+
{
86+
"text": "Alright, please guide me through the steps.",
87+
"participant": "user"
88+
},
89+
{
90+
"text": "Sure, let me guide you through adjusting your time zone settings.",
91+
"participant": "assistant"
92+
},
93+
{
94+
"text": "I want to change the time zone instead.",
95+
"participant": "user"
96+
},
97+
{
98+
"text": "Of course! Which device would you like to adjust the time zone settings on?",
99+
"participant": "assistant"
100+
},
101+
{
102+
"text": "Sure, let's adjust the time zone settings.",
103+
"participant": "user"
104+
},
105+
{
106+
"text": "Sure, let me guide you through adjusting your time zone settings.",
107+
"participant": "assistant"
108+
},
109+
{
110+
"text": "I've followed the steps and it seems to be working now.",
111+
"participant": "user"
112+
},
113+
{
114+
"text": "Great! Is your calendar syncing correctly now?",
115+
"participant": "assistant"
116+
},
117+
{
118+
"text": "Actually, it's still not syncing. I want to try something else.",
119+
"participant": "user"
120+
},
121+
{
122+
"text": "I'm sorry we couldn't resolve the issue. If you need further assistance, feel free to reach out anytime. Have a great day!",
123+
"participant": "assistant"
124+
}
125+
],
126+
[
127+
{
128+
"text": "Hello! How can I assist you with your calendar today?",
129+
"participant": "assistant"
130+
},
131+
{
132+
"text": "I'm having trouble with my calendar not syncing properly.",
133+
"participant": "user"
134+
},
135+
{
136+
"text": "I'm sorry to hear you're experiencing a sync delay. Can you tell me more about the issue?",
137+
"participant": "assistant"
138+
},
139+
{
140+
"text": "Yes, I checked but it still doesn't sync.",
141+
"participant": "user"
142+
},
143+
{
144+
"text": "Could you verify that the time zone settings are properly configured on your devices?",
145+
"participant": "assistant"
146+
},
147+
{
148+
"text": "Time zone settings are correct, but the issue persists.",
149+
"participant": "user"
150+
},
151+
{
152+
"text": "If time zone settings are correct, we can try refreshing the calendar app or reinstalling it.",
153+
"participant": "assistant"
154+
},
155+
{
156+
"text": "After adjusting, it still doesn't sync.",
157+
"participant": "user"
158+
},
159+
{
160+
"text": "Great! Is your calendar syncing correctly now?",
161+
"participant": "assistant"
162+
},
163+
{
164+
"text": "Actually, it's still not syncing. I want to try something else.",
165+
"participant": "user"
166+
},
167+
{
168+
"text": "I'm sorry we couldn't resolve the issue. If you need further assistance, feel free to reach out anytime. Have a great day!",
169+
"participant": "assistant"
170+
}
171+
],
172+
[
173+
{
174+
"text": "Hello! How can I assist you with your calendar today?",
175+
"participant": "assistant"
176+
},
177+
{
178+
"text": "I'm having trouble with my calendar not syncing properly.",
179+
"participant": "user"
180+
},
181+
{
182+
"text": "I'm sorry to hear you're experiencing a sync delay. Can you tell me more about the issue?",
183+
"participant": "assistant"
184+
},
185+
{
186+
"text": "Yes, I checked but it still doesn't sync.",
187+
"participant": "user"
188+
},
189+
{
190+
"text": "Have you checked if your time zone settings are correct on all your devices?",
191+
"participant": "assistant"
192+
},
193+
{
194+
"text": "Time zone settings are correct, but the issue persists.",
195+
"participant": "user"
196+
},
197+
{
198+
"text": "If time zone settings are correct, we can try refreshing the calendar app or reinstalling it.",
199+
"participant": "assistant"
200+
},
201+
{
202+
"text": "After adjusting, it still doesn't sync.",
203+
"participant": "user"
204+
},
205+
{
206+
"text": "Great! Is your calendar syncing correctly now?",
207+
"participant": "assistant"
208+
},
209+
{
210+
"text": "Actually, it's still not syncing. I want to try something else.",
211+
"participant": "user"
212+
},
213+
{
214+
"text": "I'm sorry we couldn't resolve the issue. If you need further assistance, feel free to reach out anytime. Have a great day!",
215+
"participant": "assistant"
216+
}
217+
],
218+
[
219+
{
220+
"text": "Hello! How can I assist you with your calendar today?",
221+
"participant": "assistant"
222+
},
223+
{
224+
"text": "I'm having trouble with my calendar not syncing properly.",
225+
"participant": "user"
226+
},
227+
{
228+
"text": "I'm sorry to hear you're experiencing a sync delay. Can you tell me more about the issue?",
229+
"participant": "assistant"
230+
},
231+
{
232+
"text": "I think I'll handle it later. Thanks anyway.",
233+
"participant": "user"
234+
},
235+
{
236+
"text": "I'm sorry we couldn't resolve the issue. If you need further assistance, feel free to reach out anytime. Have a great day!",
237+
"participant": "assistant"
238+
}
239+
]
240+
]

0 commit comments

Comments
 (0)