_can_use_prlimit() — langchain Function Reference
Architecture documentation for the _can_use_prlimit() function in _execution.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bad031b8_5bd0_bccc_ddb5_454177e775ee["_can_use_prlimit()"] 489b9db3_8221_6964_1dd6_b6ee6fd2e645["HostExecutionPolicy"] bad031b8_5bd0_bccc_ddb5_454177e775ee -->|defined in| 489b9db3_8221_6964_1dd6_b6ee6fd2e645 4369ac03_9b6d_38a2_6328_517f16dfa130["_create_preexec_fn()"] 4369ac03_9b6d_38a2_6328_517f16dfa130 -->|calls| bad031b8_5bd0_bccc_ddb5_454177e775ee 6592225b_0ebb_d535_96fb_1f481b669d2c["_apply_post_spawn_limits()"] 6592225b_0ebb_d535_96fb_1f481b669d2c -->|calls| bad031b8_5bd0_bccc_ddb5_454177e775ee style bad031b8_5bd0_bccc_ddb5_454177e775ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/langchain/agents/middleware/_execution.py lines 186–187
def _can_use_prlimit() -> bool:
return _HAS_RESOURCE and hasattr(resource, "prlimit") and sys.platform.startswith("linux")
Domain
Subdomains
Source
Frequently Asked Questions
What does _can_use_prlimit() do?
_can_use_prlimit() is a function in the langchain codebase, defined in libs/langchain_v1/langchain/agents/middleware/_execution.py.
Where is _can_use_prlimit() defined?
_can_use_prlimit() is defined in libs/langchain_v1/langchain/agents/middleware/_execution.py at line 186.
What calls _can_use_prlimit()?
_can_use_prlimit() is called by 2 function(s): _apply_post_spawn_limits, _create_preexec_fn.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free