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