public final class Slot extends Object
A Slot is part of an Intent that provides arguments need to process the intent
This is based on a predefined domain definition, or schema.
If the user said, "place a reservation for two," with the intent schema:
{
"intents":[
{
"intent":"ReservationIntent",
"slots":[
{"name":"Seats", "type":"NUMBER"},
]
}
]
}
A ReservationIntent Intent would contain a Seats Slot with the value of
"2".
A Slot can be null if:
Slot, or no Slots are defined for the Intent. Example:
"place a reservation tonight"Slot is specified in the domain definition, but the user did not provide
enough information in their request. Example: "place a reservation."Intent.getSlots(),
Intent.getSlot(String)| Modifier and Type | Class and Description |
|---|---|
static class |
Slot.Builder
Builder used to construct a new
Slot. |
| Modifier and Type | Method and Description |
|---|---|
static Slot.Builder |
builder()
Returns a new builder instance used to construct a new
Slot. |
String |
getName()
Returns the name of this
Slot. |
String |
getValue()
Returns the value of this
Slot. |
public static Slot.Builder builder()
Slot.public String getName()
Slot.public String getValue()
Slot.null if undefinedCopyright © 2016. All rights reserved.