MCPcopy Create free account
hub / github.com/Alibaba-NLP/DeepResearch / args_format

Method args_format

inference/tool_python.py:49–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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')

Callers

nothing calls this directly

Calls 2

has_chinese_charsFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected