background image
C H A P T E R 1 8
Intelligent Assistant
Summary
18-27
People
18
person := { // generic person template
isa: 'who_obj,
value: nil // system use only
...}
title := { // "owner", "manager", and so on
isa: 'who_obj,
...}
affiliate:= { // "friend", "brother", "sister", and so on
isa: 'person,
...}
group := { // "Engineering", "Marketing", and so on
isa: 'person,
...}
custom := { // customized 'person template
isa: 'person,
...}
Miscellaneous
18
salutationPrefix := {
ISA: 'parser_obj,
Lexicon: ["dear", "to", "attention", "attn",
"attn." , "hey"],
...}
Developer-Supplied Target Templates
18
You must supply any target template your task template requires that is not
supplied by the system. Required target templates are specified by the task
template's
signature
slot.
Assistant Functions and Methods
18
ParseUtter(
inputString
)
// matches input to templates
tmpltRef
:= RegTaskTemplate(
myTemplt
)//register w/ Assistant
UnRegTaskTemplate(
tmpltRef
)
// unregister task template
GetMatchedEntries(
which
,
entries
) // returns array of aliases
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна