Session recording processing method and apparatus, electronic device, and storage medium

By performing agent type clustering analysis on the conversation records of children's smart terminals, intermediate analysis results and temporary interactive memories are generated, solving the problems of blurred boundaries and high computational costs in multi-agent conversation record processing, and realizing stable report generation and memory management.

CN123159359APending Publication Date: 2026-11-24HEFEI IFLYTEK TOYCLOUD TECH
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing smart terminals for children are prone to blurring task boundaries, unstable generated reports and memory caches when processing multi-agent conversation records, and high computational costs. Short-term, occasional interests can easily pollute long-term memory.

Method used

Cluster analysis of conversation records is performed based on agent type. Analysis prompts, program statistical rules and parsing structures are used to generate intermediate analysis results and construct temporary interactive memories to optimize the report and memory generation process.

Benefits of technology

Ensure consistency between report presentation and memory reuse, reduce computational costs, prevent short-term interests from polluting long-term memory, and improve the continuity of multi-agent interactions and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159359A_ABST
    Figure CN123159359A_ABST
Patent Text Reader

Abstract

The application provides a conversation record processing method and device, electronic equipment and a storage medium. The method comprises: clustering conversation records based on the agent type corresponding to each human-computer interaction in a preset period, obtaining a conversation record set under each agent type; performing conversation analysis on the conversation record set under each agent type based on a record analysis rule of each agent type, obtaining an intermediate analysis result of each agent type; and generating an interaction report parameter of the preset period and / or a temporary interaction memory of the preset period based on the intermediate analysis result of all agent types, wherein the temporary interaction memory is used for short-term dialogue enhancement and / or long-term memory determination. The method, device, equipment and medium provided by the application avoid the problems of too wide user portrait and fuzzy output content task boundary, ensure that the report display and memory reuse use consistent evidence, reduce the calculation calling cost, and improve the stability of conversation record processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence technology, and in particular to a method, apparatus, electronic device, and storage medium for processing session records. Background Technology

[0002] Current smart devices for children typically contain multiple intelligent agents, and users will engage in numerous conversational interactions with different agents. In order to preserve users' interests, preferences, and developmental trajectories, these conversation records usually need to be processed and summarized to generate user-facing presentation reports or memory caches for subsequent interactions.

[0003] However, if all session records are mixed and input into the model at once for summarization, it can easily lead to blurred task boundaries in the generated content, making it impossible to retain the specific details under each agent, and making it difficult to meet the actual needs of display reports and memory caching. Summary of the Invention

[0004] This invention provides a method, apparatus, electronic device, and storage medium for processing session records, in order to address the shortcomings of related technologies in terms of the ambiguity of the boundaries of session record processing tasks for multiple agents.

[0005] This invention provides a session recording processing method, comprising: Based on the agent type corresponding to each human-computer interaction session record within a preset period, the session records are clustered to obtain a set of session records under each agent type. Based on the record analysis rules corresponding to each agent type, the session record set under each agent type is analyzed to obtain the intermediate analysis results corresponding to each agent type. Based on the intermediate analysis results corresponding to all agent types, the interaction report parameters for the preset period and / or the temporary interaction memory for the preset period are generated. The temporary interaction memory is used for short-term dialogue enhancement and / or long-term memory determination.

[0006] According to a session recording processing method provided by the present invention, the recording analysis rules include at least one of analysis prompt words, program statistical rules, and parsing structures.

[0007] According to a session record processing method provided by the present invention, the step of performing session analysis on the session record set under each agent type based on the record analysis rules corresponding to each agent type to obtain intermediate analysis results corresponding to each agent type includes: The analysis prompt words corresponding to each agent type and the set of conversation records under each agent type are input into the large language model to obtain the first analysis result corresponding to each agent type output by the large language model. Based on the program statistics rules corresponding to each agent type, data statistics are performed on the session record set under each agent type to obtain the second analysis result corresponding to each agent type. Based on the first and / or second analysis results corresponding to each agent type, intermediate analysis results that conform to the parsing structure corresponding to each agent type are generated.

[0008] According to a session recording processing method provided by the present invention, based on intermediate analysis results corresponding to all agent types, interaction report parameters for the preset period are generated, including: Based on the intermediate analysis results corresponding to all agent types, at least one of the following is performed: information statistics, expression sample extraction, and emotion type statistics under various interaction functions, to obtain the interaction report parameters for the preset period.

[0009] According to a session recording processing method provided by the present invention, based on intermediate analysis results corresponding to all agent types, a temporary interaction memory for the preset period is generated, comprising: Based on the intermediate analysis results corresponding to each agent type, temporary memory content items are extracted, and at least one of the following is generated for each temporary memory content item: agent summary, original expression evidence, judgment reason, value description, interest intensity, source session, and validity period, as temporary interactive memory for the preset period.

[0010] A session recording processing method provided by the present invention further includes: Based on at least one of the following factors: interest intensity, repetition frequency, amount of evidence, cross-session repeatability, cross-period continuity, and guardian authorization status of the temporary memory content item, long-term memory content items are selected from the temporary memory content items and added to the long-term interactive memory.

[0011] A session recording processing method provided by the present invention further includes: The intermediate analysis results are subjected to at least one of the following validation methods: field integrity validation, structural validity validation, evidence citation validity validation, and type matching validation.

[0012] According to a method for processing conversation records provided by the present invention, the conversation records include at least one of user information, conversation time, agent identifier, agent type, scene identifier, multi-turn dialogue content, tool call records, device action records, and original expression evidence.

[0013] The present invention also provides a session recording processing apparatus, comprising: The conversation clustering unit is used to cluster conversation records based on the agent type corresponding to each human-computer interaction conversation record within a preset period, and obtain a set of conversation records under each agent type. The intermediate analysis unit is used to perform conversation analysis on the conversation record set under each agent type based on the record analysis rules corresponding to each agent type, and to obtain the intermediate analysis results corresponding to each agent type. The generation unit is used to generate interaction report parameters for the preset period and / or temporary interaction memory for the preset period based on the intermediate analysis results corresponding to all agent types. The temporary interaction memory is used for short-term dialogue enhancement and / or long-term memory determination.

[0014] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the session recording processing method as described above.

[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the session recording processing method as described above.

[0016] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the session recording processing method as described above.

[0017] The conversation record processing method, apparatus, electronic device, and storage medium provided by this invention perform cluster analysis on conversation records based on agent type, avoiding the problem of overly broad user profiles and blurred task boundaries caused by mixing conversations of multiple agents with different functional boundaries. Furthermore, based on the record analysis rules corresponding to each agent type, conversation analysis is performed on the conversation record set under each agent type to obtain intermediate analysis results corresponding to each agent type. This generates interaction report parameters and temporary interaction memory, which not only ensures consistent evidence between report display and memory reuse, reduces computational call costs, and improves the stability of conversation record processing, but also uses temporary interaction memory to build buffer data between the original conversation and long-term memory, effectively preventing short-term occasional interests from polluting long-term interaction memory, improving the continuity of multi-agent interactions, and optimizing the user experience. Attached Figure Description

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

[0019] Figure 1 This is a flowchart illustrating the session recording processing method provided by the present invention.

[0020] Figure 2 This is a schematic diagram of the conversation recording processing device provided by the present invention.

[0021] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0023] All actions involving the acquisition of signal information or data in this invention are carried out in compliance with the relevant data protection laws and policies of the country where the device is located, and with the authorization granted by the owner of the device.

