text: Title: How to use BaseSecurity in an Agent
  Body: ### 🚀 The feature
  
  Hope to use security checks in the Agent
  
  ### Motivation, pitch
  
  Hope to use security checks in the Agent
  
  ### Alternatives
  
  _No response_
  
  ### Additional context
  
  _No response_