MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / united_diff

Function united_diff

methods/letta/utils.py:815–819  ·  view source on GitHub ↗
(str1, str2)

Source from the content-addressed store, hash-verified

813
814
815def united_diff(str1, str2):
816 lines1 = str1.splitlines(True)
817 lines2 = str2.splitlines(True)
818 diff = difflib.unified_diff(lines1, lines2)
819 return "".join(diff)
820
821
822def parse_json(string) -> dict:

Callers 1

rebuild_system_promptMethod · 0.90

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected