Skip to content
Open
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
8 changes: 8 additions & 0 deletions vertexai/agent_engines/templates/adk.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,9 @@ async def _init_session(
):
"""Initializes the session, and returns the session id."""
from google.adk.events.event import Event
from google.cloud.aiplatform import base

_LOGGER = base.Logger(__name__)

session_state = None
if request.authorizations:
Expand All @@ -633,6 +636,11 @@ async def _init_session(
artifact.versions, key=lambda x: x["version"]
):
version_data = _ArtifactVersion(**version_data)
# _LOGGER.info(
# "Artifact '%s' type: %s",
# version_data.data,
# type(version_data.data)
# )
saved_version = await artifact_service.save_artifact(
app_name=app.name if app else self._tmpl_attrs.get("app_name"),
user_id=request.user_id,
Expand Down