watson

package
v0.0.0-...-d110d06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (watson *Cognitive) CreateNewContext(c *context.Context, info neo.PersonInfo) *neo.Context

func (*Cognitive) GetProtoResponse

func (watson *Cognitive) GetProtoResponse(c *neo.Context, in *neo.Input) (*neo.Output, error)

func (*Cognitive) NewInput

func (watson *Cognitive) NewInput(opts *assistantv2.MessageOptions, data neo.InputData) *neo.Input

func (*Cognitive) NewInputText

func (watson *Cognitive) NewInputText(text string, c *neo.Context, intents []neo.Intent, entities []neo.Entity) (*neo.Input, *assistantv2.MessageOptions)

func (*Cognitive) NewOutput

func (watson *Cognitive) NewOutput(c *neo.Context, r *assistantv2.MessageResponse) *neo.Output

func (*Cognitive) OnContextIsDone

func (watson *Cognitive) OnContextIsDone(callback func(c *neo.Context))

type NewCognitiveParams

type NewCognitiveParams struct {
	Url         string
	Username    string
	Password    string
	Version     string
	AssistantID string
	ApiKey      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL