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,
· · ·
126def _get_filtered_args(
127 inferred_model: type[BaseModel],
128▶ func: Callable,
129 *,
130 filter_args: Sequence[str],
· · ·
131 include_injected: bool = True,
132) -> dict:
133▶ """Get filtered arguments from a function's signature.
134
135 Args:
· · ·
136▶ inferred_model: The Pydantic model inferred from the function.
137 func: The function to extract arguments from.
138 filter_args: Arguments to exclude from the result.
+ 57 more matches in this file