botbuilder-sangam-dialogs-prompt-0.4.0
توضیحات
Microsoft Bot Builder sangam dialogs prompts
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | botbuilder-sangam-dialogs-prompt-0.4.0 |
| نام | botbuilder-sangam-dialogs-prompt |
| نسخه کتابخانه | 0.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bot Builder sangam |
| ایمیل نویسنده | r.vinoth@live.com |
| آدرس صفحه اصلی | https://github.com/rvinothrajendran |
| آدرس اینترنتی | https://pypi.org/project/botbuilder-sangam-dialogs-prompt/ |
| مجوز | MIT |
# Dialog Prompts
This package contains additional Inputs , beyond those offered out of the box by the Bot Framework SDK.
## AdaptiveCardPrompt
The AdaptiveCardPrompt is use in waterfallDialog to receive adaptive card event.
## Installing
pip install botbuilder-sangam-dialogs-prompt
## Usage
You can then import required types, for example:
```python
from botbuilder.sangam.dialogs.prompt.adaptive import AdaptiveCardPrompt
self.dialog_set.add(AdaptiveCardPrompt("adaptive_prompt"))
```
Then, you can call the bot by specifying your PromptOptions and calling PromptAsync.
```python
async def adaptive_card(self,waterfall_step:WaterfallStepContext):
# card = pass adaptive card information
message = Activity(
text="Here is an Adaptive Card:",
type=ActivityTypes.message,
attachments=[CardFactory.adaptive_card(card)],
)
prompt_options = PromptOptions()
prompt_options.prompt = message
prompt_options.Type = ActivityTypes.message
return await waterfall_step.prompt("adaptive_prompt",prompt_options)
```
نحوه نصب
نصب پکیج whl botbuilder-sangam-dialogs-prompt-0.4.0:
pip install botbuilder-sangam-dialogs-prompt-0.4.0.whl
نصب پکیج tar.gz botbuilder-sangam-dialogs-prompt-0.4.0:
pip install botbuilder-sangam-dialogs-prompt-0.4.0.tar.gz