import "github.com/dueros/bot-sdk-go/bot/model"
dialog.go intent.go request.go response.go session.go ssml_builder.go
type Session struct {
// contains filtered or unexported fields
}
func NewSession(data data.Session) *Session
func (*Session) GetAttribute
func (this *Session) GetAttribute(key string) string
获取session中对应字段的值
func (this *Session) GetData() data.Session
func (this *Session) GetId() string
获取session id
func (this *Session) IsNew() bool
当前session是否是新的
func (*Session) SetAttribute
func (this *Session) SetAttribute(key, value string)
设置session中对应字段的值
Generated by godoc2md