Skip to content

Commit 1b6e709

Browse files
authored
Fix demos (#272)
1 parent dc2726b commit 1b6e709

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

samples/agent/adk/rizzcharts/agent_executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ class RizzchartsAgentExecutor(A2aAgentExecutor):
4949

5050
def __init__(self, base_url: str):
5151
self._base_url = base_url
52-
53-
spec_root = Path(__file__).parent / "../../../../../specification/0.8/json"
52+
53+
spec_root = Path(__file__).parent / "../../../../specification/0.8/json"
5454

5555
self._component_catalog_builder = ComponentCatalogBuilder(
5656
a2ui_schema_path=str(spec_root.joinpath("server_to_client.json")),

samples/client/angular/projects/orchestrator/src/server.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ app.post('/a2a', (req, res) => {
6060
parts,
6161
kind: 'message',
6262
metadata: {
63-
clientUiCapabilities: {
64-
catalogUri:
63+
a2uiClientCapabilities: {
64+
supportedCatalogIds: [
6565
'https://raw.githubusercontent.com/google/A2UI/refs/heads/main/a2a_agents/python/adk/samples/rizzcharts/rizzcharts_catalog_definition.json',
66+
],
6667
},
6768
},
6869
},
@@ -97,7 +98,9 @@ app.post('/a2a', (req, res) => {
9798

9899
app.get('/a2a/agent-card', async (req, res) => {
99100
try {
100-
const response = await fetchWithCustomHeader('http://localhost:10002/.well-known/agent-card.json');
101+
const response = await fetchWithCustomHeader(
102+
'http://localhost:10002/.well-known/agent-card.json',
103+
);
101104
if (!response.ok) {
102105
res.status(response.status).json({ error: 'Failed to fetch agent card' });
103106
return;

0 commit comments

Comments
 (0)