You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8043cdd
Browse filesBrowse the repository at this point in the historyBrowse files
feat(server): make @PublicAgentCard optional with fallback to @ExtendedAgentCard
- Remove @DefaultBean AgentCard from DefaultProducers; bean absence is the signal
- Return 404 from /.well-known/agent-card.json when no @PublicAgentCard
- Fall back to @ExtendedAgentCard for internal capability checks across all transports
Fixesa2aproject#1120
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Copy file name to clipboardExpand all lines: compat-0.3/reference/jsonrpc/src/main/java/org/a2aproject/sdk/compat03/server/apps/quarkus/A2AServerRoutes_v0_3.java
Copy file name to clipboardExpand all lines: compat-0.3/reference/rest/src/main/java/org/a2aproject/sdk/compat03/server/rest/quarkus/A2AServerRoutes_v0_3.java
Copy file name to clipboardExpand all lines: compat-0.3/tck/src/multi-version/java/org/a2aproject/sdk/compat03/tck/server/DerivedAgentCardProducer.java
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@
18
18
/**
19
19
* Produces a v1.0 {@link AgentCard} derived from the v0.3 {@link AgentCard_v0_3}
20
20
* when the multi-version profile adds v1.0 reference dependencies to the classpath.
21
-
* Overrides the {@code @DefaultBean} in {@code DefaultProducers}.
Copy file name to clipboardExpand all lines: docs/content/dev/server.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,8 @@ You can add more than one transport dependency to support multiple protocols sim
51
51
52
52
## 2. Define an Agent Card
53
53
54
+
The `@PublicAgentCard` bean defines the publicly discoverable agent card served at `/.well-known/agent-card.json`. This bean is optional — if omitted, the public endpoint returns 404 and the server uses the `@ExtendedAgentCard` (if provided) for internal capability checks. At least one of `@PublicAgentCard` or `@ExtendedAgentCard` must be provided.
0 commit comments