The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
fix: little lint thing (#34310)
Sydney Runkle6a2a149f8933
diff --git a/libs/langchain_v1/langchain/agents/middleware/summarization.py b/libs/langchain_v1/langchain/agents/middleware/summarization.pyindex fd99ef16de..c25f1b2334 100644--- a/libs/langchain_v1/langchain/agents/middleware/summarization.py+++ b/libs/langchain_v1/langchain/agents/middleware/summarization.py@@ -120,7 +120,7 @@ Example:def _get_approximate_token_counter(model: BaseChatModel) -> TokenCounter:"""Tune parameters of approximate token counter based on model type."""- if model._llm_type == "anthropic-chat":+ if model._llm_type == "anthropic-chat": # noqa: SLF001# 3.3 was estimated in an offline experiment, comparing with Claude's token-counting# API: https://platform.claude.com/docs/en/build-with-claude/token-countingreturn partial(count_tokens_approximately, chars_per_token=3.3)