ON-PREM CHOREO CLOUD BOTH

What you will learn

  • Follow an agent's model call through the gateway to the vendor
  • Say which key the agent holds and which key only the gateway holds
  • Explain what a guardrail is and where it is enforced
  • Tell where the list of available guardrails comes from

Before you start

On this page

An agent that calls a language model needs a vendor key. Sharing that key with all agents would be risky: one leak, one huge bill. Agent Manager puts a gateway between the agent and the vendor and gives the agent a different key.

Two setup pieces

An is the organisation’s connection to a model vendor. It holds the vendor’s address and key. An is a project level entry point that points at one provider and has a key of its own, the . When a provider is deployed to a gateway, the gateway learns about it over its WebSocket line to AMS.

Component

LLM provider / proxy

Shared or other Other BOTH

An LLM provider is an organization-level connection to a model vendor such as OpenAI or Anthropic. It is created from a provider template and holds the upstream address and the vendor key. An LLM proxy is a project-level entry point that points at a provider and has its own API key. Providers and proxies are deployed to gateways, and agents and evaluation monitors call the proxy, never the vendor directly.

The call, in three steps

Flow

Agent LLM call through the AI gateway, and its trace

F9 10 steps ON-PREM

An agent calls an LLM through the AI gateway with a proxy key, then the spans it produces travel through the gateway to the collector, into OpenSearch, and back to the console through the observer.

  1. The agent sends the request to the gateway

    The agent calls the runtime, which is registered on port 22893 on-prem, and shows its proxy key. The address and a secret reference to the key reach the pod as environment variables. The header name and place come from the proxy’s security setting. A proxy set to no key asks for none.

  2. The policy engine runs the proxy's policies

    The router hands each request to the . When the proxy needs a key, AMS puts the api-key-auth policy first in the proxy’s list when it builds the deployment, and the policies you configured follow it. Those are the , rate limits and cost tracking.

  3. The gateway adds the real key and calls the vendor

    The gateway gets the vendor key ahead of time. When the provider is deployed, the gateway controller downloads the provider from AMS’s internal API, and AMS decrypts the key reference and returns the key. The gateway turns it into a set-headers policy for the provider route. At call time the real key is added to the outgoing call, so the agent does not hold it.

The same flow goes on after step 3 with the agent’s traces. This lesson stops at the model call. The trace path is steps 4 to 10 in the player.

What guardrails do

A guardrail is a gateway policy that checks or limits traffic of an LLM provider, an LLM proxy or an MCP proxy, for example a content filter or a rate limit. Three ideas are worth keeping.

  • They are enforced at the gateway. Rules about what agents may send belong in one place, so they apply without changing any agent code.
  • They are part of the configuration. A guardrail is saved in the provider or proxy configuration as a name, a version and a list of paths with settings. Adding one goes through the ordinary update call, then the configuration is deployed to the gateways.
  • The menu comes from the gateways. Each gateway pushes the manifest of the policies it has installed to AMS. The console’s policy lists are answered from the latest push.
Component

Guardrails and policies

Shared or other Other BOTH

Guardrails are gateway policies that check or limit the traffic of an LLM provider, an LLM proxy or an MCP proxy, for example content filters or rate limits. A policy is saved in the provider or proxy configuration as a name, a version and a list of paths with settings. Agent Manager finds out which policies exist from the gateways themselves.

Rate limit policies are a good example. There are request based limits, token based limits and budget style limits. A cost policy works out what a call costs from a price table, so a budget can be enforced.

Your turn

Under Try it, play flow F9 and watch the first three steps. Where in step 3 does the key change? Then open the credentials map, click the row for the LLM proxy API key, and read who holds it, who checks it and where it travels. Finish with the matcher on who holds which key.

Recap

  • The agent is given the proxy’s address and key, not the vendor’s key.
  • The gateway’s policy engine runs the proxy’s policies, with api-key-auth first when a key is needed.
  • The gateway adds the real vendor key to the outgoing call.
  • A guardrail is a gateway policy, so it applies without agent code changes. The list of available guardrails comes from the gateways’ manifests.

Try it

Follow one request

What to do: press Play, or use Next, to walk through the request step by step.

Loading the diagram...

The credentials map

What to do: click a credential to see who holds it, who checks it and where it travels.

Loading the simulator...

Match them up

What to do: pick an item on the left, then its partner on the right.

Loading the matching game...

Wrap up

Recap

Tick each one when you could explain it to a colleague.

Finished?

Quick check

Loading the quick check...

Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)