(self, history, indicators = None)
| 184 | return prompts |
| 185 | |
| 186 | def get_time_simple_instruction(self, history, indicators = None): |
| 187 | prompts = {} |
| 188 | if indicators == None: |
| 189 | raise ValueError("Missing indicators.") |
| 190 | for prompt in history: |
| 191 | if prompt not in indicators: |
| 192 | continue |
| 193 | prompts[prompt] = [] |
| 194 | for i, h in enumerate(history[prompt]): |
| 195 | if indicators[prompt][i]: |
| 196 | message = self.apply_template("time_simple_instruction", 0, {}) |
| 197 | prompts[prompt].append(self.build_chat_message(message, h)) |
| 198 | else: |
| 199 | prompts[prompt].append(None) |
| 200 | |
| 201 | return prompts |
| 202 | |
| 203 | def get_time_in_context_learning(self, history, demos = None, demo_num = 1, indicators = None): |
| 204 | if indicators == None: |
no test coverage detected