Attach a memory layer to a variation
$ cadenya agents:variations add-memory-layer
POST/v1/workspaces/{workspaceId}/agents/{agentId}/variations/{variationId}/memory_layer_assignments
Attaches a memory layer to a variation at a given position in the variation’s baseline memory stack.
Attach a memory layer to a variation
cadenya agents:variations add-memory-layer \
--api-key 'My API Key' \
--workspace-id workspaceId \
--agent-id agentId \
--variation-id variationId{
"id": "id",
"memoryLayer": {
"id": "id",
"name": "name"
},
"position": 0
}Returns Examples
{
"id": "id",
"memoryLayer": {
"id": "id",
"name": "name"
},
"position": 0
}