Skip to content

Commit ad56b55

Browse files
committed
fix import bug
1 parent 79653bb commit ad56b55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

veadk/cloud/cloud_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import httpx
2121
from a2a.client import A2ACardResolver, A2AClient
22-
from a2a.types import AgentCard, Message, MessageSendParams, SendMessageRequest, Task
22+
from a2a.types import AgentCard, Message, MessageSendParams, SendMessageRequest
2323

2424
from veadk.config import getenv
2525
from veadk.utils.logger import get_logger
@@ -423,6 +423,8 @@ async def message_send(
423423
# we ignore type checking here, because the response
424424
# from CloudApp will not be `Task` type
425425
result = res.root.result # type: ignore
426+
from a2a.types import Task
427+
426428
if isinstance(result, Task):
427429
if result.history:
428430
return next(

0 commit comments

Comments
 (0)