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