test_combining_output_parser_output_type() — langchain Function Reference
Architecture documentation for the test_combining_output_parser_output_type() function in test_combining_parser.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD df5bd788_e27d_1e3b_999f_2e43b9f2f150["test_combining_output_parser_output_type()"] 069727be_4317_14b8_178c_1dafb0814379["test_combining_parser.py"] df5bd788_e27d_1e3b_999f_2e43b9f2f150 -->|defined in| 069727be_4317_14b8_178c_1dafb0814379 style df5bd788_e27d_1e3b_999f_2e43b9f2f150 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/output_parsers/test_combining_parser.py lines 55–77
def test_combining_output_parser_output_type() -> None:
"""Test combining output parser output type is Dict[str, Any]."""
parsers = [
StructuredOutputParser(
response_schemas=[
ResponseSchema(
name="answer",
description="answer to the user's question",
),
ResponseSchema(
name="source",
description="source used to answer the user's question",
),
],
),
RegexParser(
regex=r"Confidence: (A|B|C), Explanation: (.*)",
output_keys=["confidence", "explanation"],
default_output_key="noConfidence",
),
]
combining_parser = CombiningOutputParser(parsers=parsers)
assert combining_parser.OutputType == dict[str, Any]
Domain
Subdomains
Source
Frequently Asked Questions
What does test_combining_output_parser_output_type() do?
test_combining_output_parser_output_type() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/output_parsers/test_combining_parser.py.
Where is test_combining_output_parser_output_type() defined?
test_combining_output_parser_output_type() is defined in libs/langchain/tests/unit_tests/output_parsers/test_combining_parser.py at line 55.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free