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