conversation

package
v0.0.0-...-82292ab Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Criteria

type Criteria struct {
	Checkin     date.Date
	CheckOut    date.Date
	Destination string
	NumPaxes    int
}

Criteria for search request

type Dialog

type Dialog interface {
	Convert(io.ReadCloser) (*Criteria, error)
	Send(criteria *Criteria) (io.ReadCloser, error)
	Speak(destination string, hotelName string, amount string, optionID string) ([]byte, error)
}

Dialog is a interface represent a dialog API NLP

type Intent

type Intent string

Intent represent a conversation intent

const (
	SEARCH Intent = "search"
	BOOK   Intent = "book"
)

We have 2 intents search and book

Jump to

Keyboard shortcuts

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