Skip to content

Commit ebad279

Browse files
authored
Revert "feat: Upgrade A2UI examples to v0.9 schema (#751)" (#758)
This reverts commit b698146.
1 parent b698146 commit ebad279

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+808
-6157
lines changed

.github/workflows/python_samples_build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ jobs:
5151
working-directory: samples/agent/adk
5252
run: uv run pyink --check .
5353

54-
- name: Validate Sample Examples
55-
run: |
56-
PYTHONPATH=agent_sdks/python/src uv run --project agent_sdks/python pytest -vv samples/agent/adk/tests/test_examples_validation.py
57-
5854
- name: Build contact_lookup
5955
working-directory: samples/agent/adk/contact_lookup
6056
run: uv build .

samples/agent/adk/contact_lookup/agent.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from google.genai import types
3333
from prompt_builder import get_text_prompt, ROLE_DESCRIPTION, WORKFLOW_DESCRIPTION, UI_DESCRIPTION
3434
from tools import get_contact_info
35-
from a2ui.core.schema.constants import VERSION_0_9
35+
from a2ui.core.schema.constants import VERSION_0_8
3636
from a2ui.core.schema.manager import A2uiSchemaManager
3737
from a2ui.basic_catalog.provider import BasicCatalog
3838
from a2ui.a2a import get_a2ui_agent_extension
@@ -48,15 +48,11 @@ class ContactAgent:
4848
def __init__(self, base_url: str, use_ui: bool = False):
4949
self.base_url = base_url
5050
self.use_ui = use_ui
51-
self.version = VERSION_0_9
5251
self._schema_manager = (
5352
A2uiSchemaManager(
54-
version=self.version,
53+
version=VERSION_0_8,
5554
catalogs=[
56-
BasicCatalog.get_config(
57-
version=self.version,
58-
examples_path=f"examples/{self.version}",
59-
)
55+
BasicCatalog.get_config(version=VERSION_0_8, examples_path="examples")
6056
],
6157
)
6258
if use_ui

samples/agent/adk/contact_lookup/examples/0.9/action_confirmation.json

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)