MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / _get_class_names

Function _get_class_names

functions/function_calling/video.py:8–12  ·  view source on GitHub ↗
(py_file: str)

Source from the content-addressed store, hash-verified

6import tempfile
7
8def _get_class_names(py_file: str) -> list[str]:
9 file_path = Path(py_file)
10 source = file_path.read_text(encoding="utf-8")
11 tree = ast.parse(source, filename=str(file_path))
12 return [node.name for node in ast.walk(tree) if isinstance(node, ast.ClassDef)]
13
14def render_manim(
15 script_path: str,

Callers 1

render_manimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected