ListDataAgentAccuracyTestResults - 获取自测任务的执行结果

更新时间:
复制 MD 格式

获取自测任务的执行结果

接口说明

获取自测任务的执行结果

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

dms:ListDataAgentAccuracyTestResults

list

*全部资源

*

无 无

请求语法

GET  HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

AccuracyTestInsId

string

否

所属的准确率测试实例 ID

at-106n4rg17gv9fxxxxxxxxxx

AccuracyTestTaskId

string

否

准确率测试任务 ID

692abb8f-xxxx-xxxx-xxxx-xxxxxxxxxxxx

AccuracyTestSubtaskId

string

否

按子任务 ID 筛选

f1eb8728-xxxx-xxxx-xxxx-xxxxxxxxxxxx

AccuracyTestResultId

string

否

按结果 ID 精确筛选单条

at-emhnbwewfngrxxxxxxxxxx

WorkspaceId

string

否

工作空间 ID

8wfig6l33n4f4xxxxxxxxxx

PageSize

string

否

当前页大小

10

PageNumber

string

否

当前页码

1

RegionId

string

否

地域

cn-hangzhou

MaxResults

integer

否

分页大小

nu use

NextToken

string

否

令牌(Token)信息

NesLoKLEdIZrKhDT7I2gS****

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

Id of the request

67E910F2-4B62-5B0C-ACA3-7547695C****

Success

boolean

请求是否成功,返回值如下:

  • true:请求成功。

  • false:请求失败。

true

ErrorCode

string

错误码。

UnknownError

ErrorMessage

string

调用失败时,返回的错误信息

UnknownError

Data

object

返回的结构体

PageSize

integer

每页空间数量(个)

50

PageNumber

integer

请求页号

1

Content

array<object>

数据内容

object

数据内容

ResultId

string

请求的 ID。

at-emhnbwewfngrxxxxxxxxxx

SubtaskId

string

子任务 ID。

f1eb8728-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Question

string

测试问题

How many employees hold the title of Senior Engineer?

AnswerResult

string

期望答案

97750

AnswerSql

string

期望 SQL

SELECT COUNT(*) FROM titles WHERE title = 'Senior Engineer';

AgentResult

string

Agent 实际回答

In the company's historical job records, a total of 97,750 employees have previously held the title of Senior Engineer.

AgentSql

string

DataAgent 生成的 sql

SELECT COUNT(*) FROM titles WHERE title = 'Senior Engineer';

IsTrue

boolean

AI 评判结果

true

Reason

string

错误原因

COUNT(DISTINCT) should not be used in SQL.

Recommendation

string

改进建议

Clearly specify in the problem description whether deduplication is required.

AccuracyTestTaskId

string

准确率测试任务 ID

692abb8f-xxxx-xxxx-xxxx-xxxxxxxxxxxx

SessionId

string

评测子任务对应的会话 ID

bnd7***2e5

CorrectCount

integer

评判通过的用例数

9

AccuracyRate

number

准确率

90

AccuracyTestTaskId

string

准确率测试任务 ID

692abb8f-xxxx-xxxx-xxxx-xxxxxxxxxxxx

TotalElements

integer

结果总条数

10

TotalPages

integer

总页数

1

FailedCount

string

失败的子任务数量

5

PendingCount

string

阻塞的子任务数量

10

MaxResults

integer

分页大小。

no use

NextToken

string

分页游标标识。

no use

示例

正常返回示例

JSON格式

{
  "RequestId": "67E910F2-4B62-5B0C-ACA3-7547695C****",
  "Success": true,
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "Data": {
    "PageSize": 50,
    "PageNumber": 1,
    "Content": [
      {
        "ResultId": "at-emhnbwewfngrxxxxxxxxxx",
        "SubtaskId": "f1eb8728-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "Question": "How many employees hold the title of Senior Engineer?",
        "AnswerResult": "97750",
        "AnswerSql": "SELECT COUNT(*) FROM titles WHERE title = 'Senior Engineer';",
        "AgentResult": "In the company's historical job records, a total of 97,750 employees have previously held the title of Senior Engineer.",
        "AgentSql": "SELECT COUNT(*) FROM titles WHERE title = 'Senior Engineer';\n",
        "IsTrue": true,
        "Reason": "COUNT(DISTINCT) should not be used in SQL.",
        "Recommendation": "Clearly specify in the problem description whether deduplication is required.",
        "AccuracyTestTaskId": "692abb8f-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "SessionId": "bnd7***2e5"
      }
    ],
    "CorrectCount": 9,
    "AccuracyRate": 90,
    "AccuracyTestTaskId": "692abb8f-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "TotalElements": 10,
    "TotalPages": 1,
    "FailedCount": "5",
    "PendingCount": "10"
  },
  "MaxResults": 0,
  "NextToken": "no use"
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。