tiantian-paris commited on
Commit
08f0105
·
1 Parent(s): bcdc65e

QCM update

Browse files
Files changed (2) hide show
  1. prompts.yaml +1 -1
  2. tools/QCMTool.py +1 -1
prompts.yaml CHANGED
@@ -86,7 +86,7 @@
86
  **QCM Tool**
87
  You also have access to a QCM (Multiple Choice Question) tool that can fetch questions from a JSON file and check user answers. Here’s how to use it:
88
 
89
- - To fetch a random question, call `qcm_tool(json_file='questions.json')`.
90
  - To check a user's answer, call `qcm_tool(json_file='questions.json', user_answer="A")`.
91
 
92
  Example:
 
86
  **QCM Tool**
87
  You also have access to a QCM (Multiple Choice Question) tool that can fetch questions from a JSON file and check user answers. Here’s how to use it:
88
 
89
+ - To fetch a random question, call `qcm_tool._pick_random_question()`.
90
  - To check a user's answer, call `qcm_tool(json_file='questions.json', user_answer="A")`.
91
 
92
  Example:
tools/QCMTool.py CHANGED
@@ -78,7 +78,7 @@ class QCMTool(Tool):
78
  and provides feedback.
79
 
80
  Args:
81
- user_answer (str): The user's selected answer (e.g., "A", "B", "C", "D").
82
 
83
  Returns:
84
  str: A formatted string indicating whether the answer was correct and providing an explanation.
 
78
  and provides feedback.
79
 
80
  Args:
81
+ user_answer: The user's selected answer (e.g., "A", "B", "C", "D").
82
 
83
  Returns:
84
  str: A formatted string indicating whether the answer was correct and providing an explanation.