MCPcopy Index your code
hub / github.com/HKUDS/DeepCode / add_to_history

Method add_to_history

cli/cli_interface.py:935–943  ·  view source on GitHub ↗

Add processing result to history

(self, input_source: str, result: dict)

Source from the content-addressed store, hash-verified

933 return choice in ["y", "yes", "1", "true"]
934
935 def add_to_history(self, input_source: str, result: dict):
936 """Add processing result to history"""
937 entry = {
938 "timestamp": time.strftime("%Y-%m-%d %H:%M:%S"),
939 "input_source": input_source,
940 "status": result.get("status", "unknown"),
941 "result": result,
942 }
943 self.processing_history.append(entry)
944
945 def show_history(self):
946 """Display processing history"""

Callers 1

process_inputMethod · 0.45

Calls 1

getMethod · 0.80

Tested by

no test coverage detected