MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / load_yaml

Function load_yaml

internbootcamp/utils/run_evaluation.py:172–178  ·  view source on GitHub ↗

从 YAML 文件加载工具配置,构建 tools 和 tool_registry

(yaml_path: str)

Source from the content-addressed store, hash-verified

170
171
172def load_yaml(yaml_path: str) -> Optional[Dict[str, Any]]:
173 """
174 从 YAML 文件加载工具配置,构建 tools 和 tool_registry
175 """
176 with open(yaml_path, "r", encoding="utf-8") as f:
177 config = yaml.safe_load(f)
178 return config
179
180
181def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected