From 0baabf3723ab75ce2541be35488bda391b36e6ec Mon Sep 17 00:00:00 2001 From: Jacob Simionato Date: Fri, 19 Dec 2025 07:04:12 +1030 Subject: [PATCH 1/2] Remove output format --- docs/guides/renderer-development.md | 2 +- .../0.8/schemas/server_to_client_with_standard_catalog.json | 4 ---- renderers/lit/src/0.8/ui/root.ts | 1 - samples/agent/adk/contact_lookup/a2ui_schema.py | 4 ---- samples/agent/adk/restaurant_finder/prompt_builder.py | 4 ---- .../0.8/json/server_to_client_with_standard_catalog.json | 4 ---- specification/0.8/json/standard_catalog_definition.json | 4 ---- 7 files changed, 1 insertion(+), 22 deletions(-) diff --git a/docs/guides/renderer-development.md b/docs/guides/renderer-development.md index c1c6753e..7dd1d2ad 100644 --- a/docs/guides/renderer-development.md +++ b/docs/guides/renderer-development.md @@ -77,6 +77,6 @@ To ensure a consistent user experience across platforms, A2UI defines a standard - **Button**: A clickable element that triggers a `userAction`. Must be able to contain a `child` component (typically Text or Icon) and may vary in style based on the `primary` boolean. - **CheckBox**: A checkbox that can be toggled, reflecting a boolean value. - **TextField**: An input field for text. Must support a `label`, `text` (value), `textFieldType` (`shortText`, `longText`, `number`, `obscured`, `date`), and `validationRegexp`. -- **DateTimeInput**: A dedicated input for selecting a date and/or time. Must support `enableDate`, `enableTime`, and an `outputFormat`. +- **DateTimeInput**: A dedicated input for selecting a date and/or time. Must support `enableDate` and `enableTime`. - **MultipleChoice**: A component for selecting one or more options from a list (`options`). Must support `maxAllowedSelections` and bind `selections` to a list or single value. - **Slider**: A slider for selecting a numeric value (`value`) from a defined range (`minValue`, `maxValue`). diff --git a/renderers/lit/src/0.8/schemas/server_to_client_with_standard_catalog.json b/renderers/lit/src/0.8/schemas/server_to_client_with_standard_catalog.json index d3e71f5f..efc72e56 100644 --- a/renderers/lit/src/0.8/schemas/server_to_client_with_standard_catalog.json +++ b/renderers/lit/src/0.8/schemas/server_to_client_with_standard_catalog.json @@ -646,10 +646,6 @@ "enableTime": { "type": "boolean", "description": "If true, allows the user to select a time." - }, - "outputFormat": { - "type": "string", - "description": "The desired format for the output string after a date or time is selected." } }, "required": ["value"] diff --git a/renderers/lit/src/0.8/ui/root.ts b/renderers/lit/src/0.8/ui/root.ts index 3588ae10..93ba9cb6 100644 --- a/renderers/lit/src/0.8/ui/root.ts +++ b/renderers/lit/src/0.8/ui/root.ts @@ -348,7 +348,6 @@ export class Root extends SignalWatcher(LitElement) { .dataContextPath=${node.dataContextPath ?? ""} .enableDate=${node.properties.enableDate ?? true} .enableTime=${node.properties.enableTime ?? true} - .outputFormat=${node.properties.outputFormat} .value=${node.properties.value} .enableCustomElements=${this.enableCustomElements} >`; diff --git a/samples/agent/adk/contact_lookup/a2ui_schema.py b/samples/agent/adk/contact_lookup/a2ui_schema.py index f4c776d8..631e4bc2 100644 --- a/samples/agent/adk/contact_lookup/a2ui_schema.py +++ b/samples/agent/adk/contact_lookup/a2ui_schema.py @@ -620,10 +620,6 @@ "enableTime": { "type": "boolean", "description": "If true, allows the user to select a time." - }, - "outputFormat": { - "type": "string", - "description": "The desired format for the output string after a date or time is selected." } }, "required": ["value"] diff --git a/samples/agent/adk/restaurant_finder/prompt_builder.py b/samples/agent/adk/restaurant_finder/prompt_builder.py index 6eb2f7aa..4b37892b 100644 --- a/samples/agent/adk/restaurant_finder/prompt_builder.py +++ b/samples/agent/adk/restaurant_finder/prompt_builder.py @@ -618,10 +618,6 @@ "enableTime": { "type": "boolean", "description": "If true, allows the user to select a time." - }, - "outputFormat": { - "type": "string", - "description": "The desired format for the output string after a date or time is selected." } }, "required": ["value"] diff --git a/specification/0.8/json/server_to_client_with_standard_catalog.json b/specification/0.8/json/server_to_client_with_standard_catalog.json index d3e71f5f..efc72e56 100644 --- a/specification/0.8/json/server_to_client_with_standard_catalog.json +++ b/specification/0.8/json/server_to_client_with_standard_catalog.json @@ -646,10 +646,6 @@ "enableTime": { "type": "boolean", "description": "If true, allows the user to select a time." - }, - "outputFormat": { - "type": "string", - "description": "The desired format for the output string after a date or time is selected." } }, "required": ["value"] diff --git a/specification/0.8/json/standard_catalog_definition.json b/specification/0.8/json/standard_catalog_definition.json index b86acd7f..a25be4c9 100644 --- a/specification/0.8/json/standard_catalog_definition.json +++ b/specification/0.8/json/standard_catalog_definition.json @@ -579,10 +579,6 @@ "enableTime": { "type": "boolean", "description": "If true, allows the user to select a time." - }, - "outputFormat": { - "type": "string", - "description": "The desired format for the output string after a date or time is selected." } }, "required": ["value"] From 3ee67837b99d82e5526e63465844d21c2e9d807d Mon Sep 17 00:00:00 2001 From: Jacob Simionato Date: Fri, 19 Dec 2025 07:07:36 +1030 Subject: [PATCH 2/2] Specify date format --- .../src/0.8/schemas/server_to_client_with_standard_catalog.json | 2 +- samples/agent/adk/contact_lookup/a2ui_schema.py | 2 +- samples/agent/adk/restaurant_finder/prompt_builder.py | 2 +- .../0.8/json/server_to_client_with_standard_catalog.json | 2 +- specification/0.8/json/standard_catalog_definition.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/renderers/lit/src/0.8/schemas/server_to_client_with_standard_catalog.json b/renderers/lit/src/0.8/schemas/server_to_client_with_standard_catalog.json index efc72e56..df6a8b5f 100644 --- a/renderers/lit/src/0.8/schemas/server_to_client_with_standard_catalog.json +++ b/renderers/lit/src/0.8/schemas/server_to_client_with_standard_catalog.json @@ -628,7 +628,7 @@ "properties": { "value": { "type": "object", - "description": "The selected date and/or time value. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').", + "description": "The selected date and/or time value in ISO 8601 format. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').", "additionalProperties": false, "properties": { "literalString": { diff --git a/samples/agent/adk/contact_lookup/a2ui_schema.py b/samples/agent/adk/contact_lookup/a2ui_schema.py index 631e4bc2..4b6038fd 100644 --- a/samples/agent/adk/contact_lookup/a2ui_schema.py +++ b/samples/agent/adk/contact_lookup/a2ui_schema.py @@ -603,7 +603,7 @@ "properties": { "value": { "type": "object", - "description": "The selected date and/or time value. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').", + "description": "The selected date and/or time value in ISO 8601 format. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').", "properties": { "literalString": { "type": "string" diff --git a/samples/agent/adk/restaurant_finder/prompt_builder.py b/samples/agent/adk/restaurant_finder/prompt_builder.py index 4b37892b..1cc8445e 100644 --- a/samples/agent/adk/restaurant_finder/prompt_builder.py +++ b/samples/agent/adk/restaurant_finder/prompt_builder.py @@ -601,7 +601,7 @@ "properties": { "value": { "type": "object", - "description": "The selected date and/or time value. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').", + "description": "The selected date and/or time value in ISO 8601 format. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').", "properties": { "literalString": { "type": "string" diff --git a/specification/0.8/json/server_to_client_with_standard_catalog.json b/specification/0.8/json/server_to_client_with_standard_catalog.json index efc72e56..df6a8b5f 100644 --- a/specification/0.8/json/server_to_client_with_standard_catalog.json +++ b/specification/0.8/json/server_to_client_with_standard_catalog.json @@ -628,7 +628,7 @@ "properties": { "value": { "type": "object", - "description": "The selected date and/or time value. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').", + "description": "The selected date and/or time value in ISO 8601 format. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').", "additionalProperties": false, "properties": { "literalString": { diff --git a/specification/0.8/json/standard_catalog_definition.json b/specification/0.8/json/standard_catalog_definition.json index a25be4c9..be2ee786 100644 --- a/specification/0.8/json/standard_catalog_definition.json +++ b/specification/0.8/json/standard_catalog_definition.json @@ -561,7 +561,7 @@ "properties": { "value": { "type": "object", - "description": "The selected date and/or time value. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').", + "description": "The selected date and/or time value in ISO 8601 format. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').", "additionalProperties": false, "properties": { "literalString": {