Sam contrasts controls embedded in prompts and agent tools with controls enforced at the gateway. He cites a survey in which 88% of organizations had an agent in production taking action, while 14% had governance around it. His argument is that infrastructure should restrict what an agent can do, regardless of what a user asks.
AI Agents Don't Read Your Policy Docs. They Hit Your APIs
Speaker
Sam, CTO of Gravitee, demonstrates agent governance at the AI Engineer event using a live gateway setup with Databricks and Groq.
In a live booking example, an ungoverned agent deletes all bookings after a user asks it to cancel one and delete the rest. The gateway-governed agent cancels the permitted booking but receives a 403 when it tries to delete the others. A second example shows the gateway blocking a request for guest details, preventing the mocked PII from being returned.
Sam demonstrates a buggy agent sending the same request eight times. Without gateway controls, all eight requests reach the LLM; with rate limiting set to three requests per minute, later requests are blocked before they incur downstream token costs. He also shows semantic caching serving repeated booking questions from Redis, reducing the example’s reported token use from about 1,000 to around 200.
A gateway policy blocks a long prompt containing a meeting transcript before it reaches the LLM, avoiding the cost of processing its 2,000 input tokens. Another policy rejects a weather question as irrelevant to a hotel-booking agent. Sam says these controls can help keep context and requests aligned with an agent’s purpose.
Sam argues that a gateway can provide shared identity controls, cost management, audit logs, and visibility as agents and agent-to-agent traffic grow. He also describes Gravitee features for routing requests across models, narrowing the tools exposed by MCP servers, and surfacing shadow AI traffic from users’ laptops. He says telemetry can be exported to tools such as Datadog, Splunk, or Prometheus.
Takeaways
- Enforce permissions at the API gateway so prompt injection cannot grant an agent extra access.
- Apply rate limits before requests reach the LLM to avoid paying for retries and runaway workflows.
- Cache similar requests when the response can be reused, and tune similarity thresholds to the use case.
- Set prompt-size and content-relevance rules at the gateway to limit unnecessary processing.
- Centralize agent telemetry and identity controls to make growing agent traffic easier to audit.
Mentioned in this talk
Search inside this talk
What was claimed 16
- works atField CTO
“I’m the CTO at Gravitee”
YouTube Verified2 sources· Talk, Web· archived
- uses
“Groq with a Q provides inference”
YouTube Unverified1 source· Talk
- uses
Gravitee uses
Databricks
“a Databricks backend for some data tables”
YouTube Unverified1 source· Talk
- feature
Gravitee Gateway: Enforces agent permissions through gateway controls and identity
“governed by a tightly scoped identity and Gravitee’s native gateway controls”
YouTube Unverified1 source· Talk
- feature
Gravitee Gateway: Blocks unauthorized requests with a 403 Forbidden response
“the gateway blocked the permissions with a 403 Forbidden response”
YouTube Unverified1 source· Talk
- metric
Gravitee Gateway: Rate limit of three requests per minute in the example
“you can only do three every minute”
YouTube Unverified1 source· Talk
- feature
Gravitee Gateway: Rate limits requests before they reach the LLM
“you can only do three every minute”
YouTube Unverified1 source· Talk
- feature
Gravitee Gateway: semantic caching serves similar prompts from a built-in Redis store
semantic caching serves similar prompts from a built-in Redis store“similar-sounding prompts can be served from a built-in Redis store”
YouTube Unverified1 source· Talk











