PutSessionRequest
import type { PutSessionRequest } from "https://aws-api.deno.dev/v0.3/services/lexruntimev2.ts?docs=full";
interface PutSessionRequest {
botAliasId: string;
botId: string;
localeId: string;
messages?: Message[] | null;
requestAttributes?: {} | null;
[key: string]: string | null | undefined;
responseContentType?: string | null;
sessionId: string;
sessionState: SessionState;
}§Properties
§
requestAttributes?: {} | null
[src][key: string]: string | null | undefined;
Request-specific information passed between Amazon Lex V2 and the client application.
The namespace x-amz-lex:
is reserved for special attributes.
Don't create any request attributes with the prefix x-amz-lex:
.
§
responseContentType?: string | null
[src]The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter.
- If the value is
text/plain; charset=utf-8
, Amazon Lex V2 returns text in the response.
§
sessionState: SessionState
[src]Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation with the user.