Multi-agent-based smart scene implementation method, system and device and medium

Through a large language model to identify user intentions and select agents based on device network information, the problem of poor routing flexibility in the prior art is solved, and the user experience and demand realization efficiency of smart scenarios is improved.

CN120090895APending Publication Date: 2025-06-03E-SURFING DIGITAL LIFE TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202510322559.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

The existing smart scenario implementation methods are poor in terms of user intention classification and agent routing, which affects the user experience and demand realization efficiency.

Method used

User intention identification and classification are performed through a large language model, tasks to be executed are analyzed to determine the target operation device, and appropriate agents are selected for instruction distribution based on the device's network connection information and service type.

Benefits of technology

It improves the efficiency and user experience of user needs in smart scenarios, and improves the flexibility and response speed of the system through intelligent intelligent routing and task distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120090895A_ABST
    Figure CN120090895A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an intelligent scene implementation method, system and device based on multiple agents and a medium, and belongs to the technical field of intelligent control. According to the method, user intention recognition and classification are performed through a large language model to obtain at least one to-be-executed task, then the to-be-executed task is analyzed to determine a target operation device, and then a target agent is determined according to network connection information of the target operation device and a service type of the to-be-executed task. And determining a corresponding agent instruction according to the to-be-executed task, and distributing the agent instruction to the target agent. In the agent routing process, the service type of the task is considered, and the network connection information of the target operation equipment in the task is also considered, so that the agent with a relatively good network can be selected to realize the service, the efficiency of realizing the user demand in an intelligent scene is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent control technologies, and in particular, to a method, system, device, and medium for implementing a smart scenario based on multi - agents. Background Art

[0002] With the development of technology, the concept of smart scenarios (such as smart cities, smart cars, smart communities, etc.) has become increasingly popular. At present, there are still many significant deficiencies in the user experience in most scenarios. For example, only single devices or single - brand devices can be controlled, multiple devices or multiple - brand devices in a family cannot be linked, and intelligent devices usually use small NLP models, which can only process simple voice commands. At the same time, there is also a lack of input and processing of environmental information, making them appear less intelligent.

[0003] Intelligent agent systems based on large - language models have developed rapidly recently. Usually, one intelligent agent can be designed for a certain type of single intention. If in a specific environment (such as a smart home or a smart car), multiple intelligent agents need to be designed according to multiple types of user intentions. The system needs to classify user intentions and distribute them to specific intelligent agents to respond to user commands.

[0004] In a smart home environment, there are a wide variety of devices, including smart home appliances, sensors, entertainment devices, etc. Each device has its unique functions, performance characteristics, and operating states. At the same time, the business scenarios in the home are rich and diverse, such as entertainment viewing, cooking, resting, education, health preservation, etc. The user needs vary greatly in different sub - scenarios, and multiple intelligent agents also need to be designed to respond to user commands, involving the cooperation of multiple intelligent agents and more complex intention distribution requirements.

[0005] The current implementation methods of smart scenarios only simply classify user intentions according to business requirements and distribute them to intelligent agents with corresponding functions based on the classification of user intentions. This way, which only considers the intelligent agent routing method based on business requirements, has poor flexibility and affects the efficiency of realizing smart scenario requirements, thereby affecting the user experience. Summary of the Invention

[0006] The main purpose of the embodiments of the present application is to propose a method, system, device, and medium for implementing a smart scenario based on multi - agents, aiming to improve the efficiency of realizing user requirements in smart scenarios and improve the user experience.

[0007] To achieve the above object, on the one hand, an embodiment of the present application proposes a method for implementing a smart scenario based on multi - agents, including the following steps:

[0008] Identify and classify user intentions through a large - language model to obtain at least one task to be executed;

[0009] Analyze the task to be executed to determine the target operating device;

[0010] Determine a target agent according to the network connection information of the target operating device and the service type of the task to be executed;

[0011] Determine a corresponding agent instruction according to the task to be executed, and distribute the agent instruction to the target agent.

[0012] In some embodiments, the method for identifying and classifying user intentions through a large language model to obtain at least one task to be executed includes the following steps:

[0013] In response to a user instruction, collect the device operation information of various devices in the current intelligent scenario;

[0014] Determine the current service scenario according to the user instruction and the device operation information;

[0015] Input the user instruction, the device operation information, and the current service scenario into a large language model for user intention identification and classification to obtain at least one task to be executed.

[0016] In some embodiments, the method for parsing the task to be executed to determine the target operating device includes the following steps:

[0017] Perform semantic parsing on the task to be executed to obtain an execution action and an execution object;

[0018] When the type of the execution action is an interaction type, determine the main control device that receives the user instruction as the target operating device;

[0019] When the type of the execution action is a control type, determine the execution object as the target operating device.

[0020] In some embodiments, the method for determining a target agent according to the network connection information of the target operating device and the service type of the task to be executed includes the following steps:

[0021] Determine an agent for implementing the service type according to the service type of the task to be executed to obtain candidate agents;

[0022] When the number of candidate agents is one, determine the candidate agent as the target agent;

[0023] When the number of candidate agents is greater than one, select a candidate agent deployed on the cloud side or a candidate agent deployed on the edge side according to the network connection information of the target operating device.

[0024] In some embodiments, selecting a candidate agent deployed on the cloud side or a candidate agent deployed on the edge side according to the network connection information of the target operating device includes the following steps:

[0025] Judge the current connection mode of the target operating device according to the network connection information of the target operating device;

[0026] When the current connection mode is a short-range networking connection, select the candidate agent deployed on the edge side as the target agent;

[0027] When the current connection mode is a remote network connection, select the candidate agent deployed on the cloud side as the target agent;

[0028] When the current connection mode includes a short-range networking connection and a remote network connection, select a candidate agent deployed on the cloud side or a candidate agent deployed on the edge side according to the execution requirements of the task to be executed.

