Data format processing method and device for object parameters, equipment, medium and product

By providing a data format processing method and apparatus for object parameters on the intelligent agent platform, the problem that the intelligent agent platform cannot handle object parameters of multiple data formats is solved, and successful API calls are realized.

CN121764628APending Publication Date: 2026-03-31BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-24
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

When calling APIs, the intelligent agent platform cannot accurately handle object parameters with multiple data formats, leading to call failures or failure to achieve the expected results.

Method used

A method and apparatus for processing the data format of object parameters are provided. By obtaining the first value of the object parameter, the second data format of the API configuration is determined, and the second value under the second data format is converted so that the intelligent agent platform can successfully call the API.

Benefits of technology

When calling APIs on the intelligent agent platform, it can effectively convert object parameters in various data formats, enabling the intelligent agent platform to successfully call the API and meet user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121764628A_ABST
    Figure CN121764628A_ABST
Patent Text Reader

Abstract

The invention discloses an object data format processing method and device, equipment, a medium and a product, and the method comprises the steps: in response to receiving a first demand for inputting and calling API execution on an agent platform, obtaining a first value of an object parameter corresponding to the first demand, the first value having a first data format; determining a second data format of the object parameter configured in the called API; and converting the first value into a second value in a second data format, wherein the second value is used by the agent platform for processing the object parameter corresponding to the first demand. Therefore, when the API is called on the agent platform and the object parameters with multiple data formats are involved, the API can be successfully called in the data format supported by the API.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, specifically to a method, apparatus, device, medium, and product for processing data format of object parameters. Background Technology

[0002] An intelligent agent platform is the infrastructure for building, managing, and applying intelligent agents. Based on artificial intelligence technology, it integrates data, algorithms, and tools to support intelligent agents in autonomously perceiving, making decisions, and executing tasks in specific scenarios, helping users (such as enterprises) efficiently develop professional intelligent applications. Currently, when calling server-side application programming interfaces (APIs) on an intelligent agent platform, if object parameters with multiple data formats (such as time) are involved, the platform cannot accurately process these parameters, resulting in unsuccessful API calls. Summary of the Invention

[0003] This application provides a method, apparatus, device, medium, and product for processing data formats of object parameters. When calling an API on an intelligent agent platform, if object parameters with multiple data formats are involved, the API can be successfully called using the data format supported by the API.

[0004] To achieve the above objectives, the technical solutions provided in this application are as follows:

[0005] In a first aspect of this application, a method for processing the data format of object parameters is provided, comprising:

[0006] In response to receiving a first request to call an API on the intelligent agent platform, the first value of the object parameter corresponding to the first request is obtained, and the first value has a first data format.

[0007] Determine the second data format of the object parameters configured in the API being invoked;

[0008] The first value is converted into a second value in the second data format, and the second value is used by the intelligent agent platform to process the object parameters corresponding to the first requirement.

[0009] In some implementations, obtaining the first value of the object parameter corresponding to the first requirement includes:

[0010] The first value of the object parameter is obtained from the intelligent agent platform, and the first value is obtained by parsing the first requirement.

[0011] In some implementations, obtaining the first value of the object parameter corresponding to the first requirement includes:

[0012] The first requirement in the intelligent agent platform is semantically parsed to determine the object parameters;

[0013] In response to the first requirement not including the parameter value of the object parameter, the first value of the object parameter is obtained based on the indication information corresponding to the first requirement, wherein the indication information indicates the method for obtaining the parameter value of the object parameter.

[0014] In some implementations, the method further includes:

[0015] In response to a configuration operation of the data format of the object parameter in the request field or response field of the API, configure the second data format for the object parameter in the request field of the API.

[0016] In some implementations, determining the second data format of the object parameters configured in the invoked API includes:

[0017] Obtain the data format corresponding to the object parameter from the request field or response field corresponding to the API, and use it as the second data format.

[0018] In some implementations, the method further includes:

[0019] In response to a user's configuration operation on the data format of the object parameter in the response field of the API, configure the second data format for the object parameter in the response field of the API.

[0020] In some implementations, the object parameter is time.

[0021] In some implementations, the object parameter is a phone number.

[0022] In some implementations, the method further includes:

[0023] Determine whether the first requirement involves the object parameters;

[0024] The step of obtaining the first value of the object parameter corresponding to the first requirement includes:

[0025] If it is determined that the first requirement involves the object parameter, then the first value of the object parameter involved in the first requirement is obtained.

[0026] In a second aspect of this application, a data format processing apparatus for object parameters is provided, comprising:

[0027] The first acquisition unit is configured to, in response to receiving a first request to call an API on the intelligent agent platform, acquire a first value of the object parameter corresponding to the first request, wherein the first value has a first data format.

[0028] The second acquisition unit is used to determine the second data format of the object parameters configured in the API being called;

[0029] A conversion unit is used to convert the first value into a second value in the second data format, and the second value is used by the intelligent agent platform to process the object parameters corresponding to the first requirement.

[0030] In some implementations, the first acquisition unit is specifically used for:

[0031] The first value of the object parameter is obtained from the intelligent agent platform, and the first value is obtained by parsing the first requirement.

[0032] In some implementations, the first acquisition unit is specifically used for:

[0033] The first requirement in the intelligent agent platform is semantically parsed to determine the object parameters;

[0034] In response to the first requirement not including the parameter value of the object parameter, the first value of the object parameter is obtained based on the indication information corresponding to the first requirement, wherein the indication information indicates the method for obtaining the parameter value of the object parameter.

[0035] In some implementations, the apparatus further includes:

[0036] A configuration unit is configured to configure the second data format for the object parameter in the request field of the API in response to a configuration operation of the data format of the object parameter in the request field of the API.

[0037] In some implementations, the second acquisition unit is specifically used for:

[0038] Obtain the data format corresponding to the object parameter from the request field or response field corresponding to the API, and use it as the second data format.

[0039] In some implementations, the object parameter is time.

[0040] In some implementations, the object parameter is a phone number.

[0041] In some implementations, the apparatus further includes:

[0042] The judgment unit is used to determine whether the first requirement involves the object parameters;

[0043] The first acquisition unit is specifically used for:

[0044] If it is determined that the first requirement involves the object parameter, then the first value of the object parameter involved in the first requirement is obtained.

[0045] In a third aspect of this application, an electronic device is provided, comprising: a processor and a memory; the memory for storing instructions or computer programs; and the processor for executing the instructions or computer programs in the memory to cause the electronic device to perform the method provided in the first aspect or any implementation thereof.

[0046] In a fourth aspect of this application, a computer-readable storage medium is provided, wherein instructions are stored therein, which, when executed on a processor, cause the processor to perform the method provided by the first aspect or any implementation thereof.

[0047] In a fifth aspect of this application, a computer program product is provided, the computer program product comprising a computer program or instructions, which, when executed by a processor, implement the method provided by the first aspect or any implementation thereof.

[0048] Therefore, this application has the following beneficial effects:

[0049] This application provides a method for processing the data format of object parameters. This method can be applied to a device for processing the data format of object parameters. This device can be a functional module existing independently of the model processing the first requirement on the agent platform. The device can convert the data format of the object parameters before, during, or after the model processes the first requirement. For example, the method may include: in response to receiving a first requirement input on the agent platform that needs to call an API, the object parameter data format processing device obtains a first value of the object parameter corresponding to the first requirement, the first value having a first data format; then, the object parameter data format processing device determines a second data format of the object configured in the called API; then, the object parameter data format processing device converts the first value into a second value under the second data format, the second value being used by the agent platform to process the object parameter corresponding to the first requirement. In this way, when calling an API on an intelligent agent platform, if object parameters with multiple data formats are involved, the data format processing device for the object parameters can convert the values ​​of the object parameters into values ​​under the data format configured for the API. This eliminates the need for the intelligent agent platform to understand and convert the data format of the object parameters. It solves the problem that the intelligent agent platform cannot understand the values ​​of object parameters with multiple data formats, nor can it perceive the data format supported by the API being called, thus failing to convert the data format and causing the API call to fail or not meet the user's expected API call. This makes it possible for the intelligent agent platform to successfully call the API when the API call requirement involves object parameters with multiple data formats. Attached Figure Description

[0050] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0051] Figure 1 A flowchart illustrating a data format processing method for object parameters provided in an embodiment of this application;

[0052] Figure 2 A schematic diagram illustrating a data format conversion process for object parameters provided in an embodiment of this application;

[0053] Figure 3 A schematic diagram illustrating another data format conversion process for object parameters provided in an embodiment of this application;

[0054] Figure 4A schematic diagram of the structure of a data format processing device 400 for object parameters provided in an embodiment of this application;

[0055] Figure 5 This is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of this application. Detailed Implementation

[0056] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present application.

[0057] Low-code development platforms (LCDPs) are development platforms that allow for the rapid generation of applications with no coding (i.e., zero code) or minimal coding. Users can develop applications through a visual approach, enabling developers of varying experience levels to create web and mobile applications using drag-and-drop components and model-driven logic through a graphical user interface. Due to these characteristics, LCDPs have gained widespread popularity. For example, the ApaaS platform, as a low-code development platform, aims to provide enterprises and developers with an environment for rapidly building, deploying, and managing applications without requiring users to write large amounts of low-level code from scratch.

[0058] Intelligent agent platforms, especially intelligent agent development platforms, focus on building artificial intelligence (AI) capabilities, providing functions such as AI skill orchestration, knowledge data processing, and effect optimization. They aim to quickly generate intelligent applications (such as meeting minutes generation and schedule management) through large language models (LLMs), making them a popular choice for enterprise users to develop intelligent applications.

[0059] Low-code development platforms and intelligent agent platforms are two popular and complementary development tools. Their collaborative application can meet the full lifecycle needs of enterprise users, from lightweight assistants to complex systems. For example, the AI ​​capabilities of intelligent agent platforms can be embedded into low-code development platforms, such as generating components through natural language or automatic code correction, improving development efficiency. Alternatively, intelligent agent platforms and low-code development platforms can be integrated into the same ecosystem. For instance, a customer relationship management (CRM) system built on a low-code development platform can utilize the intelligent analysis functions of the intelligent agent platform to automate the processing of user data. Therefore, the research and development of low-code development platforms, intelligent agent platforms, or ecosystems integrating both are crucial for the quality of services provided to users.

[0060] Currently, on intelligent agent platforms, users can call APIs based on their needs without opening the corresponding application, quickly and conveniently fulfilling their requirements, such as updating task time, querying customer information, or querying employee information. However, if this requirement involves object parameters with multiple data formats (such as time), theoretically, the model handling the API call task needs to understand the values ​​of the object parameters and be able to convert these values ​​between multiple data formats to meet the data format requirements of the different APIs being called. However, current intelligent agent platforms cannot understand the values ​​of such object parameters with multiple data formats, easily leading to "illusions," and are unable to perceive the data formats supported by the called API, failing to perform accurate data format conversions. This can easily result in API call failure or failure to achieve the user's expected effect.

[0061] Based on this, embodiments of this application provide a method for processing the data format of object parameters. This method can be applied to a device for processing the data format of object parameters. The method may include, for example, the following steps: in response to receiving a first request input on an intelligent agent platform that requires calling an API for execution, the device for processing the data format of object parameters obtains a first value of the object parameter corresponding to the first request, the first value having a first data format; then, the device for processing the data format of object parameters determines a second data format of the object parameter configured in the API being called; then, the device for processing the data format of object parameters converts the first value into a second value under the second data format, the second value being used by the intelligent agent platform to process the object parameter corresponding to the first request.

[0062] Thus, when calling an API on an intelligent agent platform, if object parameters with multiple data formats are involved, the current intelligent agent platform cannot understand the values ​​of such object parameters with multiple data formats, nor can it perceive the data format supported by the API being called. This inability to perform data format conversion leads to API call failure or failure to meet the user's expected API call. To solve the above problems, this application embodiment designs an object parameter data format processing device. Without complicating the current model, this device can convert the value of the object parameter into a value under the data format configured by the API. This eliminates the need for the intelligent agent platform to understand and convert the object parameter's data format, making it possible for the intelligent agent platform to successfully call the API when the API call requirement involves object parameters with multiple data formats.

