List
List Agent Versions
get/v2/gen-ai/agents/{uuid}/versions
To list all agent versions, send a GET request to /v2/gen-ai/agents/{uuid}/versions.
Path Parameters
uuidstring
Query Parameters
pagenumber
optional
page number.
formatint64
per_pagenumber
optional
items per page.
formatint64
Returns
Request example cURL
curl https://api.digitalocean.com//v2/gen-ai/agents/$UUID/versions \
-H "Authorization: Bearer $GRADIENTAI_API_KEY"200 Example
{
"agent_versions": [
{
"id": "id",
"agent_uuid": "agent_uuid",
"attached_child_agents": [
{
"agent_name": "agent_name",
"child_agent_uuid": "child_agent_uuid",
"if_case": "if_case",
"is_deleted": true,
"route_name": "route_name"
}
],
"attached_functions": [
{
"description": "description",
"faas_name": "faas_name",
"faas_namespace": "faas_namespace",
"is_deleted": true,
"name": "name"
}
],
"attached_guardrails": [
{
"is_deleted": true,
"name": "name",
"priority": 0,
"uuid": "uuid"
}
],
"attached_knowledgebases": [
{
"is_deleted": true,
"name": "name",
"uuid": "uuid"
}
],
"can_rollback": true,
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_email": "created_by_email",
"currently_applied": true,
"description": "description",
"instruction": "instruction",
"k": 0,
"max_tokens": 0,
"model_name": "model_name",
"name": "name",
"provide_citations": true,
"retrieval_method": "RETRIEVAL_METHOD_UNKNOWN",
"tags": [
"string"
],
"temperature": 0,
"top_p": 0,
"trigger_action": "trigger_action",
"version_hash": "version_hash"
}
],
"links": {
"pages": {
"first": "first",
"last": "last",
"next": "next",
"previous": "previous"
}
},
"meta": {
"page": 0,
"pages": 0,
"total": 0
}
}