Skip to content

Latest commit

 

History

History
101 lines (53 loc) · 2.51 KB

intent.md

File metadata and controls

101 lines (53 loc) · 2.51 KB

model

import "github.com/dueros/bot-sdk-go/bot/model"

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 (*Intent) GetData

func (this *Intent) GetData() data.Intent

func (*Intent) GetSlot

func (this *Intent) GetSlot(name string) *data.Slot

根据槽位名获取槽位

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