如何在Bot Framework作曲家中扩展超时?
如何在Bot Framework Composer中扩展外部请求(HTTPS)超时?
我想延长https请求的超时,以便bot等待直到那样给我回复。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何在Bot Framework Composer中扩展外部请求(HTTPS)超时?
我想延长https请求的超时,以便bot等待直到那样给我回复。
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
您在哪里看到这些超时?我假设这可能是在HTTP调用中,您正在使用DirectLine(WebChat等)时发生的15秒时间。如果是这样,最好的选择是使用主动消息。最好的做法是使用积极主动的消息,以进行长期运行的过程(呼叫其他API等),即使它可能只是在下面。请参阅此处以获取更多信息:
https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-howto-nowto-long-operations-guidance
?也是实验性 toctiatiatiaCectaptapter(本质上将所有内容都变成一个主动信息):
您需要自定义和修改机器人运行时。
Where are you seeing these timeouts? I assuming this may be in an http call and you are reffering to the 15 second timeout that happens when using Directline (WebChat, etc). If so, your best option is to use proactive messages. It's best practice to use proactive messages for any possibility of a long running process (calls to other APIs, etc) even if it might be just under. Please see here for more info:
https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-howto-long-operations-guidance?view=azure-bot-service-4.0
There is also the experimental ImmediateAcceptAdapter (which essentially turns everything into a proactive message):
https://github.com/microsoft/BotBuilder-Samples/tree/main/experimental/immediate-accept-adapter/csharp_dotnetcore
You would need to customize and modify the bot runtime.