Search
Preparing search index...
The search index is not available
Botpress SDK
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"botpress/sdk"
NLU
Engine
Class Engine
Hierarchy
Engine
Index
Constructors
constructor
Properties
cancel
Training
detect
Language
has
Model
has
Model
For
Lang
load
Model
predict
train
get
Health
get
Languages
initialize
Methods
compute
Model
Hash
Constructors
constructor
new
Engine
(
botId
:
string
, logger
:
Logger
)
:
Engine
Parameters
botId:
string
logger:
Logger
Returns
Engine
Properties
cancel
Training
cancel
Training
:
function
Type declaration
(
trainSessionId
:
string
)
:
Promise
<
void
>
Parameters
trainSessionId:
string
Returns
Promise
<
void
>
detect
Language
detect
Language
:
function
Type declaration
(
sentence
:
string
)
:
Promise
<
string
>
Parameters
sentence:
string
Returns
Promise
<
string
>
has
Model
has
Model
:
function
Type declaration
(
lang
:
string
, hash
:
string
)
:
boolean
Parameters
lang:
string
hash:
string
Returns
boolean
has
Model
For
Lang
has
Model
For
Lang
:
function
Type declaration
(
lang
:
string
)
:
boolean
Parameters
lang:
string
Returns
boolean
load
Model
load
Model
:
function
Type declaration
(
m
:
Model
)
:
Promise
<
void
>
Parameters
m:
Model
Returns
Promise
<
void
>
predict
predict
:
function
Type declaration
(
t
:
string
, ctx
:
string
[]
, language
:
string
)
:
Promise
<
EventUnderstanding
>
Parameters
t:
string
ctx:
string
[]
language:
string
Returns
Promise
<
EventUnderstanding
>
train
train
:
function
Type declaration
(
trainSessionId
:
string
, intentDefs
:
IntentDefinition
[]
, entityDefs
:
EntityDefinition
[]
, languageCode
:
string
, options
:
TrainingOptions
)
:
Promise
<
Model
|
undefined
>
Parameters
trainSessionId:
string
intentDefs:
IntentDefinition
[]
entityDefs:
EntityDefinition
[]
languageCode:
string
options:
TrainingOptions
Returns
Promise
<
Model
|
undefined
>
Static
get
Health
get
Health
:
function
Type declaration
(
)
:
Health
Returns
Health
Static
get
Languages
get
Languages
:
function
Type declaration
(
)
:
string
[]
Returns
string
[]
Static
initialize
initialize
:
function
Type declaration
(
config
:
Config
, logger
:
Logger
)
:
Promise
<
void
>
Parameters
config:
Config
logger:
Logger
Returns
Promise
<
void
>
Methods
compute
Model
Hash
compute
Model
Hash
(
intents
:
IntentDefinition
[]
, entities
:
EntityDefinition
[]
, lang
:
string
)
:
string
Parameters
intents:
IntentDefinition
[]
entities:
EntityDefinition
[]
lang:
string
Returns
string
Globals
"botpress/sdk"
IO
MLToolkit
NDU
NLU
bots
cms
config
dialog
distributed
events
experimental
ghost
http
kvs
notifications
realtime
security
users
workspaces
Engine
constructor
cancel
Training
detect
Language
has
Model
has
Model
For
Lang
load
Model
predict
train
get
Health
get
Languages
initialize
compute
Model
Hash
Config
Entity
Entity
Body
Entity
Def
Occurrence
Entity
Definition
Entity
Meta
Health
Intent
Intent
Definition
Language
Source
Logger
Model
Predictions
Slot
Slot
Definition
Training
Options
Training
Session
Entity
Type
Slot
Collection
Training
Status
Generated using
TypeDoc