Remove a memory layer assignment from a variation
client.Agents.Variations.RemoveMemoryLayer(ctx, workspaceID, agentID, variationID, id) error
DELETE/v1/workspaces/{workspaceId}/agents/{agentId}/variations/{variationId}/memory_layer_assignments/{id}
Detaches a memory layer assignment from a variation, identified by the assignment id.
Remove a memory layer assignment from a variation
package main
import (
"context"
"github.com/cadenya/cadenya-go"
"github.com/cadenya/cadenya-go/option"
)
func main() {
client := cadenya.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.Agents.Variations.RemoveMemoryLayer(
context.TODO(),
"workspaceId",
"agentId",
"variationId",
"id",
)
if err != nil {
panic(err.Error())
}
}