import "github.com/dueros/bot-sdk-go/bot/model"
- type Intent
- func NewIntent(intent data.Intent) *Intent
- func (this *Intent) GetData() data.Intent
- func (this *Intent) GetSlot(name string) *data.Slot
- func (this *Intent) GetSlotStatus(name string) string
- func (this *Intent) GetSlotValue(name string) string
- func (this *Intent) SetSlotValue(name string, value string) bool
dialog.go intent.go request.go response.go session.go ssml_builder.go
type Intent struct {
Name string
ConfirmationStatus string
// contains filtered or unexported fields
}
func NewIntent(intent data.Intent) *Intent
func (this *Intent) GetData() data.Intent
func (this *Intent) GetSlot(name string) *data.Slot
根据槽位名获取槽位
func (*Intent) GetSlotStatus
func (this *Intent) GetSlotStatus(name string) string
根据槽位名获取槽位对应的状态
func (*Intent) GetSlotValue
func (this *Intent) GetSlotValue(name string) string
根据槽位名获取槽位对应的值
func (*Intent) SetSlotValue
func (this *Intent) SetSlotValue(name string, value string) bool
设置槽位的值
Generated by godoc2md