Home / Function/ _resolve_binary() — langchain Function Reference

_resolve_binary() — langchain Function Reference

Architecture documentation for the _resolve_binary() function in _execution.py from the langchain codebase.

Function python LangChainCore Runnables calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  a45f9aa3_f5f0_035d_1dae_62dc52165b5e["_resolve_binary()"]
  3ead6362_15e4_31b5_852b_83ad2c63fa17["DockerExecutionPolicy"]
  a45f9aa3_f5f0_035d_1dae_62dc52165b5e -->|defined in| 3ead6362_15e4_31b5_852b_83ad2c63fa17
  3e8d5e89_0a16_467a_a1cf_2c14a1472ea3["_resolve_binary()"]
  3e8d5e89_0a16_467a_a1cf_2c14a1472ea3 -->|calls| a45f9aa3_f5f0_035d_1dae_62dc52165b5e
  0ca39ab6_f475_3199_9fda_998b3047cb82["_build_command()"]
  0ca39ab6_f475_3199_9fda_998b3047cb82 -->|calls| a45f9aa3_f5f0_035d_1dae_62dc52165b5e
  3e8d5e89_0a16_467a_a1cf_2c14a1472ea3["_resolve_binary()"]
  a45f9aa3_f5f0_035d_1dae_62dc52165b5e -->|calls| 3e8d5e89_0a16_467a_a1cf_2c14a1472ea3
  style a45f9aa3_f5f0_035d_1dae_62dc52165b5e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/langchain/agents/middleware/_execution.py lines 369–377

    def _resolve_binary(self) -> str:
        path = shutil.which(self.binary)
        if path is None:
            msg = (
                "Docker execution policy requires the '%s' CLI to be installed"
                " and available on PATH."
            )
            raise RuntimeError(msg % self.binary)
        return path

Domain

Subdomains

Frequently Asked Questions

What does _resolve_binary() do?
_resolve_binary() is a function in the langchain codebase, defined in libs/langchain_v1/langchain/agents/middleware/_execution.py.
Where is _resolve_binary() defined?
_resolve_binary() is defined in libs/langchain_v1/langchain/agents/middleware/_execution.py at line 369.
What does _resolve_binary() call?
_resolve_binary() calls 1 function(s): _resolve_binary.
What calls _resolve_binary()?
_resolve_binary() is called by 2 function(s): _build_command, _resolve_binary.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free