Agent tool call with safety screening and approval

Agent tool call with safety screening and approval Agent tool call with safety screening and approval A user question reaches a Vertex AI agent; the model proposes a tool call; Model Armor screens it; a high-impact call waits for approval Google Cloud opt [tool needed] ask a question 1. The request carries an Identity Platform token.1 validated request 2. Apigee → Vertex AI agent (validated request)2 screen prompt 3. Vertex AI agent → Model Armor (screen prompt)3 allowed reason + choose tool 4. Vertex AI agent → Gemini (reason + choose tool)4 tool call proposal screen tool arguments 5. Vertex AI agent → Model Armor (screen tool arguments)5 High-impact calls wait for humanapproval before they run. invoke tool (service account) 6. Vertex AI agent → Tool service (invoke tool (service account))6 result trace + token usage 7. Vertex AI agent → Cloud Logging (trace + token usage)7 answer response User (Users) User Apigee (Apigee API Platform) Apigee auth, quotas Vertex AI agent (Agents (category)) Vertex AI agent Agent Engine Model Armor (Data Loss Prevention API) Model Armor Gemini (Vertex AI) Gemini Tool service (Cloud Run) Tool service update record Cloud Logging (Cloud Logging) Cloud Logging

Flow

  1. 1The request carries an Identity Platform token.
  2. 2Apigee → Vertex AI agent (validated request)
  3. 3Vertex AI agent → Model Armor (screen prompt)
  4. 4Vertex AI agent → Gemini (reason + choose tool)
  5. 5Vertex AI agent → Model Armor (screen tool arguments)
  6. 6Vertex AI agent → Tool service (invoke tool (service account))
  7. 7Vertex AI agent → Cloud Logging (trace + token usage)