[0063] It should be noted that, in this embodiment of the application, when the user's intelligent agent platform has a need to call an API, the user inputs a requirement (i.e., the first requirement), triggering the data format processing device of the object parameters to execute the method provided in this embodiment of the application to perform data format conversion of the object parameters. The first requirement could be, for example, the user inputting voice or text "Update the deadline of task A to today" on the interactive page of the intelligent agent platform, and the API called could be the API corresponding to task A; the first requirement could also be, for example, the user inputting voice or text "Please tell me today's meeting schedule" on the interactive page of the intelligent agent platform, and the API called could be the API corresponding to the meeting; the first requirement could also be, for example, the user inputting voice or text "Send a blessing message to colleagues who joined today and those celebrating their birthdays today" on the interactive page of the intelligent agent platform, and the API called could be the API corresponding to the address book.

[0064] It should be noted that the entity implementing the data format processing method for the object parameters can be the data format processing device for object parameters provided in the embodiments of this application. This data format processing device for object parameters can be housed in an electronic device or a functional module of an electronic device. For example, this data format processing device can be a functional module on an intelligent agent platform, existing independently of the model on the intelligent agent platform used to process the first requirement. This device can convert the data format of the object parameters before, during, or after the model processes the first requirement.

[0065] It should be noted that the data format processing device for object parameters provided in this application embodiment can be a function within an ecosystem where an intelligent agent platform and a low-code development platform collaborate, aiming to help models handling user needs understand and convert object parameters with multiple data formats. The intelligent agent platform in this document can be understood to include at least the ecosystem of intelligent agent platforms; for example, it can refer to the ecosystem where an intelligent agent platform collaborates with a low-code development platform.

[0066] Figure 1 This is a schematic flowchart illustrating a method for processing the data format of object parameters according to an embodiment of this application. This method can be applied to a data format processing device for object parameters, which may, for example, be... Figure 4 The data format processing device 400 for the object parameters shown.

[0067] like Figure 1 As shown, the method may include, for example, the following steps S101 to S103:

[0068] S101, in response to receiving a first request input on the intelligent agent platform that requires calling an API to execute, obtain the first value of the object parameter corresponding to the first request, the first value having a first data format.

[0069] The object parameter can include multiple data formats, and the first value is the value of the first data format corresponding to the intelligent agent platform among the multiple data formats.

[0070] The API in this application embodiment can be understood, for example, as a server-side API.

[0071] The object parameters in this application embodiment can refer to any object parameter with multiple data formats that may be involved when calling the API on the intelligent agent platform. Object parameters with multiple data formats can refer to the same value of an object parameter being represented in different ways, each of which can be understood as a data format of the object parameter. For example, the object parameter can be a time or a phone number. A phone number can refer to any number used for communication through a telephone network, and can generally be divided into two categories: mobile phone numbers (i.e., mobile phone numbers) or landline phone numbers (i.e., landline numbers). This application embodiment uses mobile phone numbers as an example for illustration.

[0072] Taking time as an example, November 20, 2025, 13:37:00 can be represented as: 1763515020000, which is a timestamp in milliseconds, representing the total number of milliseconds that have elapsed since January 1, 1970, 00:00:00 Coordinated Universal Time (UTC); or, it can be represented as 2025-11-20T13:37:00; or, it can be represented as: 1763515020, which is a timestamp in seconds, representing the total number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC; or, it can be represented as 2025-11-20.

[0073] For objects whose parameters are times, the data formats for these parameters include any of the following: second-level timestamps in string format, millisecond-level timestamps in string format, second-level timestamps in integer format, millisecond-level timestamps in integer format, year-month-day, year-month-day hour:minute:second, year-month-dayT hour:minute:second+n, or an integer time format without a separator, where T is the separator between the date and time, and n is the time zone offset of the time relative to UTC.

[0074] When the object parameter is a mobile phone number, the various data formats for this object parameter include any of the following formats: a mobile phone number in string format that includes a first identifier, a mobile phone number in string format that does not include the first identifier, a mobile phone number in integer format that includes the first identifier, or a mobile phone number in integer format that does not include the first identifier. The first identifier may, for example, be an identifier of the country or region to which the mobile phone number belongs.

[0075] For S101, when a user calls an API (also known as a third-party API) through the intelligent agent platform, they can input their first request on the intelligent agent platform's interactive page. This triggers the intelligent agent platform to call the corresponding API to fulfill the user's first request. The first request can be understood as a task proposed by the user on the intelligent agent platform that requires the platform to call the API to complete. This first request can be understood as a description of the task to be completed, enabling the intelligent agent platform to clearly define the target action to be performed. In addition to the target action, the first request may also include the API or its corresponding application.

