Home / Function/ test_hub_pull_public_prompt() — langchain Function Reference

test_hub_pull_public_prompt() — langchain Function Reference

Architecture documentation for the test_hub_pull_public_prompt() function in test_hub.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  07e2c3f3_4898_884c_451f_67a92bee68c3["test_hub_pull_public_prompt()"]
  d1bff66a_3240_cace_d900_6aae0c44af3f["test_hub.py"]
  07e2c3f3_4898_884c_451f_67a92bee68c3 -->|defined in| d1bff66a_3240_cace_d900_6aae0c44af3f
  style 07e2c3f3_4898_884c_451f_67a92bee68c3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/integration_tests/test_hub.py lines 8–17

def test_hub_pull_public_prompt() -> None:
    prompt = hub.pull("efriis/my-first-prompt")
    assert isinstance(prompt, ChatPromptTemplate)
    assert prompt.metadata is not None
    assert prompt.metadata["lc_hub_owner"] == "efriis"
    assert prompt.metadata["lc_hub_repo"] == "my-first-prompt"
    assert (
        prompt.metadata["lc_hub_commit_hash"]
        == "56489e79537fc477d8368e6c9902df15b5e9fe8bc0e4f38dc4b15b65e550077c"
    )

Domain

Subdomains

Frequently Asked Questions

What does test_hub_pull_public_prompt() do?
test_hub_pull_public_prompt() is a function in the langchain codebase, defined in libs/langchain/tests/integration_tests/test_hub.py.
Where is test_hub_pull_public_prompt() defined?
test_hub_pull_public_prompt() is defined in libs/langchain/tests/integration_tests/test_hub.py at line 8.

Analyze Your Own Codebase

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

Try Supermodel Free