How to wear Model Armor 2: Integrating with ADK and LangChain Google Cloud's Model Armor security service can be integrated with LangChain and the Agent Development Kit (ADK) for sanitizing prompts and responses in Generative AI applications. The second installment of the series demonstrates how to interpret sanitize API responses and incorporate direct API calls into these two agent frameworks. This integration provides a model-agnostic defense layer for securing GenAI pipelines. The first post https://leoy.blog/posts/how-to-wear-model-armor-1/ about Model Armor , explored the fundamentals of Google Cloud’s managed security service for Generative AI applications, which provides a model-agnostic defense layer to sanitize both prompts and model responses. It covered the two primary patterns for integrating Model Armor into your stack: And it walked through the practical configuration of these integrations using gcloud CLI and Terraform, establishing a secure baseline for your GenAI pipelines. In this post I shift my focus to examine how direct invocation works in practice. I will review the methods of interpreting sanitize API responses and incorporating the API calls in two agent frameworks: LangChain ‒ probably the most widespread framework today for implementing agentic workflows and the Agent Development Kit ADK which I personally prefer for its simplicity.