[0076] As an example, the interactive interface of an intelligent agent platform may include an input box for inputting requirements, where users can enter their primary requirement based on their needs.

[0077] As another example, the interaction interface of the agent platform may include controls corresponding to different requirements. The user can operate the corresponding controls based on the requirements and input the first requirement directly or in a way that guides the user to continue selecting through a pop-up window.

[0078] In some possible implementation manners, after the user inputs the first requirement for the API to be called on the agent platform and before obtaining the first value of the object parameter corresponding to the first requirement, the method further includes: determining whether the first requirement involves an object parameter. If so, execute "obtaining the first value of the object parameter corresponding to the first requirement" and the subsequent steps to complete the conversion of the data format of the object parameter; if not, skip this method and directly complete the first requirement by the model in the agent platform for processing user requirements. For "obtaining the first value of the object parameter corresponding to the first requirement" in S101, for example, it may include: when it is determined that the first requirement involves an object parameter, obtaining the first value of the object parameter involved in the first requirement.

[0079] As an example, if the input (or also referred to as the request) corresponding to the first requirement includes an object parameter with multiple data formats, then, as Figure 2 shown, the agent platform can first parse the first requirement to obtain the first value of the object parameter, and this first value conforms to the first data format. The first data format can be understood as the data format used by the model in the agent platform for processing user requirements to represent this object parameter. In this example, S101 may, for example, include: obtaining the first value of the object parameter from the agent platform, and the first value is obtained by parsing the first requirement. For example, if the first requirement includes "today", the first value may be November 20, 2025, and the first data format may be: YYYY year MM month DD day.

[0080] As another example, if the input (or also referred to as the request) corresponding to the first requirement does not include an object parameter with multiple data formats but the first value of the object parameter can be obtained based on the indication information corresponding to the first requirement. S101 may, for example, include: performing semantic parsing on the first requirement in the agent platform to determine the object parameter; in response to the first requirement not including the parameter value of the object parameter, based on the indication information corresponding to the first requirement, obtaining the first value of the object parameter, and this indication information indicates the way to obtain the parameter value of the object parameter.

[0081] In one case, the indication information may be the acquisition method specified in the first requirement. For example, if the first requirement is "update the meeting time based on Email A", then the indication information may be Email A. S101 may include: first parsing the first requirement to determine the object parameter (i.e., the meeting time) represented in multiple data formats, and then based on "Email A" in the first requirement, obtaining the specific time (i.e., the first value) of the "meeting time" to be updated from "Email A".

[0082] In another case, the indication information may be a method for obtaining the first value that is not included in the first requirement but can be associated with the information in the first requirement. For example, if the first requirement is "query the employee information of Department A", then the indication information may be the employee address book. S101 may include: first parsing the first requirement to determine the object parameters (such as birthday, hire date, phone number, etc.) represented in multiple data formats, and then based on "the employee information of Department A" in the first requirement, obtaining the specific parameter values (i.e., the first value) of the object parameters such as the birthday, hire date, phone number, etc. of the employees in "Department A" from the "address book".

[0083] In yet another case, the indication information may be the information obtained from the processing result of the first requirement (which can be an intermediate processing result or a final processing result). For example, if the first requirement is "query the information of Company A", then the indication information may be the method for obtaining the parameter value related to the object parameter in the processing result of this first requirement (i.e., the information query result of Company A). S101 may include: first parsing the first requirement to determine the object parameters (such as establishment time, phone number, etc.) represented in multiple data formats, and then based on "Company A" in the first requirement, obtaining the specific parameter values (i.e., the first value) of the object parameters including the establishment time, phone number, etc. related to Company A.

[0084] In the following, an example is given with the indication information being the information in the processing result of the first requirement by the intelligent agent platform.

[0085] As Figure 3 shown, the model in the intelligent agent platform for processing user requirements can directly process the first requirement, and the obtained processing result may include the first value of the object parameter. The first data format that this first value conforms to can be understood as the data format adopted by the model in the intelligent agent platform for processing user requirements when reflecting this object parameter. For example, the processing result of processing the first requirement includes "November 20, 2025", and "November 20, 2025" is the first value, and the first data format is: YYYY year MM month DD day.

