获取服务版本
curl --request GET \
--url http://localhost:8000/version \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/version"
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/version', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"version": "2.2.0",
"language": "python",
"language_version": "3.12.0"
}服务与应用
获取服务版本
返回 Google ADK 版本、运行语言及语言版本
GET
/
version
获取服务版本
curl --request GET \
--url http://localhost:8000/version \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/version"
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/version', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"version": "2.2.0",
"language": "python",
"language_version": "3.12.0"
}最后修改于 2026年9月19日