"Stream" Option no longer available for Deepchat block

Created on 18 July 2025, 18 days ago

Problem/Motivation

It seems the decision to make all assistants into agents has affected the ability to use the 'Stream' mode in the Deepchat chatbot. The "Stream" field in the block mentions that

Stream the messages in real-time.

Even if I create an assistant with no Agents enabled and select it as the assistant in the Deepchat block, the "Stream" field is hidden and cannot be enabled.

If agents do not support streaming for now, then perhaps this option can be removed.

Steps to reproduce (required for bugs, but not feature requests)

1. Navigate to **/admin/config/ai/ai-assistant** and add a new assistant. In the agents section, do not enable any Assistants
2. Add a **AI DeepChat Chatbot** block to any page. Before adding an assistant, open the 'Advanced Settings' section and observe that the "Stream" option is present.
3. Select an assistant and check again in 'Advanced settings', the option is now gone.

Proposed resolution

Perhaps remove this option, if streaming is currently not compatible with agents. Or make it compatible :)

🐛 Bug report
Status

Needs work

Version

1.2

Component

AI Chatbot

Created by

🇵🇹Portugal bbruno Poland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @bbruno
  • 🇵🇹Portugal bbruno Poland
  • 🇵🇹Portugal bbruno Poland
  • Pipeline finished with Failed
    18 days ago
    Total: 218s
    #551238
  • Pipeline finished with Failed
    18 days ago
    #551244
  • 🇵🇹Portugal bbruno Poland

    It would be nice to get some maintainer information first, perhaps this is not the intended behaviour and removing is not what we want. Although it does seem to be the case for now :)

  • 🇩🇪Germany marcus_johansson

    So this is on purpose - the problem is that the sequence goes like this for none-streaming stuff for agents/assistants:

    1. You request something.
    2. A response comes with a full payload.
    3. The agents looks at this payload and check if it includes tool usage
    4. If it includes tools, it will trigger those tools
    5. A new loop starts with the tool results.
    6. If no tool was used or if an exit tool was used, an answer is given back

    For streaming the issue is that it works like this

    1. You request something.
    2. A response comes in empty
    3. The first chunk is sent out to the browser - could be text or beginning of the tool usage
    4. This continues until everything is sent out
    5. If a tool result is there, we need to assemble it and run a new loop - this happens after the agent is done with its processing meaning we have to invoke a loop via an event here or a callback.
    6. If no tool was used or if an exit tool was used, an answer is given back

    The part 3-4 is part of this issue is here Allow tool calling in streamed chat Active and 5 we have to fix via the agents.

    So it is completely on purpose - if we would allow tools streaming.

    If there is an assistant that wouldn't use any tools/rag, we could allow it, but it would anyway be fixed correctly (hopefully in 1.2.0).

  • 🇵🇹Portugal bbruno Poland

    Thank you for the information!

Production build 0.71.5 2024