enforce Agent Tool Security
Intercepts methods annotated with SecureAgentTool at method or class level, enforcing the declared SpEL expression before the action body executes.
Method-level annotation takes precedence over class-level. @within matches all methods in a class carrying the annotation.
Throws
Access Denied Exception
org.springframework.security.access.AccessDeniedException if the expression evaluates to false or no org.springframework.security.core.Authentication is present in the org.springframework.security.core.context.SecurityContextHolder.