langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Agent Actions UI Crash

Open mennovdmm opened this issue 1 year ago • 2 comments

Bug Description

Bug Description

Clicking the "Agent Actions" button in Agent component settings triggers an unexpected error dialog instead of showing actions panel.

Expected Behavior

Agent Actions panel should open showing available actions.

Reproduction

Steps to Reproduce

  1. Open any Agent component
  2. Click the "Agent Actions" button (settings icon)
  3. Error dialog appears: "Sorry, we found an unexpected error!"

Expected behavior

Environment

  • Langflow version: Latest (auto-updated 2025-05-18 01:00:50Z)
  • Docker deployment
  • Confirmed on self-hosted instance

Who can help?

No response

Operating System

Ubuntu 24.04 LTS (kernel 6.8.0-60-generic)

Langflow Version

1.4.1 (latest)

Python Version

3.12

Screenshot

Image Image

Flow File

Alexander Visser Content Intelligence System (4).json

mennovdmm avatar May 18 '25 06:05 mennovdmm

To resolve the unexpected error dialog when clicking the "Agent Actions" button in Langflow version 1.4.1, ensure that at least one tool is added to your agent configuration. Langflow requires agents to have tools configured, as indicated by the following code snippet:

if not self.tools:
    msg = "Tools are required to run the agent. Please add at least one tool."
    raise ValueError(msg)

Adding a tool to the agent should prevent the error from occurring [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar May 18 '25 06:05 dosubot[bot]

To resolve the unexpected error dialog when clicking the "Agent Actions" button in Langflow version 1.4.1, ensure that at least one tool is added to your agent configuration. Langflow requires agents to have tools configured, as indicated by the following code snippet:

if not self.tools:
    msg = "Tools are required to run the agent. Please add at least one tool."
    raise ValueError(msg)

Adding a tool to the agent should prevent the error from occurring [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Hi Dosu,thanks for the quick reply ... but I how do I access these fields when I have no tools attached? I have agents in tool mode for specific tasks, but not some Are not connected to any tools. I still need to name them and describe them. Before the update I could.

Attached a tool, name the agent, disconnect? Or use a LLm module in Tool mode? (If possible?). What is the recommended approach?

Cheers, Menno

mennovdmm avatar May 18 '25 09:05 mennovdmm