Description
** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.
Describe the bug
VertexAISessionService does not handle HttpResponse properly.
When passing a session created by the service to an agent hosted on AgentEngine, we receive following error:
google/adk/sessions/vertex_ai_session_service.py", line 92, in create_session session_id = api_response['name'].split('/')[-3] TypeError: 'HttpResponse' object is not subscriptable
To Reproduce
Steps to reproduce the behavior:
- Create SessionServicde
- Create Session
- Call AgentEngine.stream_query() with the session_id of said session
- See error
Expected behavior
AgentEngine should be queried based on the session provided
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: macOS
- Python version(python -V): 3.9.6
- ADK version(pip show google-adk): 1.4.1
Additional context
Might be related to #1536