[0029] In some embodiments, the method for realizing the intelligent scenario of multiple agents further includes the following steps:

[0030] Obtain the execution result information of the task to be executed returned by the target agent;

[0031] In the case that the execution result information indicates a failure in execution, generate a new task to be executed according to the error reason of the execution result information, and resend the agent instruction corresponding to the new task to be executed to the target agent.

[0032] In some embodiments, the method for realizing the intelligent scenario based on multiple agents further includes the following steps:

[0033] Associate the multiple tasks to be executed output by the large language model to determine the task scheduling order;

[0034] Schedule the multiple tasks to be executed according to the task scheduling order, specifically including:

[0035] Schedule the current task to be executed to obtain the output result of the target agent of the currently scheduled task to be executed;

[0036] Add the output result to the next task to be executed, and schedule the next task to be executed.

[0037] To achieve the above object, another aspect of the embodiments of the present application proposes a system for realizing an intelligent scenario based on multiple agents, including:

[0038] The first module is used to identify and classify the user intention through a large language model to obtain at least one task to be executed;

[0039] A second module, configured to parse the to-be-executed task and determine a target operation device;

[0040] A third module, configured to determine a target agent according to the network connection information of the target operation device and the service type of the to-be-executed task;

[0041] A fourth module, configured to determine a corresponding agent instruction according to the to-be-executed task and distribute the agent instruction to the target agent.

[0042] To achieve the above object, on the other hand, an embodiment of the present application provides an electronic device, which includes a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for realizing connection communication between the processor and the memory. When the program is executed by the processor, the method described in the above embodiment is realized.

[0043] To achieve the above object, on the other hand, an embodiment of the present application provides a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize the method described in the above embodiment.

[0044] The method, system, device and medium for realizing a smart scenario based on multi-agents proposed in the present application identify and classify user intentions through a large language model to obtain at least one to-be-executed task, then parse the to-be-executed task to determine a target operation device, and then determine a target agent according to the network connection information of the target operation device and the service type of the to-be-executed task, determine a corresponding agent instruction according to the to-be-executed task, and distribute the agent instruction to the target agent. In the agent routing process of the present application, in addition to considering the service type of the task, the network connection information of the target operation device in the task is also considered, so that an agent with a better network can be selected to implement the service, improving the efficiency of realizing user requirements in the smart scenario and enhancing the user experience. Description of the Drawings

[0045] Figure 1 is a flowchart of the method for realizing a smart scenario based on multi-agents provided by an embodiment of the present application;

[0046] Figure 2 is Figure 1 a flowchart of step S101 in

[0047] Figure 3 is Figure 1 a flowchart of step S102 in

[0048] Figure 4 is Figure 1 the flowchart of step S103 in

[0049] Figure 5 is Figure 4 the flowchart of step S403 in

[0050] Figure 6 is the flowchart of the multi-agent based intelligent scenario implementation method provided by another embodiment of the present application;

[0051] Figure 7 is the flowchart of the multi-agent based intelligent scenario implementation method provided by another embodiment of the present application;

[0052] Figure 8 is the schematic diagram of the multi-agent based intelligent scenario implementation system provided by the embodiment of the present application;

[0053] Figure 9 is the schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application;

[0054] Figure 10 is the schematic diagram of the process of multi-agent cooperation to implement user instructions provided by the embodiment of the present application;

[0055] Figure 11 is the schematic diagram of the process of the multi-agent based intelligent home implementation method provided by the embodiment of the present application. Detailed implementation manners

[0056] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] It should be noted that although the functional modules are divided in the system and the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order from the module division in the system or the order in the flowchart. The terms "first", "second", etc. in the description, claims and the above drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.

[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0059] First, several nouns involved in the present application are parsed:

[0060] The smart home is the application and embodiment of the concept and technology of the smart city at the family level. Taking the family as the carrier and the affection among family members as the bond, it comprehensively applies technologies such as the Internet of Things, cloud computing, mobile Internet, and big data, combined with automatic control technology, to effectively integrate intelligent control of household devices, perception of the home environment, perception of family members' health, perception of home security, as well as information communication, consumer services, and other home life aspects, creating a personalized home life that is healthy, safe, comfortable, low-carbon, and convenient.

[0061] A large language model (LLM) is an artificial intelligence model based on deep learning technology. By learning and training on a large amount of text data, it can generate text that is natural, fluent, and conforms to grammar and semantic rules.

[0062] Natural language processing (NLP): NLP uses computers to process, understand, and apply human languages (such as Chinese, English, etc.). NLP is a branch of artificial intelligence and an interdisciplinary field of computer science and linguistics, often referred to as computational linguistics. Natural language processing includes syntactic analysis, semantic analysis, discourse understanding, etc. Natural language processing is commonly used in technical fields such as machine translation, recognition of handwritten and printed characters, speech recognition and text-to-speech conversion, information intention recognition, information extraction and filtering, text classification and clustering, and opinion mining. It involves data mining, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research related to language processing, and linguistic research related to language computing.

[0063] Automatic Speech Recognition (ASR) mainly converts the lexical content in human speech into a sequence of computer-readable text characters.

[0064] An agent (bot) is an artificial intelligence system with characteristics such as autonomy, reactivity, proactiveness, and sociality. It can perceive the environment, make decisions, and take actions to achieve specific goals.

[0065] APP (Application): Refers to application programs on mobile devices such as smartphones and tablets.

[0066] Function calling (tool calling): A function of a language large model that allows the language large model to call external functions or services during the process of generating text to obtain additional data or perform specific tasks, achieving connection with the capabilities of existing systems.

[0067] The embodiments of the present application provide a method, system, device, and medium for realizing an intelligent scenario based on multi - agents, aiming to improve the efficiency of realizing user requirements in the intelligent scenario and enhance the user experience.

