Home / Function/ test_strip_think_tags_multiline() — langchain Function Reference

test_strip_think_tags_multiline() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/partners/perplexity/tests/unit_tests/test_output_parsers.py lines 64–73

    def test_strip_think_tags_multiline(self) -> None:
        """Test stripping think tags across multiple lines."""
        text = """Hello
<think>
reasoning line 1
reasoning line 2
</think>
world"""
        result = strip_think_tags(text)
        assert result == "Hello\n\nworld"

Domain

Subdomains

Frequently Asked Questions

What does test_strip_think_tags_multiline() do?
test_strip_think_tags_multiline() 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_multiline() defined?
test_strip_think_tags_multiline() is defined in libs/partners/perplexity/tests/unit_tests/test_output_parsers.py at line 64.

Analyze Your Own Codebase

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

Try Supermodel Free