如何在Bot Framework作曲家中扩展超时?

发布于 2025-01-24 17:15:06 字数 88 浏览 4 评论 0 原文

如何在Bot Framework Composer中扩展外部请求(HTTPS)超时?

我想延长https请求的超时,以便bot等待直到那样给我回复。

how to extend the external request (https) timeout in bot framework composer?

I want to extend the timeout of the https request so that the bot waits till that and respond me with the output.. for every first call it is failing for me

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

围归者 2025-01-31 17:15:06

您在哪里看到这些超时?我假设这可能是在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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文