Skip to content

Gemini Enterprise integration fails with "unrecognized class method: streaming_agent_run_with_events" #770

@jankrynauw

Description

@jankrynauw

Has anyone been able to deploy an agent developed in ADK-GO into Gemini Enterprise?

Description:
Agents published via adk-go to the Agent Platform/Vertex AI Reasoning Engine work as expected within the Google Cloud Console Playground. However, when the same agent is integrated into Gemini Enterprise, queries fail during execution.

Error Logs:
When querying through Gemini Enterprise, the following error is logged:
handleQuery failed: unrecognized class method: streaming_agent_run_with_events

Context:

  • Success Case: Interacting via Playground uses /api/stream_reasoning_engine successfully.
  • Failure Case: Gemini Enterprise appears to call streaming_agent_run_with_events, a method that does not seem to be handled or defined in the current adk-go implementation.
  • Reference: A reference to this method exists in the adk-python CLI deployment logic, but is not handled anywhere in the codebase.

Steps to Reproduce:

  1. Develop an agent using adk-go.
  2. Publish/Deploy the agent to the Agent Engine.
  3. Verify the agent works in the Vertex AI Playground.
  4. Add the agent to a Gemini Enterprise environment.
  5. Submit a query in Gemini Enterprise and observe the logs.

Expected Behavior:
The adk-go runtime should recognize and handle the streaming_agent_run_with_events method call from Gemini Enterprise, or provide a fallback to the standard streaming execution.

Environment:

  • SDK: adk-go v1.2.0
  • Platform: Gemini Enterprise / Vertex AI Reasoning Engine
Image Image Image Image

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions