Lists sessions in an AgentCore Memory resource based on specified criteria¶
Description¶
Lists sessions in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
Empty sessions are automatically deleted after one day.
To use this operation, you must have the bedrock-agentcore:ListSessions permission.
Usage¶
Arguments¶
-
memoryId[required] The identifier of the AgentCore Memory resource for which to list sessions.
-
actorId[required] The identifier of the actor for which to list sessions.
-
maxResultsThe maximum number of results to return in a single call. The default value is 20.
-
nextTokenThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
filterFilter criteria to apply when listing sessions.
Value¶
A list with the following syntax:
list(
sessionSummaries = list(
list(
sessionId = "string",
actorId = "string",
createdAt = as.POSIXct(
"2015-01-01"
)
)
),
nextToken = "string"
)