[0068] The method, system, device, and medium for realizing an intelligent scenario based on multi - agents provided by the embodiments of the present application will be specifically described through the following embodiments. First, the method for realizing an intelligent scenario based on multi - agents in the embodiments of the present application will be described.

[0069] The method for realizing an intelligent scenario based on multi - agents provided by the embodiments of the present application relates to the field of intelligent control technology. The method for realizing an intelligent scenario based on multi - agents provided by the embodiments of the present application can be applied to a terminal, or to a server - side, or can also be software running on a terminal or a server - side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server - side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, or can also be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application for realizing the method for realizing an intelligent scenario based on multi - agents, etc., but is not limited to the above forms.

[0070] The present application can be used in many general - purpose or special - purpose computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet - type devices, multi - processor systems, micro - processor - based systems, set - top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. The present application can be described in the general context of computer - executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment, where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0071] In some embodiments, a smart scenario refers to an environment where the physical space and the digital world are deeply integrated through advanced technologies (such as the Internet of Things, artificial intelligence, big data, etc.) to achieve intelligent management and services. Its core lies in enhancing efficiency, optimizing the experience, and creating new value through data-driven and intelligent decision-making. Smart scenarios can include smart cities, smart homes, smart factories, smart healthcare, and smart supermarkets, etc. In this application embodiment, the smart home is mainly used as an example for illustration. In a smart home, it mainly includes a master device and a controlled device. The master device refers to a device that receives user instructions. The master device can be a mobile phone, a computer, a tablet, a smart speaker, a smart TV, etc., which are devices capable of interacting with users. Among them, users can install a smart home APP on their mobile phones, computers, and tablets, and input user instructions in the form of text or voice information through the APP. Users can also directly input user instructions to the smart speaker and smart TV in the form of voice interaction. The smart speaker can use automatic speech recognition technology to convert the user instructions in audio form into text form. The controlled device mainly refers to the device that the user needs to control. The controlled device can refer to various household electronic products, such as electric lights, air conditioners, TVs, and floor cleaning robots, etc. The multi-agent scenario implementation method of this application embodiment can be applied to the constructed agent platform. The user sends user instructions to the agent platform through the master device. The agent platform identifies the user's intention based on the user instructions to determine the task to be executed, and then routes the task to be executed to the appropriate agent, and the agent realizes the corresponding business function. The business function can be the control of the controlled device or the feedback of query information, etc.

[0072] Figure 1 is an optional flowchart of the multi-agent-based smart scenario implementation method provided by the embodiment of this application, Figure 1 The method in may include but is not limited to steps S101 to S104.

[0073] Step S101, perform user intention recognition and classification through a large language model to obtain at least one task to be executed;

[0074] Step S102, parse the task to be executed to determine the target operation device;

[0075] Step S103, determine the target agent according to the network connection information of the target operation device and the business type of the task to be executed;

[0076] Step S104, determine the corresponding agent instruction according to the task to be executed, and distribute the agent instruction to the target agent.

[0077] In steps S101 to S104 of some embodiments, the large language model is used to identify and classify user intentions, obtaining at least one task to be executed. Then, the task to be executed is parsed to determine the target operating device, and based on the network connection information of the target operating device and the service type of the task to be executed, the target agent is determined. The agent instruction corresponding to the task to be executed is determined and the agent instruction is distributed to the target agent. In the agent routing process of the embodiments of the present application, in addition to considering the service type of the task, the network connection information of the target operating device in the task is also considered, so that an agent with a better network can be selected to implement the service, improving the efficiency of realizing user requirements in the intelligent scenario and enhancing the user experience.

[0078] In step S101 of some embodiments, the large language model is trained with a large amount of data and has powerful language understanding and generation capabilities. In this embodiment, the language understanding and generation capabilities of the large language model can be utilized to perform secondary training on the basis of the large language model, enabling the large language model to output task labels (i.e., tasks to be executed) in a specific intelligent scenario according to information such as user instructions. Exemplarily, the user instruction is "I'm going to Shanghai tomorrow. Help me check the weather there." The large language model performs semantic understanding and recognition on this user instruction and classifies the task label, and can obtain the task to be executed of "Query the weather in Shanghai tomorrow."

[0079] Please refer to Figure 2 , in some embodiments, step S101 may include but is not limited to the following steps:

[0080] Step S201, in response to the user instruction, collect the device operation information of various devices in the current intelligent scenario;

[0081] Step S202, determine the current service scenario according to the user instruction and the device operation information;

[0082] Step S203, input the user instruction, the device operation information, and the current service scenario into the large language model for user intention recognition and classification, obtaining at least one task to be executed.

[0083] In this embodiment, in addition to identifying the user's intention based on the user's instruction and determining the task to be executed, the large language model can further comprehensively identify the user's intention by combining the device operation information of various devices in the home and the current business scenario to obtain at least one task to be executed that meets the user's intention, thereby improving the accuracy and comprehensiveness of user intention recognition. Exemplarily, when the user's instruction is "Please play a piece of music", the large language model combines the evening sleeping scenario of that year and the fact that all the electric lights are in the off state, and can identify that the user's intention is "Play a piece of sleep-aid music", so as to determine that the task to be executed is "Control the speaker to play sleep-aid music". In addition, during the process of the large language model performing intention recognition, the scene plug-in information can be further combined for intention recognition, that is, after the intelligent agent platform obtains the user's instruction, the intelligent agent platform collects the current business scenario, device operation information and scene plug-in information, and inputs the user's instruction, the current business scenario, device operation information and scene plug-in information into the large language model for intention recognition to obtain multiple tasks to be executed that meet the accurate intention.

