Component ยท Data side
APG python executor
BOTH Component Gateway
What it is
The Python executor is an optional helper beside the policy engine. It runs policies written in Python, such as the granite-guardian, nemoguard and prompt-compressor guardrails. It starts only if the gateway image contains Python policies.
Why it exists
Some content-safety and prompt tools are only available as Python libraries. The executor lets the Go-based engine use them.
How it works
- The policy engine calls it over gRPC on a Unix domain socket inside the pod.
- It is part of the gateway runtime and is not exposed outside the pod.
- It is built into the image together with the other policies by the gateway builder.
Identity and access
Not applicable. It runs inside the gateway pod and receives only what the policy engine hands it.
Key facts
- Protocol
- gRPC over Unix socket
- Policies
- granite-guardian, nemoguard, prompt-compressor
- Side
- Data plane (gateway)
- Namespace
- <org>-<env>
Used by (1)
- called by APG policy engine Python policiesgRPC over UDS