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
47.02k stars 6.67k forks source link

Autonomous Agent #6732

Closed djav1985 closed 3 weeks ago

djav1985 commented 2 months ago

Self Checks

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

For certain tasks workflows aren't particularly suited. But an autonomous agent would be.

2. Additional context or comments

I think it'd be great if for the agents there was an option under the features like where citations and text-to-speech etc are. For autonomous agent. Should be able to set the maximum autonomous runs. I think the easiest way to implement it would be to have with the options turned on it append instructions the system prompt telling the AI to write a prompt for its next action to complete its assigned task enclosed in [@!] PROMPT [!@]. And then have the system when it sees those tags in the AI's response to extract content and push it through as if it was the user sending it. This is basically allow Dify to become super GPT and all those other autonomous agent programs but also more powerful. I think this would be a feature that would definitely be useful and powerful. But very simple.

3. Can you help us with this feature?

djav1985 commented 2 months ago

Also as I think of it. Doing it this way hasn't had a benefits that if the front end is pulling the prompt and then pushing it through like the user it should be simpler that way to implement and it means that you have to have it open for it to be running so people won't accidentally rack up of massive bill lol