Documentation
¶
Index ¶
- func Confirm(m string) (confirm bool, err error)
- func ConfirmWithHelp(m, help string) (confirm bool, err error)
- func Multilines(prompt string) []string
- func SelectMultipleStringArrays(continuePrompt, multiSelectPrompt, help string, choices ...string) (target [][]string, err error)
- func SelectMultipleStrings(continuePrompt, multiSelectPrompt, help string, choices ...string) ([]string, error)
- type DomainContextMetadata
- type Entities
- type Entity
- type Error
- type Intent
- type Prompt
- type TTL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmWithHelp ¶
func Multilines ¶
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 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 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"`
}
Click to show internal directories.
Click to hide internal directories.