sviddo commited on
Commit
3b9d45f
1 Parent(s): 20fea99

update make request module

Browse files
Files changed (1) hide show
  1. scripts/make_request.py +25 -23
scripts/make_request.py CHANGED
@@ -69,36 +69,38 @@ def run_simulated_request(endpoint, sample_answer, context=None):
69
  # run_simulated_request('nlu', 'Today is a wonderful day')
70
  # run_simulated_request('nlu', 'IDK 5?')
71
  # run_simulated_request('manager', '')
72
- run_simulated_request('manager', 'add')
73
- run_simulated_request('manager', 'subtract')
74
- run_simulated_request("question", {
75
- 'number_correct': 0,
76
- 'number_incorrect': 0,
77
- 'level': 'easy'
78
  })
79
  run_simulated_request("hint", {
80
- 'question_numbers': [1, 2, 3],
81
- 'right_answer': 3,
82
- 'number_correct': 0,
83
- 'number_incorrect': 0,
84
- 'level': 'easy',
85
- 'hints_used': 0
86
  })
87
- run_simulated_request("generate_question", {
88
- 'level': 'medium'
 
 
89
  })
90
- run_simulated_request("numbers_by_level", {
91
- 'level': 'medium'
 
92
  })
93
- run_simulated_request("number_sequence", {
94
- "current_number": 10,
95
- "ordinal_number": 2,
96
- "times": 1
97
  })
98
- run_simulated_request("level", {
99
- "current_level": "hard",
100
- "level_up": False
 
101
  })
 
102
  # run_simulated_request('manager', 'exit')
103
 
104
 
 
69
  # run_simulated_request('nlu', 'Today is a wonderful day')
70
  # run_simulated_request('nlu', 'IDK 5?')
71
  # run_simulated_request('manager', '')
72
+ # run_simulated_request('manager', 'add')
73
+ # run_simulated_request('manager', 'subtract')
74
+
75
+ run_simulated_request("start", {
76
+ 'difficulty': 0.69,
77
+ 'do_increase': True
78
  })
79
  run_simulated_request("hint", {
80
+ 'start': 2,
81
+ 'step': 1,
82
+ 'difficulty': 0.01 # optional
 
 
 
83
  })
84
+ run_simulated_request("question", {
85
+ 'start': 2,
86
+ 'step': 1,
87
+ 'question_num': 2 # optional
88
  })
89
+ run_simulated_request("difficulty", {
90
+ 'difficulty': 0.01,
91
+ 'do_increase': True # True | False
92
  })
93
+ run_simulated_request("start_step", {
94
+ 'start': 2,
95
+ 'step': 1,
96
+ 'difficulty': 0.01 # optional
97
  })
98
+ run_simulated_request("sequence", {
99
+ 'start': 2,
100
+ 'step': 1,
101
+ 'sep': '... '
102
  })
103
+
104
  # run_simulated_request('manager', 'exit')
105
 
106