The invention discloses a multi-agent parallel planning and execution-oriented dynamic task cooperation method and
system. The method comprises the following steps of: constructing agents containing planning threads and execution threads which are independent and run in parallel, configuring a callable large
language model and a readable and writable centralized memory
system for the planning threads, and configuring a callable tool
library for the execution threads; a planning thread and an execution thread of each agent establish an exclusive
communication link, and a centralized memory
system configures a file lock mechanism; the planning thread obtains latest environment information, team communication logs and execution history from the centralized memory system at each
time step, calls a large
language model to generate a formatted tool
library API instruction as a next plan, independently judges whether an interrupt mechanism is triggered or not by the large
language model, generates an interrupt
signal if the interrupt mechanism is triggered, and sends the interrupt
signal to the centralized memory system; writing the tool
library API instruction into an action buffer area; the execution thread continuously obtains the latest tool library API instruction from the action buffer area and calls a tool library to execute a corresponding task; if an interrupt
signal sent by the planning thread is received through the exclusive
communication link, the current task is terminated immediately, and after occupied resources are released, the latest instruction of the buffer area is loaded for execution; and the centralized memory system updates contents at each
time step, including an environment observation result returned by the tool library, a communication log between the intelligent agents and a task execution history of each
intelligent agent, for all planning threads to access.