Skip to content

Get Agent Memory

bedrockagentruntime_get_agent_memory R Documentation

Gets the sessions stored in the memory of the agent

Description

Gets the sessions stored in the memory of the agent.

Usage

bedrockagentruntime_get_agent_memory(agentAliasId, agentId, maxItems,
  memoryId, memoryType, nextToken)

Arguments

agentAliasId

[required] The unique identifier of an alias of an agent.

agentId

[required] The unique identifier of the agent to which the alias belongs.

maxItems

The maximum number of items to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

memoryId

[required] The unique identifier of the memory.

memoryType

[required] The type of memory.

nextToken

If the total number of results is greater than the maxItems value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

Value

A list with the following syntax:

list(
  memoryContents = list(
    list(
      sessionSummary = list(
        memoryId = "string",
        sessionExpiryTime = as.POSIXct(
          "2015-01-01"
        ),
        sessionId = "string",
        sessionStartTime = as.POSIXct(
          "2015-01-01"
        ),
        summaryText = "string"
      )
    )
  ),
  nextToken = "string"
)

Request syntax

svc$get_agent_memory(
  agentAliasId = "string",
  agentId = "string",
  maxItems = 123,
  memoryId = "string",
  memoryType = "SESSION_SUMMARY",
  nextToken = "string"
)