Spaces:
Running
Running
File size: 1,010 Bytes
b2320c3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # def get_questions(self) -> list[GaiaQuestion]:
# """Retrieve all evaluation questions."""
# response = self._request(
# method="GET",
# path="/questions",
# )
# data = response.json()
# if not isinstance(data, list):
# raise RuntimeError(
# "The /questions endpoint did not return a list."
# )
# return [
# GaiaQuestion.from_api(item)
# for item in data
# ]
# def get_random_question(self) -> GaiaQuestion:
# """Retrieve one random evaluation question."""
# response = self._request(
# method="GET",
# path="/random-question",
# )
# data = response.json()
# if not isinstance(data, dict):
# raise RuntimeError(
# "The /random-question endpoint returned "
# "an unexpected response."
# )
# return GaiaQuestion.from_api(data) |