AgentVariationService
Agent Variations
Attach a memory layer to a variation
Attaches a memory layer to a variation at a given position in the variation's baseline memory cascade.
post/v1/workspaces/{workspaceId}/agents/{agentId}/variations/{variationId}/memory_layer_assignments
Path parameters
workspaceIdstring required
Example:workspace_01HXKD2E5NQM3T9AYWCF133E3Q
Workspace ID.
agentIdstring required
Example:agent_01HXKD2E5NQM3T9AYWCFMGWT9Y
Agent ID. Accepts the canonical agent_… form or the external_id:<value> form.
variationIdstring required
Example:agentvar_01HXKD2E5NQM3T9AYWCF32BSPP
Variation ID. Accepts the canonical agentvar_… form or the external_id:<value> form.
Request body
Example request
{
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"agentId": "agent_01HXKD2E5NQM3T9AYWCFMGWT9Y",
"variationId": "agentvar_01HXKD2E5NQM3T9AYWCF32BSPP",
"memoryLayerId": "memlyr_01HXKD2E5NQM3T9AYWCFFFBMJH"
}Response
OK
Example response
{
"id": "avml_01HXKD2E5NQM3T9AYWCFX8AF59"
}