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

Function assert_code_gen_compilable

methods/letta/functions/helpers.py:149–153  ·  view source on GitHub ↗
(code_str)

Source from the content-addressed store, hash-verified

147
148
149def assert_code_gen_compilable(code_str):
150 try:
151 compile(code_str, "<string>", "exec")
152 except SyntaxError as e:
153 print(f"Syntax error in code: {e}")
154
155
156def assert_all_classes_are_imported(tool: Union["LangChainBaseTool"], additional_imports_module_attr_map: dict[str, str]) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected