Chore(AIGW): Review entity and provider schemas#5907
Open
Guaris wants to merge 3 commits into
Open
Conversation
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
lena-larionova
requested changes
Jul 10, 2026
| The following example creates an `a2a` Agent that proxies traffic to an upstream A2A agent at `https://booking-agent.internal.kongair.com`, with statistics logging enabled and access restricted to the `internal-teams` Consumer Group. | ||
|
|
||
| {:.info} | ||
| > This example proxies to a placeholder upstream at `https://booking-agent.internal.kongair.com`. Substitute the URL of your own running A2A agent in [`config.url`](#schema-aigateway-agent-config-url). Because this Agent has `type: a2a`, requests must use the A2A JSON-RPC envelope (`jsonrpc: "2.0"`, `id`, `method: "message/send"`, `params.message` with `kind` and `messageId`)—a flat `{"message": {...}}` body without that envelope is rejected by the upstream agent itself (for example, `"Invalid Request: jsonrpc must be 2.0"`), not by {{site.ai_gateway}}. |
Contributor
There was a problem hiding this comment.
Both this item and the note about "AI Consumer Group to reference in [access.acls]" are prerequisites. They should be grouped together. Maybe this needs to be split into a short "prerequisites" section, and then the rest can be in a section titled "Example"?
Eg
## Set up an Agent
Blurb about setting up agents.
### Prerequisites
* Before creating an AI Agent with access restrictions, create an AI Consumer Group to reference in [`access.acls`](#schema-aigateway-agent-access).
This example references a group named `internal-teams`. See [Set up an AI Consumer Group](/ai-gateway/entities/ai-consumer-group/#set-up-an-ai-consumer-group) to create it, or substitute the name of your own AI Consumer, AI Consumer Group, or Authenticated Group in `access.acls.allow`.
* Start an A2A agent and take note of its URL.
### Example
The following example creates an `a2a` Agent that proxies traffic to an upstream A2A agent at `https://booking-agent.internal.kongair.com`, with statistics logging enabled and access restricted to the `internal-teams` Consumer Group.
Replace the placeholder upstream URL `https://booking-agent.internal.kongair.com` with the URL of your own running A2A agent in [`config.url`](#schema-aigateway-agent-config-url). Because this Agent has `type: a2a`, requests must use the A2A JSON-RPC envelope (`jsonrpc: "2.0"`, `id`, `method: "message/send"`, `params.message` with `kind` and `messageId`)—a flat `{"message": {...}}` body without that envelope is rejected by the upstream agent itself (for example, `"Invalid Request: jsonrpc must be 2.0"`), not by {{site.ai_gateway}}.
Co-authored-by: lena-larionova <54370747+lena-larionova@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reviewed all of these, tested schemas were valid, checked i nKonnect
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/entities/ai-model/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/entities/ai-policy/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/entities/ai-consumer/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/entities/ai-consumer-group/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/entities/ai-model-provider/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/entities/ai-identity-provider/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/entities/ai-mcp-server/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/entities/ai-agent/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/entities/ai-vault/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/openai/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/azure/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/bedrock/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/gemini/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/vertex/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/anthropic/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/cohere/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/huggingface/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/llama/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/mistral/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/xai/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/dashscope/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/cerebras/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/ollama/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/databricks/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/deepseek/
https://deploy-preview-5907--kongdeveloper.netlify.app/ai-gateway/ai-providers/vllm/