gpt4 book ai didi

bixby - 如何在 Bixby 中存储数据

转载 作者:行者123 更新时间:2023-12-01 08:27:48 25 4
gpt4 key购买 nike

以下是我希望能够在 Bixby 中执行的步骤:1. 用户说出一句话。2. Capsule 然后进行 API 调用。3. 将API Call返回的数据存储到本地。4. 用户说出不同的话语。5. API 调用会将一段存储的数据发送到端点。

我希望能够存储数据,以便在未来的话语中重用它。我该怎么做?

只有通过连续调用函数,话语是连续的,我才能发现这是可能的,但是在我的用例中,它可能不是连续的,我希望能够在其他 Bixby session 中重新使用这些值作为好吧。

最佳答案

您需要通过外部 API 调用来存储此状态,因为在退出胶囊后或跨请求时不会维护状态。参见“Capsule and Context State”,但这里是相关信息......

Context between capsules is not stateful, meaning that if the user leaves the capsule for another capsule or if the user leaves Bixby altogether, then any context for the first capsule is not guaranteed to be remembered.

If your capsule does need to remember context between various states, you should use the content provider. You can store as much information on the content provider side as needed. You can always use remote endpoints and set up your service how you want.

关于bixby - 如何在 Bixby 中存储数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54626274/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com