{"slug": "how-to-wear-model-armor-2-integrating-with-adk-and-langchain", "title": "How to wear Model Armor 2: Integrating with ADK and LangChain", "summary": "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.", "body_md": "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.\n\nIt covered the two primary patterns for integrating Model Armor into your stack:\n\nAnd 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.", "url": "https://wpnews.pro/news/how-to-wear-model-armor-2-integrating-with-adk-and-langchain", "canonical_source": "https://leoy.blog/posts/how-to-wear-model-armor-2/", "published_at": "2026-05-02 05:04:05+00:00", "updated_at": "2026-05-29 22:30:50.565251+00:00", "lang": "en", "topics": ["generative-ai", "ai-safety", "ai-tools", "ai-agents", "ai-infrastructure"], "entities": ["Model Armor", "Google Cloud", "LangChain", "Agent Development Kit", "ADK", "gcloud CLI", "Terraform", "GenAI"], "alternates": {"html": "https://wpnews.pro/news/how-to-wear-model-armor-2-integrating-with-adk-and-langchain", "markdown": "https://wpnews.pro/news/how-to-wear-model-armor-2-integrating-with-adk-and-langchain.md", "text": "https://wpnews.pro/news/how-to-wear-model-armor-2-integrating-with-adk-and-langchain.txt", "jsonld": "https://wpnews.pro/news/how-to-wear-model-armor-2-integrating-with-adk-and-langchain.jsonld"}}