chore(langchain): Fix typos in core docstrings (#32928)

Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
This commit is contained in:
湛露先生
2025-09-15 09:33:06 +08:00
committed by GitHub
parent e6b5ff213a
commit 406ebc9141
3 changed files with 3 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ def get_buffer_string(
messages: Messages to be converted to strings.
human_prefix: The prefix to prepend to contents of HumanMessages.
Default is "Human".
ai_prefix: THe prefix to prepend to contents of AIMessages. Default is "AI".
ai_prefix: The prefix to prepend to contents of AIMessages. Default is "AI".
Returns:
A single string concatenation of all input messages.

View File

@@ -101,7 +101,7 @@ def parse_partial_json(s: str, *, strict: bool = False) -> Any:
# If we're still inside a string at the end of processing,
# we need to close the string.
if is_inside_string:
if escaped: # Remoe unterminated escape character
if escaped: # Remove unterminated escape character
new_chars.pop()
new_chars.append('"')

View File

@@ -220,7 +220,7 @@ def _build_model_kwargs(
values: dict[str, Any],
all_required_field_names: set[str],
) -> dict[str, Any]:
"""Build "model_kwargs" param from Pydanitc constructor values.
"""Build "model_kwargs" param from Pydantic constructor values.
Args:
values: All init args passed in by user.