framely / community

MIT License
0 stars 2 forks source link

Understand dynamic frame slot #24

Open yigexu opened 2 years ago

yigexu commented 2 years ago

Is there an existing issue for this?

Summary

当 hosting frame 中有 dynamic frame 时,DU 能听懂 user 说它。

Motivation

这个文档中,我将 dynamic frame 定义为:

  1. 在平台上定义 frame Dish,它有slot 叫 name
  2. 当name的值是tomato egg noodle,Dish的含义是西红柿鸡蛋面;当name的值是oil spread noodle,Dish的含义是油泼面 也就是说,frame 和它的 slot共同决定了 frame 的含义。

基于 dynamic frame 的思路,#BUC346 在平台上定义如下:

DishCountedDisplayItem: dynamic interface frame

DishCountedDisplayItemStandard: dynamic concrete frame

CustomSpiceNoodle: dynamic concrete frame

Note DishCountedDisplayItemStandard 的 itemName 是 {tomato egg noodle, beef ramen} CustomSpiceNoodle 的 itemName 是 {oil spread noodle} 它们的交集为空,并集等于ItemName entity instance

FoodOrdering: intent

#

我希望 DU 能听懂 user 说:

  1. "I want to order tomato egg noodle"
  2. "I want to order tomato egg noodle without spice"

Describe alternatives you've considered

舍弃 dynamic frame 的思路,对每一个面 {tomato egg noodle, beef ramen, oil spread noodle} 创建一个对应的 frame。具体设计稍后补充。

Additional context

No response

xiaoyunwu commented 2 years ago

@yigexu is this related to add support to head of frame?

yigexu commented 2 years ago

是的