3from __future__ import annotations
4
5▶import functools
6import inspect
7import json
· · ·
55from langchain_core.runnables.config import set_config_context
56from langchain_core.runnables.utils import coro_with_context
57▶from langchain_core.utils.function_calling import (
58 _parse_google_docstring,
59 _py_38_safe_origin,
· · ·
124
125
126▶def _parse_python_function_docstring(
127 function: Callable[..., Any],
128 annotations: dict[str, Any],
· · ·
127▶ function: Callable[..., Any],
128 annotations: dict[str, Any],
129 *,
· · ·
130 error_on_invalid_docstring: bool = False,
131) -> tuple[str, dict[str, str]]:
132▶ """Parse function and argument descriptions from a docstring.
133
134 Assumes the function docstring follows Google Python style guide.
+ 52 more matches in this file