分页列出当前工作空间下的智能体,按 created_at 倒序返回。默认不包含已归档项,传 include_archived=true 可包含。
前提
已完成 Endpoint 与鉴权配置,详见API 总览与认证。
接口
/agents查询参数
limitint可选单页条数,默认 20,最大 100
pagestring可选分页游标。首次不传,后续传上一次响应的 next_page 翻下一页
include_archivedbool可选是否包含已归档智能体,默认 false
请求示例
curl "$AGENTSTUDIO_URL/agents?limit=20&include_archived=true" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
for agent in client.agents.list(limit=20, include_archived=True):
print(agent.id, agent.name, agent.model['id'])
CursorPage<Agent> page = client.agents().list(AgentListParam.builder()
.limit(20).includeArchived(true).build());
for (Agent a : page.getData()) System.out.println(a.getId() + " " + a.getName());
响应字段
dataarray<Agent>Agent 对象数组
data[] Agent 对象字段
idstring智能体 ID,格式 agent_<ULID>
typestring固定为 agent
versionint当前版本号,每次更新自动递增
namestring智能体名称
descriptionstring用途说明
systemstring系统提示词
modelobject模型配置,包含 id 等模型参数
idstring模型 ID,如 qwen3.7-max
enable_thinkingboolean是否启用思考模式
max_tokensinteger最大生成长度
temperaturenumber温度参数,控制随机性
thinking_budgetinteger思考预算长度
toolsarray<object>工具包列表,按类型分组
typestringbuiltin_toolkit 或 mcp_toolkit
default_configobject默认工具配置,包含 enabled 与 permission_policy
configsarray<object>逐工具配置,覆盖 default_config;支持 params
mcp_server_namestringMCP 类工具需指定
mcp_serversarray<object>MCP Server 引用列表
typestringofficial 或 customer
namestringMCP Server 名称
skillsarray<object>挂载的技能列表
typestringofficial 或 customer
skill_idstringSkill ID
versionstring必须锁定到具体版本号
multiagentobject多智能体协作配置
typestring当前仅 coordinator
agentsarray<object>编队条目,1-20 个;每项含 type、id、version
metadataobject业务自定义键值,不影响模型行为
archived_atstring / null归档时间,未归档时为 null
created_atstring创建时间,ISO 8601
updated_atstring最近更新时间,ISO 8601
workspace_idstring所属工作空间 ID
idstring模型 ID,如 qwen3.7-max
enable_thinkingboolean是否启用思考模式
max_tokensinteger最大生成长度
temperaturenumber温度参数,控制随机性
thinking_budgetinteger思考预算长度
typestringbuiltin_toolkit 或 mcp_toolkit
default_configobject默认工具配置,包含 enabled 与 permission_policy
configsarray<object>逐工具配置,覆盖 default_config;支持 params
mcp_server_namestringMCP 类工具需指定
typestringofficial 或 customer
namestringMCP Server 名称
typestringofficial 或 customer
skill_idstringSkill ID
versionstring必须锁定到具体版本号
typestring当前仅 coordinator
agentsarray<object>编队条目,1-20 个;每项含 type、id、version
next_pagestring / null下一页游标;无更多数据时不返回或为 null
响应示例
{
"data": [
{
"type": "agent",
"id": "agent_xxx",
"name": "data-analyst",
"model": {
"id": "qwen3.8-max",
"temperature": null,
"max_tokens": null,
"enable_thinking": null,
"thinking_budget": null
},
"system": "你是数据分析专家。",
"description": "数据分析助手",
"tools": [],
"mcp_servers": [],
"skills": [],
"multiagent": null,
"metadata": {},
"version": 1,
"created_at": "2026-05-28T16:23:11.456+08:00",
"updated_at": "2026-05-28T16:30:00.000+08:00",
"archived_at": null,
"workspace_id": "ws_xxx",
"request_id": "req_xxx"
}
],
"next_page": "agent_xxx",
"request_id": null
}