(self, history, indicators = None)
| 225 | return prompts |
| 226 | |
| 227 | def get_time_pre_defined_strategy(self, history, indicators = None): |
| 228 | if indicators == None: |
| 229 | raise ValueError("Missing indicators.") |
| 230 | prompts = {} |
| 231 | for prompt in history: |
| 232 | if prompt not in indicators: |
| 233 | continue |
| 234 | prompts[prompt] = [] |
| 235 | for i, h in enumerate(history[prompt]): |
| 236 | if indicators[prompt][i]: |
| 237 | message = self.apply_template("time_pre_defined_strategy", 0, {}) |
| 238 | prompts[prompt].append(self.build_chat_message(message, h)) |
| 239 | else: |
| 240 | prompts[prompt].append(None) |
| 241 | |
| 242 | return prompts |
| 243 | |
| 244 | def get_time_chain_of_thought(self, rd, history, indicators = None): |
| 245 | if indicators == None: |
no test coverage detected