You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vertexai/_genai/types/common.py
+44-23Lines changed: 44 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -8778,6 +8778,10 @@ class CreateAgentEngineSessionConfig(_common.BaseModel):
8778
8778
default=None,
8779
8779
description="""Optional. Timestamp of when this resource is considered expired. This is *always* provided on output, regardless of what `expiration` was sent on input.""",
8780
8780
)
8781
+
labels: Optional[dict[str, str]] = Field(
8782
+
default=None,
8783
+
description="""Optional. The labels with user-defined metadata to organize your Sessions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.""",
8784
+
)
8781
8785
8782
8786
8783
8787
class CreateAgentEngineSessionConfigDict(TypedDict, total=False):
@@ -8803,6 +8807,9 @@ class CreateAgentEngineSessionConfigDict(TypedDict, total=False):
8803
8807
expire_time: Optional[datetime.datetime]
8804
8808
"""Optional. Timestamp of when this resource is considered expired. This is *always* provided on output, regardless of what `expiration` was sent on input."""
8805
8809
8810
+
labels: Optional[dict[str, str]]
8811
+
"""Optional. The labels with user-defined metadata to organize your Sessions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels."""
@@ -8846,32 +8853,36 @@ class _CreateAgentEngineSessionRequestParametersDict(TypedDict, total=False):
8846
8853
class Session(_common.BaseModel):
8847
8854
"""A session."""
8848
8855
8849
-
create_time: Optional[datetime.datetime] = Field(
8850
-
default=None,
8851
-
description="""Output only. Timestamp when the session was created.""",
8852
-
)
8853
-
display_name: Optional[str] = Field(
8854
-
default=None, description="""Optional. The display name of the session."""
8855
-
)
8856
8856
expire_time: Optional[datetime.datetime] = Field(
8857
8857
default=None,
8858
8858
description="""Optional. Timestamp of when this session is considered expired. This is *always* provided on output, regardless of what was sent on input.""",
8859
8859
)
8860
+
ttl: Optional[str] = Field(
8861
+
default=None, description="""Optional. Input only. The TTL for this session."""
8862
+
)
8860
8863
name: Optional[str] = Field(
8861
8864
default=None,
8862
8865
description="""Identifier. The resource name of the session. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.""",
8863
8866
)
8864
-
session_state: Optional[dict[str, Any]] = Field(
8867
+
create_time: Optional[datetime.datetime] = Field(
8865
8868
default=None,
8866
-
description="""Optional. Session specific memory which stores key conversation points.""",
8867
-
)
8868
-
ttl: Optional[str] = Field(
8869
-
default=None, description="""Optional. Input only. The TTL for this session."""
8869
+
description="""Output only. Timestamp when the session was created.""",
8870
8870
)
8871
8871
update_time: Optional[datetime.datetime] = Field(
8872
8872
default=None,
8873
8873
description="""Output only. Timestamp when the session was updated.""",
8874
8874
)
8875
+
display_name: Optional[str] = Field(
8876
+
default=None, description="""Optional. The display name of the session."""
8877
+
)
8878
+
labels: Optional[dict[str, str]] = Field(
8879
+
default=None,
8880
+
description="""The labels with user-defined metadata to organize your Sessions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.""",
8881
+
)
8882
+
session_state: Optional[dict[str, Any]] = Field(
8883
+
default=None,
8884
+
description="""Optional. Session specific memory which stores key conversation points.""",
8885
+
)
8875
8886
user_id: Optional[str] = Field(
8876
8887
default=None,
8877
8888
description="""Required. Immutable. String id provided by the user""",
@@ -8881,27 +8892,30 @@ class Session(_common.BaseModel):
8881
8892
class SessionDict(TypedDict, total=False):
8882
8893
"""A session."""
8883
8894
8884
-
create_time: Optional[datetime.datetime]
8885
-
"""Output only. Timestamp when the session was created."""
8886
-
8887
-
display_name: Optional[str]
8888
-
"""Optional. The display name of the session."""
8889
-
8890
8895
expire_time: Optional[datetime.datetime]
8891
8896
"""Optional. Timestamp of when this session is considered expired. This is *always* provided on output, regardless of what was sent on input."""
8892
8897
8898
+
ttl: Optional[str]
8899
+
"""Optional. Input only. The TTL for this session."""
8900
+
8893
8901
name: Optional[str]
8894
8902
"""Identifier. The resource name of the session. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'."""
8895
8903
8896
-
session_state: Optional[dict[str, Any]]
8897
-
"""Optional. Session specific memory which stores key conversation points."""
8898
-
8899
-
ttl: Optional[str]
8900
-
"""Optional. Input only. The TTL for this session."""
8904
+
create_time: Optional[datetime.datetime]
8905
+
"""Output only. Timestamp when the session was created."""
8901
8906
8902
8907
update_time: Optional[datetime.datetime]
8903
8908
"""Output only. Timestamp when the session was updated."""
8904
8909
8910
+
display_name: Optional[str]
8911
+
"""Optional. The display name of the session."""
8912
+
8913
+
labels: Optional[dict[str, str]]
8914
+
"""The labels with user-defined metadata to organize your Sessions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels."""
8915
+
8916
+
session_state: Optional[dict[str, Any]]
8917
+
"""Optional. Session specific memory which stores key conversation points."""
8918
+
8905
8919
user_id: Optional[str]
8906
8920
"""Required. Immutable. String id provided by the user"""
8907
8921
@@ -9240,6 +9254,10 @@ class UpdateAgentEngineSessionConfig(_common.BaseModel):
9240
9254
default=None,
9241
9255
description="""Optional. Timestamp of when this resource is considered expired. This is *always* provided on output, regardless of what `expiration` was sent on input.""",
9242
9256
)
9257
+
labels: Optional[dict[str, str]] = Field(
9258
+
default=None,
9259
+
description="""Optional. The labels with user-defined metadata to organize your Sessions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.""",
9260
+
)
9243
9261
update_mask: Optional[str] = Field(
9244
9262
default=None,
9245
9263
description="""The update mask to apply. For the `FieldMask` definition, see
@@ -9273,6 +9291,9 @@ class UpdateAgentEngineSessionConfigDict(TypedDict, total=False):
9273
9291
expire_time: Optional[datetime.datetime]
9274
9292
"""Optional. Timestamp of when this resource is considered expired. This is *always* provided on output, regardless of what `expiration` was sent on input."""
9275
9293
9294
+
labels: Optional[dict[str, str]]
9295
+
"""Optional. The labels with user-defined metadata to organize your Sessions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels."""
9296
+
9276
9297
update_mask: Optional[str]
9277
9298
"""The update mask to apply. For the `FieldMask` definition, see
0 commit comments