(self)
| 47 | |
| 48 | @property |
| 49 | def args_format(self) -> str: |
| 50 | fmt = self.cfg.get('args_format') |
| 51 | if fmt is None: |
| 52 | if has_chinese_chars([self.name_for_human, self.name, self.description, self.parameters]): |
| 53 | fmt = 'The input for this tool should be a Markdown code block.' |
| 54 | |
| 55 | else: |
| 56 | fmt = 'Enclose the code within triple backticks (`) at the beginning and end of the code.' |
| 57 | return fmt |
| 58 | |
| 59 | def observation(self, tool: dict, tool_dict: dict, tool_results, empty_mode: bool=False, readpage: bool=False, max_observation_length: int=None, tokenizer=None): |
| 60 | print('test') |
nothing calls this directly
no test coverage detected