MCPcopy Create free account
hub / github.com/langchain-ai/deepagents / _format_lc_version

Function _format_lc_version

libs/code/deepagents_code/config.py:1056–1066  ·  view source on GitHub ↗

Format an `lc_versions` value with editable-install context. Args: base_version: The base version string. editable: Whether the distribution is installed in editable mode. Returns: The version string, suffixed with ` (editable)` when `editable`.

(base_version: str, *, editable: bool)

Source from the content-addressed store, hash-verified

1054
1055
1056def _format_lc_version(base_version: str, *, editable: bool) -> str:
1057 """Format an `lc_versions` value with editable-install context.
1058
1059 Args:
1060 base_version: The base version string.
1061 editable: Whether the distribution is installed in editable mode.
1062
1063 Returns:
1064 The version string, suffixed with ` (editable)` when `editable`.
1065 """
1066 return f"{base_version} (editable)" if editable else base_version
1067
1068
1069def _resolve_editable_info() -> tuple[bool, str | None]:

Callers 1

build_stream_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected