获取智能体图
curl --request GET \
--url http://localhost:8000/dev/apps/{app_name}/graph \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/dev/apps/{app_name}/graph"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/dev/apps/{app_name}/graph', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"dotSrc": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}开发调试
获取智能体图
返回包含 dotSrc 的对象;dark_mode 默认 false。无法构建图时返回空对象
此接口由所核验的 SDK/ADK 版本提供,仅用于受信任的开发和调试。路径随安装的 ADK 版本变化,不应作为公共业务入口
GET
/
dev
/
apps
/
{app_name}
/
graph
获取智能体图
curl --request GET \
--url http://localhost:8000/dev/apps/{app_name}/graph \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/dev/apps/{app_name}/graph"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/dev/apps/{app_name}/graph', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"dotSrc": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}授权
本地未配置网关时可不提供;云部署使用 Runtime API Key 或部署要求的用户池 JWT,不能使用模型 API Key
路径参数
应用名称,CLI 部署版为 harness_agent
查询参数
是否使用深色图背景,默认 false
响应
请求成功
- GetEventGraphResult
- Response Get App Graph Dot Dev Apps App Name Graph Get
Graphviz DOT 格式的图定义
最后修改于 2026年9月19日