Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Agentflow v2 Agentnode conversation summary buffer with numTokens Error in Agent node: llmNodeInstance.getNumTokens is not a function

Open Hbmr9000 opened this issue 6 months ago • 5 comments

Describe the bug when selecting to conversation summary buffer, the error appears when excecuting the agentflow v2

Screenshots Image

Image

Setup

  • docker
  • Flowise Version 3.0.0
  • edge
  • LLM is AzureChatOpenAI GPT4.1

Hbmr9000 avatar Jun 12 '25 19:06 Hbmr9000

Using Azure GPT 4o-mini, looks fine:

Image

Image

can you try different models?

HenryHengZJ avatar Jun 20 '25 09:06 HenryHengZJ

@HenryHengZJ When the Agent has tools then Conversation Summary Buffer is throwing this error

LiquidGunay avatar Jul 04 '25 05:07 LiquidGunay

I have the same issue - agent using local Ollama model and a Postgres KB. If I use the Conversation Memory Buffer option then I get Error in Agent node: llmNodeInstance.getNumTokens is not a function returned from the agent node. If I remove the Knowledge (Document Stores) tool then it works.

  • Windows 10.0.19045 Build 19045
  • Ollama 0.10.1 (Ollama_App.exe)
  • Flowise 3.0.4 (npm install)
  • AgentFlows V2
  • Docker Postgres ankane/pgvector

github-pmj avatar Aug 03 '25 12:08 github-pmj

I'm also seeing this exact issue. OpenAI Agent node with a CustomMCP tool attached.

  • Flowise Version: 3.0.5

softwarebygabe avatar Aug 19 '25 15:08 softwarebygabe

I'm also experiencing the same issue with Agent Node with a custom HTTP tool attached

jmcmiguel avatar Nov 03 '25 08:11 jmcmiguel