diff --git a/samples/agent/adk/rizzcharts/agent_executor.py b/samples/agent/adk/rizzcharts/agent_executor.py index 9b1038317..949b68102 100644 --- a/samples/agent/adk/rizzcharts/agent_executor.py +++ b/samples/agent/adk/rizzcharts/agent_executor.py @@ -49,8 +49,8 @@ class RizzchartsAgentExecutor(A2aAgentExecutor): def __init__(self, base_url: str): self._base_url = base_url - - spec_root = Path(__file__).parent / "../../../../../specification/0.8/json" + + spec_root = Path(__file__).parent / "../../../../specification/0.8/json" self._component_catalog_builder = ComponentCatalogBuilder( a2ui_schema_path=str(spec_root.joinpath("server_to_client.json")), diff --git a/samples/client/angular/projects/orchestrator/src/server.ts b/samples/client/angular/projects/orchestrator/src/server.ts index 3ba887c2f..51e8e40a9 100644 --- a/samples/client/angular/projects/orchestrator/src/server.ts +++ b/samples/client/angular/projects/orchestrator/src/server.ts @@ -60,9 +60,10 @@ app.post('/a2a', (req, res) => { parts, kind: 'message', metadata: { - clientUiCapabilities: { - catalogUri: + a2uiClientCapabilities: { + supportedCatalogIds: [ 'https://raw.githubusercontent.com/google/A2UI/refs/heads/main/a2a_agents/python/adk/samples/rizzcharts/rizzcharts_catalog_definition.json', + ], }, }, }, @@ -97,7 +98,9 @@ app.post('/a2a', (req, res) => { app.get('/a2a/agent-card', async (req, res) => { try { - const response = await fetchWithCustomHeader('http://localhost:10002/.well-known/agent-card.json'); + const response = await fetchWithCustomHeader( + 'http://localhost:10002/.well-known/agent-card.json', + ); if (!response.ok) { res.status(response.status).json({ error: 'Failed to fetch agent card' }); return;