Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/core/langchain_core/output_parsers/pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def parse_result(
The parsed Pydantic object.
"""
try:
json_object = super().parse_result(result)
json_object = super().parse_result(result, partial=partial)
return self._parse_obj(json_object)
except OutputParserException:
if partial:
Expand Down
6 changes: 3 additions & 3 deletions libs/core/langchain_core/output_parsers/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, parser: Literal["defusedxml", "xml"]) -> None:
if not _HAS_DEFUSEDXML:
msg = (
"defusedxml is not installed. "
"Please install it to use the defusedxml parser."
"Please install it to use the defusedxml parser. "
"You can install it with `pip install defusedxml` "
)
raise ImportError(msg)
Expand Down Expand Up @@ -224,8 +224,8 @@ def parse(self, text: str) -> dict[str, str | list[Any]]:
if not _HAS_DEFUSEDXML:
msg = (
"defusedxml is not installed. "
"Please install it to use the defusedxml parser."
"You can install it with `pip install defusedxml`"
"Please install it to use the defusedxml parser. "
"You can install it with `pip install defusedxml`. "
"See https://github.com/tiran/defusedxml for more details"
)
raise ImportError(msg)
Expand Down