Skip to content

feat: add Agent Governance Toolkit sample — policy enforcement for ADK agents#117

Open
imran-siddique wants to merge 4 commits intogoogle:mainfrom
imran-siddique:main
Open

feat: add Agent Governance Toolkit sample — policy enforcement for ADK agents#117
imran-siddique wants to merge 4 commits intogoogle:mainfrom
imran-siddique:main

Conversation

@imran-siddique
Copy link
Copy Markdown

Summary

Adds a community sample demonstrating the Agent Governance Toolkit (AGT) integration with Google ADK, as discussed in google/adk-python#5418 and invited by @DeanChensj.

What's included

File Description
\governance_plugin.py\ GovernancePlugin — evaluates YAML/OPA/Cedar policies before tool calls, logs to Merkle audit chain
\main.py\ Example usage with an ADK agent
\policies/default.yaml\ Sample policy (block shell exec, rate limit APIs, require approval for payments)
\README.md\ Documentation with install, usage, and policy examples

How it works

\
Tool call → GovernancePlugin.before_tool_call() → Policy evaluation (<5ms) → Allow/Deny/Warn → Audit log
\\

Requirements

\\�ash
pip install google-adk agentmesh-platform
\\

AGT Stats

  • v3.2.0 Public Preview, 9,500+ tests, MIT licensed
  • 5 SDK languages, 12+ framework integrations
  • 10/10 OWASP Agentic Top 10 coverage

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 21, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@@ -0,0 +1,125 @@
# Copyright 2026 Microsoft Corporation
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can have a plugins/ folder under src/google/adk_community to host the plugin

@@ -0,0 +1,125 @@
# Copyright 2026 Microsoft Corporation
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Microsoft?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants