test_json.py — langchain Source File
Architecture documentation for test_json.py, a python file in the langchain codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 38eb4405_8021_3601_cbd5_02f4527b5d6c["test_json.py"] cfe2bde5_180e_e3b0_df2b_55b3ebaca8e7["collections.abc"] 38eb4405_8021_3601_cbd5_02f4527b5d6c --> cfe2bde5_180e_e3b0_df2b_55b3ebaca8e7 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3["typing"] 38eb4405_8021_3601_cbd5_02f4527b5d6c --> 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3 d758344f_537f_649e_f467_b9d7442e86df["langchain_core.messages"] 38eb4405_8021_3601_cbd5_02f4527b5d6c --> d758344f_537f_649e_f467_b9d7442e86df 89a4ade4_215f_cae5_8190_9505303396df["langchain_core.output_parsers.openai_functions"] 38eb4405_8021_3601_cbd5_02f4527b5d6c --> 89a4ade4_215f_cae5_8190_9505303396df style 38eb4405_8021_3601_cbd5_02f4527b5d6c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from collections.abc import AsyncIterator, Iterator
from typing import Any
from langchain_core.messages import AIMessageChunk
from langchain_core.output_parsers.openai_functions import JsonOutputFunctionsParser
GOOD_JSON = """```json
{
"foo": "bar"
}
```"""
JSON_WITH_NEW_LINES = """
```json
{
"foo": "bar"
}
```
"""
JSON_WITH_NEW_LINES_INSIDE = """```json
{
"foo": "bar"
}
```"""
JSON_WITH_NEW_LINES_EVERYWHERE = """
```json
{
"foo": "bar"
}
```
"""
TICKS_WITH_NEW_LINES_EVERYWHERE = """
```
{
"foo": "bar"
}
```
"""
JSON_WITH_MARKDOWN_CODE_BLOCK = """```json
{
// ... (394 more lines)
Domain
Subdomains
Functions
Dependencies
- collections.abc
- langchain_core.messages
- langchain_core.output_parsers.openai_functions
- typing
Source
Frequently Asked Questions
What does test_json.py do?
test_json.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, Serialization subdomain.
What functions are defined in test_json.py?
test_json.py defines 4 function(s): test_partial_functions_json_output_parser, test_partial_functions_json_output_parser_async, test_partial_functions_json_output_parser_diff, test_partial_functions_json_output_parser_diff_async.
What does test_json.py depend on?
test_json.py imports 4 module(s): collections.abc, langchain_core.messages, langchain_core.output_parsers.openai_functions, typing.
Where is test_json.py in the architecture?
test_json.py is located at libs/langchain/tests/unit_tests/output_parsers/test_json.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/langchain/tests/unit_tests/output_parsers).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free