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 3

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/langchain_v1/langchain/agents/middleware/_execution.py lines 236–243

    def _resolve_binary(self) -> str:
        path = shutil.which(self.binary)
        if path is None:
            msg = (
                "Codex sandbox 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 236.
What does _resolve_binary() call?
_resolve_binary() calls 1 function(s): _resolve_binary.
What calls _resolve_binary()?
_resolve_binary() is called by 3 function(s): _build_command, _build_command, _resolve_binary.

Analyze Your Own Codebase

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

Try Supermodel Free