Description
Bug Description
The default current date tool in Langflow agents automatically injects all enums (e.g. country codes, timezones) into the system prompt. This leads to unnecessary token consumption of around 4600 tokens per run. When an external current date component is also connected, the token usage increases dramatically to around 9600 tokens. This bloats the system prompt, increases cost, and degrades agent decision quality.
Reproduction
1️⃣ Create an agent with any basic flow in Langflow.
2️⃣ Observe that the agent prompt includes all enum values and timezone data from the default current date tool.
3️⃣ Add an explicit external current date component to the flow.
4️⃣ Token usage in the system prompt significantly increases, leading to inefficient processing.
Expected behavior
➡ The current date tool or component should only inject essential data (such as the actual current date and selected timezone).
➡ Full enum and timezone lists should not be part of the prompt by default.
➡ Token consumption should be optimized to avoid unnecessary overhead.
Who can help?
No response
Operating System
Macos Sequoia 15.4.1
Langflow Version
1.4.3
Python Version
3.11
Screenshot
As you can see on the screen, get_current automatically generates 4.5k tokens without doing anything.
When I add the external history tool it looks like this.
Flow File
No response