66 matches across 1 files for func main path:libs/core/langchain_core/messages/utils.py lang:Python
snippet_mode: grep · sorted by relevance
libs/core/langchain_core/messages/utils.py PYTHON 66 matches · showing 5 view file →
1"""Module contains utility functions for working with messages.
2
3Some examples of what you can do with these functions include:
· · ·
3Some examples of what you can do with these functions include:
4
5* Convert messages to strings (serialization)
· · ·
16import math
17from collections.abc import Callable, Iterable, Sequence
18from functools import partial, wraps
19from typing import (
20 TYPE_CHECKING,
· · ·
43 is_data_content_block,
44)
45from langchain_core.messages.function import FunctionMessage, FunctionMessageChunk
46from langchain_core.messages.human import HumanMessage, HumanMessageChunk
47from langchain_core.messages.modifier import RemoveMessage
· · ·
89 | Annotated[ChatMessage, Tag(tag="chat")]
90 | Annotated[SystemMessage, Tag(tag="system")]
91 | Annotated[FunctionMessage, Tag(tag="function")]
92 | Annotated[ToolMessage, Tag(tag="tool")]
93 | Annotated[AIMessageChunk, Tag(tag="AIMessageChunk")]
+ 61 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.