MCPcopy Index your code
hub / github.com/google/adk-python / _import_from_path

Function _import_from_path

src/google/adk/cli/cli_eval.py:62–67  ·  view source on GitHub ↗
(module_name, file_path)

Source from the content-addressed store, hash-verified

60
61
62def _import_from_path(module_name, file_path):
63 spec = importlib.util.spec_from_file_location(module_name, file_path)
64 module = importlib.util.module_from_spec(spec)
65 sys.modules[module_name] = module
66 spec.loader.exec_module(module)
67 return module
68
69
70def _get_agent_module(agent_module_file_path: str):

Callers 1

_get_agent_moduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected