Class: Aws::LexRuntimeV2::Types::SessionState

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb

Overview

Note:

When making an API call, you may pass SessionState data as a hash:

{
  dialog_action: {
    type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
    slot_to_elicit: "NonEmptyString",
    slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
  },
  intent: {
    name: "NonEmptyString", # required
    slots: {
      "NonEmptyString" => {
        value: {
          original_value: "NonEmptyString",
          interpreted_value: "NonEmptyString", # required
          resolved_values: ["NonEmptyString"],
        },
        shape: "Scalar", # accepts Scalar, List
        values: [
          {
            # recursive Slot
          },
        ],
      },
    },
    state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
    confirmation_state: "Confirmed", # accepts Confirmed, Denied, None
  },
  active_contexts: [
    {
      name: "ActiveContextName", # required
      time_to_live: { # required
        time_to_live_in_seconds: 1, # required
        turns_to_live: 1, # required
      },
      context_attributes: { # required
        "ParameterName" => "Text",
      },
    },
  ],
  session_attributes: {
    "NonEmptyString" => "String",
  },
  originating_request_id: "NonEmptyString",
}

The state of the user's session with Amazon Lex V2.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#active_contextsArray<Types::ActiveContext>

One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.

Returns:



1756
1757
1758
1759
1760
1761
1762
1763
1764
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1756

class SessionState < Struct.new(
  :dialog_action,
  :intent,
  :active_contexts,
  :session_attributes,
  :originating_request_id)
  SENSITIVE = []
  include Aws::Structure
end

#dialog_actionTypes::DialogAction

The next step that Amazon Lex V2 should take in the conversation with a user.

Returns:



1756
1757
1758
1759
1760
1761
1762
1763
1764
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1756

class SessionState < Struct.new(
  :dialog_action,
  :intent,
  :active_contexts,
  :session_attributes,
  :originating_request_id)
  SENSITIVE = []
  include Aws::Structure
end

#intentTypes::Intent

The active intent that Amazon Lex V2 is processing.

Returns:



1756
1757
1758
1759
1760
1761
1762
1763
1764
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1756

class SessionState < Struct.new(
  :dialog_action,
  :intent,
  :active_contexts,
  :session_attributes,
  :originating_request_id)
  SENSITIVE = []
  include Aws::Structure
end

#originating_request_idString

Returns:

  • (String)


1756
1757
1758
1759
1760
1761
1762
1763
1764
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1756

class SessionState < Struct.new(
  :dialog_action,
  :intent,
  :active_contexts,
  :session_attributes,
  :originating_request_id)
  SENSITIVE = []
  include Aws::Structure
end

#session_attributesHash<String,String>

Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.

Returns:

  • (Hash<String,String>)


1756
1757
1758
1759
1760
1761
1762
1763
1764
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1756

class SessionState < Struct.new(
  :dialog_action,
  :intent,
  :active_contexts,
  :session_attributes,
  :originating_request_id)
  SENSITIVE = []
  include Aws::Structure
end