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.
-
maxItemsThe 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
nextTokenfield 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.
-
nextTokenIf the total number of results is greater than the maxItems value provided in the request, enter the token returned in the
nextTokenfield 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"
)