Multi-software cooperative execution method and system, electronic device and storage medium

By recognizing natural language requests through a unified session interface and structured output model, generating script files and driving software execution, the problem of multi-software collaborative calling and result feedback in motor simulation design is solved, achieving automated closed-loop and stability.

CN123158718APending Publication Date: 2026-11-24FAW QI NEW POWER (CHANGCHUN) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611288450.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In the process of motor simulation design, there are problems such as difficulty in implementing natural language tasks, complexity of multi-software collaborative calls, isolation between the internal script environment and the external service environment, instability of parameter completion process, and difficulty in uniformly transmitting simulation results.

Method used

The system receives natural language simulation requests from users through a unified session interface, performs intent recognition using a structured output model, calls a script generator to generate script files, and executes commands through the software command line to drive the target software, thereby achieving unified and structured feedback of simulation results.

Benefits of technology

It achieves an automated closed loop from natural language requests to multi-software simulation execution and result feedback, reducing the cost of maintaining repetitive scripts, lowering the integration difficulty, and ensuring the stability and traceability of the simulation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158718A_ABST
    Figure CN123158718A_ABST
Patent Text Reader

Abstract

This invention discloses a multi-software collaborative execution method, system, electronic device, and storage medium, relating to the field of vehicle motor simulation technology. The method includes: receiving a natural language simulation request input by a user through a unified session interface; using a structured output model to identify the user's intent in the request, determining whether a tool needs to be invoked and the name of the target tool; reading the structured parameters of the target tool based on its name and extracting key fields from the structured parameters; the tool function invoking a script generator or selecting a fixed script based on the structured parameters, and writing the key fields into a script file; constructing software command lines or macro execution instructions based on the script file; and after script execution, reading the result file or error file and encapsulating it into a unified structured message. The multi-software collaborative execution method, system, electronic device, and storage medium provided by this invention effectively solve the problems of difficulty in implementing natural language tasks, complexity of multi-software collaborative invocation, isolation between the internal script environment and the external service environment, instability of parameter completion processes, and difficulty in uniformly transmitting simulation results during motor simulation design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle motor simulation technology, and in particular to multi-software collaborative execution methods, systems, electronic devices, and storage media. Background Technology

[0002] In the design process of electric drive systems and motors for new energy vehicles, engineers typically need to use multiple specialized software programs simultaneously to complete tasks such as geometric modeling, parameter modification, electromagnetic simulation, structural mechanics analysis, thermal analysis, result export, and scheme comparison. For example, geometric models can be maintained by SOLIDWORKS, electromagnetic or motor-specific analyses can be completed by JMAG Designer, Ansys Maxwell, or RM modules, and structural or multiphysics solutions can be completed by Ansys Workbench / Mechanical. Different software programs have different file formats, script interfaces, command-line calling methods, internal function names, parameter naming rules, and result output formats, making cross-software collaboration complex.

[0003] In existing technologies, motor simulation tasks often rely on engineers manually breaking down the task and operating the software. Engineers typically need to first understand the design intent, then manually open the project file, modify geometric or operating parameters, regenerate the mesh, call the solver, export the result images or data, and finally manually organize the results. While this method can complete a single simulation, it suffers from problems such as repetitive work, unstable processes, difficulty in tracing context, and insufficient reproducibility in scenarios involving batch operating conditions, repeated parameter adjustments, multiple software linkages, and result archiving.

[0004] In recent years, large language models and intelligent agent technologies have been used for natural language understanding, tool invocation, and process automation. However, in engineering simulation software scenarios, simply using large language models to generate scripts or answer questions cannot directly solve engineering implementation problems. Many commercial simulation software programs do not provide complete and stable remote APIs to external systems, or their Python / scripting environments are isolated from external backend Python environments, preventing external services from directly importing internal modules and calling internal functions. A practical approach is typically to launch the software via its own EXE, command line, macro executor, or batch processing, allowing the software to execute specific scripts within its built-in scripting environment.

[0005] Furthermore, traditional script automation is typically written around a single software program or a single action, with scripts tightly coupled to business processes. It lacks a unified tool description, parameter schema, session recovery, and result feedback mechanism. When users request tasks in natural language such as "batch calculation of working conditions," "update Workbench after modifying geometric parameters," or "generate images with probe results," the system must not only know which script to call, but also what parameters the script requires, whether existing parameters meet the type requirements, how to ask the user for missing parameters, how to restore the original process after adding parameters, and how to uniformly feedback the result files, images, logs, and error messages after execution.

[0006] Therefore, existing technologies suffer from at least the following pain points: First, it is difficult to reliably convert natural language design intent into executable simulation tool functions; second, when simulation tasks lack parameters, there is a lack of a closed-loop interaction mechanism for "what is received, what is missing, what is supplemented, and how to recover"; third, the script environment of external systems and closed-source simulation software is isolated, and the internal APIs of the software cannot be directly called; fourth, there is a lack of a general mechanism to convert unified structured parameters into executable scripts that can be run by the software command line; and fifth, there is a lack of a unified cross-software feedback and archiving mechanism for simulation results, images, logs, and error messages. Summary of the Invention

[0007] The purpose of this invention is to provide a method, system, electronic device, and storage medium for multi-software collaborative execution, which can effectively solve the problems of difficulty in implementing natural language tasks, complexity of multi-software collaborative calls, isolation between the internal script environment and the external service environment, instability of parameter completion process, and difficulty in uniformly transmitting simulation results during motor simulation design.

[0008] This invention provides the following solution: According to one aspect of the present invention, a method for multi-software collaborative execution is provided, the method comprising: Receive natural language simulation requests from users through a unified session interface; Use a structured output model to identify the intent of user requests, determine whether a tool needs to be invoked, and the name of the target tool. Read the structured parameters of the target tool based on its name, and extract the key fields from the structured parameters; Based on the structured parameters, invoke the script generator or select a fixed script, and write the key fields into the script file; Based on the script file, construct software command line or macro execution instructions; After the script finishes execution, it reads the result file or error file and encapsulates it into a unified structured message.

[0009] Optional, also includes: When the target tool has a parameter schema and the parameters in the current session context do not meet the mandatory fields, type requirements, or user confirmation requirements of that schema, the agent interruption mechanism is triggered, and the parameter definition, thread_id, model_type, and study_index information are returned to the front end as a param response.

[0010] Optional, also includes: After users supplement parameters through a front-end form or dialog, they submit the supplemented parameters as a resume request.

[0011] Optional, also includes: The user-supplemented parameters are normalized according to the schema and then converted into the types required by the utility functions.

[0012] Optional, also includes: Perform business rule validation oriented towards the physical boundaries of the motor.

[0013] Optionally, business rule verification includes: verifying whether the width of the magnet to be modified exceeds the outer diameter of the rotor, whether the slot width exceeds the allowable range of the stator tooth structure, and whether the number of winding turns meets the preset integer constraints.

[0014] Optional target tools include: JMAG, Ansys, RM, Maxwell, or SOLIDWORKS tools.

[0015] According to a second aspect of the present invention, a multi-software collaborative execution system is provided, the multi-software collaborative execution system comprising: The receiving module is used to receive natural language simulation requests input by the user through a unified session interface; The recognition module is used to identify the intent of user requests using a structured output model, and to determine whether a tool needs to be invoked and the name of the target tool. The reading module is used to read the structured parameters of the target tool based on its name and extract the key fields from the structured parameters; The calling module is used to invoke the script generator or select a fixed script based on structured parameters and write key fields into the script file; The constructor module is used to construct software command lines or macro execution instructions based on the script file; The encapsulation module is used to read the result file or error file after the script is executed and encapsulate it into a unified structured message.

[0016] According to three aspects of the present invention, an electronic device is provided, including a memory and a processor, the memory storing a computer program executable on the processor, the processor executing the program to implement the steps of the multi-software collaborative execution method of any one of the first aspects.

[0017] According to four aspects of the present invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the multi-software cooperative execution method of any one of the first aspects.

[0018] The above solution achieves the following beneficial technical effects: By decoupling the tool functions from the script generator, the agent side only needs to select standardized tools and verify parameters, while the software side scripts are uniformly generated by the script generator or templates, reducing the cost of maintaining repetitive scripts. A parameter supplementation closed loop is established through parameter schema and param / resume mechanism. The target simulation software is not started during the missing parameter stage, which reduces the resource consumption of software instances, licenses and project files. By driving the target software through a command-line executor, the scripts are executed within the software's built-in script environment, reducing the integration difficulty caused by the target simulation software not providing stable external APIs or its internal script environment being isolated from external service environments.

[0019] By mapping thread-level contexts, user workspaces, and project files, we can achieve context isolation and traceable execution for multiple users and multiple project files. By using Kafka, MinIO, intermediate result files, and unified response fields, stable feedback and archiving of simulation results, images, logs, and error messages can be achieved. Attached Figure Description

