AGiXT icon indicating copy to clipboard operation
AGiXT copied to clipboard

Add Chain Support to Front End

Open Josh-XT opened this issue 1 year ago • 1 comments

Back end support has been added for Chains in the API. We will need the functionality for the chains added to the front end.

What are Chains?

Chains will allow you to assign an agent, or several agents to do a series of tasks and to set up workflows between different AI Providers/Models to handle different tasks.

Chains will have steps that are executed in order and results from each step will be available to other steps when results are available. This can be used for creating basically any workflow.

Instruction

Tell an Agent to do something in natural language and it will use its available commands to do so. Think something simple like "Send an engaging tweet about AI" which will tell it to generate the text for the tweet and execute the command to post it to Twitter if you have the integration set up and command enabled on that agent.

Command

Skip the AI call and choose from the commands that the AI has access to and take control of the steps. This is useful if you want to give your instruction agent no commands and say "Write an engaging tweet about AI" in the first step, then in the second step set it as a Command step to Send Tweet with the {STEP1} to get the result from Step 1.

Task

Give an Agent an objective. It will develop a list of tasks required to complete the objective and break them down to do them one by one using the available commands. While the Task agent is awesome, giving specific instructions and commands based on the outputs in chains often yields better results telling the AI to figure it out based on an objective. Keep it mind that it doesn't know everything you know, it will have to research.

Josh-XT avatar Apr 22 '23 17:04 Josh-XT