Home / Function/ setrlimit() — langchain Function Reference

setrlimit() — langchain Function Reference

Architecture documentation for the setrlimit() function in test_shell_execution_policies.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  30b1f2af_e7ce_4dbf_9320_fca84a8ea1dc["setrlimit()"]
  cfd1c01c_68eb_b5ac_b80c_13350ae2a1f0["_BaseResource"]
  30b1f2af_e7ce_4dbf_9320_fca84a8ea1dc -->|defined in| cfd1c01c_68eb_b5ac_b80c_13350ae2a1f0
  06707227_971c_bfbd_5596_639762857cca["_make_resource()"]
  06707227_971c_bfbd_5596_639762857cca -->|calls| 30b1f2af_e7ce_4dbf_9320_fca84a8ea1dc
  style 30b1f2af_e7ce_4dbf_9320_fca84a8ea1dc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py lines 43–44

        def setrlimit(self, resource_name: int, limits: tuple[int, int]) -> None:
            self.setrlimit_calls.append((resource_name, limits))

Domain

Subdomains

Called By

Frequently Asked Questions

What does setrlimit() do?
setrlimit() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py.
Where is setrlimit() defined?
setrlimit() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py at line 43.
What calls setrlimit()?
setrlimit() is called by 1 function(s): _make_resource.

Analyze Your Own Codebase

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

Try Supermodel Free