Class: Aws::LexRuntimeV2::Types::StartConversationRequestEventStream

Inherits:
Enumerator
  • 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 StartConversationRequestEventStream data as a hash:

{
  configuration_event: {
    request_attributes: {
      "NonEmptyString" => "String",
    },
    response_content_type: "NonEmptyString", # required
    session_state: {
      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",
      runtime_hints: {
        slot_hints: {
          "Name" => {
            "Name" => {
              runtime_hint_values: [ # required
                {
                  phrase: "RuntimeHintPhrase", # required
                },
              ],
            },
          },
        },
      },
    },
    welcome_messages: [
      {
        content: "Text",
        content_type: "CustomPayload", # required, accepts CustomPayload, ImageResponseCard, PlainText, SSML
        image_response_card: {
          title: "AttachmentTitle", # required
          subtitle: "AttachmentTitle",
          image_url: "AttachmentUrl",
          buttons: [
            {
              text: "ButtonText", # required
              value: "ButtonValue", # required
            },
          ],
        },
      },
    ],
    disable_playback: false,
    event_id: "EventId",
    client_timestamp_millis: 1,
  },
  audio_input_event: {
    audio_chunk: "data",
    content_type: "NonEmptyString", # required
    event_id: "EventId",
    client_timestamp_millis: 1,
  },
  dtmf_input_event: {
    input_character: "DTMFRegex", # required
    event_id: "EventId",
    client_timestamp_millis: 1,
  },
  text_input_event: {
    text: "Text", # required
    event_id: "EventId",
    client_timestamp_millis: 1,
  },
  playback_completion_event: {
    event_id: "EventId",
    client_timestamp_millis: 1,
  },
  disconnection_event: {
    event_id: "EventId",
    client_timestamp_millis: 1,
  },
}

Represents a stream of events between your application and Amazon Lex V2.

EventStream is an Enumerator of Events. #event_types #=> Array, returns all modeled event types in the stream

Instance Method Summary collapse

Instance Method Details

#event_typesObject



2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 2322

def event_types
  [
    :configuration_event,
    :audio_input_event,
    :dtmf_input_event,
    :text_input_event,
    :playback_completion_event,
    :disconnection_event
  ]
end