yao/brain/brain.go
2022-05-25 20:33:33 +08:00

18 lines
414 B
Go

package brain
// NewBehaviors Returns the behaviors based on input words
func NewBehaviors(words string) (*Behaviors, error) {
resp, err := NPL(words)
if err != nil {
return nil, err
}
return resp.Behaviors, nil
}
// Run the behaviors
func (behaviors *Behaviors) Run() {}
// NPL the Natural language processing
func NPL(words string) (*Response, error) {
return &Response{Behaviors: &Behaviors{}}, nil
}