Skip to content
Merged
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: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1493,8 +1493,6 @@ print(response.text)

## Interactions (Preview)

> **Warning:** The Interactions API is in **Beta**. This is a preview of an experimental feature. Features and schemas are subject to **breaking changes**.

The Interactions API is a unified interface for interacting with Gemini models and agents. It simplifies state management, tool orchestration, and long-running tasks.

See the [documentation site](https://ai.google.dev/gemini-api/docs/interactions) for more details.
Expand Down
18 changes: 1 addition & 17 deletions google/genai/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
)
from ._gaos.sdk import AsyncGenAI as AsyncGeminiNextGenAPI
from ._gaos.sdk import GenAI as GeminiNextGenAPI
_interactions_experimental_warned = False

_agent_experimental_warned = False


Expand Down Expand Up @@ -85,14 +85,6 @@ def _nextgen_client(self) -> AsyncGeminiNextGenAPI:

@property
def interactions(self) -> AsyncGeminiNextGenInteractions:
global _interactions_experimental_warned
if not _interactions_experimental_warned:
_interactions_experimental_warned = True
warnings.warn(
'Interactions usage is experimental and may change in future versions.',
category=UserWarning,
stacklevel=1,
)
if self._interactions is None:
self._interactions = AsyncGeminiNextGenInteractions(self._api_client)
return self._interactions
Expand Down Expand Up @@ -416,14 +408,6 @@ def _nextgen_client(self) -> GeminiNextGenAPI:

@property
def interactions(self) -> GeminiNextGenInteractions:
global _interactions_experimental_warned
if not _interactions_experimental_warned:
_interactions_experimental_warned = True
warnings.warn(
'Interactions usage is experimental and may change in future versions.',
category=UserWarning,
stacklevel=2,
)
if self._interactions is None:
self._interactions = GeminiNextGenInteractions(self._api_client)
return self._interactions
Expand Down
15 changes: 0 additions & 15 deletions google/genai/tests/interactions/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,6 @@
pytest_plugins = ("pytest_asyncio",)


def test_client_future_warning():
with mock.patch.object(
client_lib, "_interactions_experimental_warned", new=False
):
client = client_lib.Client(
api_key="placeholder",
http_options={
"api_version": "v1alpha",
}
)
with pytest.warns(
UserWarning, match="Interactions.*experimental"
):
_ = client.interactions


def test_client_timeout():
with mock.patch.object(
Expand Down
Loading