You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return1.0, True, "Thank you for giving me the answer", {"message": f"Thank you for giving me the answer: {answer}"}
30
+
else:
31
+
return (
32
+
0,
33
+
False,
34
+
"",
35
+
{"message": "The assistant did not provide an answer."},
36
+
)
37
+
38
+
return0.0, False, "", {"message": "The assistant did not provide an answer."}
39
+
40
+
41
+
classSearchSamsungGalaxyPhone(SearchSamsungTask):
42
+
@classmethod
43
+
defget_task_id(cls):
44
+
return"other.search-samsung-galaxy-phone"
45
+
46
+
def__init__(self, seed: int, start_url: str="http://www.samsung.com/", goal: str="Tell me how I replace the hard drive in my thinkpad t440") ->None:
47
+
product="galaxy s23 phones"
48
+
goal=f"Please tell me whether {product} have AI features. Accept all cookies, if needed. Once you have the answer, send me a message with only YES or NO, and the URL where you found the answer."
def__init__(self, seed: int, start_url: str="http://www.samsung.com/", goal: str="Tell me how I replace the hard drive in my thinkpad t440") ->None:
58
+
product="galaxy tab active5"
59
+
goal=f"Please tell me whether {product} have AI features. Accept all cookies, if needed. Once you have the answer, send me a message with only YES or NO, and the URL where you found the answer."
return1.0, True, "Thank you for giving me the answer", {"message": f"Thank you for giving me the answer: {answer}"}
74
+
else:
75
+
return (
76
+
0,
77
+
False,
78
+
"",
79
+
{"message": "The assistant did not provide an answer."},
80
+
)
81
+
82
+
return0.0, False, "", {"message": "The assistant did not provide an answer."}
83
+
84
+
85
+
classSearchSamsungOledTvs(SearchSamsungTask):
86
+
87
+
@classmethod
88
+
defget_task_id(cls):
89
+
return"other.search-samsung-oled-tvs"
90
+
91
+
def__init__(self, seed: int, start_url: str="http://www.samsung.com/", goal: str="Tell me how I replace the hard drive in my thinkpad t440") ->None:
92
+
product="oled tvs"
93
+
goal=f"Please tell me whether {product} have AI features. Accept all cookies, if needed. Once you have the answer, send me a message with only YES or NO, and the URL where you found the answer."
94
+
super().__init__(seed, start_url, goal)
95
+
96
+
97
+
local_vars=locals().copy()
98
+
99
+
100
+
__TASKS__= [
101
+
var
102
+
forvarinlocal_vars.values()
103
+
ifinspect.isclass(var)
104
+
and (issubclass(var, SearchSamsungGalaxyPhone) orissubclass(var, SearchSamsungGalaxyTabActive5) orissubclass(var, SearchSamsungOledTvs))
0 commit comments