小编sar*_*kon的帖子

当AccessVivContext不是目标时,如何访问vivContext?

我正在尝试在胶囊中提供vivContext信息。

我在这里查看:如果将AccessVivContext设置为训练语音的目标,则可以在胶囊中获取上下文。但是我一般如何访问它?

我尝试仅在操作返回的结构中输入vivContext属性。

action (myAction) {
  description (do the thing)
  type (Search)
  collect {
    input (locale) { // this is in vivContext
      ...

    }
  }
  output(myOutput)
} 
Run Code Online (Sandbox Code Playgroud)

并且我定义了要在myOutput结构中返回的原始类型“ locale”:

structure (myOutput) {
  description (...)
   property (locale) {
     type (locale) // hoping to return $vivContext.locale here
     min (Required) max (One)
  }
}
Run Code Online (Sandbox Code Playgroud)

但这似乎并没有调用AccessVivContext.js来获取上下文。

bixby

1
推荐指数
1
解决办法
51
查看次数

标签 统计

bixby ×1