Intelligent agent evaluation method, electronic device, and computer program product

By evaluating the task execution process and delivery results of the agent separately, and calibrating based on a historically stable anchor point model, the problem of unstable scoring across batches in agent evaluation is solved, and the stability and comparability of evaluation results are achieved.

CN123178240APending Publication Date: 2026-11-27IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611675499.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, agent evaluation methods suffer from unstable scores due to dynamic standardization when comparing across batches, making it difficult to maintain the consistency and reproducibility of scores for the same agent. This is especially true when the set of agents to be evaluated changes, as the scoring reference parameters change significantly.

Method used

The task execution process and delivery results of the intelligent agent are evaluated separately. The agent is calibrated based on the mean and standard deviation of the anchor model with stable historical performance, and calibration scores for task execution process and delivery results are generated to ensure that the scoring criteria remain stable across different batches.

Benefits of technology

This achieves cross-batch stability and reproducibility of agent evaluation results, avoids mutual influence between scores, and improves the consistency and reference value of evaluation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178240A_ABST
    Figure CN123178240A_ABST
Patent Text Reader

Abstract

The application provides an agent evaluation method, an electronic device and a computer program product, which are applied to the field of artificial intelligence. The method evaluates the execution process and the delivery result of the target task performed by the agent to be evaluated, obtains a task execution process score and a delivery result score, calibrates the scores by using the historical score mean and standard deviation corresponding to an anchor point model with stable historical task performance as a fixed calibration anchor point, and combines the calibrated scores to generate an evaluation result. Since the calibration is only determined by the historical scores of the fixed anchor point model and does not change with the increase or decrease of the current batch of agents to be evaluated, the cross-batch score standard can be kept stable, the evaluation results obtained by the same agent to be evaluated in different batches are comparable and reproducible, and by separately calculating and calibrating the execution process score and the delivery result score, the mutual influence between the two types of scores can be avoided, and the consistency and reference value of the evaluation result are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, specifically to intelligent agent evaluation methods, electronic devices, and computer program products. Background Technology

[0002] With the application of large language model-driven agents in software development, data analysis, and office automation, agents typically complete tasks through multiple steps, including task understanding, tool invocation, product generation, result verification, and final delivery. The execution trajectory formed by these steps reflects the agent's task understanding ability, execution efficiency, error recovery ability, and operational reliability; the final answer, file path, data results, and delivery format collectively reflect the actual quality of the task product. Therefore, agents can be evaluated through their execution process and final results.

[0003] In related technologies, task success rate, average score, or relative score calculated based on the current set of agent models to be evaluated are commonly used as evaluation results. However, when performing long-term evaluations and cross-batch comparisons on multiple agent models, the dynamic reference parameters for scoring are altered when adding or removing agent models during dynamic standardization using all models in the current batch. This leads to unstable scores for the same agent model across different batches, making it difficult to reproduce and compare across batches. Summary of the Invention

[0004] To address the aforementioned issues, this application proposes an intelligent agent evaluation method, an electronic device, and a computer program product.

[0005] The first aspect of this application provides an agent evaluation method, wherein the agent is a large language model agent. The method includes: evaluating the execution process and delivery result of the agent to be evaluated in performing a target task, respectively, to obtain a task execution process score and a delivery result score; obtaining a first mean and a first standard deviation of the historical task execution process scores corresponding to multiple anchor models, and a second mean and a second standard deviation of the historical delivery result scores, wherein the anchor models are agents with stable historical task performance, the anchor models and the agent to be evaluated are of the same type, and the historical tasks and the target task are of the same type; calibrating the task execution process score using the first mean and the first standard deviation as anchors to obtain a task execution process calibration score, and calibrating the delivery result score using the second mean and the second standard deviation as anchors to obtain a delivery result calibration score; and generating an evaluation result for the agent to be evaluated based on the task execution process calibration score and the delivery result calibration score.

[0006] In one possible implementation, the task execution process score is calibrated using a first mean and a first standard deviation as anchor points to obtain a calibrated task execution process score; or, the delivery result score is calibrated using a second mean and a second standard deviation as anchor points to obtain a calibrated delivery result score. This includes: calculating a first ratio of the difference between the task execution process score and the first mean to the first standard deviation, or calculating a second ratio of the difference between the delivery result score and the second mean to the second standard deviation; determining a first center score and a first amplification factor, or determining a second center score and a second amplification factor; and obtaining the calibrated task execution process score based on the sum of the product of the first ratio and the first amplification factor and the first center score, or obtaining the calibrated delivery result score based on the sum of the product of the second ratio and the second amplification factor and the second center score.

[0007] In one possible implementation, before generating the evaluation result of the agent to be evaluated based on the task execution process calibration score and the delivery result calibration score, the method further includes: evaluating the anchor model in the current batch to obtain the current task execution process score and the current delivery result score; calculating a first average offset based on the current task execution process score and the historical task execution process score, and calculating a second average offset based on the current delivery result score and the historical delivery result score; correcting the task execution process calibration score based on the first average offset, and correcting the delivery result calibration score based on the second average offset.

[0008] In one possible implementation, before correcting the task execution process calibration score based on the first average offset and the delivery result calibration score based on the second average offset, the method further includes: determining whether the first average offset and / or the second average offset exceed a preset offset threshold; when the first average offset and / or the second average offset exceed the preset offset threshold, correcting the task execution process calibration score based on the first average offset, and / or correcting the delivery result calibration score based on the second average offset; when the first average offset does not exceed the preset offset threshold, maintaining the task execution process calibration score, or when the second average offset does not exceed the preset offset threshold, maintaining the delivery result calibration score.

[0009] In one possible implementation, the anchor model includes: a first anchor model and a second anchor model, wherein the first anchor model is a first agent whose performance in the execution process of historical tasks is stable, and the second anchor model is a second agent whose performance in the delivery results of historical tasks is stable; obtaining the first mean and first standard deviation of the historical task execution process scores corresponding to multiple anchor models, and the second mean and second standard deviation of the historical delivery result scores, includes: obtaining the first mean and first standard deviation of the historical task execution process scores corresponding to multiple first anchor models, and obtaining the second mean and second standard deviation of the historical delivery result scores corresponding to multiple second anchor models; in the current batch, performing agent evaluation on the anchor models to obtain the current task execution process score and the current delivery result score, including: in the current batch, performing agent evaluation on the first anchor model and the second anchor model respectively to obtain the current task execution process score corresponding to the first anchor model and the current delivery result score corresponding to the second anchor model.

[0010] In one possible implementation, the execution process and delivery result of the agent to be evaluated in performing the target task are evaluated separately to obtain a task execution process score and a delivery result score. This includes: obtaining the execution log of the agent to be evaluated, converting the execution log into unified trajectory step data, and determining the target task and actual delivery result from the trajectory step data, whereby the trajectory step data represents data related to the execution process of the target task; evaluating the task execution process of the agent to be evaluated based on the trajectory step data to obtain a task execution process score; determining a reference delivery result corresponding to the target task, and evaluating the actual delivery result based on the reference delivery result to obtain a delivery result score.

[0011] In one possible implementation, the task execution process of the agent to be evaluated is evaluated based on trajectory step data to obtain a task execution process score. This includes: scoring the rationality of the task execution process based on the trajectory step data according to preset code rules to obtain a code rule score. The preset code rules include at least one of the following: tool call success rate, task execution efficiency, loop detection, task completion, error handling, and tool diversity; scoring the delivery quality of the actual delivery results based on reference delivery results to obtain a delivery quality score. Delivery quality includes: key content coverage, file path or file type output, and data output; determining the tool execution reliability score based on the tool call success rate; and weighting and summing the code rule score, delivery quality score, and tool execution reliability score according to preset weight allocation rules to obtain the task execution process score.

[0012] In one possible implementation, the actual delivery result is evaluated based on the reference delivery result to obtain a delivery result score. This includes: scoring the delivery quality of the actual delivery result based on the reference delivery result to obtain a delivery quality score, where delivery quality includes: key content coverage, file path or file type output, and data output; inputting the target task, reference delivery result, and actual delivery result into a pre-trained evaluation model to obtain an evaluation model score, which is used to score the agent's delivery result based on the input task, reference delivery result, and actual delivery result; calculating the keyword coverage rate of the reference delivery result in the actual delivery result, and determining the confidence level of the delivery quality score based on the keyword coverage rate; determining a first weight corresponding to the delivery quality score based on the confidence level, and determining a second weight corresponding to the evaluation model score based on the first weight, where the sum of the first weight and the second weight is 1, and the first weight is positively correlated with the confidence level; and weighted summing the delivery quality score and the evaluation model score based on the first weight and the second weight to obtain the delivery result score.

[0013] In one possible implementation, before calculating the keyword coverage of the reference delivery results in the actual delivery results and determining the confidence level of the delivery quality score based on the keyword coverage, the method further includes: determining whether the evaluation model is in a fault state, where the fault state is used to characterize that the evaluation model cannot output the delivery quality score normally; when the evaluation model is in a non-fault state, performing the steps of calculating the keyword coverage of the reference delivery results in the actual delivery results and determining the confidence level of the delivery quality score based on the keyword coverage; and when the evaluation model is in a fault state, determining the delivery quality score as the delivery result score.

[0014] In one possible implementation, before determining the second weight corresponding to the evaluation model score based on the first weight, the method further includes: determining whether the first weight is within a preset weight range; when the first weight is within the preset weight range, performing the step of determining the second weight corresponding to the evaluation model score based on the first weight; when the first weight is greater than the maximum value of the preset weight range or less than the minimum value of the preset weight range, updating the first weight to the maximum or minimum value of the preset weight range, and performing the step of determining the second weight corresponding to the evaluation model score based on the first weight.

[0015] In one possible implementation, the method further includes: calculating the score difference between the delivery quality score and the evaluation model score; marking the score difference of the delivery result score based on the score difference; and / or, providing a manual review prompt when the score difference exceeds a preset score difference threshold.

[0016] In one possible implementation, the evaluation of the actual delivery result based on the reference delivery result to obtain a delivery result score also includes: scoring the actual delivery result based on the reference delivery result using auxiliary indicators, which include at least one of the following: keyword precision, keyword coverage and relevance combined index, numerical overlap, structural clarity, length reasonableness, and confidence; the scores of the auxiliary indicators are used as reference information input into the evaluation model, so that the evaluation model scores the agent's delivery result based on the input task, reference delivery result, and actual delivery result, and uses the reference information.

[0017] In one possible implementation, the method further includes: performing risk diagnosis on the agent to be evaluated based on preset risk rules to obtain risk diagnosis results, wherein the preset risk rules are used to assess the abnormal risks that exist in the agent to be evaluated during task execution; and adding the risk diagnosis results to the evaluation results.

[0018] A second aspect of this application provides an agent evaluation device, wherein the agent is a large language model agent, and the device includes: The evaluation unit is used to evaluate the execution process and delivery results of the target task performed by the agent to be evaluated, and to obtain the task execution process score and the delivery result score. The acquisition unit is used to acquire the first mean and first standard deviation of the historical task execution process scores corresponding to multiple anchor point models, as well as the second mean and second standard deviation of the historical delivery result scores. The anchor point model is an intelligent agent with stable historical task performance. The anchor point model and the intelligent agent to be evaluated are the same type of intelligent agent, and the historical task and the target task are the same type of task. The calibration unit is used to calibrate the task execution process score using the first mean and the first standard deviation as anchor points to obtain the task execution process calibration score, and to calibrate the delivery result score using the second mean and the second standard deviation as anchor points to obtain the delivery result calibration score. The evaluation result generation unit is used to generate evaluation results for the intelligent agent to be evaluated based on the calibration score of the task execution process and the calibration score of the delivery result.

[0019] A third aspect of this application provides an electronic device, including: a memory and a processor; the memory is connected to the processor and is used to store a program; the processor is used to implement the intelligent agent evaluation method provided in any implementation of the first aspect by running the program in the memory.

[0020] The fourth aspect of this application is a computer program product, including a computer program that, when executed by a processor, implements the intelligent agent evaluation method provided by the first aspect of this application or any possible implementation thereof.

[0021] The fifth aspect of this application provides a storage medium storing a computer program, which, when executed by a processor, implements the intelligent agent evaluation method provided by the first aspect of this application or any possible implementation thereof.

[0022] According to the intelligent agent evaluation method, electronic device, and computer program product proposed in this application, the execution process and delivery result of the intelligent agent to be evaluated are evaluated separately to obtain task execution process scores and delivery result scores. The historical mean and standard deviation of the scores corresponding to the anchor point model with stable historical task performance are used as fixed calibration anchor points to calibrate the task execution process scores and delivery result scores separately. The calibrated scores are then merged to generate the evaluation result. Since the mean and standard deviation used for calibration are predetermined only by the historical scores of the fixed anchor point model and do not change with the increase or decrease of intelligent agents to be evaluated in the current batch, the scoring standard can be kept stable across batches. This ensures that the evaluation results obtained by the same intelligent agent in different batches are comparable and reproducible. Furthermore, by calculating and calibrating the execution process score and delivery result score separately, the mutual influence between the two types of scores can be avoided, improving the consistency and reference value of the evaluation results. Attached Figure Description

[0023] 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 embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0024] Figure 1 This is a schematic diagram of the implementation environment involved in the embodiments of this application.

[0025] Figure 2 This is a flowchart illustrating the intelligent agent evaluation method provided according to the embodiments of this application. Figure 1 .

[0026] Figure 3 This is a flowchart illustrating the intelligent agent evaluation method provided according to the embodiments of this application. Figure 2 .

[0027] Figure 4 This is an example diagram of a system architecture used to implement an intelligent agent evaluation method.

[0028] Figure 5 This is a schematic diagram of the structure of the intelligent agent evaluation device provided according to the embodiments of this application.

[0029] Figure 6 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation

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

[0031] Large Language Model (LLM) agents, when performing tasks, undergo multiple steps including tool invocation, inference, and exception handling, ultimately producing a deliverable. Existing evaluation methods primarily rely on task completion rate and whether deliverables are generated, typically focusing only on the final result. This makes it difficult to distinguish between well-executed tasks and accidental successes after numerous blind retries, failing to comprehensively reflect the agent's process quality. Furthermore, some scoring methods dynamically standardize the overall distribution of the agents being evaluated. In different batches of evaluations, changes in the set of agents (such as adding or removing agents) alter the dynamically calculated scoring reference parameters for that batch, leading to a lack of stability and reproducibility in the scoring of the same agent across different batches, hindering cross-batch comparisons.

[0032] To address the aforementioned issues, this application provides an intelligent agent evaluation method, electronic device, and computer program product. It is applicable to evaluation scenarios for large language model intelligent agents. By treating execution process evaluation and delivery result evaluation as two independent evaluation lines, the task execution process score focuses on reflecting process quality such as tool call reliability, execution efficiency, and anomaly handling capabilities, while the delivery result score focuses on reflecting result quality such as the completeness of the final product's content and data accuracy. These two dimensions do not interfere with each other, facilitating separate problem identification. Then, historical score statistics corresponding to multiple anchor point models are obtained. Using historically stable anchor point models as a fixed reference coordinate system, the task execution process score and delivery result score are calibrated separately, ensuring that the calibration scores of existing models remain unchanged when adding or removing ordinary models to be evaluated. Finally, evaluation results are generated based on the calibration scores of the two dimensions. This achieves stability and reproducibility of cross-batch scoring while considering both process and result quality, enabling direct comparison of intelligent agent evaluation results across batches.

[0033] Exemplary Implementation Environment Please refer to Figure 1 , Figure 1This is a schematic diagram illustrating the implementation environment according to the present invention. The implementation environment according to this application includes an intelligent agent evaluation device 110 and at least one intelligent agent 120 to be evaluated. The intelligent agent evaluation device 110 is communicatively connected to the intelligent agent 120 to be evaluated. The intelligent agent evaluation device 110 may be an evaluation server, a computing cluster, or other electronic devices with processing capabilities. Figure 1 Taking one agent 120 to be evaluated and the agent evaluation device 110 as the evaluation server as an example. In practical applications, the agent evaluation device 110 can also communicate with multiple agents 120 to be evaluated at the same time to realize batch evaluation of agents.

[0034] In this embodiment, the intelligent agent 120 to be evaluated receives and executes a target task, generating an execution log and actual delivery results. The intelligent agent evaluation device 110 executes the intelligent agent evaluation method provided in this embodiment. For example, the intelligent agent 120 sends the execution log corresponding to the target task to the intelligent agent evaluation device 110. Based on the execution log, the intelligent agent evaluation device 110 evaluates the task execution process and delivery results of the intelligent agent 120 to be evaluated using the intelligent agent evaluation method provided in this embodiment, obtaining the evaluation result of the intelligent agent 120.

[0035] Exemplary methods Please see Figure 2 In one exemplary embodiment, an agent evaluation method is provided, which includes the following steps: Step S201: Evaluate the execution process and delivery results of the target task performed by the agent to be evaluated, and obtain the task execution process score and delivery result score.

[0036] In some embodiments, the large language model agent can be, for example, an agent driven by a large language model and capable of tool invocation, or a general agent scaffolding instance applied to scenarios such as software development, data analysis, or office automation. The target task mentioned here can be, for example, a task requiring the agent to complete multiple steps such as task understanding, tool invocation, product generation, result verification, and final delivery, such as code generation tasks, data analysis tasks, office automation tasks, and retrieval / question-answering tasks. The execution process characterizes the execution trajectory formed by the steps of reasoning, tool invocation, and exception handling experienced by the agent under evaluation when completing the target task. The delivery result characterizes the task products such as answers, files, or data finally output by the agent under evaluation. The task execution process score is used to quantify the process quality of the agent under evaluation in completing the target task, such as process rationality, execution efficiency, error recovery, and tool execution reliability; the delivery result score is used to quantify the quality of the task products finally delivered by the agent under evaluation, such as the completeness, accuracy, clarity, and usability of the agent's final output answers, files, paths, data, or other deliverables.

[0037] It should be noted that the above-mentioned task execution process score and delivery result score are not limited to a single integer score, but can also be a floating-point score, a standardized score, a percentage score, or other numerical indicators after transformation. In this embodiment of the application, a percentage score is used as an example for illustration, and this is only an example and is not a limitation.

[0038] By evaluating the execution process and the delivery results separately, the quality of the process and the quality of the result can be quantified separately. This avoids the difficulty in distinguishing between standardized completion and accidental completion after multiple blind attempts based solely on whether the final delivery was successful. It also improves the stability when comparing across batches.

[0039] Step S202: Obtain the first mean and first standard deviation of the historical task execution process scores corresponding to multiple anchor point models, as well as the second mean and second standard deviation of the historical delivery result scores.

[0040] In this system, the anchor model is an agent with stable historical task performance. For example, the anchor model could be an agent that has participated in multiple evaluations in history and whose scores have shown minimal fluctuation. Selecting an agent with stable historical task performance as the anchor model ensures that the statistics (mean and standard deviation) calculated from its historical scores have high reliability and representativeness, thus providing a stable reference benchmark for subsequent calibration. The anchor model and the agent to be evaluated are of the same type. For example, when the agent to be evaluated is a general agent with tool-calling capabilities, the anchor model should also be a general agent of the same type. This ensures comparability in terms of task execution capabilities and avoids calibration benchmark distortion due to differences in agent type. Furthermore, the historical tasks of the anchor model and the target task are of the same type, ensuring that the historical score statistics of the anchor model and the current score of the agent to be evaluated are within the same task context, giving the calibration results practical significance. The number of anchor models can be, for example, three, or other values ​​such as five, depending on actual needs; this application is not limited to this.

[0041] Specifically, the first mean is the average score of the historical task execution process corresponding to multiple anchor models, and the first standard deviation is the standard deviation of the historical task execution process scores corresponding to multiple anchor models. The first mean represents the fixed reference level of the anchor models in the execution process dimension, and the first standard deviation represents the degree of dispersion of the anchor models in the execution process scores. Together, they constitute a fixed reference coordinate system for the execution process scores. Similarly, the second mean is the average score of the historical delivery result corresponding to multiple anchor models, and the second standard deviation is the standard deviation of the historical delivery result scores corresponding to multiple anchor models. The second mean represents the fixed reference level of the anchor models in the delivery result dimension, and the second standard deviation represents the degree of dispersion of the anchor models in the delivery result scores. Together, they constitute a fixed reference coordinate system for the delivery result scores.

[0042] It should be noted that the first mean and first standard deviation are pre-calculated and fixedly stored using historical data from the anchor model, and do not need to be recalculated for each evaluation. The second mean and second standard deviation are calculated similarly. By pre-fixing and storing the statistics of the anchor model, the reference parameters do not change with the current batch of models to be evaluated, thus ensuring that the calibration scores of existing models remain stable across different batches.

[0043] For example, taking task execution process scoring as an example, the historical task execution process scores of the three anchor models A, B, and C can be fixed at 62.9, 58.5, and 64.1, respectively. The average score of the three is approximately 61.83, and the standard deviation is approximately 2.41; where the average score represents a fixed reference level, and the standard deviation represents the score difference between the three anchor models. The above two values ​​are pre-calculated and saved, and do not need to be recalculated for each evaluation.

[0044] Step S203: Using the first mean and the first standard deviation as anchor points, calibrate the task execution process score to obtain the task execution process calibration score; and using the second mean and the second standard deviation as anchor points, calibrate the delivery result score to obtain the delivery result calibration score.

[0045] Specifically, calibrating the task execution process score using the first mean and first standard deviation as anchor points refers to using the historical execution process score statistics of the anchor point model as a fixed reference benchmark, converting the task execution process score of the agent under evaluation into a calibration score relative to this fixed benchmark. Through fixed anchor point calibration, the execution process score of the agent under evaluation is mapped to a unified coordinate system with the anchor point model as the reference, ensuring a consistent comparison benchmark for scores across different batches and different sets of models under evaluation, supporting stable comparisons across batches and the reproducibility of historical results. Calibrating the delivery result score using the second mean and second standard deviation as anchor points follows the same calibration principle as the execution process score calibration, the difference being the use of statistics for the delivery result dimension, ensuring that the delivery result dimension score also has cross-batch stability and comparability. The task execution process calibration score and the delivery result calibration score are independently calibrated using their respective corresponding anchor point statistics, avoiding mutual influence between the scores of the two different dimensions during the calibration process, and ensuring the independence and accuracy of the calibration results for each dimension.

[0046] Step S204: Based on the calibration score of the task execution process and the calibration score of the delivery result, generate the evaluation result of the intelligent agent to be evaluated.

[0047] Specifically, the evaluation results can comprehensively reflect the performance of the evaluated intelligent agent in two dimensions: execution process quality and delivery result quality. For example, the calibration scores of the two dimensions, task execution process calibration score and delivery result calibration score, can be directly used as the evaluation results. Alternatively, the weighted combination of the two can be used as the evaluation results. Furthermore, in addition to the above-mentioned evaluation results, intermediate process parameters of the entire evaluation process, such as task execution process score, delivery result score, and the first mean, first standard deviation, second mean, and second standard deviation corresponding to the anchor point model, can be added to the evaluation results to comprehensively display the entire evaluation process and facilitate manual review and verification.

[0048] The agent evaluation method provided in this application maintains stable cross-batch scoring standards because the mean and standard deviation used for calibration are predetermined by the historical scores of the fixed anchor point model and do not change with the increase or decrease of agents to be evaluated in the current batch. This makes the evaluation results of the same agent to be evaluated in different batches comparable and reproducible. At the same time, by calculating and calibrating the execution process score and the delivery result score separately, the mutual influence between the two types of scores can be avoided, improving the consistency and reference value of the evaluation results.

[0049] Please see Figure 3 In one exemplary embodiment, an agent evaluation method is provided, which includes the following steps: Step S301: Evaluate the execution process and delivery results of the target task performed by the agent to be evaluated, and obtain the task execution process score and delivery result score.

[0050] The implementation principle and technical effect of S301 can be referred to the aforementioned embodiments, and will not be repeated here.

[0051] Step S302: Obtain the first mean and first standard deviation of the historical task execution process scores corresponding to multiple anchor point models, as well as the second mean and second standard deviation of the historical delivery result scores. The anchor point model is an agent with stable historical task performance. The anchor point model and the agent to be evaluated are the same type of agent. The historical task and the target task are the same type of task.

[0052] The implementation principle and technical effect of S302 can be referred to the aforementioned embodiments, and will not be repeated here.

[0053] Step S303: Using the first mean and the first standard deviation as anchor points, calibrate the task execution process score to obtain the task execution process calibration score; and using the second mean and the second standard deviation as anchor points, calibrate the delivery result score to obtain the delivery result calibration score.

[0054] In one possible implementation, step S303 specifically includes: calculating a first ratio of the difference between the task execution process score and a first mean to a first standard deviation, or calculating a second ratio of the difference between the delivery result score and a second mean to a second standard deviation. Determining a first center score and a first amplification factor, or determining a second center score and a second amplification factor. Obtaining a task execution process calibration score based on the sum of the product of the first ratio and the first amplification factor and the first center score, or obtaining a delivery result calibration score based on the sum of the product of the second ratio and the second amplification factor and the second center score.

[0055] The first ratio and the second ratio represent how many standard deviations the execution process score and delivery result score of the agent under evaluation deviate from the average level of the anchor model, respectively. For example, for the task execution process score, if the first ratio is 0, it means the task execution process score of the agent under evaluation is consistent with the first mean; if the first ratio is positive, it means it is higher than the average level of the anchor; if the first ratio is negative, it means it is lower than the average level of the anchor. The second ratio for the delivery result score can be understood in the same way and will not be elaborated further here. Through standardization, the original scores with different dimensions and distribution ranges are converted into dimensionless standardized deviations, so that the scores under different tasks and different batches have a uniform comparison scale.

[0056] For example, the first ratio Calculated using the following formula: in, Rate the task execution process. The first mean, Indicates the first standard deviation. It should be a very small positive number to avoid situations where the scores of each anchor point model are too close, leading to division by 0 or excessive score fluctuations.

[0057] As a specific implementation, the first center score and the second center score can be the same or different; the first amplification factor and the second amplification factor can also be the same or different. The first center score is used to determine the central benchmark value for the calibration score of the task execution process. That is, when the execution process score of the agent being evaluated is exactly equal to the first mean of the anchor model, the calibration score is the first center score. The center score provides an intuitive reference anchor point for the calibration score space, allowing agents comparable to the average level of the anchor model to obtain a fixed and easily understood benchmark score. The first amplification factor is used to control the distribution range of the calibration score of the task execution process. That is, for every standard deviation of the execution process score of the agent being evaluated from the anchor mean, the calibration score changes by one amplification factor. The amplification factor determines the score spacing between different agents in the calibration score space. By adjusting the amplification factor, the score discrimination between models can be controlled, ensuring that the calibration scores are neither too concentrated nor too dispersed.

[0058] For example, the first center score can be set to 75, and the first amplification factor can be set to 7. In this case, the calibration score is approximately 75 when the agent being evaluated is at the same level as the anchor point, approximately 82 when it is one standard deviation higher, and approximately 68 when it is one standard deviation lower. Setting the center score at 75 and the amplification factor at 7 distributes the calibration scores within an intuitive percentage range, preserving sufficient score differentiation while facilitating a quick understanding of the agent's relative performance level by the evaluators. The second center score and the second amplification factor are used to calculate the delivery result calibration score, and their function is the same as the first center score and the first amplification factor, the difference being that they are applied to the delivery result dimension, which will not be elaborated further here.

[0059] For example, the task execution process calibration score It can be calculated using the following formula: in, The first center score, The first magnification factor, The first ratio is used. This linear transformation formula maps the standardized deviation to a calibration score based on the center score and scaled by the amplification factor. This ensures that the calibration score retains the positional information of the agent being evaluated relative to the anchor model while also having an intuitive and easily demonstrable numerical range. The delivery result calibration score is obtained by summing the product of the second ratio and the second amplification factor with the second center score. Its calculation formula is similar to that of the task execution process calibration score and will not be elaborated here.

[0060] In some embodiments, the two calibration scores can be limited to a preset range, such as limiting both scores to between 0 and 100 under a percentage scoring system, to avoid extreme scores that exceed a reasonable range. This approach not only maintains the relative position of the score values ​​but also facilitates display and comparison across tasks and batches.

[0061] It should be noted that the above standard deviation position calculation and central scale mapping process preserves the relative high and low relationships of the original scores after calibration, while establishing a unified central scale for different scoring dimensions, so that the calibrated scores can intuitively reflect the position of the tested agent relative to the fixed anchor point set.

[0062] Step S304: In the current batch, perform agent evaluation on the anchor model to obtain the current task execution process score and the current delivery result score.

[0063] The phrase "evaluating the anchor model in the current batch" refers to simultaneously performing the same evaluation process on the anchor model within the same batch of evaluations of the agents to be evaluated, thus obtaining the anchor model's score for the current batch. This allows for obtaining the actual performance of the anchor model in the current evaluation environment, providing reference data for subsequent score drift detection. The current task execution process score is the anchor model's task execution process score for the current batch, and the current delivery result score is the anchor model's delivery result score for the current batch.

[0064] Step S305: Calculate the first average offset based on the current task execution process score and the historical task execution process score, and calculate the second average offset based on the current delivery result score and the historical delivery result score.

[0065] Specifically, the first average offset is calculated as follows: calculate the difference between the score of each anchor point model in the current batch of task execution and its historical task execution score, and then average these differences.

[0066] For example, the first average offset It can be calculated using the following formula: in, For the number of anchor point models, For the first Each anchor point model scores the task execution process in the current batch. For the first The historical task execution process score of the anchor point model. The first average offset reflects the overall offset direction and magnitude of the current batch relative to the historical baseline in the execution process score dimension, providing a quantitative basis for subsequent judgment on whether correction is needed and the direction and magnitude of correction. The calculation method of the second average offset is similar to that of the first average offset, and will not be repeated here.

[0067] Step S306: Correct the calibration score of the task execution process based on the first average offset, and correct the calibration score of the delivery result based on the second average offset.

[0068] Specifically, the correction method involves calibrating the scoring of the task execution process. Subtract the first average offset The corrected task execution process calibration score was obtained. Specifically, it can be expressed by the following formula: If the overall score of the current batch is too high (positive offset), the corrected score will be lower; if the overall score of the current batch is too low (negative offset), the corrected score will be higher, thus eliminating systematic score drift across batches and allowing direct comparison of scores from different batches. The delivery result calibration score is corrected based on the second average offset, and the correction method is the same as that for the task execution process calibration score, which will not be elaborated here.

[0069] This application embodiment detects whether there is an overall score deviation in the current batch by re-evaluating the anchor point model in the current batch and comparing it with its historical scores, and automatically corrects the calibration score when the deviation exceeds the allowable range, thereby further ensuring the consistency and comparability of scores between different batches.

[0070] In one possible implementation, before performing step S306 above, the intelligent agent evaluation method provided in this application embodiment further includes: determining whether the first average offset and / or the second average offset exceeds a preset offset threshold; when the first average offset and / or the second average offset exceeds the preset offset threshold, correcting the task execution process calibration score based on the first average offset, and / or correcting the delivery result calibration score based on the second average offset; when the first average offset does not exceed the preset offset threshold, maintaining the task execution process calibration score, or, when the second average offset does not exceed the preset offset threshold, maintaining the delivery result calibration score.

[0071] The preset offset threshold is used to define the boundary between normal score fluctuations and systematic score drift. For example, the preset offset threshold can be set to 1.0 point. Setting the preset offset threshold to 1.0 point means that when the average change between the current batch score and the historical score of the anchor model does not exceed 1.0 point, it is considered a change within the normal fluctuation range and no correction is performed; automatic correction is only triggered when it exceeds 1.0 point, thus achieving a balance between avoiding over-correction and timely correction.

[0072] Specifically, the absolute values ​​of the first and / or second average offsets are compared with preset offset thresholds. Corrections are only made for dimensions exceeding the threshold, allowing the execution process score and delivery result score to independently determine whether correction is needed, preventing unnecessary correction of one dimension due to drift in another. When the first average offset does not exceed the preset offset threshold, the task execution process calibration score remains unchanged, avoiding the introduction of additional uncertainty by correcting minor fluctuations. When the second average offset does not exceed the preset offset threshold, the delivery result calibration score remains unchanged, consistent with the processing logic for the execution process dimension. This correction relationship can be expressed as: in, A preset offset threshold is set. This application's embodiments introduce an offset threshold judgment mechanism to distinguish between normal scoring fluctuations and systematic drifts requiring correction, thus avoiding unnecessary corrections to minor normal fluctuations.

[0073] For example, the comparison results between the current batch dynamic standardization method and the fixed anchor point calibration method used in the embodiments of this application are shown in Table 1. It can be seen that compared with the method of recalculating the standard using all models in the current batch, the fixed anchor point calibration does not change the comparison standard due to the addition or reduction of ordinary models; at the same time, cross-batch score drift can be directly detected by the changes in the current score and historical scores of the anchor point.

[0074] Table 1 Step S307: Based on the calibration score of the task execution process and the calibration score of the delivery result, generate the evaluation result of the intelligent agent to be evaluated.

[0075] The implementation principle and technical effects of S307 can be referred to in the aforementioned embodiments, and will not be repeated here.

[0076] In one possible implementation, step S301 includes: acquiring the execution log of the agent to be evaluated, converting the execution log into unified trajectory step data, and determining the target task and actual delivery result from the trajectory step data, wherein the trajectory step data represents data related to the execution process of the target task; evaluating the task execution process of the agent to be evaluated based on the trajectory step data to obtain a task execution process score; determining the reference delivery result corresponding to the target task, and evaluating the actual delivery result based on the reference delivery result to obtain a delivery result score.

[0077] The execution log consists of log data generated by the agent under evaluation during the execution of the target task. This log data can be collected via callback interfaces, application programming interface (API) pushes, or file monitoring. Support for multiple log collection methods allows for adaptation to the log output mechanisms of different agent frameworks, improving the versatility of the evaluation system.

[0078] Specifically, due to differences in log structures, task numbers, and tool call formats among different agent frameworks, a unified data structure is established to eliminate the impact of framework differences on evaluation, thus ensuring the cross-framework universality of subsequent scoring rules. Trajectory step data represents the execution process related to the target task, including all inference steps, tool call steps, exception handling steps, and final response steps experienced by the agent during the execution of the target task. Each step in the trajectory step data records the step number, time, step type, inference content, tool name, tool parameters, execution result, success or failure, resource consumption, and relationship with preceding and following steps. Each step records multi-dimensional information, providing a sufficient data foundation for subsequent process evaluation from different perspectives (such as tool call success rate, execution efficiency, loop detection, etc.).

[0079] For example, the original task, i.e., the aforementioned target task, can be extracted from the user instruction step. The target task can be the original user instruction text, or a preprocessed task summary, task number, or structured task object. The evaluation output, i.e., the aforementioned actual delivery result, can be extracted from the final response step. This can include the final text response, the path to the generated file, the file type identifier, the structured table result, the numerical result, or a combination thereof. The corresponding reference delivery result is then loaded based on the task number, task template, or index key. This forms two interrelated sets of input data: one set is the complete execution trajectory, used for subsequent process scoring; the other set is the actual delivery result and its corresponding reference delivery result, used for subsequent result scoring.

[0080] Then, after acquiring the trajectory step data, the task execution process of the agent to be evaluated is assessed based on this data, resulting in a task execution score. This assessment does not invoke an evaluation model but instead performs deterministic calculations directly based on the trajectory step data. This pure algorithmic approach to evaluating the execution process ensures that identical data yields the same score, facilitating repeated verification and batch execution, and eliminates the need to wait for an evaluation model response, resulting in low evaluation latency.

[0081] At the same time, the actual delivery results are evaluated based on the reference delivery results, that is, the actual delivery results are compared with the reference delivery results to evaluate the quality of the actual delivery results and obtain a delivery result score.

[0082] In some embodiments, based on trajectory step data, the task execution process of the agent to be evaluated is evaluated to obtain a task execution process score, including: scoring the rationality of the task execution process based on the trajectory step data according to preset code rules to obtain a code rule score, wherein the preset code rules include at least one of: tool call success rate, task execution efficiency, loop detection, task completion, error situation, and tool diversity; scoring the delivery quality of the actual delivery result based on the reference delivery result to obtain a delivery quality score, wherein the delivery quality includes: key content coverage, file path or file type output, and data output; determining the tool execution reliability score based on the tool call success rate; and weighting and summing the code rule score, delivery quality score, and tool execution reliability score according to preset weight allocation rules to obtain the task execution process score.

[0083] The code rule scoring method examines trajectory step data from multiple aspects to evaluate the rationality of the task execution process. Deterministic scoring using pre-defined code rules ensures repeatable and verifiable results, eliminates reliance on evaluation models, and accelerates evaluation speed. Pre-defined code rules include at least one of the following: tool invocation success rate, task execution efficiency, loop detection, task completion status, error handling, and tool diversity.

[0084] Specifically, the tool call success rate is used to statistically analyze the ratio of successful tool calls to all tool calls, directly reflecting the reliability of tool execution and identifying situations where "the task is claimed to be completed but the actual tool call fails." Task execution efficiency, combined with the number of steps, token consumption, and redundant operations, reflects the execution cost of completing a task, distinguishing between efficient task completion and tasks requiring numerous steps and resources. Loop detection identifies repetitive operations, repetitive sequences, and circling behaviors, differentiating between effective progress and ineffective attempts, and detecting when the agent gets stuck in repetitive operations, preventing the misjudgment of repeatedly attempted but ineffective processes as high-quality processes. Task completion checks whether task items are completed and whether a valid final answer has been formed, avoiding situations where there is only a process but no delivery, ensuring that the evaluation not only focuses on process steps but also verifies whether the agent has truly completed the task and produced a deliverable. Error handling, combined with the proportion of erroneous steps and recovery after errors, reflects anomaly handling capabilities, not only statistically analyzing the frequency of errors but also examining the agent's recovery ability after errors occur, distinguishing between rapid recovery from occasional errors and persistent, unrecoverable errors. Tool diversity is used to check whether the tools required for a task are adequately covered, reflecting the ability to select and combine tools. It can identify whether an agent is making reasonable use of the available tool set and avoids relying on a single tool while ignoring other more suitable tools.

[0085] In some embodiments, the code rule score is calculated by dividing the actual score for each code rule by the full score for that rule to obtain the completion percentage, and then combining them into a percentage result according to preset weights. This normalization-then-weighting calculation method eliminates the dimensional differences caused by different original full scores, enabling fair comparison between different indicators and clarifying the importance of each capability through weights.

[0086] For example, the original full score for each of the above code rules can be different. For instance, the original full score for task execution efficiency (abbreviated as efficiency) can be 20 points, the original full score for loop detection can be 15 points, and the original full score for task completion can be 30 points. Therefore, the actual score of each item can be divided by its respective full score to obtain the completion ratio, and then merged according to the preset internal weights to finally convert it into a 100-point code rule score.

[0087] As a specific implementation method, the internal weight of the tool call success rate score can be set to 35%, the internal weight of the efficiency score to 20%, the internal weight of the loop evaluation score to 15%, the internal weights of the task completion score and error score to 10% each, and the internal weight of the tool diversity score to 10%. For example, 16 points divided by 20 points equals 80%, and then the scores are combined according to the preset weights to obtain a result out of 100. This allows for a fair comparison of different indicators and clarifies which capabilities are more important through weighting. For example, the code rule scoring scores and their internal weight allocation are shown in Table 2.

[0088] Table 2 Among these criteria, tool invocation success rate has the highest weight, highlighting actual execution reliability; efficiency and loop detection determine whether the task is progressing steadily; task completion, error recovery, and tool diversity supplement the judgment of whether the task was truly completed and whether the process was stable. In existing validation data, the model rankings obtained from these six code rules are largely consistent with human rankings, with a Spearman rank correlation coefficient of 0.943. The closer this value is to 1, the closer the ranking given by the automatic scoring is to human judgment.

[0089] Then, the delivery quality score is used in the task execution process evaluation to confirm that the agent not only executed the steps but also actually produced results that meet the task requirements, avoiding situations where "the process looks normal but no effective results are delivered" to obtain high scores. Delivery quality includes key content coverage, file path or file type output, and data output. Key content coverage indicates how much of the key content in the reference deliverables appears in the actual deliverables, and is the main part of the delivery quality score, directly reflecting the degree to which the actual deliverables meet the task requirements. File path or file type output is used to determine whether the deliverables explicitly provide file paths or file types, avoiding situations where there are only textual descriptions without actual deliverable files. Data output is used to determine whether the actual deliverables provide specific numbers or data, ensuring that the deliverables contain verifiable specific data, rather than just qualitative descriptions.

[0090] For example, the formula for calculating the delivery quality score can be expressed as: in, Indicates the delivery quality score. Indicates the coverage rate of key content. This indicates whether a file path or file type has been provided. This indicates whether specific numbers or data have been provided. The total score for the three items is 850 points. The raw score is converted to a percentage by dividing by 8.5. If the calculated result exceeds 100, it is treated as 100 points. The key content coverage rate has the highest weight (700 points), highlighting the decisive role of content completeness in delivery quality. File path and data output serve as supplementary indicators, further verifying the validity of the delivery results from the perspectives of delivery format and data verifiability, respectively.

[0091] Next, the tool execution reliability score is calculated based on the proportion of successful calls to the total number of calls. In practical applications, if no tool is called, the denominator should be set to at least 1 to avoid division by zero. In addition, for tasks that do not require the tool, whether or not this item is included in the score can be determined based on the preset task type. If the execution of the target task type does not require the tool to be called, the tool execution reliability score should be set to zero to ensure the normal progress of the entire evaluation process.

[0092] It should be noted that although the tool execution reliability score is related to the tool invocation success rate metric in the code rule score, for tool-type agents, even if the final answer is complete, the task may still not be truly completed if the key search, code execution, or file writing actually fails. By giving a separate weight to the tool invocation success rate in the task execution process score, we further highlight whether the key tools have actually executed successfully, reducing the chances of obtaining a high score by "claiming completion in words but not actually executing successfully".

