test_combining_dict_result() — langchain Function Reference
Architecture documentation for the test_combining_dict_result() function in test_combining_parser.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 00a2110f_ab1c_5723_756b_a8cbf9e70b83["test_combining_dict_result()"] 069727be_4317_14b8_178c_1dafb0814379["test_combining_parser.py"] 00a2110f_ab1c_5723_756b_a8cbf9e70b83 -->|defined in| 069727be_4317_14b8_178c_1dafb0814379 style 00a2110f_ab1c_5723_756b_a8cbf9e70b83 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/output_parsers/test_combining_parser.py lines 29–52
def test_combining_dict_result() -> None:
"""Test combining result."""
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)
result_dict = combining_parser.parse(DEF_README)
assert result_dict == DEF_EXPECTED_RESULT
Domain
Subdomains
Source
Frequently Asked Questions
What does test_combining_dict_result() do?
test_combining_dict_result() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/output_parsers/test_combining_parser.py.
Where is test_combining_dict_result() defined?
test_combining_dict_result() is defined in libs/langchain/tests/unit_tests/output_parsers/test_combining_parser.py at line 29.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free