MCPcopy
hub / github.com/OpenBMB/ChatDev / resolve

Method resolve

utils/vars_resolver.py:29–33  ·  view source on GitHub ↗
(self, data: MutableMapping[str, Any], *, path: str = "root")

Source from the content-addressed store, hash-verified

27 return merged
28
29 def resolve(self, data: MutableMapping[str, Any], *, path: str = "root") -> MutableMapping[str, Any]:
30 if not isinstance(data, MutableMapping):
31 raise ConfigError("YAML root must be a mapping", path=path)
32 self._resolve_value(data, path, stack=())
33 return data
34
35 def _resolve_value(self, value: Any, path: str, *, stack: Sequence[str]) -> Any:
36 if isinstance(value, str):

Callers 15

mainFunction · 0.80
__init__Method · 0.80
get_function_catalogFunction · 0.80
_derive_module_nameFunction · 0.80
iter_workspace_entriesFunction · 0.80
load_functionsMethod · 0.80
get_function_managerFunction · 0.80
register_fileMethod · 0.80

Calls 2

_resolve_valueMethod · 0.95
ConfigErrorClass · 0.90

Tested by

no test coverage detected