[0086] It should be noted that in some scenarios, the input and output corresponding to the first requirement can include object parameters with multiple data formats. The first value in the input and output can be the same, but the second data formats can be different. The second data format corresponding to the input determines the expression of the object parameter in the model used to process the user's requirements in the intelligent agent platform, and the second data format corresponding to the output determines the expression of the object parameter when displayed to the user or when operating the application corresponding to the API.

[0087] S102, determine the second data format of the object parameters configured in the API being called.

[0088] S103, convert the first value into a second value in a second data format, and the second value is used by the intelligent agent platform to process the object parameters corresponding to the first requirement.

[0089] The second data format is one of the various data formats included in the object parameters.

[0090] Regarding the second data format, prior to S102, the method may further include: in response to a configuration operation of the data format of an object parameter in a request field or response field of the API, configuring the second data format for the object parameter in the request field of the API. Accordingly, S102 may include, for example, obtaining the data format corresponding to the object parameter from the request field or response field corresponding to the API, and using it as the second data format.

[0091] If the input (or request) corresponding to the first requirement includes object parameters with multiple data formats, S102 may include: obtaining the data format corresponding to the object parameter from the request field corresponding to the API, denoted as the second data format.

[0092] The configuration of the data format of the object parameter in the request field corresponding to the API can, in one case, be pre-set by the user. For example, before S102, the method may further include: in response to the user's configuration operation of the data format of the object parameter in the API's request field, configuring a second data format for the object parameter in the API's request field, the second data format being a data format supported by the API for the object parameter. Alternatively, in another case, the object parameter data format processing device may automatically configure it based on the data format of the object parameter supported by the API. For example, before S102, the method may further include: automatically configuring a second data format for the object parameter in the API's request field based on a media file (such as an API-related standard) of the data format of the object parameter supported by the API.

[0093] like Figure 2As shown, after a user inputs a first request to call an API on the intelligent agent platform, this first request includes time A. The data format processing device for this object parameter can first convert time A into time B, and then transmit time B to the model in the intelligent agent platform used to process the user's request. This model processes the first request including time B and obtains the processing result. It should be noted that time A and time B refer to the same time t, only the data formats expressing that time t are different.

[0094] If the output (or response) corresponding to the first requirement includes object parameters with multiple data formats, S102 may include: obtaining the data format corresponding to the object parameter from the response field corresponding to the API, denoted as the second data format.

[0095] The configuration of the data format of the object parameter in the response field corresponding to the API can, in one case, be pre-set by the user. For example, before S102, the method may further include: in response to the user's configuration operation of the data format of the object parameter in the API's response field, configuring a second data format for the object parameter in the API's response field, the second data format being a data format supported by the API for the object parameter. Alternatively, in another case, the object parameter data format processing device may automatically configure it based on the data format of the object parameter supported by the API. For example, before S102, the method may further include: automatically configuring a second data format for the object parameter in the API's response field based on a media file (such as an API-related standard) of the data format of the object parameter supported by the API.

[0096] like Figure 3 As shown, after a user inputs a first request to call an API on the intelligent agent platform, this first request does not include time. The model in the intelligent agent platform that processes the user's request can first process the first request and obtain processing result 1. If processing result 1 includes time A, then the data format processing device of the object parameter can convert time A into time B. Then, based on processing result 1 including time B, subsequent output (display or operation of the corresponding application) can be performed. Time B can be fed back to the model in the intelligent agent platform that processes the user's request. This model performs subsequent processing based on processing result 1 including time B to obtain processing result 2. Alternatively, processing result 1 including time B can be directly output. Figure 3 The output result 2 is shown as an example. It should be noted that time A and time B indicate the same time t, only the data format expressing that time t is different.

[0097] Furthermore, for cases where both the input and output of the first requirement include object parameters with multiple data formats, as an example, S102 may include: obtaining the data format corresponding to the object parameter from the request field corresponding to the API, denoted as the second data format. After S103, the method may further include: obtaining the data format corresponding to the object parameter from the response field corresponding to the API, denoted as the third data format; and converting the second value into a third value under the third data format.

[0098] As another example, before S102, the method may further include: obtaining the data format corresponding to the object parameter from the request field corresponding to the API, denoted as the third data format; converting the first value to a value under the third data format, denoted as the updated first value. Then, S102 may include: obtaining the data format corresponding to the object parameter from the response field corresponding to the API, denoted as the second data format; S103 may include: converting the updated first value to a second value under the second data format.

[0099] It should be noted that, in some cases, the processing result of the first requirement may be a response message on the interactive page of the intelligent agent platform in response to the user's input of the first requirement, which includes a second value or a processing result based on the second value; in other cases, the first requirement may be reflected on the application corresponding to the API called on the intelligent agent platform.

[0100] For example, the first requirement is to change the deadline of task A to tomorrow. The API called is the API corresponding to the application carrying task A. The processing result can be reflected in the application carrying task A, adding a deadline task A tomorrow, or adding a reminder or details about the deadline to task A. Another example is to send birthday wishes to employees who are celebrating their birthday today or have been with the company for n years (n can be flexibly set to an integer greater than or equal to 1 or a numerical range). The API called is the API corresponding to the address book, with the object parameters being the employee's birthday and date of employment. The processing result can be reflected in the instant messaging client of the employee celebrating their birthday or their nth anniversary, showing them receiving a birthday wish message or a message celebrating their nth anniversary. Yet another example is to query employee A's meeting schedule for today. The API called is the API corresponding to the application that records meeting schedules. The processing result can be reflected on the interactive page of the intelligent agent platform, providing details of employee A's meetings today, including the start time, duration, etc.

[0101] As can be seen, by using this method, when calling an API on an intelligent agent platform, if object parameters with multiple data formats are involved, the data format processing device of the object parameters can convert the value of the object parameters into the value under another data format configured by the API. Thus, the intelligent agent platform does not need to understand and convert the data format of the object parameters. When the requirement to execute the API through the intelligent agent platform involves object parameters with multiple data formats, it makes it possible for the intelligent agent platform to successfully call the API.

[0102] Accordingly, embodiments of this application also provide a data format processing device 400 for object parameters, such as... Figure 4 As shown. The device 400 may include:

[0103] The first acquisition unit 401 is configured to, in response to receiving a first request to call an API on the intelligent agent platform, acquire a first value of the object parameter corresponding to the first request, wherein the first value has a first data format.

[0104] The second acquisition unit 402 is used to determine the second data format of the object parameters configured in the API being called;

[0105] The conversion unit 403 is used to convert the first value into a second value in the second data format, and the second value is used by the intelligent agent platform to process the object parameters corresponding to the first requirement.

[0106] In some implementations, the first acquisition unit 401 is specifically used for:

[0107] The first value of the object parameter is obtained from the intelligent agent platform, and the first value is obtained by parsing the first requirement.

[0108] In some implementations, the first acquisition unit 401 is specifically used for:

[0109] The first requirement in the intelligent agent platform is semantically parsed to determine the object parameters;

[0110] In response to the first requirement not including the parameter value of the object parameter, the first value of the object parameter is obtained based on the indication information corresponding to the first requirement, wherein the indication information indicates the method for obtaining the parameter value of the object parameter.

[0111] In some implementations, the device 400 further includes:

[0112] A configuration unit is configured to configure the second data format for the object parameter in the request field of the API in response to a configuration operation of the data format of the object parameter in the request field of the API.

[0113] In some implementations, the second acquisition unit 402 is specifically used for:

[0114] Obtain the data format corresponding to the object parameter from the request field or response field corresponding to the API, and use it as the second data format.

[0115] In some implementations, the object parameter is time.

[0116] In some implementations, the object parameter is a phone number.

[0117] In some implementations, the device 400 further includes:

[0118] The judgment unit is used to determine whether the first requirement involves the object parameters;

[0119] The first acquisition unit 401 is specifically used for:

[0120] If it is determined that the first requirement involves the object parameter, then the first value of the object parameter involved in the first requirement is obtained.

[0121] It should be noted that the specific implementation of the device 400 and the technical effects it achieves can be found in the relevant description of the method shown in the embodiments of this application.

