Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support agent node in a workflow #7470

Open
4 of 5 tasks
yc3231996 opened this issue Aug 21, 2024 · 30 comments
Open
4 of 5 tasks

Support agent node in a workflow #7470

yc3231996 opened this issue Aug 21, 2024 · 30 comments
Labels
💪 enhancement New feature or request 🌊 feat:workflow Workflow related stuff.

Comments

@yc3231996
Copy link

yc3231996 commented Aug 21, 2024

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • 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.
@dosubot dosubot bot added 🌊 feat:workflow Workflow related stuff. 💪 enhancement New feature or request labels Aug 21, 2024
@hllshiro
Copy link

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
Copy link

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

@yc3231996
Copy link
Author

yc3231996 commented Aug 23, 2024

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
Copy link
Author

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.

@hllshiro
Copy link

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

@kenneth-bro
Copy link

+1

@alterxyz
Copy link
Collaborator

Sounds like "Agent as Tool", sounds good.

@softgoto
Copy link

+1

@wltj920
Copy link

wltj920 commented Aug 29, 2024

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

@sapipoZZZ
Copy link

+1

1 similar comment
@GuoNingNing
Copy link
Contributor

+1

@EcoleKeine
Copy link

@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

@aijak69
Copy link

aijak69 commented Sep 13, 2024

.

@aijak69
Copy link

aijak69 commented Sep 16, 2024

@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

@infinitnet
Copy link
Contributor

+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.

@neotize
Copy link

neotize commented Sep 24, 2024

+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.

@MengXiangyu0624
Copy link

+1

2 similar comments
@chou852ishare
Copy link

+1

@bejay2vwo
Copy link

bejay2vwo commented Oct 21, 2024

+1

@dadastory
Copy link

dadastory commented Oct 22, 2024

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

@OraCatQAQ
Copy link

+1

1 similar comment
@cloover
Copy link

cloover commented Nov 1, 2024

+1

@LNZ001
Copy link

LNZ001 commented Nov 1, 2024 via email

@hoomjac
Copy link

hoomjac commented Nov 6, 2024

+1

2 similar comments
@lins403
Copy link

lins403 commented Nov 6, 2024

+1

@shuxinhuang
Copy link

+1

@kinglisky
Copy link

+1

2 similar comments
@jinxianwei
Copy link

+1

@eightHundreds
Copy link

+1

@LNZ001
Copy link

LNZ001 commented Nov 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request 🌊 feat:workflow Workflow related stuff.
Projects
None yet
Development

No branches or pull requests