Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GetSessionResponse

import type { GetSessionResponse } from "https://aws-api.deno.dev/v0.3/services/lexruntimev2.ts?docs=full";
interface GetSessionResponse {
interpretations?: Interpretation[] | null;
messages?: Message[] | null;
sessionId?: string | null;
sessionState?: SessionState | null;
}

§Properties

§
interpretations?: Interpretation[] | null
[src]

A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.

Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.

§
messages?: Message[] | null
[src]

A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.

§
sessionId?: string | null
[src]

The identifier of the returned session.

§
sessionState?: SessionState | null
[src]

Represents the current state of the dialog between the user and the bot.

You can use this to determine the progress of the conversation and what the next action might be.