test_hub_runnable_configurable_fields() — langchain Function Reference
Architecture documentation for the test_hub_runnable_configurable_fields() function in test_hub.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e892306d_c8d2_fd06_a4ec_8b0eeed68d88["test_hub_runnable_configurable_fields()"] 00978a8e_81b9_8bd7_8934_945aec6437fe["test_hub.py"] e892306d_c8d2_fd06_a4ec_8b0eeed68d88 -->|defined in| 00978a8e_81b9_8bd7_8934_945aec6437fe style e892306d_c8d2_fd06_a4ec_8b0eeed68d88 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/runnables/test_hub.py lines 68–82
def test_hub_runnable_configurable_fields(mock_pull: Mock) -> None:
mock_pull.side_effect = repo_lookup
original: HubRunnable = HubRunnable("efriis/my-prompt-1")
obj_configurable = original.configurable_fields(
owner_repo_commit=ConfigurableField(id="owner_repo_commit", name="Hub ID"),
)
templated_1 = obj_configurable.invoke({})
assert templated_1.messages[1].content == "1"
templated_2 = obj_configurable.with_config(
configurable={"owner_repo_commit": "efriis/my-prompt-2"},
).invoke({})
assert templated_2.messages[1].content == "2"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_hub_runnable_configurable_fields() do?
test_hub_runnable_configurable_fields() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/runnables/test_hub.py.
Where is test_hub_runnable_configurable_fields() defined?
test_hub_runnable_configurable_fields() is defined in libs/langchain/tests/unit_tests/runnables/test_hub.py at line 68.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free