test_parse_empty_string_after_stripping() — langchain Function Reference
Architecture documentation for the test_parse_empty_string_after_stripping() function in test_output_parsers.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 437c1393_3051_42b2_e3e1_d1b8b84728f4["test_parse_empty_string_after_stripping()"] dd46aa2b_85a9_6271_a241_97400f51b41f["TestReasoningJsonOutputParser"] 437c1393_3051_42b2_e3e1_d1b8b84728f4 -->|defined in| dd46aa2b_85a9_6271_a241_97400f51b41f style 437c1393_3051_42b2_e3e1_d1b8b84728f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/perplexity/tests/unit_tests/test_output_parsers.py lines 149–155
def test_parse_empty_string_after_stripping(self) -> None:
"""Test parsing when only think tags remain."""
parser = ReasoningJsonOutputParser()
text = "<think>Only reasoning, no output</think>"
generation = Generation(text=text)
with pytest.raises(OutputParserException):
parser.parse_result([generation])
Domain
Subdomains
Source
Frequently Asked Questions
What does test_parse_empty_string_after_stripping() do?
test_parse_empty_string_after_stripping() is a function in the langchain codebase, defined in libs/partners/perplexity/tests/unit_tests/test_output_parsers.py.
Where is test_parse_empty_string_after_stripping() defined?
test_parse_empty_string_after_stripping() is defined in libs/partners/perplexity/tests/unit_tests/test_output_parsers.py at line 149.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free