test_convert_to_openai_messages_invalid_format() — langchain Function Reference
Architecture documentation for the test_convert_to_openai_messages_invalid_format() function in test_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fee5e33b_9889_031b_6084_1b70158ed755["test_convert_to_openai_messages_invalid_format()"] ea3f8d89_f44b_6738_3cb9_a740a73cfca4["test_utils.py"] fee5e33b_9889_031b_6084_1b70158ed755 -->|defined in| ea3f8d89_f44b_6738_3cb9_a740a73cfca4 style fee5e33b_9889_031b_6084_1b70158ed755 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/messages/test_utils.py lines 1037–1042
def test_convert_to_openai_messages_invalid_format() -> None:
with pytest.raises(ValueError, match="Unrecognized text_format="):
convert_to_openai_messages( # type: ignore[call-overload]
[HumanMessage(content="Hello")],
text_format="invalid",
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_convert_to_openai_messages_invalid_format() do?
test_convert_to_openai_messages_invalid_format() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/messages/test_utils.py.
Where is test_convert_to_openai_messages_invalid_format() defined?
test_convert_to_openai_messages_invalid_format() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 1037.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free