[0084] Exemplarily, in a smart home system, a family will register multiple intelligent agent programs, and there is one or more intelligent main control devices. The main control devices are used to receive user voice instructions, such as smart speakers, smart TVs, smart home consoles, etc. There are also various controlled devices in the smart home, such as various smart home devices, such as temperature and humidity sensors, smart air conditioners, fans, lamps, TVs, refrigerators, etc. The operation parameters and status information of the main control devices and the controlled devices are monitored in real time (such as whether the device is turned on, the operation mode, etc.) to obtain the device operation information. The device operation information can be stored in the intelligent agent platform so that the intelligent agent platform can combine the device operation information for intention recognition or use it as the input data of the intelligent agent. The device operation information includes various device information that can be linked in the smart home. The device information includes data such as the device location, device operation parameters, device operation status, and device performance parameters. The current business scenario information can be obtained by performing scenario recognition based on machine learning technology. The scenario recognition model determines the current business scenario by combining data such as time, user behavior patterns, and device operation status. For example, when multiple lighting devices are turned on and the TV is turned on at a specific time in the evening, it may be recognized as an entertainment viewing scenario. The scene plug-in information can be obtained by collecting the installation information and function parameters of the scene plug-in tools of devices such as TVs and speakers. For the user's instruction, the voice recognition system converts the voice instruction into text form and simultaneously performs preliminary cleaning on the text, such as removing irrelevant words and correcting simple grammar errors. If it is a text input instruction, it is directly cleaned.

[0085] The preprocessed device operation information, current business scenario information, scenario plugin information, and user instruction text are input into a large language model. The large language model is trained using its multi-layer neural network structure and large-scale corpus to semantically understand the above information. For example, for the user instruction "Play music in the bedroom and set the temperature to 25 degrees", combining the functional characteristics of the bedroom audio device and air conditioner device in the device operation information, the current rest scenario (business scenario information), and the scenario plugin information related to music playback and temperature adjustment, the large language model accurately identifies that the user has two main intentions: one is to play soothing music on the bedroom audio, and the other is to set the temperature of the bedroom air conditioner to 25 degrees. Based on these two intentions, two corresponding tasks to be executed are obtained. Through in-depth understanding of natural language, the large language model can process more complex instructions, such as "When someone approaches the door, turn on the door light and start the camera to record, and at the same time notify my mobile phone", and accurately parse the devices (door light, camera, mobile phone), scenarios (security monitoring), and specific action requirements involved, so as to accurately and efficiently generate tasks to be executed in the future.

[0086] In step S102 of some embodiments, after the large language model receives the user instruction and accurately identifies the user intention by combining various information, corresponding tasks to be executed are generated according to each user intention. The task to be executed indicates a target operation device, and the target operation device refers to the device in the intelligent scenario that responds to the user instruction intention. For example, if the user intention is "Turn on the air conditioner", the target operation device is the air conditioner; if the user intention is "Ask about tomorrow's weather", the target operation device is the main control device.

[0087] Please refer to Figure 3 , in some embodiments, step S102 may include but is not limited to the following steps:

[0088] Step S301, perform semantic parsing on the task to be executed to obtain the execution action and the execution object;

[0089] Step S302, when the type of the execution action is an interaction type, determine the main control device that receives the user instruction as the target operation device;

[0090] Step S303, when the type of the execution action is a control type, determine the execution object as the target operation device.

[0091] In this embodiment, the task to be executed includes parts such as an execution action, an execution object, and object parameters. The execution action can be inquiry, playback, control, etc. The execution object can be the controlled object of the control action, and the object parameter refers to the specific action requirement. For example, when the task to be executed is "control the air conditioner to adjust to 25 degrees", the execution action is control, the execution object is the air conditioner, and the execution parameter is 25 degrees; when the task to be executed is "query tomorrow's weather", the execution action is query, the execution object is the weather, and the execution parameter is tomorrow. The target operation device refers to the device in the intelligent scenario that responds to the user's intention. The determination process of the target operation device is as follows: perform semantic parsing on the task to be executed to obtain the execution action and execution object therein. The execution action is divided into a control type and an interaction type. If the type of the execution action in the task to be executed is the interaction type, the main control device that receives the user instruction is determined as the target operation device. For example, a speaker, a mobile phone, or a computer that interacts with the user, etc. If the type of the execution action is the control type, the execution object is determined as the target operation device, that is, the controlled object in the user instruction is determined as the target operation device. For example, an air conditioner, a light, etc.

[0092] In step S103 of some embodiments, during the intelligent agent routing process, in addition to considering the business type of the task, the network connection information of the target operation device in the task is also considered, so that an intelligent agent with a better network can be selected to implement the service, improving the efficiency of realizing the user's needs in the intelligent scenario and improving the user experience. The network connection information of the target operation device includes the network connection method, the network connection status, and the network performance, etc. By considering the network connection information of the target operation device to select a cloud-side intelligent agent or a local-side intelligent agent, the efficiency of realizing the intelligent scenario is improved.

[0093] Please refer to Figure 4 , in some embodiments, step S103 may include but is not limited to the following steps:

[0094] Step S401, determine the intelligent agent for realizing the business type according to the business type of the task to be executed to obtain candidate intelligent agents;

[0095] Step S402, when the number of candidate intelligent agents is one, determine the candidate intelligent agent as the target intelligent agent;

[0096] Step S403, when the number of candidate intelligent agents is greater than one, select the candidate intelligent agent deployed on the cloud side or the candidate intelligent agent deployed on the edge side according to the network connection information of the target operation device.

[0097] In this embodiment, the agent is implemented based on function call technology. Some agents may be deployed on the local side. For example, the schedule management agent for alarm setting is deployed in the smart speaker. Some agents may be deployed on the cloud side. For example, the weather query agent is deployed on the cloud server. And some agents may be deployed on both the local side and the cloud side. For example, the home control agent is deployed on both the local side and the IoT platform. When controlling the controlled device, you can choose to directly control the local device or choose to control through the IoT platform. Determine the agent for implementing the service type (such as weather query service, home control service, or schedule management service, etc.) according to the service type of the task to be executed to obtain candidate agents. When the number of candidate agents is one, it indicates that the agent for implementing this service type is only deployed on the local side or only deployed on the cloud side, then determine the candidate agent as the target agent; when the number of candidate agents is greater than one, it indicates that the agent for implementing this service type is deployed on both the local side and the cloud side at the same time, then select the candidate agent deployed on the cloud side or the candidate agent deployed on the local side according to the network connection information of the target operating device.

