To be overriden by the descendant class
(self, input:Dict[str,str], spatial_info:Dict[str,Any], temporal_info:Dict[str,Any],**kwargs)
| 268 | } |
| 269 | |
| 270 | def _execute(self, input:Dict[str,str], spatial_info:Dict[str,Any], temporal_info:Dict[str,Any],**kwargs): |
| 271 | """ To be overriden by the descendant class """ |
| 272 | """ Use the processed input to get the result """ |
| 273 | inputs = asyncio.run( |
| 274 | self._process_inputs( |
| 275 | input, |
| 276 | spatial_info, |
| 277 | temporal_info, |
| 278 | mode="default", |
| 279 | **kwargs, |
| 280 | ) |
| 281 | ) |
| 282 | message = [ |
| 283 | {"role": "system", "content": inputs["system_prompt"]}, |
| 284 | {"role": "user", "content": inputs["user_prompt"]}, |
| 285 | ] |
| 286 | response = self.llm.gen(message) |
| 287 | return response |
| 288 | |
| 289 | async def _async_execute(self, input:Dict[str,str], spatial_info:Dict[str,Any], temporal_info:Dict[str,Any], mode: str = "default", **kwargs): |
| 290 | """ To be overriden by the descendant class """ |
nothing calls this directly
no test coverage detected