_parser_exception() — langchain Function Reference
Architecture documentation for the _parser_exception() function in pydantic.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD be3b196e_4a79_f447_3f29_9d15eee5575b["_parser_exception()"] 570792b6_910c_5259_8419_5183ac1b1409["PydanticOutputParser"] be3b196e_4a79_f447_3f29_9d15eee5575b -->|defined in| 570792b6_910c_5259_8419_5183ac1b1409 fd96632b_d191_0274_eb13_17083eb19c1d["_parse_obj()"] fd96632b_d191_0274_eb13_17083eb19c1d -->|calls| be3b196e_4a79_f447_3f29_9d15eee5575b be3b196e_4a79_f447_3f29_9d15eee5575b["_parser_exception()"] be3b196e_4a79_f447_3f29_9d15eee5575b -->|calls| be3b196e_4a79_f447_3f29_9d15eee5575b be3b196e_4a79_f447_3f29_9d15eee5575b["_parser_exception()"] be3b196e_4a79_f447_3f29_9d15eee5575b -->|calls| be3b196e_4a79_f447_3f29_9d15eee5575b style be3b196e_4a79_f447_3f29_9d15eee5575b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/output_parsers/pydantic.py lines 37–43
def _parser_exception(
self, e: Exception, json_object: dict
) -> OutputParserException:
json_string = json.dumps(json_object, ensure_ascii=False)
name = self.pydantic_object.__name__
msg = f"Failed to parse {name} from completion {json_string}. Got: {e}"
return OutputParserException(msg, llm_output=json_string)
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does _parser_exception() do?
_parser_exception() is a function in the langchain codebase, defined in libs/core/langchain_core/output_parsers/pydantic.py.
Where is _parser_exception() defined?
_parser_exception() is defined in libs/core/langchain_core/output_parsers/pydantic.py at line 37.
What does _parser_exception() call?
_parser_exception() calls 1 function(s): _parser_exception.
What calls _parser_exception()?
_parser_exception() is called by 2 function(s): _parse_obj, _parser_exception.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free