v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-132661,4471.5 MB
projects

Generate memories.

post/v1/{+parent}/memories:generate

Path parameters

parentstring required

Required. The resource name of the ReasoningEngine to generate memories for. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

Request body

disableConsolidationboolean

Optional. If true, generated memories will not be consolidated with existing memories; all generated memories will be added as new memories regardless of whether they are duplicates of or contradictory to existing memories. By default, memory consolidation is enabled.

revisionExpireTimestring google-datetime

Optional. Timestamp of when the revision is considered expired. If not set, the memory revision will be kept until manually deleted.

revisionLabelsobject

Optional. Labels to be applied to the generated memory revisions. For example, you can use this to label a revision with its data source.

metadataobject

Optional. User-provided metadata for the generated memories. This is not generated by Memory Bank.

scopeobject

Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If scope is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.

revisionTtlstring google-duration

Optional. The TTL for the revision. The expiration time is computed: now + TTL.

disableMemoryRevisionsboolean

Optional. If true, no revisions will be created for this request.

metadataMergeStrategy'METADATA_MERGE_STRATEGY_UNSPECIFIED' | 'OVERWRITE' | 'MERGE' | 'REQUIRE_EXACT_MATCH'

Optional. The strategy to use when applying metadata to existing memories.

Response

Successful response