要求命名点时的非法培训计划

时间:2019-02-20 14:36:22

标签: bixby bixbystudio

我对应用程序的发言是明天伦敦发生的事情。我向用户提供新闻提要。现在,在训练期间,我将目标设置为“ NewsSeacrh”,明天的价值是viv.time.DateTimeExspression,伦敦的价值是viv.SearchTerm

我的概念模型是DestinationPoint.model.bxb

structure (DestinationPoint){
  role-of (geo.NamedPoint)
  features {
    transient
  } 
}

我的动作是NewsSearch.model.bxb

action (NewsSearch) {
type(Search)

   collect{
    input (categoryName) {
      type (CategoryName)
      min (Optional)
    }
    input (dateTimeExpression) {
      type (time.DateTimeExpression)
      min (Optional)
    }

    input (cityName) {
      type (DestinationPoint)
      min (Optional) max (One)
    }
    input(location){
      type (Location)
      min (Optional)
    }

    computed-input (currentLocation){
     type (geo.NamedPoint)
     min (Optional)
     compute {
       if ($user.currentLocation.$exists) {
         intent {
           goal: geo.NamedPoint
           value-set: geo.CurrentLocation { $expr ($user.currentLocation) }
         }
      }
    }
 }
 }
  output (NewsConfirmationResult) 
}

位置也在那里,基本上,当用户更早设置位置并只是询问新闻时,所以我选择该位置,否则,如果用户要求特定位置,那么我需要该位置的积分。

0 个答案:

没有答案