[0098] Please refer to Figure 5 , in some embodiments, in step S403, the step of selecting the candidate agent deployed on the cloud side or the candidate agent deployed on the local side according to the network connection information of the target operating device may include but is not limited to the following steps:

[0099] Step S501, judge the current connection method of the target operating device according to the network connection information of the target operating device;

[0100] Step S502, when the current connection method is short-range networking connection, select the candidate agent deployed on the local side as the target agent;

[0101] Step S503, when the current connection method is remote network connection, select the candidate agent deployed on the cloud side as the target agent;

[0102] Step S504, when the current connection method includes short-range networking connection and remote network connection, select the candidate agent deployed on the cloud side or the candidate agent deployed on the local side according to the execution requirements of the task to be executed.

[0103] In this embodiment, when the number of candidate agents is greater than one, that is, when the agents for implementing the service types of the tasks to be executed are deployed on the edge side or the cloud side at the same time, the current connection mode of the target operating device is determined according to the network connection information of the target operating device. The network connection information includes the network support mode of the target operating device (such as remote network connections like LoRa, etc. or short-range connections like ZigBee and Bluetooth) and the network status. If the network support mode of the target operating device only supports short-range connections, or supports both short-range connections and remote connections but the remote connection network is disconnected or unstable, then the current connection mode is short-range network connection. If the network support mode of the target operating device only supports remote connections, then the current connection mode is remote network connection. If the target operating device supports both short-range connections and remote connections and the remote connection network status is good, then the current connection mode includes short-range network connection and remote network connection. When it is determined that the current connection mode is remote network connection, the candidate agent deployed on the cloud side is selected as the target agent to control the target operating device. When it is determined that the current connection mode is short-range network connection, the candidate agent deployed on the edge side is selected as the target agent to achieve stable control of the target operating device. If the current connection mode includes short-range network connection and remote network connection, the candidate agent deployed on the cloud side or the candidate agent deployed on the edge side is selected according to the execution requirements of the task to be executed. The execution requirements include the amount of data processing required to process the task to be executed and the real-time requirement.

[0104] Specifically, according to the task to be executed representing the intent recognition result, the system starts the distribution decision module. This module makes decisions based on the pre-set routing rules. First, it evaluates the network connection mode and status. If the network connection is stable and the bandwidth is sufficient, for intents that require a large amount of data processing (such as searching for specific music resources), cloud-side distribution is considered. If both the master and slave devices support Bluetooth / IR mode and are paired, and for intents with high real-time requirements (such as turning on the door light), edge-side distribution is preferentially selected. For example, in a home entertainment scenario, for the user instruction "Play the latest hit movie", if there are newer and faster resources on the cloud video resource platform and the network is good, the decision module will select cloud-side distribution to send instructions to the TV agent and the audio agent, and find and play the appropriate movie through cloud search and recommendation functions; while for the user instruction "Pause playback", considering that this is a simple local operation with high real-time requirements, edge-side distribution will be selected and directly sent to the TV and audio agents.

[0105] In step S104 of some embodiments, after determining the target agent, the corresponding agent instruction can be determined according to the task to be executed in combination with the function call format of the target agent, and the agent instruction is distributed to the target agent to implement the user intention. Environmental information in the home can also be added to the agent instruction as reference data for the agent to achieve accurate feedback.

[0106] Please refer to Figure 6 , in some embodiments, the method for implementing intelligent scenarios of multiple agents in the embodiments of the present application may further include but are not limited to the following steps:

[0107] Step S601, obtaining the execution result information of the task to be executed returned by the target agent;

[0108] Step S602, in the case that the execution result information indicates execution failure, generating a new task to be executed according to the error reason of the execution result information, and resending the agent instruction corresponding to the new task to be executed to the target agent.

[0109] In this embodiment, the execution result information of the task to be executed returned by the target agent can be execution failure information or execution success information. The error reason is included in the execution failure information, and the query content etc. may be further included in the execution success information. In the case that the execution result information indicates execution failure, a new task to be executed is generated according to the error reason of the execution result information, and the agent instruction corresponding to the new task to be executed is resent to the target agent. For example, according to the distribution decision, the task to be executed is distributed to the corresponding agent through a secure and reliable communication protocol. After receiving the corresponding agent instruction, the target agent performs corresponding operations according to its internal programs and algorithms. During the execution process, the agent feeds back the execution result information and the broadcast content to the agent platform in real time. For example, when the audio agent plays music, if there is an abnormal playback, it will feed back the execution result information of the error message to the agent platform. The agent platform can adjust the execution parameters according to the feedback information (such as the type of music played or re-specifying the music type), then generate a task to be executed based on the new execution parameters, and then route the task to be executed to the target agent to re-select music resources. Or, in the case of playback failure, the agent platform can also prompt the user through the main control device. Another example is that for an intention with high real-time requirements (such as turning on the door light), when the near-field communication fails after preferentially selecting the edge-side agent for distribution, and the agent platform finds that the controlled device supports the IOT (Internet of Things) control method, the agent can select the cloud-side agent to retry distributing this task. For some scenarios that require continuous monitoring (such as the working condition of the camera in the security monitoring scenario), the agent regularly sends a working status report to the central processing unit to ensure the stable operation of the entire intelligent home system.

[0110] Please refer to Figure 7 , in some embodiments, the method for implementing a smart scenario based on multiple agents in the embodiments of the present application may further include but is not limited to the following steps:

[0111] Step S701: Associate multiple tasks to be executed output by the large language model, and determine the task scheduling order;

[0112] Step S702: Schedule multiple tasks to be executed according to the task scheduling order.

[0113] In this embodiment, based on a user instruction, through the intention recognition and classification of the large language model, multiple tasks to be executed corresponding to multiple user intentions can be determined. And multiple tasks to be executed may require the cooperation of multiple agents. Based on this, in this embodiment, multiple tasks to be executed output by the large language model are associated with tasks, the task scheduling order is determined, and multiple tasks to be executed are scheduled according to the task scheduling order. Specifically, the current task to be executed is scheduled to obtain the output result of the target agent of the currently scheduled task to be executed, the output result is added to the next task to be executed, and the next task to be executed is scheduled.

[0114] Exemplarily, please refer to Figure 10 , when it is found through the analysis of some complex intentions that multi-agent cooperation is required to complete, the system will automatically discover and execute relevant agents, use the output information of the previous agent as the input information or environmental information of the next agent, and use the large language model to combine device information and environmental information, etc., to infer the user's intention and determine the next task to be executed, improving the user experience. For example, for the user instruction "I'm going on a business trip to Shanghai tomorrow. What clothes should I wear?", through intention recognition and analysis, the multiple tasks to be executed to achieve the user's intention are respectively "Query the weather in Shanghai tomorrow", "Query dressing suggestions", and "Query the types of clothes at home". The agent platform will call the weather query agent through cloud distribution to query information such as the weather, temperature, wind force, and dressing index in Shanghai tomorrow; then distribute it to the item storage agent through the cloud to query the information of the clothes already stored in the home wardrobe; finally, the agent platform will combine the weather information, clothing information, and context information in the user instruction of the business trip scenario to generate an instruction for the dressing query agent, and the language model of the dressing query agent will perform reasoning to provide the user with appropriate clothing matching suggestions.

[0115] Next, please combine Figure 11 , and elaborate on the application of the method for implementing a smart scenario of multiple agents in the embodiments of the present application in a smart home.

[0116] In such as Figure 11In the smart home scenario shown, there is at least one intelligent master device (such as a smart speaker). The IOT platform system has included various controlled devices and related status information in multiple rooms of the whole house, such as all lighting devices (including bedside lamps, chandeliers, etc., each lamp has a switch and brightness adjustment function), and possibly sleep-related sensors (such as light sensors, temperature sensors, etc.). These controlled devices can be of different manufacturers and brands. Multiple smart home agents such as home control, schedule, weather query, and encyclopedia Q&A have been developed and deployed in the agent platform system. Among them, the home control agent can control and adjust smart home devices through the IOT network or Bluetooth according to the home device information and status; the schedule agent can provide functions such as setting, querying, and reminding of schedule arrangements; the weather query agent provides the function of querying weather forecasts for provinces, cities, districts, and major cities around the world.

[0117] Taking the scenario where a user is about to go to sleep at night as an example, the following illustrates how this embodiment realizes intent recognition and distribution. When the user issues the instruction "Turn off all the lights in the bedroom, activate the sleep mode of the bedroom air conditioner, and set an alarm to wake me up at 7 o'clock tomorrow morning", the following steps are executed:

[0118] S1: The master device receives the user's voice instruction through ASR and converts it into a text instruction and sends it to the agent platform;

[0119] S2: The intent classification module of the agent platform calls the language large model to classify the text instruction, identifies three intents, and correspondingly obtains three tasks to be executed.

[0120] S3: Determine the agents corresponding to the business functions of each task to be executed, and distribute instructions to the agents. Specifically as follows:

[0121] For the task of turning off all the lights in the bedroom, the intent distribution module discovers that there are chandeliers and table lamps in the room according to the environmental information (such as room temperature) and device information (device list, device attributes and status, etc.) provided by the IOT platform. Among them, the chandelier only supports IOT control, and the table lamp supports Bluetooth control. The intent distribution module distributes instructions according to the intent and routing rules of this task as follows:

[0122] S11: The intent distribution module distributes to the home control agent through the cloud side. If the home control agent finds that the chandelier is in the on state, it will execute the instruction to turn off the chandelier through the IOT platform and feedback the execution result record (the chandelier has been turned off) to the agent platform;

[0123] S12: The intent distribution module distributes to the home control agent through the end side. If the home control agent finds that the table lamp supports Bluetooth control and is already connected to Bluetooth, it will directly send a Bluetooth signal to turn off the table lamp.

[0124] For the task of starting the sleep mode of the bedroom air conditioner, the intent distribution module distributes instructions based on the environmental information (room, temperature, and humidity), device information (device list, device attributes, and status, etc.) provided by the IOT platform and the routing rules. The intent distribution module discovers that there is only one air conditioner in the room and it supports IOT control. The system distributes instructions to the smart home control agent through the cloud side, and then executes the air conditioner turn-on instruction through the IOT platform. After turning on the air conditioner, the smart home control agent can perform intelligent operations such as setting the temperature and turning on the sleep mode through the following steps:

[0125] S21: The smart home control agent will further set a suitable temperature according to the user's habit of using the air conditioner;

[0126] S22: If the smart home control agent has not recorded the user's air conditioner usage habit data, but the smart home control agent will query the current temperature value of the temperature sensor and automatically set a suitable air conditioner temperature;

[0127] S23: If the smart home control agent fails to query the user's air conditioner usage habit and the temperature sensor, the smart home control agent will send a weather query intent and the intent source (smart home control agent) to the intent distribution module;

[0128] S24: After receiving the weather query intent, the intent distribution module will form a weather query instruction based on the environmental information (local area code and current date and time) and distribute it to the weather query agent through the cloud to query the local weather conditions at that time, and return the query result to the intent source (smart home control agent); The smart home control agent automatically sets a suitable air conditioner temperature according to the latest weather and temperature information provided by the weather query agent;

