Skip to content

Commit 3876da4

Browse files
feat: add example governance policy
1 parent ff5d84d commit 3876da4

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: governance.toolkit/v1
2+
name: adk-demo-policy
3+
description: Example governance policy for Google ADK agents
4+
rules:
5+
- name: block-shell-execution
6+
condition: "action in ['shell_exec', 'code_exec', 'file_delete']"
7+
action: deny
8+
description: Block dangerous system-level tool calls
9+
priority: 100
10+
11+
- name: rate-limit-api-calls
12+
condition: "action == 'api_call'"
13+
action: allow
14+
limit: "100/hour"
15+
description: Rate limit external API calls
16+
priority: 50
17+
18+
- name: require-approval-for-payments
19+
condition: "action == 'process_payment'"
20+
action: require_approval
21+
approvers: ["admin@example.com"]
22+
description: Payment actions require human approval
23+
priority: 90
24+
25+
default_action: allow

0 commit comments

Comments
 (0)