8000 VertexAISession not handling HttpResponses properly · Issue #1539 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content
VertexAISession not handling HttpResponses properly #1539
Open
@roman-loosli

Description

@roman-loosli

** 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:

  1. Create SessionServicde
  2. Create Session
  3. Call AgentEngine.stream_query() with the session_id of said session
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0