Skip to content
Open
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dependencies = [
"google-cloud-spanner>=3.56,<4", # For Spanner database
"google-cloud-speech>=2.30,<3", # For Audio Transcription
"google-cloud-storage>=2.18,<4", # For GCS Artifact service
"google-genai>=1.72,<2", # Google GenAI SDK
"google-genai>=1.72,<3", # Google GenAI SDK
"graphviz>=0.20.2,<1", # Graphviz for graph rendering
"httpx>=0.27,<1", # HTTP client library
"jsonschema>=4.23,<5", # Agent Builder config validation
Expand Down
15 changes: 11 additions & 4 deletions tests/unittests/models/test_interactions_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,19 @@
from google.adk.models import interactions_utils
from google.adk.models.llm_request import LlmRequest
from google.genai import types
from google.genai._interactions.types.interaction import Interaction
from google.genai._interactions.types.interaction_complete_event import InteractionCompleteEvent
from google.genai._interactions.types.interaction_start_event import InteractionStartEvent
from google.genai._interactions.types.interaction_status_update import InteractionStatusUpdate
import pytest

try:
from google.genai._interactions.types.interaction import Interaction
from google.genai._interactions.types.interaction_complete_event import InteractionCompleteEvent
from google.genai._interactions.types.interaction_start_event import InteractionStartEvent
from google.genai._interactions.types.interaction_status_update import InteractionStatusUpdate
except ImportError:
pytest.skip(
"Skipping interactions API tests as the legacy google.genai._interactions module is not available (likely on google-genai v2.x).",
allow_module_level=True,
)


class _MockAsyncIterator:
"""Simple async iterator for streaming interaction events."""
Expand Down
Loading