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

Method from_dict

entity/configs/dynamic_base.py:212–215  ·  view source on GitHub ↗
(cls, data: Mapping[str, Any], *, path: str)

Source from the content-addressed store, hash-verified

210
211 @classmethod
212 def from_dict(cls, data: Mapping[str, Any], *, path: str) -> "JsonPathSplitConfig":
213 mapping = require_mapping(data, path)
214 json_path_value = require_str(mapping, "json_path", path, allow_empty=True)
215 return cls(json_path=json_path_value, path=path)
216
217 def display_label(self) -> str:
218 return f"json_path({self.json_path})"

Callers

nothing calls this directly

Calls 2

require_mappingFunction · 0.90
require_strFunction · 0.90

Tested by

no test coverage detected