|
4 | 4 | import click |
5 | 5 | import uvicorn |
6 | 6 |
|
7 | | -from adk_agent import create_agent # type: ignore[import-not-found] |
8 | | -from adk_agent_executor import ADKAgentExecutor # type: ignore[import-untyped] |
| 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 # 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] |
| 10 | +from google.adk.artifacts import ( |
| 11 | + InMemoryArtifactService, # type: ignore[import-untyped] |
| 12 | +) |
| 13 | +from google.adk.memory.in_memory_memory_service import ( |
| 14 | + InMemoryMemoryService, # type: ignore[import-untyped] |
| 15 | +) |
| 16 | +from google.adk.runners import Runner # type: ignore[import-untyped] |
| 17 | +from google.adk.sessions import ( |
| 18 | + InMemorySessionService, # type: ignore[import-untyped] |
| 19 | +) |
14 | 20 | from starlette.applications import Starlette |
15 | 21 | from starlette.requests import Request |
16 | 22 | from starlette.responses import PlainTextResponse |
|
19 | 25 | from a2a.server.apps import A2AStarletteApplication |
20 | 26 | from a2a.server.request_handlers import DefaultRequestHandler |
21 | 27 | from a2a.server.tasks import InMemoryTaskStore |
22 | | -from a2a.types import ( |
23 | | - AgentAuthentication, |
24 | | - AgentCapabilities, |
25 | | - AgentCard, |
26 | | - AgentSkill, |
27 | | -) |
| 28 | +from a2a.types import AgentCapabilities, AgentCard, AgentSkill |
28 | 29 |
|
29 | 30 |
|
30 | 31 | load_dotenv() |
@@ -63,7 +64,6 @@ def main(host: str, port: int): |
63 | 64 | defaultOutputModes=['text'], |
64 | 65 | capabilities=AgentCapabilities(streaming=True), |
65 | 66 | skills=[skill], |
66 | | - authentication=AgentAuthentication(schemes=['public']), |
67 | 67 | ) |
68 | 68 |
|
69 | 69 | adk_agent = create_agent( |
|
0 commit comments