List variations
GET/v1/workspaces/{workspaceId}/agents/{agentId}/variations
Lists all variations for an agent
List variations
curl https://api.cadenya.com/v1/workspaces/$WORKSPACE_ID/agents/$AGENT_ID/variations \
-H "Authorization: Bearer $CADENYA_API_KEY"{
"items": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"compactionConfig": {
"summarization": {
"instructions": "instructions"
},
"toolResultClearing": {
"preserveRecentResults": 0
},
"triggerThreshold": 0
},
"constraints": {
"maxSubObjectives": 0,
"maxToolCalls": 0
},
"description": "description",
"enableEpisodicMemory": true,
"episodicMemoryTtl": 0,
"modelConfig": {
"modelId": "modelId",
"temperature": 0
},
"progressiveDiscovery": {
"hints": [
"string"
],
"maxTools": 0,
"rerankThreshold": 0
},
"prompt": "prompt",
"weight": 0
},
"info": {
"assignments": [
{
"id": "id",
"agent": {
"id": "id",
"name": "name"
},
"tool": {
"id": "id",
"name": "name"
},
"toolSet": {
"id": "id",
"name": "name"
}
}
],
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
},
"feedbackCount": 0,
"memoryLayerAssignments": [
{
"id": "id",
"memoryLayer": {
"id": "id",
"name": "name"
},
"position": 0
}
],
"memoryLayerCount": 0,
"model": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"score": 0,
"subAgentCount": 0,
"toolCount": 0,
"toolSetCount": 0
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}Returns Examples
{
"items": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"compactionConfig": {
"summarization": {
"instructions": "instructions"
},
"toolResultClearing": {
"preserveRecentResults": 0
},
"triggerThreshold": 0
},
"constraints": {
"maxSubObjectives": 0,
"maxToolCalls": 0
},
"description": "description",
"enableEpisodicMemory": true,
"episodicMemoryTtl": 0,
"modelConfig": {
"modelId": "modelId",
"temperature": 0
},
"progressiveDiscovery": {
"hints": [
"string"
],
"maxTools": 0,
"rerankThreshold": 0
},
"prompt": "prompt",
"weight": 0
},
"info": {
"assignments": [
{
"id": "id",
"agent": {
"id": "id",
"name": "name"
},
"tool": {
"id": "id",
"name": "name"
},
"toolSet": {
"id": "id",
"name": "name"
}
}
],
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
},
"feedbackCount": 0,
"memoryLayerAssignments": [
{
"id": "id",
"memoryLayer": {
"id": "id",
"name": "name"
},
"position": 0
}
],
"memoryLayerCount": 0,
"model": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"score": 0,
"subAgentCount": 0,
"toolCount": 0,
"toolSetCount": 0
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}