[0024] An intelligent agent is an entity capable of perceiving its environment, making autonomous decisions, and executing actions to achieve specific goals. An intelligent agent can be a physical robot or a pure software program. It can acquire environmental information such as text, images, and sounds through sensors, and use internal algorithms such as rule engines and large language models to understand and reason about this information, thereby autonomously planning its actions. Furthermore, an intelligent agent can interact with its environment or other intelligent agents, outputting results through actuators or APIs (Application Programming Interfaces), and continuously adjust its behavior based on feedback to optimize its performance.

[0025] In practical applications, current smart devices for children typically include multiple agents with different functional boundaries, such as knowledge quizzes, location exploration, interactive games, storytelling, translation, classical Chinese studies quizzes, emotional support, and casual conversation. Within a certain period, a child may engage in numerous conversations with multiple different agents. To preserve the user's interests and developmental trajectory, these conversation records usually need to be processed and summarized to generate user-oriented growth reports or memory caches for subsequent interactions.

[0026] The growth report and memory cache have different business objectives. The growth report is more inclined to display statistical results, representative examples and periodic summaries, while the memory cache is more inclined to retain reusable interest clues, specific content and evidence sources.

[0027] When processing the aforementioned conversation records, most current methods involve inputting all conversation records into the model at once for summarization. This can easily lead to the generation of overly broad user profiles, resulting in blurred task boundaries in the output content. Consequently, the fields in the output growth report or memory cache are unstable, the counting is inaccurate, and subsequent reuse is difficult. Furthermore, the output growth report or memory cache is unlikely to retain the specific topics, user expression evidence, and interest intensity for each agent.

[0028] In addition, there is a scheme to call the model separately for the growth report and the memory cache. However, this scheme not only significantly increases the cost of model calls, but also easily leads to inconsistencies between the evidence cited in the final generated weekly report and the memory cache.

[0029] Furthermore, if occasional interests from weekly interaction records are directly written into long-term memory, it can easily pollute the long-term stable user profile; however, if weekly interests are completely discarded, the interactive value enhanced by short-cycle dialogues will be lost.

[0030] To address the aforementioned problems, this invention provides a method for processing session records. The execution entity of this method can be a smart terminal or cloud server with data processing capabilities. Specifically, the smart terminal can be a smartphone, tablet computer, etc. Further, the smart terminal can be a children's smart terminal, such as an emotional companion robot, dictionary pen, smartwatch, learning machine, object recognition device, translator, etc.

[0031] Figure 1 This is a flowchart illustrating the session record processing method provided by the present invention, as shown below. Figure 1 As shown, the method includes: Step 110: Based on the agent type corresponding to each human-computer interaction session record within a preset period, perform session record clustering to obtain a session record set under each agent type.

[0032] Specifically, the preset period refers to a pre-defined time range, which can be determined according to actual business needs or user-defined settings. For example, the preset period can be a natural week, the most recent seven days, a specific supervision period, or a certain course period, etc., and this embodiment of the invention does not specifically limit it in this way.

[0033] Smart terminals can acquire human-computer interaction session records within a preset period when triggered periodically or in response to specific instructions.

[0034] The session logs here refer to historical interaction data generated during user interactions with the built-in intelligent agents on the smart terminal. The smart terminal can integrate multiple intelligent agents with different functional boundaries. Furthermore, each intelligent agent possesses its own intelligent agent type. This type can be a functional category, such as knowledge-based question-and-answer, location exploration, game, story, translation, traditional Chinese culture question-and-answer, emotional companionship, or casual conversation, or it can refer to the intelligent agent's own identifier, such as a science egg, adventure egg, game egg, story egg, translation egg, hug egg, or casual conversation egg. That is, an intelligent agent type can include only one intelligent agent or multiple intelligent agents of the same type; this embodiment of the invention does not specifically limit this.

[0035] It is understandable that each human-computer interaction session record contains the identifier of the specific agent involved in the interaction, thus creating an agent type corresponding to the session record.

[0036] After obtaining the conversation records of multiple human-computer interactions within a preset period, the conversation records can be clustered based on the agent type corresponding to each conversation record. Further, the conversation records can be grouped and aggregated according to the agent type corresponding to each conversation record, thus obtaining a set of conversation records under each agent type. For example, multiple interactions with knowledge-answering agents can be merged into the knowledge-answering group's conversation record set, and interactions with location-exploration agents can be grouped into the location-exploration group's conversation record set. By clustering conversation records based on agent type, the conversation records corresponding to each agent type can be kept independent, thereby avoiding information overload caused by mixed analysis.

[0037] Step 120: Based on the record analysis rules corresponding to each agent type, perform session analysis on the session record set under each agent type to obtain the intermediate analysis results corresponding to each agent type.

[0038] Specifically, since different agent types focus on different dimensions of information—for example, knowledge-based question answering agents focus on knowledge points and follow-up questions, while game-based agents focus on game counts and preference types—corresponding record analysis rules can be pre-configured for each agent type. These record analysis rules refer to the rules used to guide feature extraction, logical statistics, or semantic understanding of conversation records corresponding to a particular agent type. For example, they may include analysis prompts, program statistical rules, and parsing structures.

[0039] For each agent type, the session record set obtained from clustering can be specifically processed and mined based on the record analysis rules corresponding to that agent type, thereby obtaining intermediate analysis results for that agent type. Here, intermediate analysis results refer to a structured analysis result between the original session records and the final generated report or memory. Intermediate analysis results are not directly used as the final text displayed to the user, nor are they directly used as long-term stable memory. Instead, they serve as an objective summary of the interaction situation of an agent type within a preset period, and provide a unified evidentiary basis for subsequent report generation and memory caching.

[0040] Step 130: Based on the intermediate analysis results corresponding to all agent types, generate the interaction report parameters for the preset period and / or the temporary interaction memory for the preset period. The temporary interaction memory is used for short-term dialogue enhancement and / or long-term memory determination.

[0041] Specifically, after obtaining the intermediate analysis results for each agent type, the interaction report parameters and / or temporary interaction memory for the preset period can be generated based on the intermediate analysis results corresponding to each agent type, either through dual-path generation or on-demand single-path generation.

[0042] Among them, the interactive report parameters are data parameters for front-end display and periodic summary. The interactive report parameters tend to present statistical results and representative examples of various functions. For example, they can be used to assemble and push a child's weekly growth report to the monitoring terminal.

[0043] Temporary interactive memory serves as cached data for subsequent dialogue systems. It retains reusable interest cues, specific content, and original evidence. Considering relevance, directly writing occasional weekly interests into long-term memory can pollute user profiles, while completely discarding them would lose the contextual continuity of recent interactions. Therefore, this embodiment of the invention constructs intermediate buffer data, namely temporary interactive memory, located between the original conversation records and long-term memory. Temporary interactive memory can be used for short-term dialogue enhancement, such as guiding the agent to interact based on the child's recent interest topics provided in the temporary interactive memory within the next preset period. Temporary interactive memory can also serve as a candidate pool for long-term memory evaluation; for example, it can examine whether a temporary interest consistently appears in the temporary interactive memory across multiple preset periods, thereby determining whether to promote that temporary interest to long-term memory.

[0044] In this embodiment of the invention, by generating interactive report parameters and temporary interactive memories simultaneously or separately based on intermediate analysis results, not only can the report display and memory reuse reference completely consistent underlying evidence sources, but also the waste of resources and computational costs caused by separately tracing back and analyzing massive amounts of session records to generate these two are avoided.

[0045] The session record processing method provided in this invention performs cluster analysis on session records based on agent type, avoiding the problem of overly broad user profiles and blurred task boundaries caused by mixing sessions of multiple agents with different functional boundaries. Furthermore, based on the record analysis rules corresponding to each agent type, session analysis is performed on the session record set under each agent type to obtain intermediate analysis results corresponding to each agent type. This generates interaction report parameters and temporary interaction memory, which not only ensures consistent evidence between report display and memory reuse, reduces computational call costs, and improves the stability of session record processing, but also uses temporary interaction memory to build buffer data between the original session and long-term memory, effectively preventing short-term occasional interests from polluting long-term interaction memory, improving the continuity of multi-agent interactions, and optimizing the user experience.

[0046] Based on the above embodiments, the record analysis rules include at least one of analysis prompt words, program statistical rules, and parsing structures.

[0047] Specifically, for different types of intelligent agents, at least one of the following can be configured in the corresponding record analysis rules: analysis prompt words, program statistics rules, and parsing structures.

[0048] Analysis prompts refer to task descriptions or constraint instructions for large language models or semantic analysis modules. These prompts aim to constrain the large language model or semantic analysis module to extract acceptable intermediate analysis results from the interaction records of the corresponding agent type. Here, the same or different analysis prompts can be configured for different agent types. By configuring analysis prompts separately for different agent types, it can be ensured that the direction of semantic understanding does not deviate from the business boundaries of a particular agent type.

[0049] For example, for a collection of knowledge-based question-and-answer dialogue records, the corresponding analysis prompts can be used to extract the relevant knowledge points, the child's original questions, evidence of follow-up questions, and the intensity of interest; for a collection of location-exploration dialogue records, the corresponding analysis prompts can be used to extract the location names, travel intentions, and representative expressions; and for a collection of emotional support dialogue records, the corresponding analysis prompts can be used to extract the emotion categories and evidence expressions.

[0050] Program statistical rules refer to logical rules such as counting, deduplication, sorting, or aggregation that can be directly performed by deterministic programs without relying on the complex semantic understanding of large language models. Here, the same or different program statistical rules can be configured for different types of agents.

[0051] For example, for game-related conversation records, program statistics rules can directly count the number of riddles, brain teasers, and idiom chain games based on the internal process status; for translation-related conversation records, program statistics rules can count the total number of translation requests, the direction of language translation, and the frequently translated topics.

[0052] A parsing structure refers to the standard field framework (schema) or data organization format of the intermediate analysis results output for a specific agent type. Different agent types can be configured with the same or different parsing structures. Furthermore, by configuring separate parsing structures for different agent types, the stability of the data format of the intermediate analysis results output for various agent types can be guaranteed.

[0053] For example, the parsing structure for a knowledge-based question-and-answer class could be a list of knowledge points; the parsing structure for a location exploration class could be a list of locations; the parsing structure for a game class could be a count of game types; the parsing structure for an emotion-support class could be an emotion bucket structure; and the parsing structure for a story class could be a story theme, etc.

[0054] In practical applications, the recording and analysis rules can be flexibly combined from the above three elements. For example, for chat-based agents that require deep understanding, the recording and analysis rules can include analyzing prompt words and parsing structures; for game agents that are purely interactive and click-based, the recording and analysis rules can include program statistics rules and parsing structures; for complex, comprehensive agents, the recording and analysis rules can include analyzing prompt words, program statistics rules, and parsing structures to achieve a complementary advantage in semantic extraction and accurate counting.

[0055] Based on any of the above embodiments, in step 120, the step of performing session analysis on the session record set under each agent type based on the record analysis rules corresponding to each agent type to obtain the intermediate analysis results corresponding to each agent type includes: The analysis prompt words corresponding to each agent type and the set of conversation records under each agent type are input into the large language model to obtain the first analysis result corresponding to each agent type output by the large language model. Based on the program statistics rules corresponding to each agent type, data statistics are performed on the session record set under each agent type to obtain the second analysis result corresponding to each agent type. Based on the first and / or second analysis results corresponding to each agent type, intermediate analysis results that conform to the parsing structure corresponding to each agent type are generated.

[0056] Specifically, for any agent type, the record analysis rules and session record set corresponding to that agent type can be obtained, and then intermediate analysis results corresponding to that agent type can be obtained through session analysis.

[0057] During this process, if the record analysis rules corresponding to the agent type contain analysis prompts, these prompts can be used as task instructions and input into the large language model along with the clustered set of conversation records for that agent type. Thus, guided by the analysis prompts, the large language model can perform conversation analysis on the input set of conversation records and output conclusive content for the set, which is denoted as the first analysis result in this embodiment. Through deep semantic analysis, the large language model can uncover the hidden intentions and emotions within the set of conversation records as the first analysis result, thereby overcoming the limitation of traditional programs in understanding complex dialogue semantics.

[0058] For example, for a collection of conversation records in the knowledge question and answer category, the first analysis result may include the knowledge points that children are interested in, such as "Grain Rain and solar term knowledge", extracted by the large language model, the children's original expressive evidence of "why it is called Grain Rain", and the interest intensity obtained by reasoning.

[0059] If the record analysis rules corresponding to the agent type include program statistical rules, then data statistics can be performed on the session record set based on the program statistical rules. In this embodiment of the invention, the data statistical results are recorded as the second analysis result. Here, data statistics means using deterministic program statistical rules to accurately count, accumulate, classify, or deduplicate specific fields in the session record set, such as tool call records, device action records, and session rounds.

[0060] For example, for a collection of game-related session records, program statistics rules can be invoked to scan scene identifiers or state machine logs in the session record collection, thereby accurately determining the number of interactions for each game type as a second analysis result.

[0061] Based on this, the intermediate analysis results corresponding to the agent type can be obtained by mapping, assembling, and formatting fields based on the first analysis result and / or the second analysis result, according to the parsing structure corresponding to the agent type. For example, for a game-type agent, the intermediate analysis result can be generated by combining the second analysis result and the parsing structure; for an emotion-companionship-type agent, the intermediate analysis result can be generated by combining the first analysis result, the second analysis result, and the parsing structure. This embodiment of the invention does not impose specific limitations on this.

[0062] For example, for knowledge-based question-answering agents, a list of knowledge points can be generated as an intermediate analysis result; for location-exploration agents, a list of locations can be generated as an intermediate analysis result; for game-based agents, a count of game types can be generated as an intermediate analysis result; for story-based agents, story themes can be generated as an intermediate analysis result; for emotion-companionship agents, an emotion bucket structure can be generated as an intermediate analysis result; and for chatty agents, a list of chatty topics can be generated as an intermediate analysis result.

[0063] In this embodiment of the invention, intermediate analysis results are generated based on analysis prompts and / or program statistical rules, as well as parsing structures. While leveraging the semantic understanding advantages of large language models, the shortcomings of large language models in accurate counting are compensated for, thereby ensuring that the final generated intermediate analysis results have both deep semantic value and data accuracy and format standardization.

[0064] Based on any of the above embodiments, in step 130, the interaction report parameters for the preset period are generated based on the intermediate analysis results corresponding to all agent types, including: Based on the intermediate analysis results corresponding to all agent types, at least one of the following is performed: information statistics, expression sample extraction, and emotion type statistics under various interaction functions, to obtain the interaction report parameters for the preset period.

[0065] Specifically, for the intermediate analysis results corresponding to all types of intelligent agents, information statistics can be performed under various interactive functions, and the information statistics results can be placed into the interactive report parameters of a preset period.

[0066] Understandably, since different types of intelligent agents carry different interactive functions, information statistics can be conducted separately based on different interactive functions, thereby achieving multi-dimensional information statistics. For example, for intermediate analysis results of knowledge-based question-and-answer, learning, or popular science categories, the number of knowledge points can be counted, that is, the total number of knowledge points extracted and deduplicated within a preset period, to show the scope of knowledge that users have focused on or learned within the preset period; for intermediate analysis results of location exploration categories, the number of locations can be counted, that is, the number of duplicate locations that users have expressed interest in exploring, where the location can specifically be a city, scenic spot, country, natural geographical object, or spatial object, etc.; for intermediate analysis results of games, the number of games played and / or the most frequently interacted game types can be counted, for example, by recording conversations, game rounds, or process completion records, respectively counting the effective interaction counts of children participating in games such as riddles, brain teasers, and idiom chain games, and filtering out the game categories with the highest interaction counts; for intermediate analysis results of translation categories, the number of translations can be counted by translation requests or effective conversations.

[0067] By collecting the above information, we can obtain quantifiable statistical data as parameters for interactive reports.

[0068] Furthermore, for the intermediate analysis results corresponding to all agent types, expression examples under various interaction function types can be extracted, and representative expression examples under various interaction function types can be placed into the interaction report parameters of a preset period. These expression examples can be representative content objects from the intermediate analysis results or the user's original utterances in the interaction record.

[0069] In some embodiments, representative topics or intentions can be extracted from intermediate analysis results as examples of expression. Specifically, these can be representative knowledge points that have a high degree of interest, a lot of evidence, or continuous follow-up questions within a preset period, such as "Grain Rain and solar term knowledge"; they can also be representative locations that users have explicitly asked about and expressed their desire to visit, such as "City A" being used as a representative location if a user asks and expresses that they want to visit City A; or they can be story themes that users have repeatedly requested or shown interest in during interactions with story-based intelligent agents, such as dinosaur stories, space adventures, animal friends, traditional stories, or bedtime stories.

[0070] In other embodiments, raw speech fragments or text inputs representing representative user interactions within a preset period can be directly extracted from the raw expression evidence of intermediate analysis results and incorporated into the interaction report parameters as user expression examples. It should be noted that, to ensure user privacy and data compliance, the extracted user expression examples must undergo necessary security filtering and privacy desensitization processing before being written into the interaction report parameters.

[0071] Furthermore, based on the intermediate analysis results corresponding to the emotional companionship type, emotional type statistics can be performed, and the number of emotional types can be placed into the interaction report parameters of a preset period.

[0072] Understandably, the interaction purpose of emotion-companionship AI agents is not to acquire specific knowledge or complete game tasks, but rather to express and comfort emotions. Therefore, based on the intermediate analysis results corresponding to this type of AI agent, the number of emotion types can be counted, that is, the number of times each type of emotion is expressed or its distribution can be counted. For example, the count of emotions categorized into different emotion buckets such as happy, calm, and disappointed within a preset period can be counted, thus providing an evaluation basis for the user's psychological or emotional state in the interaction report parameters.

[0073] In practical applications, at least one of the above-mentioned information statistics, expression sample extraction, and emotion type statistics can be performed to obtain comprehensive and multi-dimensional interaction report parameters for a preset period.

[0074] In this embodiment of the invention, functional information statistics, expression sample extraction, and emotion type statistics are performed on the intermediate analysis results of different agent types to obtain multi-dimensional and structured interaction report parameters for use in the interaction report display. This effectively enriches the display form and content depth of the interaction report and ensures that the various information shown in the interaction report has traceable evidence support.

[0075] Based on any of the above embodiments, in step 130, generating the temporary interactive memory for the preset period based on the intermediate analysis results corresponding to all agent types includes: Based on the intermediate analysis results corresponding to each agent type, temporary memory content items are extracted, and at least one of the following is generated for each temporary memory content item: agent summary, original expression evidence, judgment reason, value description, interest intensity, source session, and validity period, as temporary interactive memory for the preset period.

[0076] Specifically, after obtaining the intermediate analysis results corresponding to each type of agent, temporary memory content items and related information of the temporary memory content items can be extracted from them, thereby constructing a temporary interactive memory with a preset period.

[0077] Temporary memory items refer to specific content generated during user-agent interaction within a preset period that can be reused in subsequent conversations. The type of temporary memory item extracted can vary depending on the type of agent. For example, for a knowledge-based agent, the extracted temporary memory item could be a specific knowledge point; for a location-exploration agent, it could be a specific location; for a game-based or story-based agent, it could be a specific game preference type or story theme; and for an emotional support or casual conversation agent, it could be specific emotional support clues or casual conversation topics.

[0078] In addition, to ensure the interpretability and traceability of temporary memory content items, relevant information about the temporary memory content items can be generated. This relevant information may include at least one of the following: agent summary, original expression evidence, judgment reasoning, value statement, interest intensity, source session, and validity period.

[0079] In this context, the agent summary refers to a brief overview of the main interactions of the agent that generated the temporary memory item within a preset period. For example, the agent summary could be "This week, children mainly asked questions about solar terms" or "This week, children participated in riddles and idiom chain games multiple times."

[0080] Original expressive evidence refers to the user's original words, text input, selection actions, or key interactive fragments that support the content item of the temporary memory. Original expressive evidence aims to prevent temporary interactive memories from deviating from the original source of facts. For example, for the knowledge point "Grain Rain" in the temporary memory content item, the original expressive evidence could be the user's original words "What does Grain Rain mean?" or "Why is it called Grain Rain?"; for the location "City A" in the temporary memory content item, the original expressive evidence could be "I want to go to City A to play".

[0081] The reason for judgment refers to the reason for using information as a temporary memory item, such as continuous questioning, recurrence, active expression of willingness, high number of interactions, or clear emotional expression.

[0082] Value description refers to the description of the value of temporary memory content in future applications. Specifically, it can be a description of the value of temporary memory content in subsequent dialogue enhancement, interactive report display, understanding user interests on the monitoring end, long-term memory judgment, etc. For example, it can be "can be used to continue popular science interaction around solar term knowledge next week".

[0083] Interest intensity refers to the degree of attention a user pays to a particular item in their temporary memory. Interest intensity can be determined based on a comprehensive assessment of dimensions such as explicitness of expression, continuity of conversation, repetition across conversations, user initiative, quantity of evidence, and emotional intensity. For example, interest intensity can be expressed as low, medium, medium-high, or high levels, or as a specific numerical rating.

[0084] The source session refers to the session ID, session round, tool call record, or device action record upon which this temporary interactive memory is based. Source sessions are primarily used for auditing, tracing, and quality control.

[0085] The validity period refers to the duration during which the temporary interactive memory can be used in short-term dialogue enhancement. For example, the validity period could be the current week, the next week, the last seven days, or until the next generation. If the temporary memory content is not promoted after the validity period expires, it will become invalid from the temporary interactive memory.