[0093] For example, the calculation of the task execution process score can be expressed as: in, Rate the task execution process. Scoring the code rules The quality of delivery is rated on a 100-point scale. The success rate of tool invocation is determined by three factors: specific code rules (50% weighting, emphasizing the core importance of the rationality of the execution process); delivery quality (30% weighting, ensuring that process evaluation does not deviate from the final delivery result); and tool execution reliability (20% weighting, further reinforcing the importance of the tool's actual successful execution). These three factors collectively determine the task execution process score.

[0094] The above task execution process evaluation forms a comprehensive task execution process score by weighted summation of three dimensions: code rule score, delivery quality score, and tool execution reliability score. These scores respectively reflect the three dimensions of "how good the process is", "whether the result is formed" and "whether the tool is successfully executed", thus comprehensively reflecting the execution process quality of the intelligent agent.

[0095] In some embodiments, evaluating the actual delivery result based on the reference delivery result to obtain a delivery result score includes: scoring the delivery quality of the actual delivery result based on the reference delivery result to obtain a delivery quality score, where delivery quality includes: key content coverage, file path or file type output, and data output; inputting the target task, reference delivery result, and actual delivery result into a pre-trained evaluation model to obtain an evaluation model score, whereby the evaluation model is used to score the agent's delivery result based on the input task, reference delivery result, and actual delivery result; calculating the keyword coverage rate of the reference delivery result in the actual delivery result, and determining the confidence level of the delivery quality score based on the keyword coverage rate; determining a first weight corresponding to the delivery quality score based on the confidence level, and determining a second weight corresponding to the evaluation model score based on the first weight, where the sum of the first weight and the second weight is 1, and the first weight is positively correlated with the confidence level; and performing a weighted summation of the delivery quality score and the evaluation model score based on the first weight and the second weight to obtain the delivery result score.

[0096] The specific meaning and calculation process of the delivery quality score are the same as those in the task execution process evaluation above, and will not be repeated here. The evaluation model can supplement the evaluation of the delivery results from the semantic level, such as content completeness, data accuracy, format quality, and operability, making up for the shortcomings of pure algorithms in semantic understanding.

[0097] In some embodiments, the evaluation model can assign scores of 0 to 1 points for each of the four aspects: content completeness, data accuracy, format quality, and operability, and output a comprehensive score (overall). This comprehensive score includes the evaluation model score, the failure type (failure_mode), and explanations for each aspect. The failure_mode records issues such as missing data, data errors, poor formatting, no output, or incomplete results. This multi-dimensional scoring makes the evaluation results interpretable, facilitating the identification of deficiencies in the delivered results. For example, the evaluation metrics and scoring criteria of the evaluation model are shown in Table 3.

[0098] Table 3 In practical applications, if the evaluation model does not return a comprehensive score, the comprehensive score can be recalculated according to the following weighting relationships. : in, , , , These represent content completeness, data accuracy, format quality, and operability, respectively. Content completeness and data accuracy together account for 65%, ensuring that the primary focus is on whether the content is complete and whether the key data is correct; format quality and operability are used to judge whether the results are easy to read and practically use. It should be noted that the evaluation dimensions of the evaluation model and the corresponding weights for each dimension can be flexibly set according to the actual task type or evaluation needs. This embodiment of the application is only an example and is not limited thereto.

[0099] Next, keyword coverage reflects the sufficiency of the algorithm's scoring criteria. When the coverage is close to 0 or 1, the algorithm can more easily make a clear judgment, resulting in high confidence. When the coverage is in the middle range, it is difficult to judge the true quality based solely on keyword rules, leading to lower confidence. This provides a basis for subsequent dynamic weight adjustments. For example, different correspondences between coverage intervals and confidence values ​​can be pre-defined, and then the confidence value corresponding to the target coverage interval where the actual coverage falls can be determined based on this correspondence. It should be noted that confidence indicates how certain the algorithm is about its current judgment, and does not represent the score of the delivered result itself.

[0100] Among these factors, the first weight is positively correlated with the confidence level; that is, the more certain the algorithm's judgment, the higher the proportion of the delivery quality score; conversely, the more uncertain the algorithm's judgment, the higher the proportion of the evaluation model's score. The dynamic weight adjustment mechanism allows the system to rely more on stable and fast algorithm scores when the algorithm's judgment is certain, and to refer more to the semantic judgment ability of the evaluation model when the algorithm's judgment is uncertain, thus achieving adaptive fusion of the two scoring sources.

[0101] For example, the first weight Second weight The calculation can be expressed as: in, For confidence level, As the first weight, As the second weight, This indicates that the first weight is limited to between 0.2 and 0.7. Limiting the first weight to between 0.2 and 0.7 prevents either the algorithm or the evaluation model from completely determining the result, ensuring that both scoring sources always participate in the fusion process.

[0102] Finally, the delivery quality score and the evaluation model score are weighted and summed based on the first and second weights to obtain the delivery result score. For example, this delivery result score... It can be calculated using the following formula: in, The quality of delivery is rated on a 100-point scale. The model's overall score is used for evaluation (values ​​range from 0 to 1). This indicates that the overall score of the evaluation model will be converted into a percentage system.

[0103] The above-mentioned delivery result evaluation process is achieved through adaptive fusion of delivery quality score and evaluation model score. This retains the advantages of algorithm scoring, such as strong determinism and speed, while also utilizing the evaluation model's ability to judge semantics, data, and format. Furthermore, through a dynamic weight adjustment mechanism based on confidence, the fusion result relies more on the algorithm when the algorithm's judgment is certain, and refers more to the evaluation model when the algorithm's judgment is uncertain.

[0104] Furthermore, in some embodiments, before calculating the keyword coverage rate of the reference delivery results in the actual delivery results and determining the confidence level of the delivery quality score based on the keyword coverage rate, the intelligent agent evaluation method provided in this application embodiment further includes: determining whether the evaluation model is in a fault state; when the evaluation model is in a non-fault state, performing the steps of calculating the keyword coverage rate of the reference delivery results in the actual delivery results and determining the confidence level of the delivery quality score based on the keyword coverage rate; when the evaluation model is in a fault state, determining the delivery quality score as the delivery result score.

[0105] The fault status is used to characterize the inability of the evaluation model to output a delivery quality score normally. For example, it may include situations such as the evaluation model being inaccessible, call timeout, or unparseable returned content. When the evaluation model is in these situations, it is determined to be in a fault status, i.e., an unavailable status. By proactively determining the availability status of the evaluation model, the system can promptly detect and switch the scoring strategy when the evaluation model is abnormal, avoiding the blocking of the evaluation process due to waiting for an unavailable evaluation model.

[0106] Specifically, when the evaluation model is in a non-faulty state, i.e., when the evaluation model is normally available, the confidence calculation and dynamic weight fusion process described above continues. When the evaluation model is in a faulty state, the delivery quality score is determined as the delivery result score, i.e., the system enters the algorithm_only mode, which only uses algorithm scoring: the algorithm weight is 1, and the evaluation model weight is 0. When the evaluation model fails, it automatically degrades to pure algorithm scoring, ensuring that the evaluation process is not interrupted due to the evaluation model failure. At the same time, the delivery quality score itself is deterministic and repeatable, and can provide reliable scoring results when the evaluation model is unavailable.

[0107] This application embodiment introduces the above-mentioned judgment and automatic degradation mechanism for the fault state of the evaluation model to ensure that the evaluation will not be interrupted due to the fault of the evaluation model, thereby improving the availability and robustness of the evaluation system.

[0108] In one possible implementation, before determining the second weight corresponding to the evaluation model score based on the first weight, the intelligent agent evaluation method provided in this application embodiment further includes: determining whether the first weight is within a preset weight range; when the first weight is within the preset weight range, performing the step of determining the second weight corresponding to the evaluation model score based on the first weight; when the first weight is greater than the maximum value of the preset weight range or less than the minimum value of the preset weight range, updating the first weight to the maximum or minimum value of the preset weight range, and performing the step of determining the second weight corresponding to the evaluation model score based on the first weight.

[0109] The preset weight range is used to define a reasonable value range for the first weight. For example, the preset weight range can be from 0.2 to 0.7. Limiting the first weight to between 0.2 and 0.7 means that the algorithm score accounts for at least 20% and at most 70%, and the evaluation model score accounts for at least 30% and at most 80%, ensuring that both scoring sources contribute substantially to the final result under any circumstances.

[0110] Specifically, when the first weight is within a preset weight range, the step of determining the second weight corresponding to the evaluation model score based on the first weight is directly executed using this weight. When the first weight is greater than the maximum value of the preset weight range, the first weight is updated to the maximum value of the preset weight range to ensure that the evaluation model score still retains a certain degree of participation and avoids completely ignoring the semantic judgment ability of the evaluation model. When the first weight is less than the minimum value of the preset weight range, the first weight is updated to the minimum value of the preset weight range to ensure that the algorithm score still retains a certain degree of participation and avoids losing the deterministic advantage of the algorithm score by relying entirely on the evaluation model. After updating the first weight, the step of determining the second weight corresponding to the evaluation model score based on the first weight continues.

[0111] In this embodiment, before determining the second weight corresponding to the evaluation model score based on the first weight, the method introduces a range constraint mechanism for the first weight. When the first weight exceeds the preset weight range, it is truncated to the range boundary. This avoids either the algorithm score or the evaluation model score from completely dominating the fusion result, ensuring that the two score sources always participate in the calculation of the delivered result score.

[0112] In one possible implementation, the intelligent agent evaluation method provided in this application embodiment further includes: calculating the score difference between the delivery quality score and the evaluation model score; marking the score difference of the delivery result score based on the score difference; and / or, providing a manual review prompt when the score difference exceeds a preset score difference threshold.

[0113] The score difference reflects whether the two scoring sources agree on the same delivery result. It provides a quantitative indicator to measure the degree of discrepancy between the algorithm score and the evaluation model score, and provides a basis for subsequent difference labeling and manual review.

[0114] Specifically, the score difference labeling allows evaluators to quickly identify samples where the algorithm score differs from the evaluation model score when reviewing evaluation results, facilitating targeted review. In some embodiments, the score difference labeling can include multiple levels. For example, a score difference exceeding 25 points is labeled as high, a score difference greater than 12 points but not exceeding 25 points is labeled as moderate, and the rest are labeled as low. This multi-level labeling allows evaluators to prioritize samples based on the severity of the discrepancy, concentrating limited manual review resources on high-disagreement samples.

[0115] Furthermore, a preset score difference threshold serves as the boundary condition for triggering manual review. The specific value can be flexibly set according to the actual target task type and manual review requirements. For example, the preset score difference threshold is 20 points. When the score difference exceeds the threshold, a manual review prompt is automatically triggered, allowing for further manual judgment on whether the algorithm rules have not adequately covered the semantic situation or whether the evaluation model has produced a bias. This ensures that samples with significant discrepancies are not overlooked. Simultaneously, this prompt serves only as a diagnostic signal output and does not directly modify the delivered result score, avoiding disruption of the overall model ranking stability due to the correction of individual discrepancies.

[0116] This application introduces a scoring difference monitoring mechanism between the delivery quality score and the evaluation model score. By calculating the score difference and marking it or triggering manual review prompts, evaluators can promptly identify samples where there is a significant discrepancy between the algorithm score and the evaluation model score. At the same time, this discrepancy information is output as an independent diagnostic signal and does not directly change the delivery result score, thus avoiding the impact of individual discrepancies on the overall model ranking.

[0117] Furthermore, in some embodiments, evaluating the actual delivery result based on the reference delivery result to obtain a delivery result score further includes: scoring the actual delivery result based on the reference delivery result using auxiliary indicators; and inputting the scores of the auxiliary indicators as reference information into the evaluation model, so that the evaluation model scores the agent's delivery result based on the input task, reference delivery result, and actual delivery result, and uses the reference information.

[0118] The auxiliary indicators are used to supplement the description of the quality characteristics of the actual delivery results from multiple dimensions. They also explain potential problems with the product, i.e., the actual delivery results, help the evaluation model understand the sample, and determine whether manual review is required. Auxiliary indicators include at least one of the following: keyword precision rate, keyword coverage and relevance combined index, numerical overlap, structural clarity, length reasonableness, and confidence level.

[0119] Specifically, keyword precision indicates how much of the content provided by the agent is relevant to the reference delivery result. It evaluates the delivery result from the perspective of "whether the answer contains a lot of irrelevant content," complementing keyword coverage ("whether the content required by the reference answer is mentioned"). A lower value usually indicates more irrelevant content. The comprehensive index of keyword coverage and relevance considers both the content coverage of the reference delivery result and the relevance of the answer content, avoiding the bias of pursuing only coverage or only precision while ignoring the other, and providing a more balanced quality evaluation. Numerical overlap is used to compare the numbers appearing in the actual delivery result with those in the reference delivery result. It is used to discover whether key quantities, dates, proportions, or statistical results are missing or inconsistent, and can capture differences at the key data level, making up for the shortcomings of plain text matching in judging numerical accuracy. Structural clarity is used to check the form of titles, lists, tables, and paragraphs, judging whether the result is clear, easy to read, and easy to deliver. It evaluates the delivery result from the perspective of expression form, ensuring that the deliverables are not only correct in content, but also clearly organized and easy to use. The length reasonableness score is used to compare the length of the actual delivery result with the reference delivery result. A length that is significantly too short may indicate incomplete content, while a length that is significantly too long may indicate redundancy. A score higher is achieved when the length is within a reasonable range. This provides auxiliary judgment from a length perspective, helping to identify deliveries that are too brief or too redundant. The confidence score is the same as the delivery quality score determined based on keyword coverage mentioned above. When the coverage is close to 0 or close to 1, the algorithm can more easily make a clear judgment; when the coverage is in the middle range, it is difficult to judge the true quality based solely on keyword rules, therefore the algorithm's confidence score is reduced, and the evaluation model is referenced more during subsequent fusion. It should be noted that this embodiment uses the scoring of these six auxiliary indicators as an example, and is only an example, not a limitation.

[0120] Then, auxiliary indicators are input into the evaluation model as reference information, so that the evaluation model can refer to the quantitative algorithm analysis results when making semantic judgments, which helps to improve the accuracy of the evaluation model's scoring. At the same time, the auxiliary indicators are only used as reference information and are not directly added to the score, so as to avoid reducing the consistency between the score and the manual ranking due to the introduction of auxiliary indicators.

[0121] This application embodiment calculates multiple auxiliary indicators and inputs them as reference information into the evaluation model, enabling the evaluation model to obtain richer quantitative reference information when scoring, thereby improving the accuracy and interpretability of the evaluation model's scoring. At the same time, the auxiliary indicators themselves do not directly change the delivery quality score.

[0122] In one possible implementation, the anchor model in step S302 above includes: a first anchor model and a second anchor model. The first anchor model is a first agent whose performance in the historical task execution process is stable; that is, the first anchor model's task execution process score fluctuates little and its performance is stable in historical evaluations. Selecting an agent with stable performance in the execution process dimension as the first anchor model ensures that the first mean and first standard deviation calculated from its historical execution process score more accurately reflect the reference level of the execution process dimension. The second anchor model is a second agent whose performance in the historical task delivery result is stable; that is, the second anchor model's delivery result score fluctuates little and its performance is stable in historical evaluations. Selecting an agent with stable performance in the delivery result dimension as the second anchor model ensures that the second mean and second standard deviation calculated from its historical delivery result score more accurately reflect the reference level of the delivery result dimension.

[0123] In practical applications, the first anchor model and the second anchor model can be different agents to avoid affecting calibration quality due to a certain agent being stable in one dimension but fluctuating greatly in another. In some embodiments, the first anchor model and the second anchor model can also partially or completely overlap, that is, some agents are stable in both the execution process and the delivery result dimensions, and can be used as both the first anchor model and the second anchor model at the same time.

[0124] Further, step S302 includes: obtaining the first mean and first standard deviation of the historical task execution process scores corresponding to multiple first anchor models, and obtaining the second mean and second standard deviation of the historical delivery result scores corresponding to multiple second anchor models. Step S304 includes: in the current batch, performing agent evaluation on the first anchor models and the second anchor models respectively, to obtain the current task execution process score corresponding to the first anchor model and the current delivery result score corresponding to the second anchor model.

[0125] Specifically, when using the above differentiation method, obtaining the first mean and first standard deviation of the historical task execution process scores corresponding to multiple first anchor point models means calculating the first mean and first standard deviation solely based on the historical execution process scores of the first anchor point models. Obtaining the second mean and second standard deviation of the historical delivery result scores corresponding to multiple second anchor point models means calculating the second mean and second standard deviation solely based on the historical delivery result scores of the second anchor point models. When performing drift detection in the current batch, agent evaluation is performed on both the first anchor point models and the second anchor point models, i.e., the first anchor point models are evaluated to obtain their current task execution process scores, and the second anchor point models are evaluated to obtain their current delivery result scores.

[0126] This application embodiment evaluates two types of anchor point models separately, so that drift detection is performed independently in two dimensions. The current execution process score of the first anchor point model is used to detect drift in the execution process dimension, and the current delivery result score of the second anchor point model is used to detect drift in the delivery result dimension, thereby improving the targeting of drift detection.

[0127] In one possible implementation, the intelligent agent evaluation method provided in this application embodiment further includes: performing risk diagnosis on the intelligent agent to be evaluated based on preset risk rules to obtain risk diagnosis results; and adding the risk diagnosis results to the evaluation results.

[0128] Among them, the preset risk rules are used to assess the abnormal risks that the agent under evaluation may have during task execution. The risk diagnosis results are output as independent diagnostic information and do not directly change the task execution process score or delivery result score. This allows the risk information to be used to explain problems, issue alarms, and arrange manual review, rather than directly modifying the principal score using a multiplicative penalty method that may disrupt the model-level ranking, thus ensuring the stability of the principal score and the reliability of the ranking.

[0129] Specifically, abnormal risks can include at least one of the following: mine-like behavior and lucky success. Mine-like behavior can include at least one of the following: infinite retries, dangerous commands, and circular deadlocks. Infinite retries can be, for example, multiple consecutive calls to the same tool with continuously failing results; dangerous commands can be, for example, commands that cause damage to files or delete databases; and circular deadlocks can be, for example, the same multi-step sequence repeated multiple times. Mine-like behavior detection can identify potential safety or reliability risks during execution, providing evaluation personnel with alarm information and command evidence, facilitating targeted manual review. It should be noted that mine-like behavior indicates a potentially high safety or reliability risk in the trajectory, but it does not alone prove that the task will definitely fail. For example, the detection conditions and handling methods for different types of mine-like behavior are shown in Table 4.

[0130] For example, a lucky success can include at least one of regression loops and blind retries. A regression loop refers to a recurring pattern of "write or modify—test failure—undo or rollback"; blind retries refer to multiple calls to the same tool with essentially the same parameters and continuous errors. The former indicates that the solution repeatedly fails, while the latter indicates that the agent has not changed its approach in a timely manner based on error messages. For instance, a risk value of 0 to 1 can be generated based on the total number of regression loops and blind retries, with regression loops having a greater impact and a maximum risk value not exceeding 1. For example, risk values ​​corresponding to different occurrence ranges can be pre-defined, and the final risk value can be obtained by looking up a table. Lucky success detection can identify situations where "the process is unstable even though it ultimately succeeds," helping to distinguish between completing a task systematically and achieving success by chance after multiple blind attempts.

[0131] Table 4 In addition, in practical applications, information such as whether key steps are covered and the level of discrepancy between the delivery quality score calculated by the algorithm and the evaluation model score are also output as independent diagnostic information.

[0132] After completing the above scoring, risk diagnosis, and anchor point calibration, the trajectory steps can be divided into four stages: exploration, implementation, verification, and orchestration. The classification criteria include the step content, tool name, tool parameters, and execution results. This classification does not directly affect the main score but helps evaluators determine whether the agent is collecting information, generating results, checking results, or adjusting the task direction. The meaning of each stage is shown in Table 5.

[0133] Table 5 In some embodiments, the number of steps, number of switches, and location of key issues at each stage can be statistically analyzed and displayed along with mine behavior, risk of accidental success, and disagreement level. This information allows humans to more quickly determine whether the problem occurred during task understanding, actual execution, or result verification.

[0134] After the aforementioned steps are completed, four types of results can be output in the final evaluation results of each task: trajectory score, including task execution process score, execution process calibration score, scores corresponding to the six code rules, and tool call success rate; product score, including the original product algorithm score, i.e., delivery quality score, evaluation model score, and delivery result calibration score; fusion and diagnostic information, including the weights of delivery quality score and evaluation model score, score source, divergence level, failure type, landmine behavior, risk of lucky success, and trajectory step stage statistics, etc.; calibration information, including relative anchor point position, drift amount, and score after correction, etc.

[0135] The scoring source field includes at least two states to distinguish whether the final product score is obtained solely from the delivery quality score or from a combination of the delivery quality score and the evaluation model score. During batch evaluation, information such as the average score, relative anchor point position, cross-batch variations, abnormal tasks, and tasks requiring manual review for all agents under evaluation is also summarized.

[0136] The following section will provide a detailed explanation of the specific working process of the intelligent agent evaluation method provided in the embodiments of this application, taking into account specific application scenarios.

[0137] For example, a certain intelligent agent evaluation system provides batch evaluation services for code-based intelligent agents, data analysis intelligent agents, and automated office intelligent agents driven by large language models and possessing tool invocation capabilities. It is used to implement the intelligent agent evaluation method provided in the embodiments of this application. Figure 4 As shown, the system includes: a data acquisition and standardization layer, a trajectory pure algorithm evaluation layer, a product evaluation layer, a fixed anchor point calibration and drift correction layer, and a result output layer. The specific working process of the system is as follows: (1) First, enter the data acquisition and unified standardization layer, collect the agent execution logs, and extract the original tasks, tool calls, exception information and final answers from them; organize the logs of different agent frameworks into a unified trajectory format, and load the reference answers according to the task number to provide common input for the two evaluation lines; (2) Then, the trajectory pure algorithm evaluation layer is entered. The trajectory score, i.e. the task execution process score, is calculated based on the six code rule scores, delivery quality scores, and tool call success rates to evaluate the task execution process. (3) Then enter the product evaluation layer to calculate the delivery quality score and six auxiliary indicators; when the evaluation model is available, perform four supplementary scores and dynamic fusion to obtain the evaluation model score. Based on the confidence level of the delivery quality score, determine the weights of the two, and sum them up to obtain the product score, which is the above delivery result score. (4) Simultaneously check information such as mine behavior, lucky success, divergence level and trajectory stage in the trajectory pure algorithm evaluation layer and the product evaluation layer, and output the diagnostic results separately. (5) Then enter the fixed anchor point calibration and drift correction layer, select the trajectory anchor point or product anchor point according to the scoring object, put the score into the fixed comparison standard to obtain the calibration score; compare the current score and historical score of the anchor point model; when the overall change exceeds the threshold, automatically correct the score of the agent to be evaluated. (6) Finally, the result output layer is entered, which outputs various scores, diagnostic results and manual review lists generated during the evaluation process, and saves historical results, forming a complete process from data input to scoring, diagnosis, calibration and output.

[0138] Exemplary device Accordingly, this application also provides an intelligent agent evaluation device.

[0139] Please see Figure 5 In one exemplary embodiment, an intelligent agent evaluation device is provided, comprising: an evaluation unit 501, an acquisition unit 502, a calibration unit 503, and an evaluation result generation unit 504. Wherein: Evaluation unit 501 is used to evaluate the execution process and delivery results of the intelligent agent to be evaluated in performing the target task, and to obtain the task execution process score and delivery result score. The acquisition unit 502 is used to acquire the first mean and first standard deviation of the historical task execution process scores corresponding to multiple anchor point models, as well as the second mean and second standard deviation of the historical delivery result scores. The anchor point model is an intelligent agent with stable historical task performance. The anchor point model and the intelligent agent to be evaluated are the same type of intelligent agent, and the historical task and the target task are the same type of task. The calibration unit 503 is used to calibrate the task execution process score with the first mean and the first standard deviation as anchor points to obtain the task execution process calibration score, and to calibrate the delivery result score with the second mean and the second standard deviation as anchor points to obtain the delivery result calibration score. The evaluation result generation unit 504 is used to generate evaluation results for the intelligent agent to be evaluated based on the calibration score of the task execution process and the calibration score of the delivery result.

[0140] In one possible implementation, the calibration unit 503 is specifically used to: calculate a first ratio of the difference between the task execution process score and the first mean to the first standard deviation, or calculate a second ratio of the difference between the delivery result score and the second mean to the second standard deviation; determine a first center score and a first amplification factor, or determine a second center score and a second amplification factor; obtain a task execution process calibration score based on the sum of the product of the first ratio and the first amplification factor and the first center score, or obtain a delivery result calibration score based on the sum of the product of the second ratio and the second amplification factor and the second center score.

[0141] In one possible implementation, the calibration unit 503 is further configured to: perform agent evaluation on the anchor model in the current batch to obtain the current task execution process score and the current delivery result score; calculate a first average offset based on the current task execution process score and the historical task execution process score, and calculate a second average offset based on the current delivery result score and the historical delivery result score; correct the task execution process calibration score based on the first average offset, and correct the delivery result calibration score based on the second average offset.

[0142] In one possible implementation, the calibration unit 503 is further configured to: determine whether the first average offset and / or the second average offset exceeds a preset offset threshold; when the first average offset and / or the second average offset exceeds the preset offset threshold, correct the calibration score of the task execution process based on the first average offset, and / or correct the calibration score of the delivery result based on the second average offset; maintain the calibration score of the task execution process when the first average offset does not exceed the preset offset threshold, or maintain the calibration score of the delivery result when the second average offset does not exceed the preset offset threshold.

[0143] In one possible implementation, the anchor model includes: a first anchor model and a second anchor model, wherein the first anchor model is a first agent whose performance in the execution process of historical tasks is stable, and the second anchor model is a second agent whose performance in the delivery results of historical tasks is stable; the acquisition unit 502 is specifically used to: acquire the first mean and the first standard deviation of the historical task execution process scores corresponding to multiple first anchor models, and acquire the second mean and the second standard deviation of the historical delivery result scores corresponding to multiple second anchor models; the calibration unit 503 is further used to: in the current batch, perform agent evaluation on the first anchor model and the second anchor model respectively, to obtain the current task execution process score corresponding to the first anchor model and the current delivery result score corresponding to the second anchor model.

[0144] In one possible implementation, the evaluation unit 501 is specifically used to: acquire the execution log of the agent to be evaluated, convert the execution log into unified trajectory step data, and determine the target task and actual delivery result from the trajectory step data, wherein the trajectory step data represents data related to the execution process of the target task; evaluate the task execution process of the agent to be evaluated based on the trajectory step data to obtain a task execution process score; determine the reference delivery result corresponding to the target task, and evaluate the actual delivery result based on the reference delivery result to obtain a delivery result score.

[0145] In one possible implementation, the evaluation unit 501 is specifically used to: score the rationality of the task execution process of the trajectory step data based on preset code rules to obtain a code rule score. The preset code rules include at least one of the following: tool call success rate, task execution efficiency, loop detection status, task completion status, error status, and tool diversity; score the delivery quality of the actual delivery results based on the reference delivery results to obtain a delivery quality score. The delivery quality includes: key content coverage, file path or file type output status, and data output; determine the tool execution reliability score based on the tool call success rate; and perform a weighted sum of the code rule score, delivery quality score, and tool execution reliability score based on preset weight allocation rules to obtain a task execution process score.

[0146] In one possible implementation, the evaluation unit 501 is specifically used to: score the delivery quality of the actual delivery result based on the reference delivery result to obtain a delivery quality score, wherein the delivery quality includes: key content coverage, file path or file type output, and data output; input the target task, reference delivery result, and actual delivery result into a pre-trained evaluation model to obtain an evaluation model score, wherein the evaluation model is used to score the agent's delivery result based on the input task, reference delivery result, and actual delivery result; calculate the keyword coverage rate of the reference delivery result in the actual delivery result, and determine the confidence level of the delivery quality score based on the keyword coverage rate; determine the first weight corresponding to the delivery quality score based on the confidence level, and determine the second weight corresponding to the evaluation model score based on the first weight, wherein the sum of the first weight and the second weight is 1, and the first weight is positively correlated with the confidence level; and perform a weighted summation of the delivery quality score and the evaluation model score based on the first weight and the second weight to obtain the delivery result score.

[0147] In one possible implementation, before calculating the keyword coverage of the reference delivery results in the actual delivery results and determining the confidence level of the delivery quality score based on the keyword coverage, the evaluation unit 501 is further configured to: determine whether the evaluation model is in a fault state, whereby the fault state is used to characterize that the evaluation model cannot output the delivery quality score normally; when the evaluation model is in a non-fault state, perform the steps of calculating the keyword coverage of the reference delivery results in the actual delivery results and determining the confidence level of the delivery quality score based on the keyword coverage; and when the evaluation model is in a fault state, determine the delivery quality score as the delivery result score.

[0148] In one possible implementation, before determining the second weight corresponding to the evaluation model score based on the first weight, the evaluation unit 501 is further configured to: determine whether the first weight is within a preset weight range; when the first weight is within the preset weight range, execute the step of determining the second weight corresponding to the evaluation model score based on the first weight; when the first weight is greater than the maximum value of the preset weight range or less than the minimum value of the preset weight range, update the first weight to the maximum or minimum value of the preset weight range, and execute the step of determining the second weight corresponding to the evaluation model score based on the first weight.

[0149] In one possible implementation, the evaluation unit 501 is further used to: calculate the score difference between the delivery quality score and the evaluation model score; mark the score difference for the delivery result score based on the score difference; and / or, provide a manual review prompt when the score difference exceeds a preset score difference threshold.

[0150] In one possible implementation, the evaluation unit 501 is specifically used to: score the actual delivery result based on the reference delivery result using auxiliary indicators, which include at least one of the following: keyword precision, keyword coverage and relevance combined index, numerical overlap, structural clarity, length reasonableness, and confidence; and input the scores of the auxiliary indicators as reference information into the evaluation model so that the evaluation model scores the agent's delivery result based on the input task, the reference delivery result, and the actual delivery result, and uses the reference information.

[0151] In one possible implementation, the evaluation unit 501 is further configured to: perform risk diagnosis on the agent to be evaluated based on preset risk rules, obtain risk diagnosis results, wherein the preset risk rules are used to assess the abnormal risks that exist in the agent to be evaluated during task execution; and add the risk diagnosis results to the evaluation results.

[0152] The apparatus provided in this embodiment belongs to the same concept as the method provided in the above embodiments of this application, and can execute the method provided in any of the above embodiments of this application, possessing the corresponding functional modules and beneficial effects for executing the method. Technical details not described in detail in this embodiment can be found in the specific processing content of the method provided in the above embodiments of this application. Further functional descriptions of the above-mentioned units are the same as those in the corresponding embodiments above, and will not be repeated here.

[0153] The functions implemented by each unit in the above device can be implemented by the same or different processors, and this application embodiment does not limit this.

[0154] It should be understood that the units in the above device can be implemented by a processor calling software. For example, the device includes a processor connected to a memory containing instructions. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of each unit in the device. The processor can be a general-purpose processor, such as a CPU or microprocessor, and the memory can be internal or external to the device. Alternatively, the units in the device can be implemented as hardware circuits. By designing the hardware circuits, some or all of the unit functions can be implemented. The hardware circuits can be understood as one or more processors. For example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above units are implemented by designing the logical relationships between the components within the circuit. In another implementation, the hardware circuit can be implemented using a PLD, such as an FPGA, which can include a large number of logic gates. The connection relationships between the logic gates are configured through configuration files to implement the functions of some or all of the above units. All units in the above device can be implemented entirely by a processor calling software, entirely by hardware circuits, or partially by a processor calling software with the remaining parts implemented by hardware circuits.

[0155] In this application embodiment, a processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction reading and execution capabilities, such as a CPU, microprocessor, GPU, or DSP. In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. These logical relationships are fixed or reconfigurable. For example, the processor may be a hardware circuit implemented as an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the processor loading instructions to implement the functions of some or all of the above units. Furthermore, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, or DPU.

[0156] As can be seen, each unit in the above device can be one or more processors (or processing circuits) configured to implement the above methods, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.

[0157] Furthermore, the units in the above devices can be integrated in whole or in part, or they can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a System-on-Chip (SoC). The SoC may include at least one processor for implementing any of the above methods or implementing the functions of the units in the device. The at least one processor may be of different types, such as CPU and FPGA, CPU and artificial intelligence processor, CPU and GPU, etc.

[0158] Exemplary electronic devices Another embodiment of this application also proposes an electronic device. See [link to relevant documentation]. Figure 6 As shown, the electronic device may include: a memory 600 and a processor 610; wherein the memory 600 is connected to the processor 610 and is used to store programs; the processor 610 is used to implement the intelligent agent evaluation method disclosed in any of the above embodiments by running the programs stored in the memory 600.

[0159] Specifically, the aforementioned electronic device may also include: a bus, a communication interface 620, an input device 630, and an output device 640.

[0160] The processor 610, memory 600, communication interface 620, input device 630, and output device 640 are interconnected via a bus. Among them: A bus can include a pathway for transmitting information between various components of a computer system.

[0161] The processor 610 can be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0162] The processor 610 may include a main processor, as well as a baseband chip, modem, etc.

[0163] The memory 600 stores a program for executing the technical solution of this application, and may also store an operating system and other critical business functions. Specifically, the program may include program code, which includes computer operation instructions. More specifically, the memory 600 may include read-only memory (ROM), other types of static storage devices capable of storing static information and instructions, random access memory (RAM), other types of dynamic storage devices capable of storing information and instructions, disk storage, flash memory, etc.

[0164] Input device 630 may include a device for receiving user input data and information, such as a keyboard, mouse, camera, scanner, light pen, voice input device, touch screen, pedometer, or gravity sensor.

[0165] Output device 640 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.

[0166] The communication interface 620 may include a device that uses any transceiver to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.

[0167] The processor 610 executes the program stored in the memory 600 and calls other devices, and can be used to implement the various steps of any of the intelligent agent evaluation methods provided in the above embodiments of this application.

[0168] Exemplary computer program products and storage media In addition to the methods and devices described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps in the intelligent agent evaluation methods according to various embodiments of this application as described in any of the above embodiments of this specification.

[0169] The computer program product can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of this application. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0170] Furthermore, embodiments of this application may also be storage media storing a computer program thereon, which, when run by a processor, causes the processor to execute the steps in the intelligent agent evaluation method according to various embodiments of this application as described in any of the foregoing embodiments of this specification.

[0171] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0172] It should be noted that in the embodiments of this application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information are all carried out with the consent of the user, comply with the provisions of relevant laws and regulations, and do not violate public order and good morals.

[0173] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For apparatus embodiments, since they are fundamentally similar to method embodiments, the descriptions are relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0174] The steps in the methods of the various embodiments of this application can be adjusted, merged, or deleted in order according to actual needs, and the technical features described in each embodiment can be replaced or combined.

[0175] The modules and sub-modules in the devices and terminals of the various embodiments of this application can be merged, divided, and deleted according to actual needs.

[0176] It should be understood that the disclosed terminals, devices, and methods can be implemented in other ways, given the several embodiments provided in this application. For example, the terminal embodiments described above are merely illustrative. For instance, the division of modules or sub-modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple sub-modules or modules may be combined or integrated into another module, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0177] The modules or submodules described as separate components may or may not be physically separate. The components that constitute a module or submodule may or may not be physical modules or submodules; that is, they may be located in one place or distributed across multiple network modules or submodules. Some or all of the modules or submodules can be selected to achieve the purpose of this embodiment's solution, depending on actual needs.

[0178] Furthermore, the functional modules or sub-modules in the various embodiments of this application can be integrated into one processing module, or each module or sub-module can exist physically separately, or two or more modules or sub-modules can be integrated into one module. The integrated modules or sub-modules described above can be implemented in hardware or in the form of software functional modules or sub-modules.

