Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ authors = [
]
dependencies = [
"pydantic-settings>=2.10.1", # Config management
"a2a-sdk==0.3.1", # For Google Agent2Agent protocol
"a2a-sdk>=0.3.0", # For Google Agent2Agent protocol
"deprecated>=1.2.18",
"google-adk==1.11.0", # For basic agent architecture
"google-adk>=1.10.0", # For basic agent architecture
"litellm>=1.74.3", # For model inference
"loguru>=0.7.3", # For better logging
"openinference-instrumentation-google-adk>=0.1.1", # For OpenInference instrumentation
Expand Down
3 changes: 2 additions & 1 deletion veadk/cli/services/vefaas/template/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from veadk.cloud.cloud_agent_engine import CloudAgentEngine
from fastmcp.client import Client
from veadk.cloud.cloud_app import get_message_id

SESSION_ID = "cloud_app_test_session"
USER_ID = "cloud_app_test_user"
Expand Down Expand Up @@ -48,7 +49,7 @@ async def main():
query_example, SESSION_ID, USER_ID
)
print(f"VeFaaS application ID: {cloud_app.vefaas_application_id}")
print(f"Message ID: {response_message.message_id}")
print(f"Message ID: {get_message_id(response_message)}")
print(
f"Response from {cloud_app.vefaas_endpoint}: {response_message.parts[0].root.text}"
)
Expand Down
9 changes: 9 additions & 0 deletions veadk/cloud/cloud_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,12 @@ async def message_send(
# TODO(floritange): show error log on VeFaaS function
print(e)
return None


def get_message_id(message: Message):
"""Get the messageId of the a2a message"""
if getattr(message, "messageId", None):
# Compatible with the messageId of the old version
return message.messageId
else:
return message.message_id