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

Method observation

inference/tool_python.py:59–62  ·  view source on GitHub ↗
(self, tool: dict, tool_dict: dict, tool_results, empty_mode: bool=False, readpage: bool=False, max_observation_length: int=None, tokenizer=None)

Source from the content-addressed store, hash-verified

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')
61 assert isinstance(tool_results, str), f"result of python code should be str, instead of {type(tool_results)}. {tool_results}"
62 return tool_results
63
64 @property
65 def function(self) -> dict:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected