Skip to content

End Session

bedrockagentruntime_end_session R Documentation

Ends the session

Description

Ends the session. After you end a session, you can still access its content but you can’t add to it. To delete the session and it's content, you use the DeleteSession API operation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Usage

bedrockagentruntime_end_session(sessionIdentifier)

Arguments

sessionIdentifier

[required] The unique identifier for the session to end. You can specify either the session's sessionId or its Amazon Resource Name (ARN).

Value

A list with the following syntax:

list(
  sessionArn = "string",
  sessionId = "string",
  sessionStatus = "ACTIVE"|"EXPIRED"|"ENDED"
)

Request syntax

svc$end_session(
  sessionIdentifier = "string"
)