Home / Function/ prlimit() — langchain Function Reference

prlimit() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  dd7a82ae_f1e7_9a9d_7b95_f6649528b63a["prlimit()"]
  5cce7288_a984_4611_8f6d_65481adc7b5f["_Resource"]
  dd7a82ae_f1e7_9a9d_7b95_f6649528b63a -->|defined in| 5cce7288_a984_4611_8f6d_65481adc7b5f
  06707227_971c_bfbd_5596_639762857cca["_make_resource()"]
  06707227_971c_bfbd_5596_639762857cca -->|calls| dd7a82ae_f1e7_9a9d_7b95_f6649528b63a
  style dd7a82ae_f1e7_9a9d_7b95_f6649528b63a 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 49–50

            def prlimit(self, pid: int, resource_name: int, limits: tuple[int, int]) -> None:
                self.prlimit_calls.append((pid, resource_name, limits))

Domain

Subdomains

Called By

Frequently Asked Questions

What does prlimit() do?
prlimit() 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 prlimit() defined?
prlimit() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_execution_policies.py at line 49.
What calls prlimit()?
prlimit() 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