[0179] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0180] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software unit executed by a processor, or a combination of both. The software unit 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.

[0181] Finally, it should 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.

[0182] 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 for evaluating an intelligent agent, wherein the intelligent agent is a large language model intelligent agent, characterized in that, The method includes: The execution process and delivery results of the agent to be evaluated are evaluated separately to obtain task execution process score and delivery result score; Obtain the first mean and first standard deviation of the historical task execution process scores corresponding to multiple anchor point models, and the second mean and second standard deviation of the historical delivery result scores. The anchor point model is an intelligent agent with stable historical task performance. The anchor point model and the intelligent agent to be evaluated are of the same type. The historical task and the target task are of the same type. Using the first mean and the first standard deviation as anchor points, the task execution process score is calibrated to obtain a task execution process calibration score; and using the second mean and the second standard deviation as anchor points, the delivery result score is calibrated to obtain a delivery result calibration score. Based on the calibration score of the task execution process and the calibration score of the delivery result, the evaluation result of the agent to be evaluated is generated.

2. The method according to claim 1, characterized in that, The step of calibrating the task execution process score using the first mean and the first standard deviation as anchor points to obtain a task execution process calibration score, or calibrating the delivery result score using the second mean and the second standard deviation as anchor points to obtain a delivery result calibration score, includes: Calculate the first ratio of the difference between the task execution process score and the first mean to the first standard deviation, or calculate the second ratio of the difference between the delivery result score and the second mean to the second standard deviation; Determine the first central fraction and the first magnification factor, or determine the second central fraction and the second magnification factor; The task execution process calibration score is obtained by summing the product of the first ratio and the first amplification factor with the first center score, or the delivery result calibration score is obtained by summing the product of the second ratio and the second amplification factor with the second center score.

3. The method according to claim 2, characterized in that, Before generating the evaluation result for the agent to be evaluated based on the calibration score of the task execution process and the calibration score of the delivery result, the method further includes: In the current batch, the anchor point model is evaluated by an agent to obtain the current task execution process score and the current delivery result score; A first average offset is calculated based on the current task execution process score and the historical task execution process score, and a second average offset is calculated based on the current delivery result score and the historical delivery result score. The calibration score of the task execution process is corrected based on the first average offset, and the calibration score of the delivery result is corrected based on the second average offset.

4. The method according to claim 3, characterized in that, Before correcting the calibration score of the task execution process based on the first average offset and correcting the calibration score of the delivery result based on the second average offset, the method further includes: Determine whether the first average offset and / or the second average offset exceed a preset offset threshold; When the first average offset and / or the second average offset exceed a preset offset threshold, the calibration score of the task execution process is corrected based on the first average offset, and / or the calibration score of the delivery result is corrected based on the second average offset. If the first average offset does not exceed the preset offset threshold, the task execution process calibration score is maintained; or, if the second average offset does not exceed the preset offset threshold, the delivery result calibration score is maintained.

5. The method according to claim 3, characterized in that, The anchor model includes: a first anchor model and a second anchor model. The first anchor model is a first agent whose performance in the execution process of historical tasks is stable, and the second anchor model is a second agent whose performance in the delivery results of historical tasks is stable. The step of obtaining the first mean and first standard deviation of the historical task execution process scores corresponding to multiple anchor point models, and the second mean and second standard deviation of the historical delivery result scores, includes: Obtain the first mean and first standard deviation of the historical task execution process scores corresponding to multiple first anchor point models, and obtain the second mean and second standard deviation of the historical delivery result scores corresponding to multiple second anchor point models; In the current batch, the anchor model is evaluated by an agent to obtain a score for the current task execution process and a score for the current delivery result, including: In the current batch, agent evaluation is performed on the first anchor model and the second anchor model respectively to obtain the current task execution process score corresponding to the first anchor model and the current delivery result score corresponding to the second anchor model.

6. The method according to any one of claims 1-5, characterized in that, The evaluation process of the agent performing the target task and the delivery result are evaluated separately to obtain task execution process scores and delivery result scores, including: The execution log of the agent to be evaluated is obtained, the execution log is converted into unified trajectory step data, and the target task and actual delivery result are determined from the trajectory step data. The trajectory step data represents data related to the execution process of the target task. Based on the trajectory step data, the task execution process of the agent to be evaluated is evaluated to obtain a task execution process score. Determine the reference delivery result corresponding to the target task, and evaluate the actual delivery result based on the reference delivery result to obtain a delivery result score.

7. The method according to claim 6, characterized in that, The process of evaluating the task execution process of the agent under evaluation based on the trajectory step data, and obtaining a task execution process score, includes: The rationality of the task execution process of the trajectory step data is scored based on preset code rules to obtain a code rule score. The preset code rules include at least one of the following: tool call success rate, task execution efficiency, loop detection status, task completion status, error status, and tool diversity. The delivery quality of the actual delivery result is scored based on the reference delivery result to obtain a delivery quality score. The delivery quality includes: coverage of key content, output of file paths or file types, and output of data. Based on the tool's call success rate, a tool execution reliability score is determined; Based on a preset weight allocation rule, the code rule score, the delivery quality score, and the tool execution reliability score are weighted and summed to obtain the task execution process score.

8. The method according to claim 6, characterized in that, The evaluation of the actual delivery result based on the reference delivery result to obtain a delivery result score includes: The delivery quality of the actual delivery result is scored based on the reference delivery result to obtain a delivery quality score. The delivery quality includes: coverage of key content, output of file paths or file types, and output of data. The target task, the reference delivery result, and the actual delivery result are input into a pre-trained evaluation model to obtain an evaluation model score. The evaluation model is used to score the agent's delivery result based on the input task, reference delivery result, and actual delivery result. Calculate the keyword coverage rate of the reference delivery results in the actual delivery results, and determine the confidence level of the delivery quality score based on the keyword coverage rate; The first weight corresponding to the delivery quality score is determined based on the confidence level, and the second weight corresponding to the evaluation model score is determined based on the first weight. The sum of the first weight and the second weight is 1, and the first weight is positively correlated with the confidence level. The delivery quality score and the evaluation model score are weighted and summed based on the first weight and the second weight to obtain the delivery result score.

9. The method according to claim 8, characterized in that, Before calculating the keyword coverage of the reference delivery results in the actual delivery results, and determining the confidence level of the delivery quality score based on the keyword coverage, the method further includes: Determine whether the evaluation model is in a fault state, where the fault state is used to characterize that the evaluation model cannot output a delivery quality score normally; When the evaluation model is in a non-faulty state, the steps of calculating the keyword coverage of the reference delivery results in the actual delivery results and determining the confidence level of the delivery quality score based on the keyword coverage are performed. When the evaluation model is in a faulty state, the delivery quality score is determined as the delivery result score.

10. The method according to claim 8, characterized in that, Before determining the second weight corresponding to the evaluation model score based on the first weight, the method further includes: Determine whether the first weight is within the preset weight range; When the first weight is within a preset weight range, the step of determining the second weight corresponding to the evaluation model score based on the first weight is executed; When the first weight is greater than the maximum value of the preset weight range or less than the minimum value of the preset weight range, the first weight is updated to the maximum or minimum value of the preset weight range, and the step of determining the second weight corresponding to the evaluation model score based on the first weight is executed.

11. The method according to claim 8, characterized in that, The method further includes: Calculate the score difference between the delivery quality score and the evaluation model score; The scoring results are marked based on the scoring difference, and / or a manual review prompt is given when the scoring difference exceeds a preset scoring difference threshold.

12. The method according to claim 8, characterized in that, The step of evaluating the actual delivery result based on the reference delivery result to obtain a delivery result score also includes: The actual delivery result is scored based on the reference delivery result using auxiliary indicators, which include at least one of the following: keyword accuracy, keyword coverage and relevance combined index, numerical overlap, structural clarity, length reasonableness, and confidence level. The scores of the auxiliary indicators are input into the evaluation model as reference information, so that the evaluation model scores the agent's delivery results based on the input task, reference delivery results, and actual delivery results, and uses the reference information.

13. The method according to any one of claims 1-5, characterized in that, The method further includes: Risk diagnosis is performed on the intelligent agent to be evaluated based on preset risk rules to obtain risk diagnosis results. The preset risk rules are used to assess the abnormal risks that exist in the intelligent agent to be evaluated during task execution. Add the risk diagnosis results to the evaluation results.

14. An electronic device, characterized in that, Including memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the agent evaluation method as described in any one of claims 1 to 13 by running the program in the memory.

15. A computer program product, characterized in that, Including computer programs, the When the computer program is executed by the processor, it implements the agent evaluation method as described in any one of claims 1 to 13.