Home / Function/ test_not_an_ai() — langchain Function Reference

test_not_an_ai() — langchain Function Reference

Architecture documentation for the test_not_an_ai() function in test_openai_functions.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  423c2306_4f74_ee5c_2212_59bb3a7e30c4["test_not_an_ai()"]
  1fe72b94_a8cc_d072_fc0a_71824fccb3c3["test_openai_functions.py"]
  423c2306_4f74_ee5c_2212_59bb3a7e30c4 -->|defined in| 1fe72b94_a8cc_d072_fc0a_71824fccb3c3
  style 423c2306_4f74_ee5c_2212_59bb3a7e30c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/agents/output_parsers/test_openai_functions.py lines 14–18

def test_not_an_ai() -> None:
    parser = OpenAIFunctionsAgentOutputParser()
    err = f"Expected an AI message got {SystemMessage!s}"
    with pytest.raises(TypeError, match=err):
        parser.invoke(SystemMessage(content="x"))

Domain

Subdomains

Frequently Asked Questions

What does test_not_an_ai() do?
test_not_an_ai() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/output_parsers/test_openai_functions.py.
Where is test_not_an_ai() defined?
test_not_an_ai() is defined in libs/langchain/tests/unit_tests/agents/output_parsers/test_openai_functions.py at line 14.

Analyze Your Own Codebase

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

Try Supermodel Free