Skip to content

Commit bab473c

Browse files
committed
Example dependency changes
1 parent 2cc2a0d commit bab473c

File tree

12 files changed

+6225
-1462
lines changed

12 files changed

+6225
-1462
lines changed

examples/google_adk/birthday_planner/pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name = "adk-a2a-client-example"
33
version = "0.1.0"
44
description = "Birthday planner agent example"
55
readme = "README.md"
6-
requires-python = ">=3.12"
6+
requires-python = ">=3.10"
77
dependencies = [
8-
"a2a-sdk",
8+
"a2a-sdk>=0.2.4",
99
"click>=8.1.8",
1010
"dotenv>=0.9.9",
1111
"httpx>=0.28.1",
@@ -18,9 +18,6 @@ dependencies = [
1818
[tool.hatch.build.targets.wheel]
1919
packages = ["."]
2020

21-
[tool.uv.sources]
22-
a2a-sdk = { workspace = true }
23-
2421
[build-system]
2522
requires = ["hatchling"]
2623
build-backend = "hatchling.build"

examples/google_adk/birthday_planner/uv.lock

Lines changed: 1668 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/google_adk/calendar_agent/pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name = "adk-auth-example"
33
version = "0.1.0"
44
description = "Calendar agent example"
55
readme = "README.md"
6-
requires-python = ">=3.12"
6+
requires-python = ">=3.10"
77
dependencies = [
8-
"a2a-sdk",
8+
"a2a-sdk>=0.2.4",
99
"click>=8.1.8",
1010
"dotenv>=0.9.9",
1111
"httpx>=0.28.1",
@@ -19,9 +19,6 @@ dependencies = [
1919
[tool.hatch.build.targets.wheel]
2020
packages = ["."]
2121

22-
[tool.uv.sources]
23-
a2a-sdk = { workspace = true }
24-
2522
[build-system]
2623
requires = ["hatchling"]
2724
build-backend = "hatchling.build"

examples/google_adk/calendar_agent/uv.lock

Lines changed: 1670 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/helloworld/__main__.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,31 @@
3939
defaultOutputModes=['text'],
4040
capabilities=AgentCapabilities(streaming=True),
4141
skills=[skill], # Only the basic skill for the public card
42-
supportsAuthenticatedExtendedCard=True,
42+
# supportsAuthenticatedExtendedCard=True,
4343
)
4444

4545
# This will be the authenticated extended agent card
4646
# It includes the additional 'extended_skill'
47-
specific_extended_agent_card = public_agent_card.model_copy(
48-
update={
49-
'name': 'Hello World Agent - Extended Edition', # Different name for clarity
50-
'description': 'The full-featured hello world agent for authenticated users.',
51-
'version': '1.0.1', # Could even be a different version
52-
# Capabilities and other fields like url, defaultInputModes, defaultOutputModes,
53-
# supportsAuthenticatedExtendedCard are inherited from public_agent_card unless specified here.
54-
'skills': [skill, extended_skill], # Both skills for the extended card
55-
}
56-
)
47+
# specific_extended_agent_card = public_agent_card.model_copy(
48+
# update={
49+
# 'name': 'Hello World Agent - Extended Edition', # Different name for clarity
50+
# 'description': 'The full-featured hello world agent for authenticated users.',
51+
# 'version': '1.0.1', # Could even be a different version
52+
# # Capabilities and other fields like url, defaultInputModes, defaultOutputModes,
53+
# # supportsAuthenticatedExtendedCard are inherited from public_agent_card unless specified here.
54+
# 'skills': [skill, extended_skill], # Both skills for the extended card
55+
# }
56+
# )
5757

5858
request_handler = DefaultRequestHandler(
5959
agent_executor=HelloWorldAgentExecutor(),
6060
task_store=InMemoryTaskStore(),
6161
)
6262

63-
server = A2AStarletteApplication(agent_card=public_agent_card,
64-
http_handler=request_handler,
65-
extended_agent_card=specific_extended_agent_card)
63+
server = A2AStarletteApplication(
64+
agent_card=public_agent_card, http_handler=request_handler
65+
)
66+
# extended_agent_card=specific_extended_agent_card)
6667
import uvicorn
6768

6869
uvicorn.run(server.build(), host='0.0.0.0', port=9999)

examples/helloworld/agent_executor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing_extensions import override
2-
31
from a2a.server.agent_execution import AgentExecutor, RequestContext
42
from a2a.server.events import EventQueue
53
from a2a.utils import new_agent_text_message
@@ -18,7 +16,6 @@ class HelloWorldAgentExecutor(AgentExecutor):
1816
def __init__(self):
1917
self.agent = HelloWorldAgent()
2018

21-
@override
2219
async def execute(
2320
self,
2421
context: RequestContext,
@@ -27,7 +24,6 @@ async def execute(
2724
result = await self.agent.invoke()
2825
event_queue.enqueue_event(new_agent_text_message(result))
2926

30-
@override
3127
async def cancel(
3228
self, context: RequestContext, event_queue: EventQueue
3329
) -> None:

examples/helloworld/pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name = "helloworld"
33
version = "0.1.0"
44
description = "HelloWorld agent example that only returns Messages"
55
readme = "README.md"
6-
requires-python = ">=3.12"
6+
requires-python = ">=3.10"
77
dependencies = [
8-
"a2a-sdk",
8+
"a2a-sdk>=0.2.4",
99
"click>=8.1.8",
1010
"dotenv>=0.9.9",
1111
"httpx>=0.28.1",
@@ -19,8 +19,6 @@ dependencies = [
1919
[tool.hatch.build.targets.wheel]
2020
packages = ["."]
2121

22-
[tool.uv.sources]
23-
a2a-sdk = { workspace = true }
2422

2523
[build-system]
2624
requires = ["hatchling"]

0 commit comments

Comments
 (0)