rasa

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RasaMessage

type RasaMessage struct {
	Text   string                 `json:"text"`
	Image  string                 `json:"image"`
	Custom map[string]interface{} `json:"custom"`
}

type RasaResponse

type RasaResponse struct {
	Messages []RasaMessage
}

func NewRasaResponseFromRaw

func NewRasaResponseFromRaw(rawRasaResponse RawRasaResponse) RasaResponse

func NewRasaResponseSingleMessage

func NewRasaResponseSingleMessage(text string) RasaResponse

func (*RasaResponse) GetCustom

func (response *RasaResponse) GetCustom() map[string]interface{}

func (*RasaResponse) GetText

func (response *RasaResponse) GetText() string

func (*RasaResponse) HasCustom

func (response *RasaResponse) HasCustom() bool

func (*RasaResponse) IsEmpty

func (response *RasaResponse) IsEmpty() bool

type RawRasaResponse

type RawRasaResponse []struct {
	Text   string                 `json:"text"`
	Image  string                 `json:"image"`
	Custom map[string]interface{} `json:"custom"`
}

Jump to

Keyboard shortcuts

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