MCPcopy
hub / github.com/langchain-ai/deepagents / install_extras_command

Function install_extras_command

libs/code/deepagents_code/update_check.py:2387–2405  ·  view source on GitHub ↗

Return the install-script command that installs dcode extras. Args: extras: Extra names to include in the tool reinstall. Validated by `_dcode_extras_requirement`, which raises `ValueError` on any name that fails PEP 508 validation. Returns: Shell co

(extras: Iterable[str])

Source from the content-addressed store, hash-verified

2385
2386
2387def install_extras_command(extras: Iterable[str]) -> str:
2388 """Return the install-script command that installs dcode extras.
2389
2390 Args:
2391 extras: Extra names to include in the tool reinstall. Validated by
2392 `_dcode_extras_requirement`, which raises `ValueError` on any name
2393 that fails PEP 508 validation.
2394
2395 Returns:
2396 Shell command string suitable for display in error messages.
2397 """
2398 names = sorted(extras)
2399 _dcode_extras_requirement(names)
2400 if not names:
2401 return INSTALL_SCRIPT_COMMAND
2402 extras_env = shlex.quote(",".join(names))
2403 return (
2404 f"curl -LsSf https://langch.in/dcode | DEEPAGENTS_CODE_EXTRAS={extras_env} bash"
2405 )
2406
2407
2408def install_extra_command(

Callers 6

cli_mainFunction · 0.90
test_basicMethod · 0.90
test_provider_extraMethod · 0.90
install_extra_commandFunction · 0.85

Calls 1

Tested by 4

test_basicMethod · 0.72
test_provider_extraMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…