langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
45.3k stars 6.36k forks source link

Support agent node in a workflow #7470

Open yc3231996 opened 3 weeks ago

yc3231996 commented 3 weeks ago

Self Checks

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?

hllshiro commented 3 weeks ago

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 commented 3 weeks ago

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

yc3231996 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

+1

alterxyz commented 2 weeks ago

Sounds like "Agent as Tool", sounds good.

softgoto commented 2 weeks ago

+1

wltj920 commented 2 weeks ago

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

sapipoZZZ commented 3 days ago

+1

GuoNingNing commented 15 hours ago

+1

EcoleKeine commented 12 hours ago

@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 commented 10 hours ago

.