libdcm

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(m string) (confirm bool, err error)

func ConfirmWithHelp

func ConfirmWithHelp(m, help string) (confirm bool, err error)

func Multilines

func Multilines(prompt string) []string

func SelectMultipleStringArrays

func SelectMultipleStringArrays(continuePrompt, multiSelectPrompt, help string, choices ...string) (target [][]string, err error)

func SelectMultipleStrings

func SelectMultipleStrings(continuePrompt, multiSelectPrompt, help string, choices ...string) ([]string, error)

Types

type DomainContextMetadata

type DomainContextMetadata struct {
	Version                  int      `json:"version"`
	ExportVersion            string   `json:"exportVersion" survey:"exportVersion"`
	Model                    *string  `json:"model" survey:"model"`
	ModelMinConfidence       float64  `json:"modelMinConfidence" survey:"modelMinConfidence"`
	AnswerModel              *string  `json:"answerModel" survey:"answerModel"`
	AnswerModelMinConfidence float64  `json:"answerModelMinConfidence" survey:"answerModelMinConfidence"`
	Type                     string   `json:"type" survey:"type"`
	Created                  *string  `json:"created"`
	Intents                  []Intent `json:"intents" survey:"intents"`
}

type Entities

type Entities []Entity

func (Entities) Names

func (es Entities) Names() []string

func (Entities) Promptable

func (es Entities) Promptable() Entities

type Entity

type Entity struct {
	Name           string   `json:"name" survey:"name"`
	Type           string   `json:"type" survey:"type"`
	FillPolicy     []string `json:"fillPolicy" survey:"fillPolicy"`
	TTL            TTL      `json:"ttl" survey:"ttl"`
	UseFromSession bool     `json:"useFromSession" survey:"useFromSession"`
	Mappable       bool     `json:"mappable" survey:"mappable"`
}

type Error

type Error struct {
	Code            int        `json:"errorCode" survey:"errorCode"`
	MatchesEntities []string   `json:"matchesEntities" survey:"matchesEntities"`
	Messages        [][]string `json:"messages" survey:"messages"`
}

type Intent

type Intent struct {
	Name                string     `json:"name" survey:"name"`
	TTL                 TTL        `json:"ttl" survey:"ttl"`
	RequiredEntities    [][]string `json:"requiredEntities" survey:"requiredEntities"`
	EntityFiller        string     `json:"entityFiller" survey:"entityFiller"`
	FallbackToNoSession bool       `json:"fallbackToNoSession" survey:"fallbackToNoSession"`
	Entities            []Entity   `json:"entities" survey:"entities"`
	Prompts             []Prompt   `json:"prompts" survey:"prompts"`
	RequiredTokens      []string   `json:"requiredTokens" survey:"requiredTokens"`
	Errors              []Error    `json:"errors" survey:"errors"`
}

type Prompt

type Prompt struct {
	Entities []string `json:"entities" survey:"entities"`
	Messages []string `json:"messages" survey:"messages"`
}

type TTL

type TTL struct {
	Interactions int `json:"interactions" survey:"interactions"`
	Minutes      int `json:"minutes" survey:"minutes"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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