57 matches across 1 files for func main lang:Python lang:Python path:libs/core/langchain_core/tools/base.py lang:Python
snippet_mode: auto · sorted by relevance
libs/core/langchain_core/tools/base.py PYTHON 57 matches · showing 5 view file →
3from __future__ import annotations
4
5import functools
6import inspect
7import json
· · ·
55from langchain_core.runnables.config import set_config_context
56from langchain_core.runnables.utils import coro_with_context
57from langchain_core.utils.function_calling import (
58 _parse_google_docstring,
59 _py_38_safe_origin,
· · ·
123
124
125def _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
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.