diff --git a/cockpit/chat/a2ui/angular/src/environments/environment.development.ts b/cockpit/chat/a2ui/angular/src/environments/environment.development.ts index f5c053266..d324f197b 100644 --- a/cockpit/chat/a2ui/angular/src/environments/environment.development.ts +++ b/cockpit/chat/a2ui/angular/src/environments/environment.development.ts @@ -1,5 +1,5 @@ export const environment = { production: false, langGraphApiUrl: 'http://localhost:4511/api', - a2uiAssistantId: 'c-a2ui', + a2uiAssistantId: 'a2ui_form', }; diff --git a/cockpit/chat/a2ui/angular/src/environments/environment.ts b/cockpit/chat/a2ui/angular/src/environments/environment.ts index 2919bf6d0..f23ee1ad2 100644 --- a/cockpit/chat/a2ui/angular/src/environments/environment.ts +++ b/cockpit/chat/a2ui/angular/src/environments/environment.ts @@ -1,5 +1,5 @@ export const environment = { production: true, langGraphApiUrl: '/api', - a2uiAssistantId: 'c-a2ui', + a2uiAssistantId: 'a2ui_form', }; diff --git a/cockpit/chat/generative-ui/python/prompts/generative-ui.md b/cockpit/chat/generative-ui/python/prompts/generative-ui.md index 98c06c985..61afba57f 100644 --- a/cockpit/chat/generative-ui/python/prompts/generative-ui.md +++ b/cockpit/chat/generative-ui/python/prompts/generative-ui.md @@ -9,7 +9,7 @@ A **Spec** is a JSON object with two required top-level keys: ``` { "elements": { [key: string]: Element }, - "rootKey": string + "root": string } ``` @@ -35,7 +35,7 @@ An **Element** has: 1. Respond ONLY with valid JSON. No markdown. No code fences. No surrounding text. 2. Every element referenced in a `children` array must exist as a key in `elements`. -3. `rootKey` must reference a key that exists in `elements`. +3. `root` must reference a key that exists in `elements`. 4. Use `container` to group multiple cards together. 5. Choose component types that best match the user's request. @@ -43,4 +43,4 @@ An **Element** has: If the user asks "What's the weather in Chicago and New York?", respond exactly like: -{"elements":{"root":{"type":"container","props":{},"children":["chicago","nyc"]},"chicago":{"type":"weather_card","props":{"city":"Chicago","temperature":45,"condition":"Partly Cloudy"}},"nyc":{"type":"weather_card","props":{"city":"New York","temperature":52,"condition":"Sunny"}}},"rootKey":"root"} +{"elements":{"root":{"type":"container","props":{},"children":["chicago","nyc"]},"chicago":{"type":"weather_card","props":{"city":"Chicago","temperature":45,"condition":"Partly Cloudy"}},"nyc":{"type":"weather_card","props":{"city":"New York","temperature":52,"condition":"Sunny"}}},"root":"root"} diff --git a/cockpit/langgraph/streaming/python/prompts/generative-ui.md b/cockpit/langgraph/streaming/python/prompts/generative-ui.md index 98c06c985..61afba57f 100644 --- a/cockpit/langgraph/streaming/python/prompts/generative-ui.md +++ b/cockpit/langgraph/streaming/python/prompts/generative-ui.md @@ -9,7 +9,7 @@ A **Spec** is a JSON object with two required top-level keys: ``` { "elements": { [key: string]: Element }, - "rootKey": string + "root": string } ``` @@ -35,7 +35,7 @@ An **Element** has: 1. Respond ONLY with valid JSON. No markdown. No code fences. No surrounding text. 2. Every element referenced in a `children` array must exist as a key in `elements`. -3. `rootKey` must reference a key that exists in `elements`. +3. `root` must reference a key that exists in `elements`. 4. Use `container` to group multiple cards together. 5. Choose component types that best match the user's request. @@ -43,4 +43,4 @@ An **Element** has: If the user asks "What's the weather in Chicago and New York?", respond exactly like: -{"elements":{"root":{"type":"container","props":{},"children":["chicago","nyc"]},"chicago":{"type":"weather_card","props":{"city":"Chicago","temperature":45,"condition":"Partly Cloudy"}},"nyc":{"type":"weather_card","props":{"city":"New York","temperature":52,"condition":"Sunny"}}},"rootKey":"root"} +{"elements":{"root":{"type":"container","props":{},"children":["chicago","nyc"]},"chicago":{"type":"weather_card","props":{"city":"Chicago","temperature":45,"condition":"Partly Cloudy"}},"nyc":{"type":"weather_card","props":{"city":"New York","temperature":52,"condition":"Sunny"}}},"root":"root"}