test_get_output_messages_no_value_error() — langchain Function Reference
Architecture documentation for the test_get_output_messages_no_value_error() function in test_history.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ffcb959b_7d13_8aaf_1af4_33c516291867["test_get_output_messages_no_value_error()"] 0af0dfde_fe33_f3e5_b5e6_a3d18260dc67["test_history.py"] ffcb959b_7d13_8aaf_1af4_33c516291867 -->|defined in| 0af0dfde_fe33_f3e5_b5e6_a3d18260dc67 e035a3b1_d1a1_c458_c801_af1fc0272f8b["_get_get_session_history()"] ffcb959b_7d13_8aaf_1af4_33c516291867 -->|calls| e035a3b1_d1a1_c458_c801_af1fc0272f8b style ffcb959b_7d13_8aaf_1af4_33c516291867 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_history.py lines 857–874
def test_get_output_messages_no_value_error() -> None:
runnable = _RunnableLambdaWithRaiseError[Any, str](
lambda messages: (
"you said: "
+ "\n".join(str(m.content) for m in messages if isinstance(m, HumanMessage))
)
)
get_session_history = _get_get_session_history()
with_history = RunnableWithMessageHistory(runnable, get_session_history)
config: RunnableConfig = {
"configurable": {"session_id": "1", "message_history": get_session_history("1")}
}
may_catch_value_error = None
try:
with_history.bound.invoke([HumanMessage(content="hello")], config)
except ValueError as e:
may_catch_value_error = e
assert may_catch_value_error is None
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_output_messages_no_value_error() do?
test_get_output_messages_no_value_error() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_history.py.
Where is test_get_output_messages_no_value_error() defined?
test_get_output_messages_no_value_error() is defined in libs/core/tests/unit_tests/runnables/test_history.py at line 857.
What does test_get_output_messages_no_value_error() call?
test_get_output_messages_no_value_error() calls 1 function(s): _get_get_session_history.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free