[0020] Figure 1 This is a flowchart of a multi-software collaborative execution method provided in one or more embodiments of the present invention; Figure 2 This is a flowchart of a multi-software collaborative execution method provided in one or more embodiments of the present invention; Figure 3 This is a flowchart of a multi-software collaborative execution method provided in one or more embodiments of the present invention; Figure 4 This is a flowchart of a multi-software collaborative execution method provided in one or more embodiments of the present invention; Figure 5 This is a flowchart of a multi-software collaborative execution method provided in one or more embodiments of the present invention; Figure 6 This is a structural diagram of a multi-software collaborative execution device provided in one or more embodiments of the present invention; Figure 7 This is a structural diagram of an electronic device provided in one or more embodiments of the present invention. Detailed Implementation

[0021] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0022] Figure 1 This is a flowchart of a multi-software collaborative execution method provided in one or more embodiments of the present invention. See also... Figure 1 Multi-software collaborative execution includes the following steps: S11 receives natural language simulation requests from users through a unified session interface.

[0023] S12 uses a structured output model to identify the intent of the user request, determining whether a tool needs to be invoked and the name of the target tool.

[0024] S13: Read the structured parameters of the target tool based on its name and extract the key fields from the structured parameters.

[0025] S14, based on the structured parameters, call the script generator or select a fixed script, and write the key fields into the script file.

[0026] S15, based on the script file, constructs software command line or macro execution instructions.

[0027] S16: After the script execution is complete, read the result file or error file and encapsulate it into a unified structured message.

[0028] This invention addresses the challenges of implementing natural language tasks, complex multi-software collaborative calls, isolation between internal script environments and external service environments, unstable parameter completion processes, and difficulties in uniformly transmitting simulation results during motor simulation design. It proposes a method and system for intelligent agent task orchestration and multi-software collaborative execution for motor simulation. This approach does not simply use a large language model for question answering, nor does it simply stack a large number of scripts. Instead, it achieves an automated closed loop from natural language requests to multi-software simulation execution and result feedback through collaborative processing between "intelligent agent orchestration—utility functions—parameter schema—script templates or script generators—software command-line executors—intermediate result files—Kafka / MinIO feedback archiving."

[0029] One of the features of the solution provided in this embodiment is that it fully utilizes natural language to drive the simulation process. In other words, in this embodiment, the entire process, from the establishment of the simulation environment to the execution of the simulation process, is driven by the user issuing commands using natural language.

[0030] This means that at the beginning of the simulation process, a unified session interface is needed to receive the user's natural language commands, that is, natural language simulation requests.

[0031] Simultaneously with the reception of natural language instructions, the establishment of the session context is also carried out.

[0032] Specifically, the system can establish a session context based on thread_id or callback_id, and record the user's original request, project file mapping, study_index, model_type, historical parameters, and current interruption information.

[0033] Furthermore, simulation requests received through the unified session interface can include multiple different types. For example, the received simulation requests could be new task requests with data_type=message, parameter supplementation requests with data_type=resume, or cancellation requests with data_type=cancel.

[0034] The function of a new task request is to create a new simulation task. The function of a parameter supplementation request is to supplement the parameters of an existing task. The cancellation request is even simpler; it cancels an existing simulation task.

[0035] After receiving the simulation request, the user's intent is identified through natural language analysis.

[0036] Once the user's intent is identified, the actual intention behind the natural language command can be clearly understood. Furthermore, based on the identified user intent, it can be determined whether a tool needs to be invoked, and if so, which tool to invoke.

[0037] For example, when a user needs to perform finite element analysis on the magnetic field of a motor, the simulation process described above generally requires calling the Ansys tool. Therefore, the name of the tool to be called should include the Ansys software name.

[0038] It should be understood that a simulation process often requires more than one tool. Therefore, the identified target tool name is often a list of names.

[0039] After determining the target tool name, the structured parameters are then read based on that name. Structured parameters are parameters that must be passed to the target tool during the simulation tool invocation process.

[0040] For example, when calling SolidWorks tools, structured parameters can be the save path of the model file, the parameter names and values ​​in the model file, and so on.

[0041] It should be understood that within the structured parameters, there are some fields that are crucial to the overall simulation process. These fields are called key fields.

[0042] These are called key fields because they play an irreplaceable role in the overall simulation process. Without the specific values ​​of these key fields, the automated simulation execution process cannot continue. Therefore, the next step after reading the structured parameters is to further extract the aforementioned key fields from the structured parameters to clarify their values ​​during the automated simulation process, making it easier to write these key field values ​​into the automated script.

