Soft delete agent if it is used in flows that have "consumers"

About

We want to prevent the ability for someone to hard delete an agent that is being used in the public AI Catalog.

We have some logic in the background to soft delete an item when it has has "consumers" - but only flows have consumers.

Proposal

Soft delete agent if they are used by any flows that have consumers.

Edited by 🤖 GitLab Bot 🤖