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,
· · ·
123
124
125▶def _parse_python_function_docstring(
126 function: Callable[..., Any],
127 annotations: dict[str, Any],
· · ·
126▶ function: Callable[..., Any],
127 annotations: dict[str, Any],
128 *,
· · ·
129 error_on_invalid_docstring: bool = False,
130) -> tuple[str, dict[str, str]]:
131▶ """Parse function and argument descriptions from a docstring.
132
133 Assumes the function docstring follows Google Python style guide.
+ 52 more matches in this file