Skip to content

Commit 4899570

Browse files
google-genai-botcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 951491630
1 parent 87f1650 commit 4899570

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
class EnvironmentParam(TypedDict):
5050
r"""Configuration for a custom environment."""
5151

52-
environment_id: NotRequired[str]
52+
id: NotRequired[str]
5353
r"""Optional. The environment ID for the interaction. If specified, the request will
5454
update the existing environment instead of creating a new one.
5555
"""
@@ -62,7 +62,7 @@ class EnvironmentParam(TypedDict):
6262
class Environment(BaseModel):
6363
r"""Configuration for a custom environment."""
6464

65-
environment_id: Optional[str] = None
65+
id: Optional[str] = None
6666
r"""Optional. The environment ID for the interaction. If specified, the request will
6767
update the existing environment instead of creating a new one.
6868
"""
@@ -79,7 +79,7 @@ class Environment(BaseModel):
7979

8080
@model_serializer(mode="wrap")
8181
def serialize_model(self, handler):
82-
optional_fields = set(["environment_id", "network", "sources"])
82+
optional_fields = set(["id", "network", "sources"])
8383
serialized = handler(self)
8484
m = {}
8585

0 commit comments

Comments
 (0)