Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnswerGenerator ¶
AnswerGenerator should be able to give back a slice of answers when given a question.
type AnswerPicker ¶
AnswerPicker is in charge of picking a response out of a list of answers.
type Eliza ¶
type Eliza struct {
// contains filtered or unexported fields
}
func NewEliza ¶
func NewEliza(generator AnswerGenerator, picker AnswerPicker) *Eliza
NewEliza creates a new Eliza instance with teh given answer generator and answer picker.
Click to show internal directories.
Click to hide internal directories.