[0122] In addition, this application also provides an electronic device, the device including a processor and a memory: the memory is used to store instructions or computer programs; the processor is used to execute the instructions or computer programs in the memory so that the electronic device performs any implementation of the method provided in this application.

[0123] See Figure 5 This diagram illustrates a structural schematic of an electronic device 500 suitable for implementing embodiments of the present disclosure. The terminal devices in these embodiments may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0124] like Figure 5As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. Input / output (I / O) interface 505 is also connected to bus 504.

[0125] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to exchange data with other devices wirelessly or via wired communication. Although Figure 5 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0126] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.

[0127] The electronic device provided in this embodiment belongs to the same inventive concept as the method provided in the above embodiments. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0128] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of being stored by a computing device, or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct a processor to execute the method provided in this application.

[0129] This application also provides a computer program product comprising one or more computer instructions. When the computer instructions are loaded and executed on a processor, the method provided in this application is performed, in whole or in part.

[0130] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, or data center to another website, computer, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0131] When the computer program product is executed by a computer, the computer performs any of the aforementioned task flow optimization methods. The computer program product can be a software installation package; when any of the aforementioned task flow optimization methods is required, the computer program product can be downloaded and executed on the computer.

[0132] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0133] The units described in the embodiments of this application can be implemented in software or hardware. The names of the units / modules do not necessarily limit the specific unit itself.

[0134] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0135] In the context of embodiments of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0136] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.

[0137] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0138] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0139] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0140] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method of processing data format of an object parameter, characterized by, The method comprises: in response to receiving a first requirement input on an agent platform to call an application program interface (API) for execution, obtaining a first value of an object parameter corresponding to the first requirement, the first value having a first data format; determining a second data format of the object parameter configured in the called API; converting the first value into a second value in the second data format, which is used by the agent platform to process the object parameter corresponding to the first requirement.

2. The method of claim 1, wherein, The obtaining of the first value of the object parameter corresponding to the first requirement comprises: obtaining the first value of the object parameter from the agent platform, which is obtained by parsing the first requirement.

3. The method of claim 1, wherein, The obtaining of the first value of the object parameter corresponding to the first requirement comprises: performing semantic analysis on the first requirement in the agent platform to determine the object parameter; in response to the first requirement not including a parameter value of the object parameter, obtaining the first value of the object parameter based on indication information corresponding to the first requirement, the indication information indicating a manner of obtaining the parameter value of the object parameter.

4. The method of claim 1, wherein, The method further comprises: in response to a configuration operation of the data format of the object parameter in a request field or a response field of the API, configuring the second data format for the object parameter in the request field of the API.

5. The method of claim 1, wherein, The determination of the second data format of the object parameter configured in the called API comprises: obtaining the data format corresponding to the object parameter from the request field or the response field corresponding to the API as the second data format.

6. The method according to any one of claims 1 to 5, characterized in that, The object parameter is time.

7. The method according to any one of claims 1 to 5, characterized in that, The object parameter is a telephone number.

8. The method according to any one of claims 1 to 5, characterized in that, The method further comprises: determining whether the first requirement involves the object parameter; The obtaining of the first value of the object parameter corresponding to the first requirement comprises: if it is determined that the first requirement involves the object parameter, obtaining the first value of the object parameter involved in the first requirement.

9. An apparatus for processing a data format of an object parameter, characterized by, The method comprises: a first obtaining unit configured to, in response to receiving a first requirement input on an agent platform to call an application program interface (API) for execution, obtain a first value of an object parameter corresponding to the first requirement, the first value having a first data format; a second obtaining unit configured to determine a second data format of the object parameter configured in the called API; a conversion unit configured to convert the first value into a second value in the second data format, which is used by the agent platform to process the object parameter corresponding to the first requirement.

10. An electronic device, comprising: The electronic device comprises a processor and a memory; The memory is configured to store instructions or computer programs; The processor is configured to execute the instructions or computer programs in the memory, so that the electronic device performs the method of any one of claims 1-8.

11. A computer readable storage medium, characterized in that, The computer-readable storage medium stores instructions, which, when executed on a processor, cause the processor to perform the method of any one of claims 1-8.

12. A computer program product, characterised in that, The computer program product comprises computer programs or instructions which, when executed by a processor, implement the method according to any one of claims 1 to 8.