Skip to content

Batch Update Memory Records

bedrockagentcore_batch_update_memory_records R Documentation

Updates multiple memory records with custom content in a single batch operation within the specified memory

Description

Updates multiple memory records with custom content in a single batch operation within the specified memory.

Usage

bedrockagentcore_batch_update_memory_records(memoryId, records)

Arguments

memoryId

[required] The unique ID of the memory resource where records will be updated.

records

[required] A list of memory record update inputs to be processed in the batch operation.

Value

A list with the following syntax:

list(
  successfulRecords = list(
    list(
      memoryRecordId = "string",
      status = "SUCCEEDED"|"FAILED",
      requestIdentifier = "string",
      errorCode = 123,
      errorMessage = "string"
    )
  ),
  failedRecords = list(
    list(
      memoryRecordId = "string",
      status = "SUCCEEDED"|"FAILED",
      requestIdentifier = "string",
      errorCode = 123,
      errorMessage = "string"
    )
  )
)

Request syntax

svc$batch_update_memory_records(
  memoryId = "string",
  records = list(
    list(
      memoryRecordId = "string",
      timestamp = as.POSIXct(
        "2015-01-01"
      ),
      content = list(
        text = "string"
      ),
      namespaces = list(
        "string"
      ),
      memoryStrategyId = "string",
      metadata = list(
        list(
          stringValue = "string",
          stringListValue = list(
            "string"
          ),
          numberValue = 123.0,
          dateTimeValue = as.POSIXct(
            "2015-01-01"
          )
        )
      )
    )
  )
)