Module Values.SlotSource

Identifies the version of a specific slot.

Sourcetype nonrec t = {
  1. name : SlotName.t;
    (*

    The name of the slot.

    *)
  2. description : Description.t option;
    (*

    A description of the slot.

    *)
  3. slotConstraint : SlotConstraint.t;
    (*

    Specifies whether the slot is required or optional.

    *)
  4. slotType : CustomOrBuiltinSlotTypeName.t option;
    (*

    The type of the slot, either a custom slot type that you defined or one of the built-in slot types.

    *)
  5. slotTypeVersion : Version.t option;
    (*

    The version of the slot type.

    *)
  6. valueElicitationPrompt : Prompt.t option;
    (*

    The prompt that Amazon Lex uses to elicit the slot value from the user.

    *)
  7. priority : Priority.t option;
    (*

    Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.

    *)
  8. sampleUtterances : SlotUtteranceList.t option;
    (*

    If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.

    *)
  9. responseCard : ResponseCard.t option;
    (*

    A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.

    *)
  10. obfuscationSetting : ObfuscationSetting.t option;
    (*

    Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .

    *)
  11. defaultValueSpec : SlotDefaultValueSpec.t option;
    (*

    A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?slotType:??? -> ?slotTypeVersion:??? -> ?valueElicitationPrompt:??? -> ?priority:??? -> ?sampleUtterances:??? -> ?responseCard:??? -> ?obfuscationSetting:??? -> ?defaultValueSpec:??? -> name:SlotName.t -> slotConstraint:SlotConstraint.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Priority.t | `List of [> `String of Utterance.t ] list | `String of SlotName.t | `Structure of (string * [> `Integer of PromptMaxAttempts.t | `List of [> `Structure of (string * [> `Enum of string | `Integer of GroupNumber.t | `String of ContentString.t ]) list ] list | `String of ResponseCard.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t