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

Function extend_path

entity/configs/base.py:271–276  ·  view source on GitHub ↗
(path: str, suffix: str)

Source from the content-addressed store, hash-verified

269
270
271def extend_path(path: str, suffix: str) -> str:
272 if not path:
273 return suffix
274 if suffix.startswith("["):
275 return f"{path}{suffix}"
276 return f"{path}.{suffix}"

Callers 15

_resolve_valueMethod · 0.90
_lookupMethod · 0.90
_initiate_edgesMethod · 0.90
from_dictMethod · 0.90
from_dictMethod · 0.90
from_dictMethod · 0.90
from_dictMethod · 0.90
from_dictMethod · 0.90
_normalize_keyword_listFunction · 0.90
from_dictMethod · 0.90
from_dictMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected