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
+81Lines changed: 81 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -280,6 +280,17 @@ class AgentServerMode(_common.CaseInSensitiveEnum):
280
280
"""Experimental agent server mode. This mode contains experimental features."""
281
281
282
282
283
+
class MemoryType(_common.CaseInSensitiveEnum):
284
+
"""Represents the type of the memory. If not set, the `NATURAL_LANGUAGE_COLLECTION` type is used. If `STRUCTURED_COLLECTION` or `STRUCTURED_PROFILE` is used, then `structured_data` must be provided."""
@@ -8329,6 +8368,14 @@ class Memory(_common.BaseModel):
8329
8368
default=None,
8330
8369
description="""Output only. Timestamp when this Memory was most recently updated.""",
8331
8370
)
8371
+
memory_type: Optional[MemoryType] = Field(
8372
+
default=None,
8373
+
description="""Optional. Represents the type of the memory. If not set, the `NATURAL_LANGUAGE_COLLECTION` type is used. If `STRUCTURED_COLLECTION` or `STRUCTURED_PROFILE` is used, then `structured_data` must be provided.""",
description="""Optional. Represents the structured content of the memory.""",
8378
+
)
8332
8379
8333
8380
8334
8381
class MemoryDict(TypedDict, total=False):
@@ -8379,6 +8426,12 @@ class MemoryDict(TypedDict, total=False):
8379
8426
update_time: Optional[datetime.datetime]
8380
8427
"""Output only. Timestamp when this Memory was most recently updated."""
8381
8428
8429
+
memory_type: Optional[MemoryType]
8430
+
"""Optional. Represents the type of the memory. If not set, the `NATURAL_LANGUAGE_COLLECTION` type is used. If `STRUCTURED_COLLECTION` or `STRUCTURED_PROFILE` is used, then `structured_data` must be provided."""
0 commit comments