LexRuntimeV2Client

This section contains documentation for the Amazon Lex V2 Runtime V2 API operations.

Properties

Link copied to clipboard
abstract override val config: LexRuntimeV2Client.Config

LexRuntimeV2Client's configuration

Functions

Link copied to clipboard

Removes session information for a specified bot, alias, and user ID.

Link copied to clipboard
abstract suspend fun getSession(input: GetSessionRequest): GetSessionResponse

Returns session information for a specified bot, alias, and user.

Link copied to clipboard
abstract suspend fun <T> putSession(input: PutSessionRequest, block: suspend (PutSessionResponse) -> T): T

Creates a new session or modifies an existing session with an Amazon Lex V2 bot. Use this operation to enable your application to set the state of the bot.

Link copied to clipboard

Sends user input to Amazon Lex V2. Client applications use this API to send requests to Amazon Lex V2 at runtime. Amazon Lex V2 then interprets the user input using the machine learning model that it build for the bot.

Link copied to clipboard
abstract suspend fun <T> recognizeUtterance(input: RecognizeUtteranceRequest, block: suspend (RecognizeUtteranceResponse) -> T): T

Sends user input to Amazon Lex V2. You can send text or speech. Clients use this API to send text and audio requests to Amazon Lex V2 at runtime. Amazon Lex V2 interprets the user input using the machine learning model built for the bot.

Link copied to clipboard
abstract suspend fun <T> startConversation(input: StartConversationRequest, block: suspend (StartConversationResponse) -> T): T

Starts an HTTP/2 bidirectional event stream that enables you to send audio, text, or DTMF input in real time. After your application starts a conversation, users send input to Amazon Lex V2 as a stream of events. Amazon Lex V2 processes the incoming events and responds with streaming text or audio events.

Inherited functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard

Removes session information for a specified bot, alias, and user ID.

Link copied to clipboard
inline suspend fun LexRuntimeV2Client.getSession(crossinline block: GetSessionRequest.Builder.() -> Unit): GetSessionResponse

Returns session information for a specified bot, alias, and user.

Link copied to clipboard

Sends user input to Amazon Lex V2. Client applications use this API to send requests to Amazon Lex V2 at runtime. Amazon Lex V2 then interprets the user input using the machine learning model that it build for the bot.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.