[0129] S25: Automatically set a suitable air conditioner temperature and turn on the sleep mode of the air conditioner. Here, the two air conditioner operation instructions are the same as the air conditioner turn-on instruction, and both are distributed through the cloud side and executed through the IOT platform;

[0130] S26: After the controlled device completes the instruction, it will report the execution result to the smart home control agent, and the smart home control agent will return the result broadcast content to the main control device according to the actual situation, such as "The air conditioner has been turned on, the temperature has been set to 26 degrees, and the sleep mode of the air conditioner has been started".

[0131] During the process from S21 to S26, the capabilities of intent recognition, intent analysis, function calling, etc. of the large language model are fully utilized, and intent distribution is carried out in combination with device information and environmental information, as well as collaborative processing among different agents, so as to provide intelligent services for users. The distribution of the instruction "What clothes should I wear for a business trip to Shanghai tomorrow?" mentioned in the previous text also adopts a similar mechanism and steps to achieve the collaboration of the weather agent and the item storage agent, providing intelligent recommendations for users.

[0132] For the instruction to set an alarm, the intent distribution module discovers that the master device itself has the functions of local storage and schedule (or alarm) setting. The intent distribution module sends the instruction to the schedule agent through side-end distribution. The schedule agent generates an alarm setting instruction (information such as time, ringtone, repeat times, etc.) and sends it to the active device. The schedule (or alarm) in the active device saves the instruction setting and broadcasts "The 7 o'clock alarm for tomorrow morning has been set for the master. Have a good night". Until 7 o'clock the next morning, the ringtone sounds.

[0133] The above steps reflect the intelligent recognition and distribution of user intents by the method and device of this patent, as well as the collaborative mechanism of multiple agents, improving the intelligent level of the intelligent home system and enhancing the user experience.

[0134] According to some embodiments of the present application, this embodiment constructs a comprehensive intent recognition system by integrating the characteristics of the device side (such as device type, function, current status), the current business scenario (such as entertainment, daily life, security protection, etc. scenarios), the characteristics of the scenario plug-in tool (functions, parameters, etc.) and user instructions (in the forms of voice, text, etc.). Utilizing the powerful semantic understanding ability of the large model, in-depth analysis is carried out on these multi-source information to accurately mine the true intent of the user, overcoming the limitation of the traditional method using a single-dimensional analysis of user instruction information.

[0135] According to some embodiments of the present application, this embodiment supports two distribution methods: cloud side and side end. Cloud side distribution utilizes the big data storage, powerful computing resources and rich model algorithms on the cloud. For complex user instructions, such as tasks involving a large amount of data query or complex calculations (such as selecting appropriate films from a vast amount of online video resources according to user preferences), they can be efficiently processed through cloud side distribution. Side-end distribution focuses on meeting the low-latency and local data processing requirements. For some instructions with high real-time requirements and that can be independently processed by local devices (such as instant on / off operations of local devices through Bluetooth or infrared, etc.), side-end distribution can respond quickly, improving the response speed and flexibility of the entire system.

[0136] According to some embodiments of the present application, this embodiment combines the semantic understanding ability of large language models with various routing rules. The routing rules comprehensively consider multiple factors such as device compatibility, agent load conditions, network connection status, the priority of business scenarios, and the agent's execution ability for instructions, etc., to achieve intelligent distribution and mutual cooperation. For example, when the network is congested or the device has control methods such as Bluetooth and infrared, the end-side is preferentially selected to distribute simple instructions to reduce latency; when performing complex tasks and the device supports cloud collaboration, the appropriate cloud-side path and agent are selected based on the semantic understanding result. This fusion strategy realizes more intelligent and flexible multi-agent cooperation and instruction distribution, effectively improving the overall performance of the smart home system.

[0137] Please refer to Figure 8 , an intelligent scenario implementation system based on multi-agents is proposed in the embodiments of the present application, including:

[0138] The first module is used to identify and classify user intentions through a large language model to obtain at least one task to be executed;

[0139] The second module is used to parse the task to be executed to determine the target operation device;

[0140] The third module is used to determine the target agent according to the network connection information of the target operation device and the service type of the task to be executed;

[0141] The fourth module is used to determine the corresponding agent instruction according to the task to be executed and distribute the agent instruction to the target agent.

[0142] It can be understood that the content in the above embodiments of the intelligent scenario implementation method based on multi-agents is applicable to the embodiments of this system. The functions specifically implemented by the embodiments of this system are the same as those of the above embodiments of the intelligent scenario implementation method based on multi-agents, and the beneficial effects achieved are also the same as those of the above embodiments of the intelligent scenario implementation method based on multi-agents.

[0143] The embodiments of the present application also provide an electronic device, which includes: a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for realizing the connection and communication between the processor and the memory. When the program is executed by the processor, it implements the above-mentioned intelligent scenario implementation method based on multi-agents. This electronic device can be any intelligent terminal including a tablet computer, an in-vehicle computer, etc.

[0144] Please refer to Figure 9 , Figure 9 shows the hardware structure of an electronic device in another embodiment. The electronic device includes:

[0145] The processor 901 can be implemented in ways such as a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0146] The memory 902 can be implemented in forms such as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 902 and are called by the processor 901 to execute the multi-agent-based intelligent scenario implementation method of the embodiments of the present application;

[0147] The input / output interface 903 is used to implement information input and output;

[0148] The communication interface 904 is used to implement communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.);

[0149] The bus 905 transmits information between the various components of the device (such as the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0150] Among them, the processor 901, the memory 902, the input / output interface 903, and the communication interface 904 achieve communication connections with each other inside the device through the bus 905.

[0151] The embodiments of the present application also provide a storage medium. The storage medium is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned multi-agent-based intelligent scenario implementation method.

