Skip to content

Commit 5419b70

Browse files
authored
Merge branch 'main' into kthota/typechanges
2 parents c45c3cd + f162f33 commit 5419b70

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
line-length = 80 # Google Style Guide §3.2: 80 columns
1010
indent-width = 4 # Google Style Guide §3.4: 4 spaces
1111

12-
target-version = "py310" # Minimum Python version
12+
target-version = "py313" # Minimum Python version
1313

1414
[lint]
1515
ignore = [

examples/google_adk/birthday_planner/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This agent helps plan birthday parties. It has access to a Calendar Agent that i
66

77
## Prerequisites
88

9-
- Python 3.9 or higher
9+
- Python 3.13 or higher
1010
- [UV](https://docs.astral.sh/uv/)
1111
- A Gemini API Key
1212

examples/google_adk/birthday_planner/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import click
77
import uvicorn
88

9-
from adk_agent_executor import ADKAgentExecutor
9+
from adk_agent_executor import ADKAgentExecutor # type: ignore[import-untyped]
1010
from dotenv import load_dotenv
1111

1212
from a2a.server.apps import A2AStarletteApplication

examples/google_adk/calendar_agent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This example shows how to create an A2A Server that uses an ADK-based Agent that
44

55
## Prerequisites
66

7-
- Python 3.9 or higher
7+
- Python 3.13 or higher
88
- [UV](https://docs.astral.sh/uv/)
99
- A Gemini API Key
1010
- A [Google OAuth Client](https://developers.google.com/identity/openid-connect/openid-connect#getcredentials)

examples/google_adk/calendar_agent/__main__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import click
55
import uvicorn
66

7-
from adk_agent import create_agent
8-
from adk_agent_executor import ADKAgentExecutor
7+
from adk_agent import create_agent # type: ignore[import-not-found]
8+
from adk_agent_executor import ADKAgentExecutor # type: ignore[import-untyped]
99
from dotenv import load_dotenv
10-
from google.adk.artifacts import InMemoryArtifactService
11-
from google.adk.memory.in_memory_memory_service import InMemoryMemoryService
12-
from google.adk.runners import Runner
13-
from google.adk.sessions import InMemorySessionService
10+
from google.adk.artifacts import InMemoryArtifactService # type: ignore[import-untyped]
11+
from google.adk.memory.in_memory_memory_service import InMemoryMemoryService # type: ignore[import-untyped]
12+
from google.adk.runners import Runner # type: ignore[import-untyped]
13+
from google.adk.sessions import InMemorySessionService # type: ignore[import-untyped]
1414
from starlette.applications import Starlette
1515
from starlette.requests import Request
1616
from starlette.responses import PlainTextResponse
@@ -81,7 +81,7 @@ def main(host: str, port: int):
8181

8282
async def handle_auth(request: Request) -> PlainTextResponse:
8383
await agent_executor.on_auth_callback(
84-
request.query_params.get('state'), str(request.url)
84+
str(request.query_params.get('state')), str(request.url)
8585
)
8686
return PlainTextResponse('Authentication successful.')
8787

examples/google_adk/calendar_agent/adk_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import datetime
22

3-
from google.adk.agents import LlmAgent
4-
from google.adk.tools.google_api_tool import calendar_tool_set
3+
from google.adk.agents import LlmAgent # type: ignore[import-untyped]
4+
from google.adk.tools.google_api_tool import calendar_tool_set # type: ignore[import-untyped]
55

66

77
def create_agent(client_id, client_secret) -> LlmAgent:

examples/helloworld/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from agent_executor import HelloWorldAgentExecutor
1+
from agent_executor import HelloWorldAgentExecutor # type: ignore[import-untyped]
22

33
from a2a.server.apps import A2AStarletteApplication
44
from a2a.server.request_handlers import DefaultRequestHandler

examples/langgraph/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import click
55
import httpx
66

7-
from agent import CurrencyAgent
8-
from agent_executor import CurrencyAgentExecutor
7+
from agent import CurrencyAgent # type: ignore[import-untyped]
8+
from agent_executor import CurrencyAgentExecutor # type: ignore[import-untyped]
99
from dotenv import load_dotenv
1010

1111
from a2a.server.apps import A2AStarletteApplication

examples/langgraph/agent_executor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from agent import CurrencyAgent
1+
from agent import CurrencyAgent # type: ignore[import-untyped]
22
from typing_extensions import override
3-
43
from a2a.server.agent_execution import AgentExecutor, RequestContext
54
from a2a.server.events.event_queue import EventQueue
65
from a2a.types import (

examples/langgraph/test_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ async def run_single_turn_test(client: A2AClient) -> None:
7171
task_id: str = send_response.root.result.id
7272
print('---Query Task---')
7373
# query the task
74-
task_id_payload = {'id': task_id}
75-
get_request = GetTaskRequest(params=TaskQueryParams(**task_id_payload))
74+
get_request = GetTaskRequest(params=TaskQueryParams(id=task_id))
7675
get_response: GetTaskResponse = await client.get_task(get_request)
7776
print_json_response(get_response, 'Query Task Response')
7877

0 commit comments

Comments
 (0)