LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsmiddlewareTruncateArgsSettings
Interface●Since v1.6

TruncateArgsSettings

Settings for truncating large tool arguments in old messages.

Copy
interface TruncateArgsSettings

Properties

property
keep: ContextSize

Context retention policy after summarization. Defaults to keeping last 20 messages.

property
maxLength: number

Maximum character length for tool arguments before truncation. Defaults to 2000.

property
trigger: ContextSize

Threshold(s) that trigger summarization. Can be a single ContextSize or an array for multiple triggers.

property
truncationText: string

Text to replace truncated arguments with. Defaults to "...(argument truncated)".

View source on GitHub