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

Function load_design_from_mapping

entity/config_loader.py:21–24  ·  view source on GitHub ↗

Parse a raw dictionary into a typed :class:`DesignConfig`.

(data: Mapping[str, Any], *, source: str | None = None)

Source from the content-addressed store, hash-verified

19
20
21def load_design_from_mapping(data: Mapping[str, Any], *, source: str | None = None) -> DesignConfig:
22 """Parse a raw dictionary into a typed :class:`DesignConfig`."""
23 prepared = prepare_design_mapping(data, source=source)
24 return DesignConfig.from_dict(prepared, path="root")
25
26
27def load_design_from_file(path: Path) -> DesignConfig:

Callers 2

validate_documentFunction · 0.90
load_design_from_fileFunction · 0.85

Calls 2

prepare_design_mappingFunction · 0.85
from_dictMethod · 0.45

Tested by

no test coverage detected