[0152] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory optionally includes a memory remotely provided with respect to the processor, and these remote memories can be connected to the processor through a network. Examples of the above networks include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0153] The method, apparatus, electronic device, and storage medium for implementing a smart scenario based on multi-agent provided by the embodiments of the present application identify and classify user intentions through a large language model to obtain at least one task to be executed, then parse the task to be executed to determine the target operation device, and then determine the target agent according to the network connection information of the target operation device and the service type of the task to be executed, determine the corresponding agent instruction according to the task to be executed, and distribute the agent instruction to the target agent. In the agent routing process of the embodiments of the present application, in addition to considering the service type of the task, the network connection information of the target operation device in the task is also considered, so that an agent with a better network can be selected to implement the service, improving the efficiency of realizing user requirements in the smart scenario and improving the user experience.

[0154] The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0155] Those skilled in the art can understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figures, or combine certain steps, or different steps.

[0156] The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0157] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices can be implemented as software, firmware, hardware, and appropriate combinations thereof.

[0158] In the description of this application and the above-mentioned accompanying drawings, terms such as "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0159] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally means that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or its similar expressions refer to any combination of these items, including any combination of single items (ones) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0160] In several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the above-mentioned division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling, direct coupling, or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of systems or units can be in electrical, mechanical, or other forms.

[0161] The units described above as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0162] In addition, in each embodiment of the present application, each functional unit can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0163] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present application. The foregoing storage medium includes: various media that can store programs, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.

[0164] The preferred embodiments of the embodiments of the present application have been described above with reference to the accompanying drawings. However, this does not limit the scope of the rights of the embodiments of the present application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall fall within the scope of the rights of the embodiments of the present application.

Claims

1. A method for realizing a smart scene based on multi-agents, characterized in that: The following steps are involved: Identify and classify user intent through a large language model to obtain at least one task to be performed; Analyze the task to be executed and determine the target operation device; Determine the target agent according to the network connection information of the target operating device and the business type of the task to be performed; Determine corresponding agent instructions according to the task to be performed, and distribute the agent instructions to the target agent.

2. The method according to claim 1, characterized in that The method of identifying and classifying user intent by using a large language model to obtain at least one task to be performed includes the following steps: In response to user instructions, collect device operation information of various devices in the current smart scene; Determine the current business scenario according to the user instruction and the device operation information; The user instructions, the device operation information and the current business scenario are input into a large language model to identify and classify user intent, and at least one task to be executed is obtained.

3. The method for realizing a multi-agent-based intelligent scene according to claim 2, characterized in that: The step of parsing the task to be executed and determining the target operation device comprises the following steps: Performing semantic analysis on the task to be executed to obtain an execution action and an execution object; When the type of the execution action is an interactive type, determining the main control device that receives the user instruction as the target operation device; When the type of the execution action is a control type, the execution object is determined as a target operation device.

4. The method for realizing a multi-agent-based intelligent scene according to claim 1, characterized in that: The step of determining the target agent according to the network connection information of the target operating device and the business type of the task to be executed comprises the following steps: Determine an agent for implementing the business type according to the business type of the task to be performed, and obtain a candidate agent; When the number of candidate agents is one, the candidate agent is determined as the target agent; When the number of candidate agents is greater than one, a candidate agent deployed on the cloud side or a candidate agent deployed on the terminal side is selected according to the network connection information of the target operating device.

5. The method for realizing a multi-agent-based intelligent scene according to claim 4, characterized in that: The step of selecting a candidate agent deployed on the cloud side or a candidate agent deployed on the terminal side according to the network connection information of the target operating device comprises the following steps: Determining the current connection mode of the target operating device according to the network connection information of the target operating device; When the current connection mode is a short-range networking connection, a candidate agent deployed on the terminal side is selected as the target agent; When the current connection mode is a remote network connection, a candidate agent deployed on the cloud side is selected as the target agent; When the current connection mode includes a short-range networking connection and a long-range network connection, a candidate intelligent agent deployed on the cloud side or a candidate intelligent agent deployed on the terminal side is selected according to the execution requirements of the task to be executed.

6. The method for realizing a multi-agent-based intelligent scene according to claim 2, characterized in that: The multi-agent smart scene implementation method also includes the following steps: Obtaining the execution result information of the task to be executed returned by the target agent; In the case where the execution result information indicates that the execution has failed, a new task to be executed is generated according to the error cause of the execution result information, and the agent instruction corresponding to the new task to be executed is resent to the target agent.

7. The method for realizing a multi-agent-based intelligent scene according to claim 2, characterized in that: The multi-agent-based smart scene implementation method further includes the following steps: Associating multiple tasks to be executed output by the large language model to determine a task scheduling order; Scheduling the plurality of tasks to be executed according to the task scheduling order specifically includes: Schedule the current task to be executed to obtain the output result of the target agent of the currently scheduled task to be executed; The output result is added to the next task to be executed, and the next task to be executed is scheduled.

8. A multi-agent based intelligent scene realization system, characterized in that: include: The first module is used to identify and classify user intent through a large language model to obtain at least one task to be performed; The second module is used to analyze the task to be executed and determine the target operation device; The third module is used to determine the target intelligent agent according to the network connection information of the target operating device and the business type of the task to be executed; The fourth module is used to determine the corresponding agent instructions according to the task to be executed, and distribute the agent instructions to the target agent.

9. An electronic device, characterized in that: The electronic device includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the steps of the method described in any one of claims 1 to 7 are realized.

10. A storage medium, the storage medium being a computer-readable storage medium, used for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any one of claims 1 to 7.

Citation Information

Cited By

  • Multi-intention-based equipment interaction method and device, storage medium and electronic device

    CN120872462A

  • Intelligent voice interaction method and device of lifting table, lifting table and storage medium

    CN120895032A

  • Multi-modal data processing method and system, electronic equipment and program product

    CN121093241A