test_runnable_get_graph_with_invalid_output_type() — langchain Function Reference
Architecture documentation for the test_runnable_get_graph_with_invalid_output_type() function in test_graph.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 747dd2e6_df85_1ba1_058b_f5e62cb41ed0["test_runnable_get_graph_with_invalid_output_type()"] 83e2cebc_592b_5a1b_c581_48dfbd3d53cf["test_graph.py"] 747dd2e6_df85_1ba1_058b_f5e62cb41ed0 -->|defined in| 83e2cebc_592b_5a1b_c581_48dfbd3d53cf f0f16f76_d5a3_a8c0_dfd1_2b66ac590934["OutputType()"] 747dd2e6_df85_1ba1_058b_f5e62cb41ed0 -->|calls| f0f16f76_d5a3_a8c0_dfd1_2b66ac590934 e6d7076f_a543_5364_c1be_df868822d0e8["invoke()"] 747dd2e6_df85_1ba1_058b_f5e62cb41ed0 -->|calls| e6d7076f_a543_5364_c1be_df868822d0e8 style 747dd2e6_df85_1ba1_058b_f5e62cb41ed0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_graph.py lines 500–522
def test_runnable_get_graph_with_invalid_output_type() -> None:
"""Test that error is't raised when getting graph with invalid output type."""
class InvalidOutputTypeRunnable(Runnable[int, int]):
@property
@override
def OutputType(self) -> type:
raise TypeError
@override
def invoke(
self,
input: int,
config: RunnableConfig | None = None,
**kwargs: Any,
) -> int:
return input
runnable = InvalidOutputTypeRunnable()
# check whether runnable.invoke works
assert runnable.invoke(1) == 1
# check whether runnable.get_graph works
runnable.get_graph()
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_runnable_get_graph_with_invalid_output_type() do?
test_runnable_get_graph_with_invalid_output_type() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_graph.py.
Where is test_runnable_get_graph_with_invalid_output_type() defined?
test_runnable_get_graph_with_invalid_output_type() is defined in libs/core/tests/unit_tests/runnables/test_graph.py at line 500.
What does test_runnable_get_graph_with_invalid_output_type() call?
test_runnable_get_graph_with_invalid_output_type() calls 2 function(s): OutputType, invoke.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free