CN-122018856-A - Communication method and application device
Abstract
The embodiment of the application provides a communication method which is applied to the AI field, and can acquire first interface vector information of a first service provided by a first service platform from a second network element after a first network element receives service requirements of service request equipment aiming at a non-declarative API of the first service, and call a multi-mode large model according to the first interface vector information and the first information to acquire first response information of the service requirements of the non-declarative API. The first response information includes first translation information of the non-declarative API translation to the first interface. By adopting the embodiment of the application, the non-declarative API can be converted into the declarative API, which is beneficial to improving the development efficiency.
Inventors
- ZUO JUN
- XIE CAILANG
- WANG GUOWEI
- SUN ZHAO
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241112
Claims (20)
- 1. A communication system comprising a first network element, a second network element, and a service request device, wherein: The second network element is configured to store first interface vector information, where the first interface vector information is interface vector information of a first interface of a first service provided by a first service platform, and the first interface is a declarative application program interface API; The first network element is configured to receive first information of a service request device, where the first information is used to indicate a service requirement of a non-declarative API of the first service; the first network element is further configured to obtain the first interface vector information from the second network element; The first network element is further configured to call a multi-mode big model according to the first interface vector information and the first information to obtain first response information of the service appeal, where the first response information includes first conversion information of the non-declarative API into the first interface.
- 2. The system of claim 1, wherein invoking a multi-modal large model to obtain first response information for the business appeal based on the first interface vector information and the first information comprises: Acquiring a first prompt word according to the first interface vector information and the first information; Sending a first request comprising the first prompt word to a multi-mode big model, wherein the first request is used for acquiring first response information of the service appeal; The first response information is received from the multimodal big model.
- 3. The system according to claim 1 or 2, wherein, The first network element is further configured to obtain the first interface vector information according to account opening information and resource configuration information of the first service platform; the first network element is further configured to send a storage request for the first interface vector information to the second network element, where the storage request is used to indicate to store the first interface vector information.
- 4. A system according to any one of claims 1 to 3, wherein the first response information further comprises first billing information for the service appeal; The first network element is further configured to determine the first charging information according to account opening information of the first service platform.
- 5. The system according to any one of claim 1 to 4, wherein, The first interface vector information includes first document vector information and first example vector information of the first interface; the first conversion information is obtained by converting the business appeal by the multi-mode big model based on first document information and first example information; The vector information of the first document information is the first document vector information, and the vector information of the first example information is the first example vector information.
- 6. The system of any one of claim 1 to 5, wherein, The first network element is further configured to send the first response information to the first service platform; The first network element is further configured to receive a first acknowledgement response or a first error response of the first service platform for the first response information.
- 7. The system of claim 6, wherein the system further comprises a controller configured to control the controller, The first network element is further configured to send a second acknowledgement response for the first information to the service request device if the first acknowledgement response is received.
- 8. The system of claim 6, wherein the system further comprises a controller configured to control the controller, The second network element is configured to store second interface vector information, where the second interface vector information is interface vector information of a second interface of the first service provided by a second service platform, and the second interface is a declarative API; the first network element is further configured to obtain the second interface vector information from the second network element when the first error response is received; The first network element is further configured to call the multi-mode large model according to the second interface vector information and the first information to obtain second response information of the service appeal, where the second response information includes second conversion information of converting the non-declarative API into the second interface.
- 9. A method of communication, applied to a first network element, the method comprising: receiving first information of service request equipment, wherein the first information is used for indicating service requirements of a non-declarative application program interface API of the first service; acquiring first interface vector information from a second network element, wherein the first interface vector information is interface vector information of a first interface of a first service provided by a first service platform, and the first interface is a declarative API; and calling a multi-mode big model according to the first interface vector information and the first information to acquire first response information of the service appeal, wherein the first response information comprises first conversion information of converting the non-declarative API into the first interface.
- 10. The method of claim 9, wherein invoking a multi-modal large model to obtain first response information for the business appeal based on the first interface vector information and the first information comprises: Acquiring a first prompt word according to the first interface vector information and the first information; Sending a first request comprising the first prompt word to a multi-mode big model, wherein the first request is used for acquiring first response information of the service appeal; The first response information is received from the multimodal big model.
- 11. The method according to claim 9 or 10, further comprising: Acquiring the first interface vector information according to account opening information and resource configuration information of the first service platform; and sending a storage request of the first interface vector information to the second network element, wherein the storage request is used for indicating to store the first interface vector information.
- 12. The method according to any one of claims 9 to 11, wherein the first response information further comprises first billing information for the service appeal, the method further comprising: And determining the first charging information according to the account opening information of the first service platform.
- 13. The method according to any one of claims 9 to 12, wherein, The first interface vector information includes first document vector information and first example vector information of the first interface; the first conversion information is obtained by converting the business appeal by the multi-mode big model based on first document information and first example information; The vector information of the first document information is the first document vector information, and the vector information of the first example information is the first example vector information.
- 14. The method according to any one of claims 9 to 13, further comprising: sending the first response information to the first service platform; a first acknowledgement response or a first error response of the first service platform to the first response information is received.
- 15. The method as recited in claim 14, further comprising: and sending a second confirmation response aiming at the first information to the service request equipment under the condition that the first confirmation response is received.
- 16. The method as recited in claim 14, further comprising: Under the condition that the first error response is received, second interface vector information is obtained from the second network element, wherein the second interface vector information is interface vector information of a second interface of the first service provided by a second service platform, and the second interface is a declarative API; And calling the multi-mode big model to acquire second response information of the service appeal according to the second interface vector information and the first information, wherein the second response information comprises second conversion information of converting the non-declarative API into the second interface.
- 17. A communication device, comprising: A transceiver unit configured to receive first information, where the first information is used to indicate a service requirement of a non-declarative application program interface API of the first service; The transceiver unit is further configured to obtain first interface vector information from a second network element, where the first interface vector information is interface vector information of a first interface of a first service provided by a first service platform, and the first interface is a declarative API; And the processing unit is used for calling a multi-mode big model according to the first interface vector information and the first information to acquire first response information of the service appeal, wherein the first response information comprises first conversion information of converting the non-declarative API into the first interface.
- 18. The apparatus of claim 17, wherein the device comprises a plurality of sensors, The processing unit is used for acquiring a first prompt word according to the first interface vector information and the first information; The receiving and transmitting unit is further used for sending a first request comprising the first prompt word to the multi-mode big model, wherein the first request is used for acquiring first response information of the service appeal; the transceiver unit is further configured to receive the first response information from the multimodal big model.
- 19. The device according to claim 17 or 18, wherein, The processing unit is further used for acquiring the first interface vector information according to account opening information and resource configuration information of the first service platform; The transceiver unit is further configured to send a storage request for the first interface vector information to the second network element, where the storage request is used to instruct to store the first interface vector information.
- 20. The apparatus according to any of claims 17 to 19, wherein the first response information further comprises first charging information for the service appeal, the processing unit further configured to determine the first charging information based on account opening information for the first service platform.
Description
Communication method and application device Technical Field The application relates to the technical field of artificial intelligence (ARTIFICIAL INTELLIGENCE, AI), in particular to a communication method and an application device. Background Declarative application programming interfaces (application programming interface, APIs) refer to a service's APIs that need to be defined in advance to be developed by a client based on the API's interface documents, interface descriptions, protocols or specifications, etc. In the scenario of multi-manufacturer device interworking (usually, a client consumer is in butt joint with multiple service providers providing similar functions, such as APIs providing short message service), if some standard specifications can clearly define interoperation APIs of each manufacturer, it can avoid that each API is not uniform, reduce the workload of butt joint development, and is beneficial to butt joint between services, which is the first purpose of standardization of inter-network element interoperation interfaces by third generation partnership (3rd generation partnership project,3GPP). With the increasing proportion of interworking with external traffic interfaces, traditional declarative APIs have failed to meet the flexibility requirements of 3GPP intra-domain and inter-domain services. Disclosure of Invention The embodiment of the application discloses a communication method and an application device, which can convert non-declarative APIs into declarative APIs, and are beneficial to improving development efficiency. The embodiment of the application discloses a communication system, which comprises a first network element and a second network element, wherein the second network element is used for storing first interface vector information, the first interface vector information is interface vector information of a first interface of a first service provided by a first service platform, the first interface is a declarative API, the first network element is used for receiving first information of service request equipment, the first information is used for indicating service complaints of a non-declarative API of the first service, the first network element is also used for acquiring the first interface vector information from the second network element, and the first network element is also used for calling a multi-mode big model according to the first interface vector information and the first information to acquire first response information of the service complaints, and the first response information comprises first conversion information of the non-declarative API into the first interface. Thus, the non-declarative API can be converted into declarative API, which is beneficial to improving development efficiency. In embodiments of the application, the multi-modal large model (multimodal large model, MLM) may include a language large model (large language model, LLM), or may include a large video model (large video model, LVM), or may include a multi-modal large language model (multimodal large language model, MLLM), and the like, without limitation. Optionally, the multimodal big model has a communication function and can interact information with the first network element or other communication devices. The LLM can understand service appeal based on natural language, and complete conversion of specific text formats through relevant fine adjustment. For example, LLM generates code from the semantics of natural language descriptions. LLM can also learn domain knowledge through fine tuning techniques after extensive data pre-training. The fine tuning technique may be based on one sample hint (one shot prompt) or on a few sample hint (few shot prompts). In the embodiment of the application, the method is used for providing business services. The application does not limit the service type of the service provided by the service platform, and can be short message service, storage service, flow service and the like. The present application is exemplified by a first service platform and a second service platform that provide a first service, and in fact, other service platforms may exist in the communication system, and the first service platform or the second service platform may also provide other services. The first service may be any service provided by the service platform. Alternatively, the priority of the second service platform responding to the first service may be lower than the priority of the first service platform responding to the first service. The priorities of the second service platform and the first service platform may be preconfigured information, or may be specified by the service request device, or may be determined according to the working conditions of each service platform, for example, the priority of processing the first service may be determined according to the bandwidth, the processing speed, the residual capacity, and the like of the server