Repository navigation
Conversation
Add AGUI to the accepted Agent spec.source.protocol values so agents exposing an AG-UI (Agent-User Interaction protocol) endpoint can be registered and discovered by AG-UI clients. Fixes agentregistry-dev#719 Signed-off-by: deka <dimitri.rayer@gmail.com>
Add optional spec.source.endpoints to Agent so one image can declare every protocol it serves (e.g. A2A and AG-UI) with its port and path, and optional status.runtime.endpoints to Deployment for the URL of each protocol. Both fields are additive: spec.source.protocol and status.runtime.endpoint keep their meaning, and validation defaults protocol from the first endpoint so protocol-only readers still see the primary protocol. kagent keeps requiring A2A as the primary protocol and rejects a custom port or path on the A2A endpoint it cannot honor. Refs agentregistry-dev#719 Signed-off-by: deka <dimitri.rayer@gmail.com>
Reject two endpoints that share the same port and path, require endpoint paths to be plain absolute URL paths (no host, query, fragment or characters needing escaping), and bound endpoint ports to 1-65535 in the schema. kagent exposes a single port per BYO agent, so it now rejects any endpoint declared on a custom port instead of silently leaving it unreachable. The example no longer sets a port, so it deploys on kagent. EffectiveEndpoints returns a copy so callers cannot mutate the spec, and the unused HasProtocol helper is removed. Refs agentregistry-dev#719 Signed-off-by: deka <dimitri.rayer@gmail.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.
Description
Motivation: agents speaking AG-UI (Agent-User Interaction protocol) cannot be declared as such in the registry, and the Agent contract only allows one protocol per image (
spec.source.protocol) with no port or path. A frontend using agentregistry as its agent catalog needs to know which agents serve AG-UI and where, including agents that also serve A2A.What changed (all additive, no API version bump):
AGUIprotocol value.AgentProtocolAGUIis accepted byspec.source.protocol.spec.source.endpoints(optional, Agent). Lists every protocol the image serves, with optionalportandpath, modeled onMCPTransport.endpoints, behavior is unchanged.protocolmust be one of the declared endpoints and stays the primary protocol.endpoints, validation defaultsprotocolin place from the first entry, the same way composition ref kinds are defaulted. Clients that only readprotocoltherefore never wrongly infer A2A.AgentSource.PrimaryProtocol(),EffectiveEndpoints()(legacy agents yield one endpoint for their primary protocol) andHasProtocol().status.runtime.endpoints(optional, Deployment). A{protocol, url}list next to the existingendpointstring, which keeps holding the primary URL. The reconciler persistsApplyResult.Runtimeas a whole, so runtimes can fill it without further plumbing.PrimaryProtocol(). Additional endpoints (e.g. AG-UI) are accepted but not published by this runtime. A customportorpathon the A2A endpoint is rejected, because kagent cannot honor it and would otherwise deploy an unreachable agent.openapi.yamlregenerated,ui/lib/apiregenerated with@hey-api/openapi-ts@0.93.1(lockfile version), and a commented example added toexamples/agent.yaml.Related issues: Fixes #719
Examples
Legacy agent (unchanged, still valid):
Agent serving both A2A and AG-UI:
AG-UI-only agent (
protocolis defaulted toAGUIon validation):Deployment status shape (contract only; no runtime populates
endpointsyet):Change Type
/kind feature
Changelog
Additional Notes
status.runtime.endpointsin this PR. kagent does not report an agent URL today, and I did not want to guess its A2A URL scheme. Discovered Deployments (patchDiscoveredStatus) also rebuild the runtime status without it. Happy to wire it per runtime in follow-ups, or to drop the status part from this PR if you prefer to land it together with a runtime that populates it.go test ./pkg/api/v1alpha1/ ./pkg/types/ ./pkg/runtimes/kagent/,go build ./..., andgo veton the touched and consuming packages.