Home / Function/ __dir__() — langchain Function Reference

__dir__() — langchain Function Reference

Architecture documentation for the __dir__() function in __init__.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  33d5478b_fd29_3349_36d7_5ad98f0d4efb["__dir__()"]
  33324901_b8f2_4f93_9580_5f5cecfd15b5["__init__.py"]
  33d5478b_fd29_3349_36d7_5ad98f0d4efb -->|defined in| 33324901_b8f2_4f93_9580_5f5cecfd15b5
  style 33d5478b_fd29_3349_36d7_5ad98f0d4efb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/prompts/__init__.py lines 100–101

def __dir__() -> list[str]:
    return list(__all__)

Subdomains

Frequently Asked Questions

What does __dir__() do?
__dir__() is a function in the langchain codebase, defined in libs/core/langchain_core/prompts/__init__.py.
Where is __dir__() defined?
__dir__() is defined in libs/core/langchain_core/prompts/__init__.py at line 100.

Analyze Your Own Codebase

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

Try Supermodel Free