mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 23:29:21 +00:00
docs: fix trim_messages docstring (#27948)
This commit is contained in:
parent
14f1827953
commit
60123bef67
@ -590,7 +590,7 @@ def trim_messages(
|
||||
include_system: bool = False,
|
||||
text_splitter: Optional[Union[Callable[[str], list[str]], TextSplitter]] = None,
|
||||
) -> list[BaseMessage]:
|
||||
"""Trim messages to be below a token count.
|
||||
r"""Trim messages to be below a token count.
|
||||
|
||||
trim_messages can be used to reduce the size of a chat history to a specified token
|
||||
count or specified message count.
|
||||
|
Loading…
Reference in New Issue
Block a user