|
4 | 4 | import click |
5 | 5 | import uvicorn |
6 | 6 |
|
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] |
9 | 9 | 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] |
14 | 14 | from starlette.applications import Starlette |
15 | 15 | from starlette.requests import Request |
16 | 16 | from starlette.responses import PlainTextResponse |
@@ -81,7 +81,7 @@ def main(host: str, port: int): |
81 | 81 |
|
82 | 82 | async def handle_auth(request: Request) -> PlainTextResponse: |
83 | 83 | 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) |
85 | 85 | ) |
86 | 86 | return PlainTextResponse('Authentication successful.') |
87 | 87 |
|
|
0 commit comments