For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Transformations
Use CEL expressions to transform requests and responses to LLMs, MCP servers, and agents.
Apply CEL transformations to routes for LLM providers, MCP servers, inference services, agents, and HTTP services.
Transformation templating language
Learn about the CEL templating language for agentgateway transformations, including context …
Log CEL variables in access logs
Log CEL variables to inspect values at runtime and filter access log entries by response status.
Encode and decode headers
Encode and decode base64 values in request headers using CEL expressions.
Filter request body fields
Filter unwanted fields from JSON request bodies and merge in default values using CEL expressions.
Inject LLM model headers
Detect model fallback by injecting the requested and actual LLM model names as response headers …
Forward request URL as header
Construct a full request URL from context variables and forward it upstream as a request header.
Inject response body
Construct and return a dynamic response body from request context variables using CEL expressions.
Inject response headers
Inject, modify, and remove response headers using CEL expressions.
Rewrite path and method
Conditionally rewrite the request path and HTTP method using CEL ternary expressions.
Promote query parameters to headers
Promote a query parameter to a request header using CEL expressions.
Remove request headers
Remove headers from requests before they reach the upstream.
Rewrite path segments
Rewrite dynamic path segments using the with() and regexReplace() CEL functions.
Update response status
Update the response status based on request query parameters using CEL expressions.
Distributed tracing headers
Inject dynamically generated UUIDs and random sampling values into request headers using CEL …
Validate and default field values
Apply default values to optional fields and skip transformations when fields are absent using CEL …