[0043] After extracting the key fields, the next step is to generate the automated scripts corresponding to the simulation process.

[0044] The process of generating automated scripts can involve calling a script generator or using pre-generated fixed scripts. Regardless of the method chosen, it's crucial to ensure that the extracted key field values ​​are written into the generated automated script.

[0045] After the script generation process is complete, the next step is to construct software command lines or macro execution instructions based on the generated script.

[0046] Finally, the constructed software command line or macro execution instructions are executed automatically to complete the automatic simulation process.

[0047] The automated execution of the above simulation process will inevitably generate corresponding result files or error files. At the end of the execution steps in this embodiment, the result file or error file is read and encapsulated into a unified structured message.

[0048] After the structured message encapsulation is completed, users can understand the execution status of the simulation process, whether any abnormalities occurred, and whether the final simulation result meets their expectations through the encapsulated unified structured messages.

[0049] The method provided in this embodiment enables the execution of an automated simulation process driven by natural language. Moreover, the entire simulation process is automated and requires minimal human intervention.

[0050] Figure 2 This is a flowchart of a multi-software collaborative execution method provided in one or more embodiments of the present invention. See also... Figure 2 The multi-software collaborative execution method includes the following steps: S21 receives natural language simulation requests from users through a unified session interface.

[0051] S22 uses a structured output model to identify the intent of the user request, determining whether a tool needs to be invoked and the name of the target tool.

[0052] S23, Read the structured parameters of the target tool based on its name, and extract the key fields from the structured parameters.

[0053] S24. When the target tool has a parameter schema and the parameters in the current session context do not meet the mandatory fields, type requirements, or user confirmation requirements of the schema, the agent interruption mechanism is triggered, and the parameter definition, thread_id, model_type, and study_index information are returned to the front end as a param response.

[0054] S25, based on the structured parameters, call the script generator or select a fixed script, and write the key fields into the script file.

[0055] S26, Based on the script file, construct software command line or macro execution instructions.

[0056] S27. After the script is executed, read the result file or error file and encapsulate it into a unified structured message.

[0057] It should be understood that during the parameter reading process, the parameters read may meet the requirements or they may not.

[0058] The most typical scenario where the default requirements are not met is when the read parameters do not meet the schema's required fields. For example, the read parameters may be missing one or two required fields.

[0059] At this point, the parameter filling mechanism needs to be activated. Specifically, this means triggering the agent's interrupt mechanism. After activating the interrupt mechanism, information such as parameter definitions, thread ID, model type, and study index are returned to the front end as corresponding param values, thus completing the activation of the agent's interrupt mechanism.

[0060] Figure 3 This is a flowchart of a multi-software collaborative execution method provided in one or more embodiments of the present invention. See also... Figure 3 The multi-software collaborative execution method includes the following steps: S31 receives natural language simulation requests from users through a unified session interface.

[0061] S32 uses a structured output model to identify the intent of user requests, determining whether a tool needs to be invoked and the name of the target tool.

[0062] S33: Read the structured parameters of the target tool based on its name and extract the key fields from the structured parameters.

[0063] S34. When the target tool has a parameter schema and the parameters in the current session context do not meet the mandatory fields, type requirements, or user confirmation requirements of the schema, the agent interruption mechanism is triggered, and information such as parameter definition, thread_id, model_type, and study_index are returned to the front end as a param response.

[0064] S35: After the user supplements the parameters through a front-end form or dialog, the supplemented parameters are submitted as a resume request.

[0065] S36, based on the structured parameters, invoke the script generator or select a fixed script, and write the key fields into the script file.

[0066] S37, based on the script file, constructs software command lines or macro execution instructions.

[0067] S38: After the script is executed, read the result file or error file and encapsulate it into a unified structured message.

[0068] In this embodiment, after the agent interruption mechanism is triggered and a series of information such as parameter definitions, thread ID, model type, study index, etc., are returned to the front end as a parameter response, the user can supplement the parameters through a front-end form or a dialog. After the parameters are complete, the user submits the supplemented parameters again via a resume request.

[0069] Triggered by the aforementioned intelligent agent interruption mechanism, and supplemented by parameters from the front-end form or the other party, the parameters that were originally incomplete or incorrectly read become able to meet all the requirements for parameters.

[0070] Figure 4 This is a flowchart of a multi-software collaborative execution method provided in one or more embodiments of the present invention. See also... Figure 4 The multi-software collaborative execution method includes the following steps: S41 receives natural language simulation requests from users through a unified session interface.

[0071] S42 uses a structured output model to identify the intent of the user request, determining whether a tool needs to be invoked and the name of the target tool.

[0072] S43, read the structured parameters of the target tool based on its name, and extract the key fields from the structured parameters.

[0073] S44. When the target tool has a parameter schema and the parameters in the current session context do not meet the mandatory fields, type requirements, or user confirmation requirements of the schema, the agent interruption mechanism is triggered, and information such as parameter definition, thread_id, model_type, and study_index are returned to the front end as param responses.

[0074] S45: After the user supplements the parameters through a front-end form or dialog, the supplemented parameters are submitted as a resume request.

[0075] S46, normalize the user-supplemented parameters according to the schema, and convert the user-supplemented parameters into the type required by the utility function.

[0076] S47, based on the structured parameters, invoke the script generator or select a fixed script, and write the key fields into the script file.

[0077] S48, based on the script file, constructs software command lines or macro execution instructions.

[0078] S49. After the script is executed, read the result file or error file and encapsulate it into a unified structured message.

[0079] It should be understood that during the parameter supplementation process, manual parameter supplementation alone cannot fully meet the system's parameter requirements.

[0080] For example, system requirements for parameters are usually fixed, and all data items must meet preset format requirements. These requirements are often very stringent for humans.

[0081] In this embodiment, the original data collected from the user is further normalized and its type is converted to further standardize the original collected parameters and ensure that the parameters supplemented by the user can meet all the system's requirements for parameters.

[0082] Figure 5This is a flowchart of a multi-software collaborative execution method provided in one or more embodiments of the present invention. See also... Figure 5 The multi-software collaborative execution method includes the following steps: S501 receives natural language simulation requests from users through a unified session interface.

[0083] S502 uses a structured output model to identify the intent of user requests, determining whether a tool needs to be invoked and the name of the target tool.

[0084] S503 reads the structured parameters of the target tool based on its name and extracts the key fields from the structured parameters.

[0085] S504: When the target tool has a parameter schema and the parameters in the current session context do not meet the mandatory fields, type requirements, or user confirmation requirements of the schema, the agent interruption mechanism is triggered, and information such as parameter definition, thread_id, model_type, and study_index are returned to the front end as a param response.

[0086] S505: After the user supplements the parameters through a front-end form or dialog, the supplemented parameters are submitted as a resume request.

[0087] S506 normalizes the user-supplemented parameters according to the schema and converts the user-supplemented parameters into the types required by the utility functions.

[0088] S507 performs business rule verification oriented towards the physical boundary of the motor.

[0089] S508, based on structured parameters, calls the script generator or selects a fixed script, and writes the key fields into the script file.

[0090] S509 constructs software command lines or macro execution instructions based on script files.

[0091] After the S510 script is executed, it reads the result file or error file and encapsulates it into a unified structured message.

[0092] Furthermore, in addition to normalizing the supplementary parameters, this embodiment also requires performing business rule verification on the supplementary data to facilitate the understanding of motor physical properties.

[0093] The possible verification operations include verifying whether the width of the magnet to be modified exceeds the rotor outer diameter, whether the slot width exceeds the allowable range of the stator tooth and slot structure, and whether the number of winding turns meets the preset integer constraints.

[0094] Figure 6This is a structural diagram of a multi-software collaborative execution system provided in one or more embodiments of the present invention. See also... Figure 6 Multi-software collaborative execution systems include: The receiving module 61 is used to receive natural language simulation requests input by the user through a unified session interface.

[0095] The recognition module 62 is used to identify the intent of the user request using a structured output model, and to determine whether a tool needs to be invoked and the name of the target tool.

[0096] The reading module 63 is used to read the structured parameters of the target tool based on its name and extract the key fields from the structured parameters.

[0097] Module 64 is used to invoke the script generator or select a fixed script based on structured parameters and write key fields into the script file.

[0098] Module 65 is used to construct software command lines or macro execution instructions based on script files.

[0099] Encapsulation module 66 is used to read the result file or error file after the script is executed and encapsulate it into a unified structured message.

