test_fallbacks_getattr_runnable_output() — langchain Function Reference
Architecture documentation for the test_fallbacks_getattr_runnable_output() function in test_fallbacks.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 7cc1b0e7_03db_0b07_9ea4_e941b5e04ad5["test_fallbacks_getattr_runnable_output()"] d62d478e_a330_c328_7da4_58e88d780807["test_fallbacks.py"] 7cc1b0e7_03db_0b07_9ea4_e941b5e04ad5 -->|defined in| d62d478e_a330_c328_7da4_58e88d780807 94084ad9_a3f3_8809_5015_f4c2f5ed2c3c["bind_tools()"] 7cc1b0e7_03db_0b07_9ea4_e941b5e04ad5 -->|calls| 94084ad9_a3f3_8809_5015_f4c2f5ed2c3c style 7cc1b0e7_03db_0b07_9ea4_e941b5e04ad5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_fallbacks.py lines 391–402
def test_fallbacks_getattr_runnable_output() -> None:
llm_with_fallbacks = FakeStructuredOutputModel(foo=3).with_fallbacks(
[FakeModel(bar=4)]
)
llm_with_fallbacks_with_tools = llm_with_fallbacks.bind_tools([])
assert isinstance(llm_with_fallbacks_with_tools, RunnableWithFallbacks)
assert isinstance(llm_with_fallbacks_with_tools.runnable, RunnableBinding)
assert all(
isinstance(fallback, RunnableBinding)
for fallback in llm_with_fallbacks_with_tools.fallbacks
)
assert llm_with_fallbacks_with_tools.runnable.kwargs["tools"] == []
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_fallbacks_getattr_runnable_output() do?
test_fallbacks_getattr_runnable_output() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_fallbacks.py.
Where is test_fallbacks_getattr_runnable_output() defined?
test_fallbacks_getattr_runnable_output() is defined in libs/core/tests/unit_tests/runnables/test_fallbacks.py at line 391.
What does test_fallbacks_getattr_runnable_output() call?
test_fallbacks_getattr_runnable_output() calls 1 function(s): bind_tools.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free