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
uuid: string
Query Parameters
Returns
curl https://api.digitalocean.com/v2/gen-ai/agents/$UUID/versions \
-H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN"
{
"agent_versions": [
{
"id": "12345",
"agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
"attached_child_agents": [
{
"agent_name": "example name",
"child_agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
"if_case": "example string",
"is_deleted": true,
"route_name": "example name"
}
],
"attached_functions": [
{
"description": "example string",
"faas_name": "example name",
"faas_namespace": "example name",
"is_deleted": true,
"name": "example name"
}
],
"attached_guardrails": [
{
"is_deleted": true,
"name": "example name",
"priority": 123,
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"attached_knowledgebases": [
{
"is_deleted": true,
"name": "example name",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"can_rollback": true,
"created_at": "2023-01-01T00:00:00Z",
"created_by_email": "[email protected]",
"currently_applied": true,
"description": "example string",
"instruction": "example string",
"k": 123,
"max_tokens": 123,
"model_name": "example name",
"name": "example name",
"provide_citations": true,
"retrieval_method": "RETRIEVAL_METHOD_UNKNOWN",
"tags": [
"example string"
],
"temperature": 123,
"top_p": 123,
"trigger_action": "example string",
"version_hash": "example string"
}
],
"links": {
"pages": {
"first": "example string",
"last": "example string",
"next": "example string",
"previous": "example string"
}
},
"meta": {
"page": 123,
"pages": 123,
"total": 123
}
}
Returns Examples
{
"agent_versions": [
{
"id": "12345",
"agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
"attached_child_agents": [
{
"agent_name": "example name",
"child_agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
"if_case": "example string",
"is_deleted": true,
"route_name": "example name"
}
],
"attached_functions": [
{
"description": "example string",
"faas_name": "example name",
"faas_namespace": "example name",
"is_deleted": true,
"name": "example name"
}
],
"attached_guardrails": [
{
"is_deleted": true,
"name": "example name",
"priority": 123,
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"attached_knowledgebases": [
{
"is_deleted": true,
"name": "example name",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"can_rollback": true,
"created_at": "2023-01-01T00:00:00Z",
"created_by_email": "[email protected]",
"currently_applied": true,
"description": "example string",
"instruction": "example string",
"k": 123,
"max_tokens": 123,
"model_name": "example name",
"name": "example name",
"provide_citations": true,
"retrieval_method": "RETRIEVAL_METHOD_UNKNOWN",
"tags": [
"example string"
],
"temperature": 123,
"top_p": 123,
"trigger_action": "example string",
"version_hash": "example string"
}
],
"links": {
"pages": {
"first": "example string",
"last": "example string",
"next": "example string",
"previous": "example string"
}
},
"meta": {
"page": 123,
"pages": 123,
"total": 123
}
}