List Sessions
| bedrockagentcore_list_sessions | R Documentation |
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¶
bedrockagentcore_list_sessions(memoryId, actorId, maxResults, nextToken,
filter)
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. |
maxResults |
The maximum number of results to return in a single call. The default value is 20. |
nextToken |
The 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. |
filter |
Filter 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"
)
Request syntax¶
svc$list_sessions(
memoryId = "string",
actorId = "string",
maxResults = 123,
nextToken = "string",
filter = list(
eventFilter = "HAS_EVENTS"
)
)