@@ -5330,6 +5330,30 @@ class MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSourceDict
53305330]
53315331
53325332
5333+ class MemoryTopicId (_common .BaseModel ):
5334+ """The topic ID for a memory."""
5335+
5336+ custom_memory_topic_label : Optional [str ] = Field (
5337+ default = None , description = """Optional. The custom memory topic label."""
5338+ )
5339+ managed_memory_topic : Optional [ManagedTopicEnum ] = Field (
5340+ default = None , description = """Optional. The managed memory topic."""
5341+ )
5342+
5343+
5344+ class MemoryTopicIdDict (TypedDict , total = False ):
5345+ """The topic ID for a memory."""
5346+
5347+ custom_memory_topic_label : Optional [str ]
5348+ """Optional. The custom memory topic label."""
5349+
5350+ managed_memory_topic : Optional [ManagedTopicEnum ]
5351+ """Optional. The managed memory topic."""
5352+
5353+
5354+ MemoryTopicIdOrDict = Union [MemoryTopicId , MemoryTopicIdDict ]
5355+
5356+
53335357class MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemory (
53345358 _common .BaseModel
53355359):
@@ -5338,6 +5362,10 @@ class MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemory(
53385362 fact : Optional [str ] = Field (
53395363 default = None , description = """Required. The fact to generate a memory from."""
53405364 )
5365+ topics : Optional [list [MemoryTopicId ]] = Field (
5366+ default = None ,
5367+ description = """Optional. The list of topics that the memory should be associated with. For example, use `custom_memory_topic_label = "jargon"` if the extracted memory is an example of memory extraction for the custom topic `jargon`.""" ,
5368+ )
53415369
53425370
53435371class MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemoryDict (
@@ -5348,6 +5376,9 @@ class MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemoryDict(
53485376 fact : Optional [str ]
53495377 """Required. The fact to generate a memory from."""
53505378
5379+ topics : Optional [list [MemoryTopicIdDict ]]
5380+ """Optional. The list of topics that the memory should be associated with. For example, use `custom_memory_topic_label = "jargon"` if the extracted memory is an example of memory extraction for the custom topic `jargon`."""
5381+
53515382
53525383MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemoryOrDict = Union [
53535384 MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemory ,
@@ -6432,6 +6463,9 @@ class AgentEngineMemoryConfig(_common.BaseModel):
64326463 default = None ,
64336464 description = """Optional. Input only. If true, no revision will be created for this request.""" ,
64346465 )
6466+ topics : Optional [list [MemoryTopicId ]] = Field (
6467+ default = None , description = """Optional. The topics of the memory."""
6468+ )
64356469
64366470
64376471class AgentEngineMemoryConfigDict (TypedDict , total = False ):
@@ -6466,6 +6500,9 @@ class AgentEngineMemoryConfigDict(TypedDict, total=False):
64666500 disable_memory_revisions : Optional [bool ]
64676501 """Optional. Input only. If true, no revision will be created for this request."""
64686502
6503+ topics : Optional [list [MemoryTopicIdDict ]]
6504+ """Optional. The topics of the memory."""
6505+
64696506
64706507AgentEngineMemoryConfigOrDict = Union [
64716508 AgentEngineMemoryConfig , AgentEngineMemoryConfigDict
@@ -6573,6 +6610,9 @@ class Memory(_common.BaseModel):
65736610 default = None ,
65746611 description = """Output only. Timestamp when this Memory was most recently updated.""" ,
65756612 )
6613+ topics : Optional [list [MemoryTopicId ]] = Field (
6614+ default = None , description = """Optional. The Topics of the Memory."""
6615+ )
65766616
65776617
65786618class MemoryDict (TypedDict , total = False ):
@@ -6614,6 +6654,9 @@ class MemoryDict(TypedDict, total=False):
66146654 update_time : Optional [datetime .datetime ]
66156655 """Output only. Timestamp when this Memory was most recently updated."""
66166656
6657+ topics : Optional [list [MemoryTopicIdDict ]]
6658+ """Optional. The Topics of the Memory."""
6659+
66176660
66186661MemoryOrDict = Union [Memory , MemoryDict ]
66196662
@@ -6840,6 +6883,10 @@ class GenerateMemoriesRequestDirectMemoriesSourceDirectMemory(_common.BaseModel)
68406883 default = None ,
68416884 description = """Required. The fact to consolidate with existing memories.""" ,
68426885 )
6886+ topics : Optional [list [MemoryTopicId ]] = Field (
6887+ default = None ,
6888+ description = """Optional. The topics that the consolidated memories should be associated with.""" ,
6889+ )
68436890
68446891
68456892class GenerateMemoriesRequestDirectMemoriesSourceDirectMemoryDict (
@@ -6850,6 +6897,9 @@ class GenerateMemoriesRequestDirectMemoriesSourceDirectMemoryDict(
68506897 fact : Optional [str ]
68516898 """Required. The fact to consolidate with existing memories."""
68526899
6900+ topics : Optional [list [MemoryTopicIdDict ]]
6901+ """Optional. The topics that the consolidated memories should be associated with."""
6902+
68536903
68546904GenerateMemoriesRequestDirectMemoriesSourceDirectMemoryOrDict = Union [
68556905 GenerateMemoriesRequestDirectMemoriesSourceDirectMemory ,
@@ -7683,6 +7733,9 @@ class UpdateAgentEngineMemoryConfig(_common.BaseModel):
76837733 default = None ,
76847734 description = """Optional. Input only. If true, no revision will be created for this request.""" ,
76857735 )
7736+ topics : Optional [list [MemoryTopicId ]] = Field (
7737+ default = None , description = """Optional. The topics of the memory."""
7738+ )
76867739 update_mask : Optional [str ] = Field (
76877740 default = None ,
76887741 description = """The update mask to apply. For the `FieldMask` definition, see
@@ -7722,6 +7775,9 @@ class UpdateAgentEngineMemoryConfigDict(TypedDict, total=False):
77227775 disable_memory_revisions : Optional [bool ]
77237776 """Optional. Input only. If true, no revision will be created for this request."""
77247777
7778+ topics : Optional [list [MemoryTopicIdDict ]]
7779+ """Optional. The topics of the memory."""
7780+
77257781 update_mask : Optional [str ]
77267782 """The update mask to apply. For the `FieldMask` definition, see
77277783 https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask."""
0 commit comments