Systems and methods for federated task performance controlled by agents
Systems and methods for providing federated task performance controlled by agents are disclosed. Exemplary implementations may: receive user input representing a user prompt that entails a set of operations; generate a plan for executing the set of operations, including a first and second operation; provide a first prompt to a first client agent to execute the first operation; provide a second prompt to a second client agent to execute the second operation; generate and present a reply to the user prompt based on replies from the first and second client agents, and/or perform other steps.
1 . A system configured to provide federated task performance controlled by agents, the system comprising:
one or more hardware processors configured by machine readable instructions to:
receive, from a user, user input representing a user-generated prompt, wherein the user-generated prompt entails a set of operations, wherein the user is identified by identity information;
generate a system-generated prompt for one or more machine learning models to create a plan for executing the set of operations;
provide the system-generated prompt to the one or more machine learning models;
obtain a particular reply from the one or more machine learning models, wherein the particular reply represents the plan for executing the set of operations, wherein the plan includes a first operation to be executed by a first client agent and a second operation to be executed by a second client agent, wherein execution of the first operation requires access to a first set of electronic files;
generate a first plan-specific prompt for the first client agent to execute the first operation;
provide the first plan-specific prompt to the first client agent to execute the first operation, wherein the first plan-specific prompt to the first client agent is accompanied by the identity information, and wherein the first client agent uses role-based access control (RBAC) to verify the access to the first set of electronic files based on the identity information;
obtain a first plan-specific reply from the first client agent in response to the first plan-specific prompt;
generate a second plan-specific prompt for the second client agent to execute the second operation;
provide the second plan-specific prompt to the second client agent to execute the second operation;
obtain a second plan-specific reply from the second client agent in response to the second plan-specific prompt;
generate a reply to the user-generated prompt, wherein generation of the reply is based on the first plan-specific reply and the second plan-specific reply, and wherein the reply is based on execution of the plan; and
effectuate a presentation of the reply to the user, through a user interface;
wherein the first client agent is configured to:
(i) split the first operation into a first sub-operation and a second sub-operation,
(ii) provide a first sub-prompt to a first sub-client agent of the first client agent to execute the first sub-operation, wherein the first sub-prompt to the first sub-client agent is accompanied by the identity information, and wherein the first sub-client agent uses role-based access control (RBAC) to verify the access to the first set of electronic files based on the identity information,
(iii) provide a second sub-prompt to a second sub-client agent of the first client agent to execute the second sub-operation, wherein the second sub-prompt to the second sub-client agent is accompanied by the identity information, and wherein the second sub-client agent uses role-based access control (RBAC) to verify the access to the first set of electronic files based on the identity information,
(iv) obtain a first sub-reply from the first sub-client agent and a second sub-reply from the second sub-client agent, wherein the first plan-specific reply is based on the first sub-reply and the second sub-reply,
wherein the second client agent is configured to:
(i) split the second operation into a third sub-operation and a fourth sub-operation,
(ii) provide a third sub-prompt to a third sub-client agent of the second client agent to execute the third sub-operation,
(iii) provide a fourth sub-prompt to a fourth sub-client agent of the second client agent to execute the fourth sub-operation,
(iv) obtain a third sub-reply from the third sub-client agent and a fourth sub-reply from the fourth sub-client agent, wherein the second plan-specific reply is based on the third sub-reply and the fourth sub-reply,
wherein the first client agent, the second client agent, the first sub-client agent, the second sub-client agent, the third sub-client agent, and the fourth sub-client agent form a hierarchy of client agents in which the first client agent and the second client agent are higher level client agents and in which the first sub-client agent, the second sub-client agent, the third sub-client agent, and the fourth sub-client agent are lower level client agents below the higher level client agents.
2 . The system of claim 1 , wherein the second operation is associated with a second set of electronic files.
3 . The system of claim 2 , wherein execution of the second operation requires access to the second set of electronic files.
4 . The system of claim 3 , wherein the identity information is passed down to the second client agent to determine whether the user has access to the second set of electronic files.
5 . The system of claim 1 , wherein a first vector database is configured to store a first set of vector embeddings representing content within the first set of electronic files, wherein the one or more hardware processors are further configured to:
select a first subset of the first set of vector embeddings based on the first plan-specific prompt; and
provide the first subset of the first set of vector embeddings to the first client agent as context for the first plan-specific prompt.
6 . The system of claim 2 , wherein the second set of electronic files includes a database configured to be accessed through Structured Query Language (SQL) database instructions, wherein the second client agent accesses the database through the SQL database instructions, and wherein execution of the second operation includes modifying contents of the database through one or more of the SQL database instructions.
7 . The system of claim 1 , wherein execution of the set of operations includes reporting information regarding the execution of the set of operations via email.
8 . The system of claim 1 , wherein the one or more hardware processors are further configured to:
verify whether the reply is responsive to the user-generated prompt.
9 . The system of claim 1 , wherein the plan is a step-by-step plan.
10 . A method of providing federated task performance controlled by agents, the method being implemented in a computer system that includes one or more hardware processors, the method comprising:
receiving, from a user, user input representing a user-generated prompt, wherein the user-generated prompt entails a set of operations, wherein the user is identified by identity information;
generating a system-generated prompt for one or more machine learning models to create a plan for executing the set of operations;
providing the system-generated prompt to the one or more machine learning models;
obtaining a particular reply from the one or more machine learning models, wherein the particular reply represents the plan for executing the set of operations, wherein the plan includes a first operation to be executed by a first client agent and a second operation to be executed by a second client agent, wherein execution of the first operation requires access to a first set of electronic files;
generating a first plan-specific prompt for the first client agent to execute the first operation;
providing the first plan-specific prompt to the first client agent to execute the first operation, wherein the first plan-specific prompt to the first client agent is accompanied by the identity information, and wherein the first client agent uses role-based access control (RBAC) to verify the access to the first set of electronic files based on the identity information;
obtaining a first plan-specific reply from the first client agent in response to the first plan-specific prompt;
generating a second plan-specific prompt for the second client agent to execute the second operation;
providing the second plan-specific prompt to the second client agent to execute the second operation;
obtaining a second plan-specific reply from the second client agent in response to the second plan-specific prompt;
generating a reply to the user-generated prompt, wherein generation of the reply is based on the first plan-specific reply and the second plan-specific reply, and wherein the reply is based on execution of the plan; and
effectuating a presentation of the reply to the user, through a user interface
wherein the first client agent:
(i) splits the first operation into a first sub-operation and a second sub-operation,
(ii) provides a first sub-prompt to a first sub-client agent of the first client agent to execute the first sub-operation, wherein the first sub-prompt to the first sub-client agent is accompanied by the identity information, and wherein the first sub-client agent uses role-based access control (RBAC) to verify the access to the first set of electronic files based on the identity information,
(iii) provides a second sub-prompt to a second sub-client agent of the first client agent to execute the second sub-operation, wherein the second sub-prompt to the second sub-client agent is accompanied by the identity information, and wherein the second sub-client agent uses role-based access control (RBAC) to verify the access to the first set of electronic files based on the identity information,
(iv) obtains a first sub-reply from the first sub-client agent and a second sub-reply from the second sub-client agent, wherein the first plan-specific reply is based on the first sub-reply and the second sub-reply,
wherein the second client agent:
(i) splits the second operation into a third sub-operation and a fourth sub-operation,
(ii) provides a third sub-prompt to a third sub-client agent of the second client agent to execute the third sub-operation,
(iii) provides a fourth sub-prompt to a fourth sub-client agent of the second client agent to execute the fourth sub-operation,
(iv) obtains a third sub-reply from the third sub-client agent and a fourth sub-reply from the fourth sub-client agent, wherein the second plan-specific reply is based on the third sub-reply and the fourth sub-reply,
wherein the first client agent, the second client agent, the first sub-client agent, the second sub-client agent, the third sub-client agent, and the fourth sub-client agent form a hierarchy of client agents in which the first client agent and the second client agent are higher level client agents and in which the first sub-client agent, the second sub-client agent, the third sub-client agent, and the fourth sub-client agent are lower level client agents below the higher level client agents.
11 . The method of claim 10 , wherein the second operation is associated with a second set of electronic files.
12 . The method of claim 11 , wherein execution of the second operation requires access to the second set of electronic files.
13 . The method of claim 12 , wherein the identity information is passed down to the second client agent to determine whether the user has access to the second set of electronic files.
14 . The method of claim 10 , wherein a first vector database stores a first set of vector embeddings representing content within the first set of electronic files, the method further comprising:
selecting a first subset of the first set of vector embeddings based on the first plan-specific prompt; and
providing the first subset of the first set of vector embeddings to the first client agent as context for the first plan-specific prompt.
15 . The method of claim 11 , wherein the second set of electronic files includes a database that is accessible through Structured Query Language (SQL) database instructions, wherein the second client agent accesses the database through the SQL database instructions, and wherein execution of the second operation includes modifying contents of the database through one or more of the SQL database instructions.
16 . The method of claim 10 , wherein execution of the set of operations includes reporting information regarding the execution of the set of operations via email.
17 . The method of claim 10 , further comprising:
verifying whether the reply is responsive to the user-generated prompt.
18 . The method of claim 10 , wherein the plan is a step-by-step plan.