Home / Function/ test__convert_typed_dict_to_openai_function_fail() — langchain Function Reference

test__convert_typed_dict_to_openai_function_fail() — langchain Function Reference

Architecture documentation for the test__convert_typed_dict_to_openai_function_fail() function in test_function_calling.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  ee37c2e8_0454_9e3e_bbb5_b3a7bcc82f9b["test__convert_typed_dict_to_openai_function_fail()"]
  6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0["test_function_calling.py"]
  ee37c2e8_0454_9e3e_bbb5_b3a7bcc82f9b -->|defined in| 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0
  style ee37c2e8_0454_9e3e_bbb5_b3a7bcc82f9b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/utils/test_function_calling.py lines 1039–1045

def test__convert_typed_dict_to_openai_function_fail(typed_dict: type) -> None:
    class Tool(typed_dict):  # type: ignore[misc]
        arg1: typing.MutableSet  # Pydantic 2 supports this, but pydantic v1 does not.

    # Error should be raised since we're using v1 code path here
    with pytest.raises(TypeError):
        _convert_typed_dict_to_openai_function(Tool)

Domain

Subdomains

Frequently Asked Questions

What does test__convert_typed_dict_to_openai_function_fail() do?
test__convert_typed_dict_to_openai_function_fail() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_function_calling.py.
Where is test__convert_typed_dict_to_openai_function_fail() defined?
test__convert_typed_dict_to_openai_function_fail() is defined in libs/core/tests/unit_tests/utils/test_function_calling.py at line 1039.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free