random_name() — langchain Function Reference
Architecture documentation for the random_name() function in name_generation.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a2de4c64_e8c3_321a_7d97_f6ff1b97de62["random_name()"] e0fc0434_cfb7_fe51_e83e_a95862f95f0d["name_generation.py"] a2de4c64_e8c3_321a_7d97_f6ff1b97de62 -->|defined in| e0fc0434_cfb7_fe51_e83e_a95862f95f0d style a2de4c64_e8c3_321a_7d97_f6ff1b97de62 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/smith/evaluation/name_generation.py lines 722–727
def random_name() -> str:
"""Generate a random name."""
adjective = random.choice(adjectives) # noqa: S311
noun = random.choice(nouns) # noqa: S311
number = random.randint(1, 100) # noqa: S311
return f"{adjective}-{noun}-{number}"
Domain
Subdomains
Source
Frequently Asked Questions
What does random_name() do?
random_name() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/smith/evaluation/name_generation.py.
Where is random_name() defined?
random_name() is defined in libs/langchain/langchain_classic/smith/evaluation/name_generation.py at line 722.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free