[0100] It is worth noting that although only some basic functional modules are disclosed in the embodiments of this invention, it does not mean that the composition of this system is limited to the above-mentioned basic functional modules. On the contrary, what this embodiment intends to express is that, based on the above-mentioned basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with existing technology to form an infinite number of embodiments or technical solutions. That is to say, this system is open rather than closed. The fact that this embodiment only discloses a few basic functional modules should not be considered as the scope of protection of the claims of this invention being limited to the disclosed basic functional modules. At the same time, for the convenience of description, the above device is described separately according to its functions as various units and modules. Of course, in implementing this invention, the functions of each unit and module can be implemented in one or more software and / or hardware.

[0101] like Figure 7 As shown, the present invention also provides an electronic device, including: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of a multi-software collaborative execution method.

[0102] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. For example... Figure 7The structure shown in this embodiment of the invention includes one or more processors 710 and a memory 720; the processor 710 in the vehicle infotainment system can be one or more. Figure 7 Taking a processor 710 as an example; the memory 720 is used to store one or more programs; the one or more programs are executed by the one or more processors 710, so that the one or more processors 710 implement the multi-software collaborative execution method as described in any one of the embodiments of the present invention.

[0103] The electronic device may also include an input device 730 and an output device 740.

[0104] The processor 710, memory 720, input device 730, and output device 740 in this electronic device can be connected via a bus or other means. Figure 7 Taking the example of a connection between China and Israel via a bus.

[0105] The memory 720 in this electronic device serves as a computer-readable storage medium, capable of storing one or more programs. These programs can be software programs, computer-executable programs, or modules, such as the program instructions / modules corresponding to the multi-software collaborative execution method provided in this embodiment. The processor 710 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 720, thereby implementing the multi-software collaborative execution method described in the above embodiment.

[0106] The memory 720 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device. Furthermore, the memory 720 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 720 may further include memory remotely located relative to the processor 710, which can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0107] Input device 730 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the electronic device. Output device 740 may include display devices such as a display screen.

[0108] The present invention also provides a computer-readable storage medium storing a computer program executable by an electronic device, which, when run on the electronic device, causes the electronic device to perform the steps of a multi-software collaborative execution method.

[0109] Specifically, the computer storage medium in this embodiment of the invention can be any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be—but is not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0110] The present invention also provides a vehicle equipped with the multi-software collaborative execution system described above.

[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for multi-software collaborative execution, characterized in that, include: Receive natural language simulation requests from users through a unified session interface; Use a structured output model to identify the intent of user requests, determine whether a tool needs to be invoked, and the name of the target tool. Read the structured parameters of the target tool based on its name, and extract the key fields from the structured parameters; Based on the structured parameters, invoke the script generator or select a fixed script, and write the key fields into the script file; Based on the script file, construct software command line or macro execution instructions; After the script finishes execution, it reads the result file or error file and encapsulates it into a unified structured message.

2. The method according to claim 1, characterized in that, Also includes: When the target tool has a parameter schema and the parameters in the current session context do not meet the mandatory fields, type requirements, or user confirmation requirements of that schema, the agent interruption mechanism is triggered, and the parameter definition, thread_id, model_type, and study_index information are returned to the front end as a param response.

3. The method according to claim 2, characterized in that, Also includes: After users supplement parameters through a front-end form or dialog, they submit the supplemented parameters as a resume request.

4. The method according to claim 3, characterized in that, Also includes: The user-supplemented parameters are normalized according to the schema and then converted into the types required by the utility functions.

5. The method according to claim 4, characterized in that, Also includes: Perform business rule validation oriented towards the physical boundaries of the motor.

6. The method according to claim 6, characterized in that, Business rule verification includes: verifying whether the width of the magnet to be modified exceeds the rotor outer diameter, whether the slot width exceeds the allowable range of the stator tooth slot structure, and whether the number of winding turns meets the preset integer constraints.

7. The method according to any one of claims 1 to 6, characterized in that, Target tools include: JMAG, Ansys, RM, Maxwell, or SOLIDWORKS tools.

8. A multi-software collaborative execution system, characterized in that, include: The receiving module is used to receive natural language simulation requests input by the user through a unified session interface; The recognition module is used to identify the intent of user requests using a structured output model, and to determine whether a tool needs to be invoked and the name of the target tool. The reading module is used to read the structured parameters of the target tool based on its name and extract the key fields from the structured parameters; The calling module is used to invoke the script generator or select a fixed script based on structured parameters and write key fields into the script file; The constructor module is used to construct software command lines or macro execution instructions based on the script file; The encapsulation module is used to read the result file or error file after the script is executed and encapsulate it into a unified structured message.

9. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the multi-software collaborative execution method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the multi-software collaborative execution method according to any one of claims 1 to 7.