DescribeCustomAgent - 获取自定义Agent详细描述

更新时间:
复制 MD 格式

DescribeCustomAgent 根据自定义Agent ID获取详情描述信息

调试

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

调试

授权信息

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

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

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

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

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

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

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

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

操作

访问级别

资源类型

条件关键字

关联操作

dms:DescribeCustomAgent

get

*全部资源

*

无 无

请求语法

POST  HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

WorkspaceId

string

否

工作空间 ID。

56kv1pvl9uvt9**********bb

CustomAgentId

string

否

自定义 Agent Id。

ca-4y3ca4khkcu**********ysf

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

Id of the request

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

Success

boolean

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

  • true:请求成功。

  • false:请求失败。

true

ErrorCode

string

错误码。

success

ErrorMessage

string

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

Specified parameter Tid is not valid.

Data

object

返回结构体

CustomAgentId

string

自定义 Agent Id

ca-4y3ca4khkcu**********ysf

Name

string

自定义 Agent 名称

Test agent name

Description

string

自定义 Agent 描述

Description for the test agent

AgentType

string

自定义 Agent 类型

  • Default:系统内置自定义 Agent

  • Common:普通自定义 Agent

Common

DataJson

string

指定的数据范围,JSON 字符串格式

{ "tableFlag" : true, "scope" : "personal", "personal" : { "DataSourceType" : "remote_data_center", "FileId" : "f-5qlrwaw10********s3gpw1z", "Database" : "test-table******.xlsx", "Tables" : [ "Sheet1" ], "TableIds" : [ "******" ], "RegionId" : "cn-hangzhou" } }

Instruction

string

指示

Analytical framework: Monitor core metrics (GMV, order volume, UV, and conversion rate) on a daily, weekly, and monthly basis to analyze trends and identify year-over-year and month-over-month fluctuations. Segment by new vs. returning customers, channels, and regions to identify growth drivers and areas of weakness. Conduct funnel analysis based on user behavior paths (browse → add to cart → purchase) to pinpoint stages where user drop-off occurs.

Knowledge

string

知识

Core metric definitions: GMV (Gross Merchandise Volume) refers to the total sum of order amounts, including both paid and unpaid orders. Order volume refers to the number of valid orders placed per day. UV (Unique Visitors) refers to the deduplicated number of users who visit the website or app. Conversion rate = paid orders / UV, reflecting the efficiency of traffic conversion.

Status

string

自定义 Agent 状态

枚举值:

  • NEW :

    新建-未发布

  • RELEASED :

    已发布

  • DRAFT :

    草稿-未发布

  • OFFLINE :

    已下线

RELEASED

ReleaseTime

string

发布时间

2025-12-11T14:04:32.000+00:00

OfflineTime

string

下线时间

2025-12-11T14:04:32.000+00:00

Modifier

string

修改人

20372822********

WorkspaceId

string

工作空间 ID

56kv1pvl9uvt9**********bb

Region

string

地域

cn-hangzhou

AliyunUid

string

阿里云账户 ID

20372822********

AliyunParentUid

string

阿里云主账号 ID

16738266********

DmsUnit

string

当前 DMS 单元

cn-hangzhou

GmtCreated

string

创建时间

2025-12-11T14:04:32.000+00:00

GmtModified

string

修改时间

2025-12-11T14:04:32.000+00:00

KnowledgeConfigList

array<object>

外部知识库

object

外部知识库结构

AccessType

string

接入类型

  • mcp:MCP 方式接入

  • dms_kb:DMS 知识库方式接入

mcp

McpServerId

string

MCP Server 的 Id

nhdpt9adf6ac**********ca

KbUuid

string

知识库 ID

kb-HZ-6anhdzx7hddf9*******obx

KnowledgeSemanticConfigList

array<object>

知识语义配置列表

object

知识语义配置结构体

Type

string

知识语义类型

  • sql_template:SQL 模板

  • ossie_model:Ossie 语义视图

sql_template

KnowledgeUuid

string

知识 Uuid

7ca8f50d78234******e87

InstanceId

string

DMS 实例 ID

2190779

DbId

string

DMS 数据库 ID

71991648

UserSpecifiedSkillList

array

用户指定的技能列表

string

技能 ID

ski-sldk8v******3owd

RecommendQuestionList

array

推荐问题列表

  • 可配置最多 10 个推荐问题

string

推荐问题

Help me find some business insight from this data

ExecutionConfig

object

执行配置

SkipPlan

boolean

是否跳过计划确认步骤

true

SkipSqlConfirm

boolean

是否跳过所有 SQL 确认

true

SkipWebReportConfirm

boolean

是否跳过绘制网页报告确认

false

SkipAskHuman

boolean

是否禁止过程中用户询问

false

ForbiddenAppendDataSource

boolean

是否禁止会话中追加数据源

true

ClarificationTendency

number

Agent 为弄清需求而追问的倾向性,仅当 SkipAskHuman=false 并且 SkipPlan=false 时生效,取值范围:[0, 1]

以下是部分倾向值说明:

  • 0.0:完全不提问。不向用户提问,生成计划后跳过确认,直接执行。

  • 0.1:仅确认计划。只针对生成的计划进行一次确认,不额外追问需求或细节。

  • 0.4:任务受阻时提问。默认自主处理;仅当任务无法继续或完成时提问。

  • 0.7:关键口径不确定时提问。当目标、范围、业务口径或验收标准存在关键歧义时主动提问。

  • 1.0:全流程充分对齐。在计划和执行过程中主动澄清需求,遇到重要歧义、假设或方案分支时持续确认。

1.0

TextReportConfig

string

文字报告格式

The text report requires that all numbers be written in Chinese numerals rather than Arabic numerals.

WebReportConfig

string

网页报告格式

The web report requires that all numbers be written in Chinese numerals rather than Arabic numerals.

WebReportTheme

string

网页报告主题:

  • default:默认

  • journal:手账

  • legacy:经典

  • neobrutalism:风格化

  • infographic:信息图

default

DefaultAgent

integer

是否为默认显示的 Agent

1

CreatorUserName

string

创建者名称

HaoY*****

ModifierUserName

string

修改者名称

HaoY*****

DMSUnit

string

当前 DMS 单元

cn-hangzhou

IsScheduleTask

boolean

是否配置周期运行任务

true

NextRuntime

integer

周期任务下次运行时间

1767715200

ScheduleTaskConfig

object

周期任务配置

RelatedSessionId

string

参考的历史会话 id

4m24*****mg7j2v

CronExpression

string

时间周期调度的 Cron 表达式

0 0 0 ? * 1-7

Query

string

周期任务的问题

Analyze the data and provide the report

CallbackConfig

object

回调功能配置项

Type

string

回调工具类型

Mcp

ToolId

string

回调工具标志符

Mcp serverId (6te...g7a)

CallbackPrompt

string

回调工具调用参数生成 prompt

send web report to 123456@163.com

CallbackArgs

string

回调工具调用参数

{"ID":"test"}

CallbackTime

integer

回调工具调用时机

0

RelatedSessionId

string

参考历史会话 Id

5xyz...

示例

正常返回示例

JSON格式

{
  "RequestId": "67E910F2-4B62-5B0C-ACA3-7547695C****",
  "Success": true,
  "ErrorCode": "success",
  "ErrorMessage": "Specified parameter Tid is not valid.",
  "Data": {
    "CustomAgentId": "ca-4y3ca4khkcu**********ysf",
    "Name": "Test agent name",
    "Description": "Description for the test agent",
    "AgentType": "Common",
    "DataJson": "{\n  \"tableFlag\" : true,\n  \"scope\" : \"personal\",\n  \"personal\" : {\n    \"DataSourceType\" : \"remote_data_center\",\n    \"FileId\" : \"f-5qlrwaw10********s3gpw1z\",\n    \"Database\" : \"test-table******.xlsx\",\n    \"Tables\" : [ \"Sheet1\" ],\n    \"TableIds\" : [ \"******\" ],\n    \"RegionId\" : \"cn-hangzhou\"\n  }\n}",
    "Instruction": "Analytical framework:\n\nMonitor core metrics (GMV, order volume, UV, and conversion rate) on a daily, weekly, and monthly basis to analyze trends and identify year-over-year and month-over-month fluctuations.\nSegment by new vs. returning customers, channels, and regions to identify growth drivers and areas of weakness.\nConduct funnel analysis based on user behavior paths (browse → add to cart → purchase) to pinpoint stages where user drop-off occurs.",
    "Knowledge": "Core metric definitions:\n\nGMV (Gross Merchandise Volume) refers to the total sum of order amounts, including both paid and unpaid orders.\nOrder volume refers to the number of valid orders placed per day.\nUV (Unique Visitors) refers to the deduplicated number of users who visit the website or app.\nConversion rate = paid orders / UV, reflecting the efficiency of traffic conversion.",
    "Status": "RELEASED",
    "ReleaseTime": "2025-12-11T14:04:32.000+00:00",
    "OfflineTime": "2025-12-11T14:04:32.000+00:00",
    "Modifier": "20372822********",
    "WorkspaceId": "56kv1pvl9uvt9**********bb",
    "Region": "cn-hangzhou",
    "AliyunUid": "20372822********",
    "AliyunParentUid": "16738266********",
    "DmsUnit": "cn-hangzhou",
    "GmtCreated": "2025-12-11T14:04:32.000+00:00",
    "GmtModified": "2025-12-11T14:04:32.000+00:00",
    "KnowledgeConfigList": [
      {
        "AccessType": "mcp",
        "McpServerId": "nhdpt9adf6ac**********ca",
        "KbUuid": "kb-HZ-6anhdzx7hddf9*******obx"
      }
    ],
    "KnowledgeSemanticConfigList": [
      {
        "Type": "sql_template",
        "KnowledgeUuid": "7ca8f50d78234******e87",
        "InstanceId": "2190779",
        "DbId": "71991648"
      }
    ],
    "UserSpecifiedSkillList": [
      "ski-sldk8v******3owd"
    ],
    "RecommendQuestionList": [
      "Help me find some business insight from this data"
    ],
    "ExecutionConfig": {
      "SkipPlan": true,
      "SkipSqlConfirm": true,
      "SkipWebReportConfirm": false,
      "SkipAskHuman": false,
      "ForbiddenAppendDataSource": true,
      "ClarificationTendency": 1
    },
    "TextReportConfig": "The text report requires that all numbers be written in Chinese numerals rather than Arabic numerals.\n\n\n",
    "WebReportConfig": "The web report requires that all numbers be written in Chinese numerals rather than Arabic numerals.\n\n\n",
    "WebReportTheme": "default",
    "DefaultAgent": 1,
    "CreatorUserName": "HaoY*****",
    "ModifierUserName": "HaoY*****",
    "DMSUnit": "cn-hangzhou",
    "IsScheduleTask": true,
    "NextRuntime": 1767715200,
    "ScheduleTaskConfig": {
      "RelatedSessionId": "4m24*****mg7j2v",
      "CronExpression": "0 0 0 ? * 1-7",
      "Query": "Analyze the data and provide the report"
    },
    "CallbackConfig": {
      "Type": "Mcp",
      "ToolId": "Mcp serverId (6te...g7a)\n",
      "CallbackPrompt": "send web report to 123456@163.com",
      "CallbackArgs": "{\"ID\":\"test\"}",
      "CallbackTime": 0
    },
    "RelatedSessionId": "5xyz..."
  }
}

错误码

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

变更历史

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