54 matches across 1 files for error path:libs/core/langchain_core/messages/utils.py lang:Python lang:Python lang:Python
snippet_mode: grep · sorted by relevance
libs/core/langchain_core/messages/utils.py PYTHON 54 matches · showing 5 view file →
33from pydantic import Discriminator, Field, Tag
34
35from langchain_core.exceptions import ErrorCode, create_message
36from langchain_core.messages.ai import AIMessage, AIMessageChunk
37from langchain_core.messages.base import BaseMessage, BaseMessageChunk
· · ·
60
61 _HAS_LANGCHAIN_TEXT_SPLITTERS = True
62except ImportError:
63 _HAS_LANGCHAIN_TEXT_SPLITTERS = False
64
· · ·
77 f"with a 'type' attribute. Instead got type {type(v)}."
78 )
79 raise TypeError(msg)
80 if not isinstance(result, str):
81 msg = f"Expected 'type' to be a str, got {type(result).__name__}"
· · ·
82 raise TypeError(msg)
83 return result
84
· · ·
267
268 Raises:
269 ValueError: If an unsupported message type is encountered.
270 """
271 if isinstance(m, HumanMessage):
+ 49 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.