You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 29, 2024. It is now read-only.
DavidMeow edited this page Jan 13, 2023
·
4 revisions
2.3 什么是上下文交互端?
有时候我们会遇到用户输入指令,我们回复提示,用户继续输入的现象.
如果使用传统的端进行持续化存储可能会造成缓存问题,为此我开发了上下文交互端.
工作原理如下:
sequenceDiagram
participant bot
participant user
Note left of bot: 流程开始
user ->> +bot: 命令A (例如 天气)
Note left of bot: 接收并处理
bot ->> +user: 您要查询的地址?
user ->> +bot: 命令A的B参数 (例如 山东 青岛)
Note left of bot: 接收并处理
bot ->> +user: [返回山东青岛的天气]
Note left of bot: 流程结束