1,954 matches across 25 files for func main lang:Python lang:Python
snippet_mode: summary · sorted by relevance
libs/partners/ollama/langchain_ollama/chat_models.py PYTHON 32 matches · showing 1 view file →
81from langchain_core.utils.function_calling import (
+ 31 more matches in this file
libs/core/langchain_core/messages/utils.py PYTHON 67 matches · showing 1 view file →
1"""Module contains utility functions for working with messages.
+ 66 more matches in this file
libs/core/langchain_core/language_models/chat_models.py PYTHON 17 matches · showing 1 view file →
12from functools import cached_property
+ 16 more matches in this file
libs/partners/openai/langchain_openai/chat_models/base.py PYTHON 111 matches · showing 1 view file →
32from functools import partial
+ 110 more matches in this file
libs/text-splitters/langchain_text_splitters/character.py PYTHON 26 matches · showing 1 view file →
132 if self._length_function(s) < self._chunk_size:
+ 25 more matches in this file
libs/partners/anthropic/langchain_anthropic/chat_models.py PYTHON 22 matches · showing 1 view file →
12from functools import cached_property
+ 21 more matches in this file
libs/partners/perplexity/langchain_perplexity/chat_models.py PYTHON 51 matches · showing 1 view file →
32 FunctionMessageChunk,
+ 50 more matches in this file
libs/core/langchain_core/_api/deprecation.py PYTHON 27 matches · showing 1 view file →
1"""Helper functions for deprecating parts of the LangChain API.
+ 26 more matches in this file
libs/core/langchain_core/utils/mustache.py PYTHON 4 matches · showing 1 view file →
37# Helper functions
+ 3 more matches in this file
libs/langchain_v1/langchain/agents/middleware/summarization.py PYTHON 5 matches · showing 1 view file →
6from functools import partial
+ 4 more matches in this file
libs/langchain_v1/langchain/agents/middleware/types.py PYTHON 170 matches · showing 1 view file →
8from inspect import iscoroutinefunction
+ 169 more matches in this file
libs/langchain/langchain_classic/chat_models/base.py PYTHON 8 matches · showing 1 view file →
77 "Maintained in `langchain`; `langchain-classic` retains this entry point "
+ 7 more matches in this file
libs/standard-tests/langchain_tests/integration_tests/chat_models.py PYTHON 49 matches · showing 1 view file →
31from langchain_core.utils.function_calling import (
+ 48 more matches in this file
libs/langchain_v1/langchain/agents/middleware/pii.py PYTHON 7 matches · showing 1 view file →
5from functools import partial
+ 6 more matches in this file
libs/core/langchain_core/callbacks/manager.py PYTHON 18 matches · showing 1 view file →
7import functools
+ 17 more matches in this file
libs/core/langchain_core/runnables/base.py PYTHON 202 matches · showing 1 view file →
8import functools
+ 201 more matches in this file
libs/core/langchain_core/_security/_policy.py PYTHON 3 matches · showing 1 view file →
82 "localhost.localdomain",
+ 2 more matches in this file
libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py PYTHON 45 matches · showing 1 view file →
37 FunctionMessage,
+ 44 more matches in this file
libs/core/langchain_core/indexing/base.py PYTHON 4 matches · showing 1 view file →
39 The main benefit of this abstraction is that it works across many vectorstores.
+ 3 more matches in this file
libs/core/langchain_core/tools/base.py PYTHON 62 matches · showing 1 view file →
5import functools
+ 61 more matches in this file
libs/partners/fireworks/langchain_fireworks/chat_models.py PYTHON 53 matches · showing 1 view file →
51 FunctionMessage,
+ 52 more matches in this file
libs/core/langchain_core/language_models/_utils.py PYTHON 8 matches · showing 1 view file →
21 Removes fields like tools, functions, messages, response_format that can be large.
+ 7 more matches in this file
libs/partners/qdrant/langchain_qdrant/vectorstores.py PYTHON 69 matches · showing 1 view file →
3import functools
+ 68 more matches in this file
libs/core/langchain_core/utils/json.py PYTHON 3 matches · showing 1 view file →
37 newlines, tabs or quotes. This function replaces those characters with their escaped
+ 2 more matches in this file
libs/text-splitters/langchain_text_splitters/html.py PYTHON 12 matches · showing 1 view file →
106 headers_to_split_on = [("h1", "Main Topic"), ("h2", "Sub Topic")]
+ 11 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.