Skip to content
Closed
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 @@ -40,7 +40,7 @@ lambda-worker-otel = [
"opentelemetry-sdk-extension-aws>=2.0.0,<3",
]
aioboto3 = ["aioboto3>=10.4.0", "types-aioboto3[s3]>=10.4.0"]
google-genai = ["google-genai>=2.10.0,<3.0.0"]
google-genai = ["google-genai>=2.12.0,<3.0.0"]
strands-agents = ["strands-agents>=1.39.0"]

[project.urls]
Expand Down
24 changes: 0 additions & 24 deletions temporalio/contrib/google_genai/_compat.py

This file was deleted.

2 changes: 1 addition & 1 deletion temporalio/contrib/google_genai/_gemini_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
from google.genai import Client as GeminiClient
from google.genai import errors as genai_errors
from google.genai import types
from google.genai._gaos.types.interactions.interaction import Interaction
from google.genai.types import HttpOptions
from google.genai.types import HttpResponse as SdkHttpResponse

from temporalio import activity
from temporalio.contrib.google_genai._compat import Interaction
from temporalio.contrib.google_genai._models import (
_GeminiApiRequest,
_GeminiApiResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
from typing import Any, cast

import pydantic
from google.genai._gaos.types.interactions.interaction import Interaction
from google.genai.interactions import InteractionSSEEvent

from temporalio import workflow as temporal_workflow
from temporalio.contrib.google_genai._compat import Interaction
from temporalio.contrib.google_genai._models import (
_GeminiInteractionIdRequest,
_GeminiInteractionRequest,
Expand Down
2 changes: 1 addition & 1 deletion tests/contrib/google_genai/test_gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import pytest
from google.genai import Client as GeminiClient
from google.genai import types
from google.genai._gaos.types.interactions.interaction import Interaction

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're using internal imports to fix this?

from google.genai.interactions import (
Agent, # pyright: ignore[reportPrivateImportUsage]
InteractionSSEEvent,
Expand All @@ -44,7 +45,6 @@
GoogleGenAIPlugin,
activity_as_tool,
)
from temporalio.contrib.google_genai._compat import Interaction
from temporalio.contrib.google_genai._models import (
_GeminiApiRequest,
_GeminiApiResponse,
Expand Down
20 changes: 10 additions & 10 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading