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

Function parse_source_code

methods/MIRIX/mirix/functions/functions.py:64–67  ·  view source on GitHub ↗

Parse the source code of a function and remove indendation

(func)

Source from the content-addressed store, hash-verified

62
63
64def parse_source_code(func) -> str:
65 """Parse the source code of a function and remove indendation"""
66 source_code = dedent(inspect.getsource(func))
67 return source_code
68
69
70def get_function_from_module(module_name: str, function_name: str):

Callers 3

create_toolMethod · 0.90
create_or_update_toolMethod · 0.90
update_toolMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected