Documentation
¶
Index ¶
- type Cognitive
- func (watson *Cognitive) CreateNewContext(c *context.Context, info neo.PersonInfo) *neo.Context
- func (watson *Cognitive) GetProtoResponse(c *neo.Context, in *neo.Input) (*neo.Output, error)
- func (watson *Cognitive) NewInput(opts *assistantv2.MessageOptions, data neo.InputData) *neo.Input
- func (watson *Cognitive) NewInputText(text string, c *neo.Context, intents []neo.Intent, entities []neo.Entity) (*neo.Input, *assistantv2.MessageOptions)
- func (watson *Cognitive) NewOutput(c *neo.Context, r *assistantv2.MessageResponse) *neo.Output
- func (watson *Cognitive) OnContextIsDone(callback func(c *neo.Context))
- type NewCognitiveParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cognitive ¶
type Cognitive struct {
// contains filtered or unexported fields
}
func NewCognitive ¶
func NewCognitive(params NewCognitiveParams) (*Cognitive, error)
func (*Cognitive) CreateNewContext ¶
func (*Cognitive) GetProtoResponse ¶
func (*Cognitive) NewInput ¶
func (watson *Cognitive) NewInput(opts *assistantv2.MessageOptions, data neo.InputData) *neo.Input
func (*Cognitive) NewInputText ¶
func (*Cognitive) NewOutput ¶
func (watson *Cognitive) NewOutput(c *neo.Context, r *assistantv2.MessageResponse) *neo.Output
func (*Cognitive) OnContextIsDone ¶
Click to show internal directories.
Click to hide internal directories.