dify icon indicating copy to clipboard operation
dify copied to clipboard

Support agent node in a workflow

Open yc3231996 opened this issue 1 year ago • 35 comments

Self Checks

  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [X] Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

in current workflow design, we can add LLM or tools as nodes, but can't configure LLM node to call tools just like agents do.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • [ ] I am interested in contributing to this feature.

yc3231996 avatar Aug 21 '24 02:08 yc3231996

I need this too. The main purpose is to divide the process in two parts: Q&A guidance and result generation. Their prompts are the same, but the latter only outputs json_object

hllshiro avatar Aug 23 '24 01:08 hllshiro

It seems that it can be implemented using node HTTP Request. The API interface will be provided after the agent is released.

hllshiro avatar Aug 23 '24 05:08 hllshiro

it is more like a multi-agent requirement. I.E, in a workflow, an LLM node with ability of function calling is basically an agent. It is the same thing to support choosing an agent as a node in a workflow. It would be helpful to have multi agents work together, even simply in a sequential mode.
I am not running into complex situation that has to have a commander or manager agent to coordinate worker agents (like the hierarchical mode in CrewAI), but chain agents one after another is what I am trying to achieve.

yc3231996 avatar Aug 23 '24 12:08 yc3231996

It seems that it can be implemented using node HTTP Request. The API interface will be provided after the agent is released.

do you mean call another agent via HTTP request in workflow? it is smart, would be good if have this as a built-in feature.

yc3231996 avatar Aug 23 '24 12:08 yc3231996

do you mean call another agent via HTTP request in workflow? it is smart, would be good if have this as a built-in feature.

Yes, since dify doesn't provide an agent node at the moment, can only use this method to finish my job. Of course, I also agree that would be good if have this as a built-in feature

hllshiro avatar Aug 26 '24 02:08 hllshiro

+1

kenneth-bro avatar Aug 26 '24 05:08 kenneth-bro

Sounds like "Agent as Tool", sounds good.

alterxyz avatar Aug 27 '24 00:08 alterxyz

+1

softgoto avatar Aug 27 '24 03:08 softgoto

+1, We need "ReAct agent tool" that other agents can calling it to do something. Any agent can called by any agents.

wltj920 avatar Aug 29 '24 03:08 wltj920

+1

sapipoZZZ avatar Sep 10 '24 03:09 sapipoZZZ

+1

GuoNingNing avatar Sep 13 '24 02:09 GuoNingNing

@crazywoola Are there any plans to add this feature? Can't use Agent in workflow by http request, agent http Api not support blocking mode

EcoleKeine avatar Sep 13 '24 06:09 EcoleKeine

.

aijak69 avatar Sep 13 '24 08:09 aijak69

@crazywoola Are there any plans to add this feature? Can't use Agent in workflow by http request, agent http Api not support blocking mode

You can use code block to parse the output for now

aijak69 avatar Sep 16 '24 15:09 aijak69

+1, just wanted to open a feature request for this as it seems logical that it should be possible to use agents in workflows. This way agents would be like an LLM + tool combination repository and workflows could be used to put these parts together, which is especially useful if someone re-uses the same sets of LLM + tool combinations (ie. "agents") within various workflows.

infinitnet avatar Sep 22 '24 10:09 infinitnet

+1,Additionally, I hope that the Agent nodes can support the 'Add Message' feature (customizable multi-turn USER and ASSISTANT dialogues), to achieve a few-shot effect.

neotize avatar Sep 24 '24 02:09 neotize

+1

MakabakaHuba avatar Oct 10 '24 09:10 MakabakaHuba

+1

chou852ishare avatar Oct 14 '24 03:10 chou852ishare

+1

bejay2vwo avatar Oct 21 '24 10:10 bejay2vwo

I really need it, it's so important for a knowledge chat workflow app

dadastory avatar Oct 22 '24 04:10 dadastory

+1

OraCatQAQ avatar Oct 28 '24 07:10 OraCatQAQ

+1

cloover avatar Nov 01 '24 00:11 cloover

这是来自QQ邮箱的自动回复邮件。已收到~

LNZ001 avatar Nov 01 '24 00:11 LNZ001

+1

hoomjac avatar Nov 06 '24 09:11 hoomjac

+1

lins403 avatar Nov 06 '24 09:11 lins403

+1

shuxinhuang avatar Nov 06 '24 09:11 shuxinhuang

+1

kinglisky avatar Nov 06 '24 09:11 kinglisky

+1

jinxianwei avatar Nov 07 '24 01:11 jinxianwei

+1

eightHundreds avatar Nov 21 '24 11:11 eightHundreds

这是来自QQ邮箱的自动回复邮件。已收到~

LNZ001 avatar Nov 21 '24 11:11 LNZ001