background image
C H A P T E R 1 8
Intelligent Assistant
18-22
Summary
// Optional. View template that defines task slip
taskslip :
myTaskSlipView
,
// internal use only - always put nil in this slot
score: nil,
// your additional slots and methods
...}
Action Template
18
// defines action words to Assistant
my_act := {
// string may be replaced in lexical parse
value:
string
, //Required.
// object type that this template creates
// must use this value or one descended from it
isa: 'dyna_user_action, // Required.
// Words or phrases to match with this template
lexicon: [
string1
,
string2
,...
stringN
],// Required.
}
Target Template
18
// defines object of an action to Assistant
my_Target := {
// string may be replaced in lexical parse
value:
string
, //Required.
// object type that this template creates
// must use this value or one descended from it
isa: 'dyna_user_obj, // Required.
// Words or phrases to match with this template
lexicon: [
string1
,
string2
,...
stringN
],// Required.
// your template can include your own slots as well
...}
Developer-Supplied Task Template
18
You must always supply a task template, which defines the application behavior
made available through the Assistant.
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна