Skip to content

List Sessions

bedrockagentruntime_list_sessions R Documentation

Lists all sessions in your Amazon Web Services account

Description

Lists all sessions in your Amazon Web Services account. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Usage

bedrockagentruntime_list_sessions(maxResults, nextToken)

Arguments

maxResults

The maximum number of results 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.

nextToken

If the total number of results is greater than the maxResults 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(
  nextToken = "string",
  sessionSummaries = list(
    list(
      createdAt = as.POSIXct(
        "2015-01-01"
      ),
      lastUpdatedAt = as.POSIXct(
        "2015-01-01"
      ),
      sessionArn = "string",
      sessionId = "string",
      sessionStatus = "ACTIVE"|"EXPIRED"|"ENDED"
    )
  )
)

Request syntax

svc$list_sessions(
  maxResults = 123,
  nextToken = "string"
)