Skip to main content
Agent 管理

查询 Agent 详情

获取 Agent 完整信息,支持指定版本

POST
/api/v1/indices/rag/agent/get
cURL
curl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/indices/rag/agent/get" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "aid-8f3a1b2c4d5e6f70",
    "agent_version": "beta"
}'
{
  "request_id": "f6a7b8c9-d0e1-2345-fabc-456789012345",
  "status_code": 200,
  "code": "Success",
  "message": "",
  "status": "SUCCESS",
  "success": true,
  "data": {
    "agent_id": "aid-8f3a1b2c4d5e6f70",
    "agent_name": "客服知识问答助手",
    "agent_desc": "基于产品文档的智能客服问答 Agent",
    "agent_scene": "chat",
    "agent_status": "deployed",
    "create_time": "2026-07-10T14:30:00",
    "modify_time": "2026-07-15T09:15:00",
    "agent_details": [
      {
        "agent_version": "beta",
        "agent_version_desc": "草稿版本",
        "publish_time": null,
        "agent_config": {
          "agent_policy": "agentic",
          "agent_model": "qwen-plus-latest",
          "enable_session_file": "false",
          "enable_refusal": "true",
          "enable_anti_leak": "false",
          "enable_rich_text": "false",
          "enable_citation": "true",
          "temperature": 0.5,
          "kb_search_configs": [
            {
              "id": "pipeline-xxxxxx",
              "weight": 1,
              "credibility_level": "high",
              "dense_similarity_top_k": 10,
              "rerank_top_n": 5,
              "rerank_min_score": 0.3,
              "rerank": {
                "model_name": "gte-rerank-hybrid",
                "rerank_mode": "qa"
              }
            }
          ]
        }
      }
    ]
  }
}
获取 Agent 详细信息,可指定查询特定版本;不传 agent_version 时返回所有版本详情。
不支持传 "release" 作为 agent_version

Authorizations

string
header
required

DashScope API Key,在控制台 API Key 页面(https://bailian.console.aliyun.com/settings/apikey)获取。

Body

application/json
string
required

Agent ID。

string

指定版本号(beta 或数字如 1)。不传则返回所有版本信息。

Response

200-application/json
string

请求唯一标识,排查问题时请提供此 ID。

integer

HTTP 状态码。

string

响应码,成功时为 Success

string

提示信息。

enum<string>

请求状态:SUCCESSFAILED

SUCCESS,FAILED
boolean

请求是否成功。

object
Managed Agent API
RAG API
Connector API
Memory API
框架集成
  • 框架