File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
cli/services/vefaas/template Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ authors = [
12
12
]
13
13
dependencies = [
14
14
" pydantic-settings>=2.10.1" , # Config management
15
- " a2a-sdk== 0.3.1 " , # For Google Agent2Agent protocol
15
+ " a2a-sdk>= 0.3.0 " , # For Google Agent2Agent protocol
16
16
" deprecated>=1.2.18" ,
17
- " google-adk==1.11 .0" , # For basic agent architecture
17
+ " google-adk>=1.10 .0" , # For basic agent architecture
18
18
" litellm>=1.74.3" , # For model inference
19
19
" loguru>=0.7.3" , # For better logging
20
20
" openinference-instrumentation-google-adk>=0.1.1" , # For OpenInference instrumentation
Original file line number Diff line number Diff line change 18
18
19
19
from veadk .cloud .cloud_agent_engine import CloudAgentEngine
20
20
from fastmcp .client import Client
21
+ from veadk .cloud .cloud_app import get_message_id
21
22
22
23
SESSION_ID = "cloud_app_test_session"
23
24
USER_ID = "cloud_app_test_user"
@@ -48,7 +49,7 @@ async def main():
48
49
query_example , SESSION_ID , USER_ID
49
50
)
50
51
print (f"VeFaaS application ID: { cloud_app .vefaas_application_id } " )
51
- print (f"Message ID: { response_message . message_id } " )
52
+ print (f"Message ID: { get_message_id ( response_message ) } " )
52
53
print (
53
54
f"Response from { cloud_app .vefaas_endpoint } : { response_message .parts [0 ].root .text } "
54
55
)
Original file line number Diff line number Diff line change @@ -189,3 +189,12 @@ async def message_send(
189
189
# TODO(floritange): show error log on VeFaaS function
190
190
print (e )
191
191
return None
192
+
193
+
194
+ def get_message_id (message : Message ):
195
+ """Get the messageId of the a2a message"""
196
+ if getattr (message , "messageId" , None ):
197
+ # Compatible with the messageId of the old version
198
+ return message .messageId
199
+ else :
200
+ return message .message_id
You can’t perform that action at this time.
0 commit comments