Skip to content

Commit 23e3b7f

Browse files
Annhiluccopybara-github
authored andcommitted
chore: remove deprecated Turn types
PiperOrigin-RevId: 963798982
1 parent 661ddeb commit 23e3b7f

4 files changed

Lines changed: 2 additions & 85 deletions

File tree

google/genai/_gaos/types/interactions/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@
366366
from .toolchoiceconfig import ToolChoiceConfig, ToolChoiceConfigParam
367367
from .toolchoicetype import ToolChoiceType
368368
from .transcriptionconfig import TranscriptionConfig, TranscriptionConfigParam
369-
from .turn import Turn, TurnContent, TurnContentParam, TurnParam
370369
from .urlcitation import URLCitation, URLCitationParam
371370
from .urlcontext import URLContext, URLContextParam
372371
from .urlcontextcallarguments import (
@@ -733,10 +732,6 @@
733732
"TranscriptionConfigParam",
734733
"Transform",
735734
"TransformParam",
736-
"Turn",
737-
"TurnContent",
738-
"TurnContentParam",
739-
"TurnParam",
740735
"URLCitation",
741736
"URLCitationParam",
742737
"URLContext",
@@ -1120,10 +1115,6 @@
11201115
"ToolChoiceType": ".toolchoicetype",
11211116
"TranscriptionConfig": ".transcriptionconfig",
11221117
"TranscriptionConfigParam": ".transcriptionconfig",
1123-
"Turn": ".turn",
1124-
"TurnContent": ".turn",
1125-
"TurnContentParam": ".turn",
1126-
"TurnParam": ".turn",
11271118
"URLCitation": ".urlcitation",
11281119
"URLCitationParam": ".urlcitation",
11291120
"URLContext": ".urlcontext",

google/genai/_gaos/types/interactions/interactionsinput.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,18 @@
1919
from __future__ import annotations
2020
from .content import Content, ContentParam
2121
from .step import Step, StepParam
22-
from .turn import Turn, TurnParam
2322
from typing import List, Union
2423
from typing_extensions import TypeAliasType
2524

2625

2726
InteractionsInputParam = TypeAliasType(
2827
"InteractionsInputParam",
29-
Union[str, List[StepParam], List[ContentParam], List[TurnParam], ContentParam],
28+
Union[str, List[StepParam], List[ContentParam], ContentParam],
3029
)
3130
r"""The input for the interaction."""
3231

3332

3433
InteractionsInput = TypeAliasType(
35-
"InteractionsInput", Union[str, List[Step], List[Content], List[Turn], Content]
34+
"InteractionsInput", Union[str, List[Step], List[Content], Content]
3635
)
3736
r"""The input for the interaction."""

google/genai/_gaos/types/interactions/turn.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

google/genai/tests/gaos/test_triggers_lifecycle.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ def log_message(self, *args) -> None:
9898
}
9999
],
100100
),
101-
(
102-
[{"role": "user", "content": "test-input-turn"}],
103-
[{"role": "user", "content": "test-input-turn"}],
104-
),
105101
(
106102
{"type": "text", "text": "test-input-single-content"},
107103
{"type": "text", "text": "test-input-single-content"},

0 commit comments

Comments
 (0)