Home / Function/ test_strip_think_tags_no_closing_tag() — langchain Function Reference

test_strip_think_tags_no_closing_tag() — langchain Function Reference

Architecture documentation for the test_strip_think_tags_no_closing_tag() function in test_output_parsers.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  04c73096_2ad1_5ea0_eebb_e702cb25f3b5["test_strip_think_tags_no_closing_tag()"]
  e196f7b5_5f5c_a1ab_6284_a4fee37131df["TestStripThinkTags"]
  04c73096_2ad1_5ea0_eebb_e702cb25f3b5 -->|defined in| e196f7b5_5f5c_a1ab_6284_a4fee37131df
  style 04c73096_2ad1_5ea0_eebb_e702cb25f3b5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/perplexity/tests/unit_tests/test_output_parsers.py lines 39–44

    def test_strip_think_tags_no_closing_tag(self) -> None:
        """Test handling of think tags without closing tag."""
        text = "Hello <think>unclosed reasoning world"
        result = strip_think_tags(text)
        # Treats unclosed tag as literal text
        assert result == "Hello <think>unclosed reasoning world"

Domain

Subdomains

Frequently Asked Questions

What does test_strip_think_tags_no_closing_tag() do?
test_strip_think_tags_no_closing_tag() is a function in the langchain codebase, defined in libs/partners/perplexity/tests/unit_tests/test_output_parsers.py.
Where is test_strip_think_tags_no_closing_tag() defined?
test_strip_think_tags_no_closing_tag() is defined in libs/partners/perplexity/tests/unit_tests/test_output_parsers.py at line 39.

Analyze Your Own Codebase

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

Try Supermodel Free