[0086] In this embodiment of the invention, temporary memory content items are extracted from intermediate analysis results, and corresponding agent summaries, original expression evidence, judgment reasons, value descriptions, interest intensity, source conversations, and validity periods are generated for them. This makes the temporary interactive memory obtained have structural stability and factual traceability, effectively improving the contextual acceptance ability and response quality of multi-agents in continuous dialogue scenarios.

[0087] In some embodiments, the temporary interactive memory also includes user information, target period, and at least one of agent identifier and agent type corresponding to the temporary memory content item.

[0088] Among them, user information refers to the user to whom the temporary interactive memory belongs and its context information, which is used to limit the temporary interactive memory to only serve the corresponding user or the authorized guardian account.

[0089] The target period refers to the time range covered by this temporary interactive memory, such as the current calendar week, the last seven days, or the period set by the monitoring device. The target period is used to distinguish between short-term interests and long-term stable preferences.

[0090] The agent identifier refers to the source identifier of the agent that generated the temporary interactive memory, such as a science egg, adventure egg, game egg, or hug egg, which is used for subsequent tracing and as the basis for agent invocation.

[0091] The type of agent refers to the type of agent that generates the temporary interactive memory, such as knowledge-based question answering, location exploration, gaming, storytelling, translation, emotional companionship, or casual conversation.

[0092] Based on any of the above embodiments, the session recording processing method further includes: Based on at least one of the following factors: interest intensity, repetition frequency, amount of evidence, cross-session repeatability, cross-period continuity, and guardian authorization status of the temporary memory content item, long-term memory content items are selected from the temporary memory content items and added to the long-term interactive memory.

[0093] Specifically, after generating temporary interactive memories for a preset period, the contents of these temporary memories can be evaluated to determine whether they have the potential to serve as long-term stable memories.

[0094] The evaluation process is specifically based on at least one of the following: the intensity of interest in the temporary memory content item, the number of repetitions, the amount of evidence, the repetitiveness across sessions, the continuity across cycles, and the guardian's authorization status.

[0095] Among them, interest intensity refers to the degree of user attention shown by temporary memory items within the current preset period. The higher the interest intensity, the greater the subsequent reuse value of the temporary memory items.

[0096] The repetition count refers to the total number of times the same or similar temporary memory items appear within a preset period. The repetition count can be grouped and counted by session round, number of session records, date, or agent.

[0097] The quantity of evidence refers to the amount of original expressive evidence, tool usage evidence, or device action evidence supporting a particular temporary memory item. The more sufficient the quantity of evidence, the higher the credibility of that temporary memory item in long-term interactive memory.

[0098] Cross-session repetition refers to the repeated occurrence of the same or similar temporary memory items in multiple different independent sessions within a preset period. Cross-session repetition can be used to distinguish between single, long-term, occasional mentions and more stable, short-term interests.

[0099] Cross-period continuity refers to the continued appearance of the same or similar temporary memory items across multiple preset periods. For example, a user might ask about the solar terms or prefer the same type of interactive game for three consecutive weeks. Cross-period continuity can be considered an important criterion for determining whether temporary memory items can enter long-term interactive memory.

[0100] The parent's authorization status refers to the permission granted by the parent to write specific content, reuse it in subsequent conversations, or store it in long-term memories. If the parent's end is set to prohibit saving or reusing content on a certain topic, then even if other dimensions meet the requirements, temporary content under that topic cannot be selected for long-term interactive memory.

[0101] For each temporary memory content item in the temporary interactive memory, it can be determined whether each temporary memory content item can be used as a long-term memory content item based on at least one of the above criteria, and the temporary memory content items that can be used as long-term memory content items can be added to the long-term interactive memory.

[0102] For example, temporary memory items that are mentioned only occasionally in a single week, have insufficient evidence, or have low interest intensity can be retained only in the temporary interactive memory; while temporary memory items that show cross-period repetition, have sufficient evidence, and consistently high interest intensity, and for which the monitoring end has not prohibited authorization, can be selected as long-term memory items and added to the long-term interactive memory.

[0103] For example, suppose a child user asks questions about "solar terms and traditional culture" with a knowledge-based AI agent in three consecutive pre-defined conversation periods. Evaluation shows that this temporary memory item not only maintains a medium-to-high level of interest each week with sufficient evidence, but also exhibits significant cross-period continuity and cross-conversation repetition. Furthermore, the guardian's authorization status for this temporary memory item is allowed. Based on this, "solar terms and traditional culture" can be selected from this week's temporary memory items as a long-term memory item and added to the child's long-term interactive memory. Conversely, if the child only casually asks "What is a black hole?" once in a week, this topic only serves as this week's temporary interactive memory and will naturally expire after its validity period, without contaminating long-term interactive memory.

[0104] In this embodiment of the invention, the promotion evaluation of temporary memory content items is carried out by combining multiple dimensions such as interest intensity, evidence quantity, cross-cycle continuity and guardian authorization. This constructs a promotion mechanism from temporary buffer data to long-term interactive memory, avoiding the contamination of long-term interactive memory by single occasional interests. This makes the formation process of long-term interactive memory interpretable, traceable and safe and controllable, and improves the quality and reliability of multi-agent long-term interactive memory.

[0105] Based on any of the above embodiments, the session recording processing method further includes: The intermediate analysis results are subjected to at least one of the following validation methods: field integrity validation, structural validity validation, evidence citation validity validation, and type matching validation.

[0106] Specifically, after obtaining the intermediate analysis results, these results can be validated, and the validated results can be applied to subsequent interactive report parameters and / or temporary interactive memory generation. Validation of the intermediate analysis results may include at least one of the following: field integrity validation, structural validity validation, evidence citation validity validation, and type matching validation.

[0107] The field integrity check is used to verify whether the intermediate analysis results contain all required business fields. For example, for knowledge-based question-answering agents, it can check whether the intermediate analysis results fully include fields such as knowledge point topic, evidence fragment, and interest intensity. If any field is missing, the intermediate analysis result is deemed to have failed the field integrity check.

[0108] Structural validity checks are used to verify whether the data organization of intermediate analysis results conforms to the predefined parsing structure for that agent type. For example, it can check whether the intermediate analysis results of an emotion-companion agent strictly follow the nested dictionary structure of emotion buckets, or whether the intermediate analysis results of a location-exploration agent are an array-list structure. If structural errors are found, the intermediate analysis result is deemed to have failed the structural validity check.

[0109] The evidence citation validity check is used to verify whether the evidence used in the intermediate analysis results exists in the actual conversation records. For example, the original user expression fragments extracted from the intermediate analysis results can be compared with the original conversation records. The intermediate analysis results are deemed to have passed the evidence citation validity check only if the evidence cited in the intermediate analysis results actually exists in the conversation records within a preset period.

[0110] Type matching validation is used to check whether the data types of each field in the intermediate analysis results are correct. For example, it can check whether the number of game interactions counted by a game agent is an integer value, and whether the interest intensity is an enumerated character type or a floating-point value within a preset range.

[0111] Understandably, during the process of performing at least one of the following checks on intermediate analysis results—field integrity, structural validity, evidence citation validity, and type matching—if any one or more checks fail, the intermediate analysis result is deemed to have failed the check. Only if the intermediate analysis result passes all types of checks is it considered to have passed the check and can then be applied to subsequent interactive report parameters and / or temporary interactive memory generation.

[0112] In addition, if the intermediate analysis results fail to pass verification, the session analysis can be retried for the session record set under the agent type, or the intermediate analysis results under the agent type can be downgraded or discarded. For example, the successfully verified fields in the intermediate analysis results can be retained, and the fields that have not been verified can not be used in subsequent interaction report parameters and / or temporary interaction memory generation.

[0113] It should be noted that the verification here is performed separately based on the intermediate analysis results corresponding to the agent type. Therefore, when the intermediate analysis result of a certain agent type is retried or discarded, it will not affect the generation and verification of intermediate analysis results of other agent types within the same preset period.

[0114] In this embodiment of the invention, at least one of the following is performed on the intermediate analysis results: field integrity verification, structural validity verification, evidence citation validity verification, and type matching verification. This effectively improves the structural stability and data credibility of the interactive report parameters and temporary memory.

[0115] Based on any of the above embodiments, the session record includes at least one of user information, session time, agent identifier, agent type, scene identifier, multi-turn dialogue content, tool call record, device action record, and original expression evidence.

[0116] Specifically, in the conversation records generated by human-computer interaction, user information refers to the user and their contextual information corresponding to the conversation records within a preset period. For children, user information may include a child identifier, anonymized user identifier, age group, family account relationship, device binding relationship, and parental authorization scope. User information aims to strictly define the boundaries of interaction report parameters and temporary interaction memories, preventing the mixing of interest cues or growth records between different users.

[0117] Session time refers to the timestamp, start time, end time, or time period to which the user interacts with the agent. Session time can be used not only to determine whether a specific session record falls within the current statistical preset period, but also to calculate the repetition frequency of the same topic on different dates or in different rounds of interaction during subsequent analysis.

[0118] Agent identifiers are identifiers that distinguish different agents; for example, they can be science eggs, adventure eggs, game eggs, story eggs, or translation eggs. Agent identifiers can be used for session record clustering, and can also serve as a clear source of memory when generating interaction report parameters and temporary interaction memories.

[0119] Agent type refers to the functional category to which an agent belongs, including knowledge-based question answering, location exploration, gaming, storytelling, and emotional support. Agent type can be used to match appropriate record analysis rules to the corresponding set of conversation records.

[0120] Scene identification refers to the specific business scenario, task flow, product entry point, or task type to which a session belongs, such as a riddle-solving scenario, an idiom chain scenario, a location exploration scenario, or a solar term science popularization scenario. Scene identification aims to further subdivide different specific interactive tasks under the same agent type or identifier, making the analysis granularity more refined.

[0121] Multi-turn dialogue content refers to the user's expressions, system responses, and necessary context formed during continuous interactions between the user and the intelligent agent. Multi-turn dialogue content can be used to extract topics, capture interest cues, generate representative expressions, and summarize reasons for judgments and memories.

[0122] Tool call logs refer to the call logs generated by an intelligent agent during human-computer interaction, due to calls to external tools, internal services, knowledge bases, search interfaces, game processes, content security audits, and device capabilities. Work call logs can include tool name, input summary, output summary, call time, success indicator, and failure reason.

[0123] Device action logs refer to the hardware-level action logs actually performed by a smart terminal during a session, such as playback, recording, display, reminders, sensor detection, interactive game processes, screen transitions, or notifications from the monitoring terminal. Device action logs can be used to help determine the user's interaction methods, number of game sessions, emotional engagement, and subsequent memory value.

[0124] Original expressive evidence refers to unmodified original user statements, text inputs, selection actions, or key interaction fragments that support intermediate analysis results, such as a user's original statement, "What are some fun things to do in City A?" Original expressive evidence aims to ensure the traceability of interaction reports and memory retention.

[0125] In this embodiment of the invention, the session record may include information such as user information, session time, agent identifier, multi-turn dialogue content, tool call records, device action records, and original expression evidence, providing comprehensive data support for subsequent session record clustering and semantic analysis, and ensuring the accuracy and reliability of interaction report parameters and temporary interaction memory generation.

[0126] Based on any of the above embodiments, for a children's smart terminal containing multiple agents, the session recording processing method includes the following steps: First, obtain the conversation records generated by the child user during human-computer interaction with multiple intelligent agents within a preset period.

[0127] Here, each interaction corresponds to a session record, which may include child user information, session time, agent identifier, agent type, scene identifier, multi-turn dialogue content, tool call records, device action records, and original expression evidence.

[0128] Secondly, the session records can be clustered according to the agent identifier or agent type in the session records, thereby obtaining a set of session records under each agent identifier or agent type.

[0129] Here, agent identification can also be understood as fine-grained agent type. Agent identification or agent type can be used to distinguish session records originating from different agents or different types of agents. Next, based on at least one of the analysis prompts, program statistics rules, and parsing structures corresponding to the agent identifier or agent type, conversation analysis can be performed on the set of conversation records under the agent identifier or agent type, thereby obtaining the intermediate analysis results corresponding to each agent identifier or agent type.

[0130] Subsequently, at least one of the following can be performed on each intermediate analysis result: field integrity check, structural validity check, evidence citation validity check, and type matching check.

[0131] After verification is complete, interaction report parameters can be generated based on the intermediate analysis results; additionally, temporary interaction memory can be generated based on the same intermediate analysis results, and it can be determined whether to include the temporary interaction memory in the long-term interaction memory.

[0132] Here, the interactive report parameters for display and statistics may include at least one of the following: number of knowledge points, representative knowledge points, number of locations, representative locations, number of games played, most frequently interacting game type, story theme, number of translations, number of emotion categories, and user expression examples. Temporary interactive memories may include at least one of the following: child user information, preset period, agent identifier, agent type, agent summary, temporary memory content items, original expression evidence, judgment reasoning, value statement, interest intensity, source session, and validity period. Furthermore, when determining whether to include temporary interactive memories in long-term interactive memories, at least one of the following may be considered: interest intensity, repetition frequency, amount of evidence, cross-session repetition, and cross-period continuity of the temporary interactive memory.

[0133] In some embodiments, a large language model can be invoked to perform conversation analysis to obtain intermediate analysis results, and interactive report parameters and temporary interactive memories can be generated in a dual-path manner based on the intermediate analysis results. Specifically, this may include the following steps: Within a preset period, child users engage in multiple human-computer interactions with different intelligent agents. In the resulting conversation records, children continuously ask knowledge-based intelligent agents "What does Grain Rain mean?" and "Why is it called Grain Rain?"; and ask location-exploration intelligent agents "What are some fun things to do in City A?" and express "I want to go to Xi'an to play".

[0134] Based on this, the conversation records can be clustered according to the agent type corresponding to each human-computer interaction within the preset period, thereby obtaining a set of conversation records for knowledge question answering and a set of conversation records for location exploration.

[0135] Then, based on the analysis prompts corresponding to the knowledge question-and-answer category and the location exploration category, the large language model can be invoked to perform conversation analysis on the corresponding conversation record sets, thereby obtaining the intermediate analysis results corresponding to the knowledge question-and-answer category and the location exploration category, respectively.

[0136] Here is an example of the intermediate analysis results for the knowledge-based question-and-answer category: { "agent": "Science Egg", "analysis_type": "Knowledge Point Analysis", "knowledge_points": [ { "topic": "Grain Rain and Solar Terms Knowledge", "evidence_texts": ["What does Grain Rain mean?", "Why is it called Grain Rain?"], "reason": "Children first inquired about the meaning of Grain Rain, and then continued to ask about the origin of the name, forming a continuous focus." "interest_level": "medium-high" } ] } Here, agent represents the agent identifier; analysis_type represents the analysis type; knowledge_points represents knowledge points, where topic, evidence_texts, and reason represent the topic, original expressed evidence, and judgment reason of the knowledge point, respectively; and interest_level represents the interest intensity.

[0137] An example of intermediate analysis results for the location exploration class is as follows: { "agent": "Explorer Egg", "analysis_type": "Location exploration analysis", "places": [ { "place": "City A", "evidence_texts": ["What are some fun things to do in City A?", "I want to visit City A"], "reason": "The child first inquired about the activities in City A, and then expressed his desire to travel there." "interest_level": "medium-high" } ] } Here, agent represents the agent identifier; analysis_type represents the analysis type; places represents the location, where evidence_texts and reason represent the original expression evidence and the judgment reason, respectively; and interest_level represents the interest intensity.

[0138] Finally, based on the intermediate analysis results corresponding to all agent types, the interaction report parameters for the preset period can be generated. For example, the number of generated knowledge points is 1, with "Grain Rain and Solar Terms" as the representative knowledge point; the number of explored locations is 1, with "City A" as the representative location. At the same time, a temporary interaction memory for the preset period is generated based on the same intermediate analysis results, retaining the above topics, original expression evidence, judgment reasons, and interest intensity for short-term dialogue enhancement.

[0139] In other embodiments, session analysis can be performed based on program statistical rules to generate intermediate analysis results, and interactive report parameters and temporary interactive memories can be generated in a dual-path manner based on the intermediate analysis results. Specifically, this may include the following steps: Within a preset period, children interact with the game-like AI agent multiple times, engaging in activities such as riddles, brain teasers, and idiom chain games. Since the process states of the game-like AI agent already contain clear type and frequency labels, after obtaining the set of conversation records under the game-like AI agent, the corresponding program statistical rules can be directly applied for conversation analysis without having to call the large language model.

[0140] The intermediate analysis results obtained from this are as follows: { "agent": "game egg", "analysis_type": "Game Statistical Analysis", "game_type_counts": { "Riddle": 3, "Riddles": 1, "Idiom Chain": 2, "AI guessing": 0 }, "evidence_sessions": ["session_game_01", "session_game_03"]} Here, agent represents the agent identifier; analysis_type represents the analysis type; game_type_counts represents the number of interactions for the game type; and evidence_sessions represents the source session.

[0141] Subsequently, based on the intermediate analysis results, interaction report parameters for a preset period can be generated. For example, the interaction report parameters may include the number of interactions for various games and the most frequently interacted game type being "riddles". In addition, temporary interactive memories indicating that children more often engage in riddles and idiom chain interactions this week can be generated.

[0142] In some other embodiments, conversation analysis can be performed based on the analysis prompts and parsing structure to generate intermediate analysis results, and interactive report parameters and temporary interactive memories can be generated in a dual-path manner based on the intermediate analysis results. Specifically, this may include the following steps: Within a preset period, children interacted multiple times with the emotional companionship agent, generating conversation records such as "I got a little red flower today" and "I'm not happy today." After clustering the conversation records, a set of conversation records under the emotional companionship agent can be obtained.

[0143] Based on the analysis prompts for the "emotional companionship" category and the parsing structure of the "emotional bucket" type, conversation analysis is performed on the conversation record set of the "emotional companionship" category, yielding intermediate analysis results in the following form: { "agent": "Hug Egg", "analysis_type": "Sentiment Bucket Analysis", "emotion_buckets": { "happy": { "count": 1, "evidence_texts": ["I got a little red flower today"] }, "Medium": { "count": 2, "evidence_texts": [] }, "In a bad mood": { "count": 1, "evidence_texts": ["I'm not happy today"] } }, Summary: This week, children expressed both happiness and a few negative emotions, but overall their condition remained stable. } Here, agent represents the agent identifier; analysis_type represents the analysis type; emotion_buckets represents the emotion bucket structure, where count and evidence_texts represent the count and original expression evidence of a certain type of emotion, respectively; and summary represents the emotion summary.

[0144] Based on this intermediate analysis, interactive report parameters for assembling the mental health report section can be generated, along with temporary interactive memories. Temporary interactive memories related to emotions are typically not included in long-term interactive memories but are used for short-term support and reference within their validity period.

[0145] In some other embodiments, it can be determined whether to place temporary memory content items in temporary interactive memory into long-term interactive memory, which may specifically include the following steps: If a child asks questions about "solar terms and traditional culture" in a knowledge-based question-and-answer agent for three consecutive preset periods, and the intermediate analysis results of each preset period include relevant knowledge points, user expression evidence, and medium to high interest intensity, then the temporary memory item can be placed into long-term interactive memory based on the cross-period repeatability, amount of evidence, and interest intensity of the temporary memory item.

[0146] For example, the temporary memory content can be first placed into the long-term memory summary and storage system, and then stable interest memories can be generated based on the long-term memory mechanism in the long-term memory summary and storage system.

[0147] Conversely, if a temporary memory item is mentioned only once within a single preset period, and the amount of evidence is insufficient and the intensity of interest is low, then the item will only be retained as a temporary interactive memory and will be discarded after the expiration of its validity period, and will no longer enter the long-term interactive memory.

[0148] The session recording processing apparatus provided by the present invention is described below. The session recording processing apparatus described below can be referred to in correspondence with the session recording processing method described above.

[0149] Figure 2 This is a schematic diagram of the conversation recording processing device provided by the present invention, as shown below. Figure 2 As shown, the device includes: The conversation clustering unit 210 is used to cluster conversation records based on the agent type corresponding to each human-computer interaction conversation record within a preset period, and obtain a set of conversation records under each agent type. The intermediate analysis unit 220 is used to perform conversation analysis on the conversation record set under each agent type based on the record analysis rules corresponding to each agent type, and obtain the intermediate analysis results corresponding to each agent type. The generation unit 230 is used to generate the interaction report parameters for the preset period and / or the temporary interaction memory for the preset period based on the intermediate analysis results corresponding to all agent types. The temporary interaction memory is used for short-term dialogue enhancement and / or long-term memory determination.

[0150] The apparatus provided in this invention performs cluster analysis on session records based on agent type, avoiding the problem of overly broad user profiles and blurred task boundaries caused by mixing sessions of multiple agents with different functional boundaries. Furthermore, based on the record analysis rules corresponding to each agent type, session analysis is performed on the session record set under each agent type to obtain intermediate analysis results corresponding to each agent type. This generates interaction report parameters and temporary interaction memory, which not only ensures consistent evidence between report display and memory reuse, reduces computational call costs, and improves the stability of session record processing, but also uses temporary interaction memory to build buffer data between the original session and long-term memory, effectively preventing short-term occasional interests from polluting long-term interaction memory, improving the continuity of multi-agent interaction, and optimizing the user experience.

[0151] Based on any of the above embodiments, the record analysis rules include at least one of analysis prompt words, program statistical rules, and parsing structures.

[0152] Based on any of the above embodiments, the intermediate analysis unit is specifically used for: The analysis prompt words corresponding to each agent type and the set of conversation records under each agent type are input into the large language model to obtain the first analysis result corresponding to each agent type output by the large language model. Based on the program statistics rules corresponding to each agent type, data statistics are performed on the session record set under each agent type to obtain the second analysis result corresponding to each agent type. Based on the first and / or second analysis results corresponding to each agent type, intermediate analysis results that conform to the parsing structure corresponding to each agent type are generated.

[0153] Based on any of the above embodiments, the generating unit is specifically used for: Based on the intermediate analysis results corresponding to all agent types, at least one of the following is performed: information statistics, expression sample extraction, and emotion type statistics under various interaction functions, to obtain the interaction report parameters for the preset period.

[0154] Based on any of the above embodiments, the generating unit is specifically used for: Based on the intermediate analysis results corresponding to each agent type, temporary memory content items are extracted, and at least one of the following is generated for each temporary memory content item: agent summary, original expression evidence, judgment reason, value description, interest intensity, source session, and validity period, as temporary interactive memory for the preset period.

[0155] Based on any of the above embodiments, the generating unit is further configured to: Based on at least one of the following factors: interest intensity, repetition frequency, amount of evidence, cross-session repeatability, cross-period continuity, and guardian authorization status of the temporary memory content item, long-term memory content items are selected from the temporary memory content items and added to the long-term interactive memory.

[0156] Based on any of the above embodiments, the intermediate analysis unit is further configured to: The intermediate analysis results are subjected to at least one of the following validation methods: field integrity validation, structural validity validation, evidence citation validity validation, and type matching validation.

[0157] Based on any of the above embodiments, the session record includes at least one of user information, session time, agent identifier, agent type, scene identifier, multi-turn dialogue content, tool call record, device action record, and original expression evidence.

[0158] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communications interface 320, and the memory 330 communicate with each other via the communication bus 340. The processor 310 can call logical instructions in the memory 330 to execute a session recording processing method, which includes: Based on the agent type corresponding to each human-computer interaction session record within a preset period, the session records are clustered to obtain a set of session records under each agent type. Based on the record analysis rules corresponding to each agent type, the session record set under each agent type is analyzed to obtain the intermediate analysis results corresponding to each agent type. Based on the intermediate analysis results corresponding to all agent types, the interaction report parameters for the preset period and / or the temporary interaction memory for the preset period are generated. The temporary interaction memory is used for short-term dialogue enhancement and / or long-term memory determination.

[0159] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to related technologies, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0160] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program that can be stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is able to execute the session recording processing method provided by the above methods, the method comprising: Based on the agent type corresponding to each human-computer interaction session record within a preset period, the session records are clustered to obtain a set of session records under each agent type. Based on the record analysis rules corresponding to each agent type, the session record set under each agent type is analyzed to obtain the intermediate analysis results corresponding to each agent type. Based on the intermediate analysis results corresponding to all agent types, the interaction report parameters for the preset period and / or the temporary interaction memory for the preset period are generated. The temporary interaction memory is used for short-term dialogue enhancement and / or long-term memory determination.

[0161] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the session recording processing methods provided by the methods described above, the method comprising: Based on the agent type corresponding to each human-computer interaction session record within a preset period, the session records are clustered to obtain a set of session records under each agent type. Based on the record analysis rules corresponding to each agent type, the session record set under each agent type is analyzed to obtain the intermediate analysis results corresponding to each agent type. Based on the intermediate analysis results corresponding to all agent types, the interaction report parameters for the preset period and / or the temporary interaction memory for the preset period are generated. The temporary interaction memory is used for short-term dialogue enhancement and / or long-term memory determination.

[0162] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0163] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of software products. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

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

Claims

1. A method for processing session records, characterized in that, include: Based on the agent type corresponding to each human-computer interaction session record within a preset period, the session records are clustered to obtain a set of session records under each agent type. Based on the record analysis rules corresponding to each agent type, the session record set under each agent type is analyzed to obtain the intermediate analysis results corresponding to each agent type. Based on the intermediate analysis results corresponding to all agent types, the interaction report parameters for the preset period and / or the temporary interaction memory for the preset period are generated. The temporary interaction memory is used for short-term dialogue enhancement and / or long-term memory determination.

2. The session recording processing method according to claim 1, characterized in that, The record analysis rules include at least one of analysis prompt words, program statistical rules, and parsing structures.

3. The session recording processing method according to claim 2, characterized in that, The method involves performing session analysis on the session record set under each agent type based on the record analysis rules corresponding to each agent type, and obtaining intermediate analysis results for each agent type, including: The analysis prompt words corresponding to each agent type and the set of conversation records under each agent type are input into the large language model to obtain the first analysis result corresponding to each agent type output by the large language model. Based on the program statistics rules corresponding to each agent type, data statistics are performed on the session record set under each agent type to obtain the second analysis result corresponding to each agent type. Based on the first and / or second analysis results corresponding to each agent type, intermediate analysis results that conform to the parsing structure corresponding to each agent type are generated.

4. The session recording processing method according to claim 1, characterized in that, Based on the intermediate analysis results corresponding to all agent types, the interaction report parameters for the preset period are generated, including: Based on the intermediate analysis results corresponding to all agent types, at least one of the following is performed: information statistics, expression sample extraction, and emotion type statistics under various interaction functions, to obtain the interaction report parameters for the preset period.

5. The session recording processing method according to claim 1, characterized in that, Based on the intermediate analysis results corresponding to all agent types, a temporary interaction memory for the preset period is generated, including: Based on the intermediate analysis results corresponding to each agent type, temporary memory content items are extracted, and at least one of the following is generated for each temporary memory content item: agent summary, original expression evidence, judgment reason, value description, interest intensity, source session, and validity period, as temporary interactive memory for the preset period.

6. The session recording processing method according to claim 5, characterized in that, Also includes: Based on at least one of the following factors: interest intensity, repetition frequency, amount of evidence, cross-session repeatability, cross-period continuity, and guardian authorization status of the temporary memory content item, long-term memory content items are selected from the temporary memory content items and added to the long-term interactive memory.

7. The session recording processing method according to any one of claims 1 to 6, characterized in that, Also includes: The intermediate analysis results are subjected to at least one of the following validation methods: field integrity validation, structural validity validation, evidence citation validity validation, and type matching validation.

8. The session recording processing method according to any one of claims 1 to 6, characterized in that, The session record includes at least one of the following: user information, session time, agent identifier, agent type, scene identifier, multi-turn dialogue content, tool call record, device action record, and original expression evidence.

9. A session recording processing apparatus, characterized in that, include: The conversation clustering unit is used to cluster conversation records based on the agent type corresponding to each human-computer interaction conversation record within a preset period, and obtain a set of conversation records under each agent type. The intermediate analysis unit is used to perform conversation analysis on the conversation record set under each agent type based on the record analysis rules corresponding to each agent type, and to obtain the intermediate analysis results corresponding to each agent type. The generation unit is used to generate interaction report parameters for the preset period and / or temporary interaction memory for the preset period based on the intermediate analysis results corresponding to all agent types. The temporary interaction memory is used for short-term dialogue enhancement and / or long-term memory determination.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the session recording processing method as described in any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the session recording processing method as described in any one of claims 1 to 8.

12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the session recording processing method as described in any one of claims 1 to 8.