Skip to content

Commit

Permalink
fix prompt options
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfcabral committed Apr 3, 2024
1 parent 0007756 commit ec16f9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion botgen/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from botbuilder.dialogs import DialogReason
from botbuilder.dialogs import DialogTurnResult
from botbuilder.dialogs import DialogTurnStatus
from botbuilder.dialogs import PromptOptions
from botbuilder.dialogs import PromptValidatorContext
from botbuilder.schema import ActionTypes
from botbuilder.schema import Activity
Expand Down Expand Up @@ -536,7 +537,8 @@ async def on_step(self, dc: DialogContext, step: BotConversationStep) -> Any:
if line.collect and line.action != "begin_dialog":
try:
return await dc.prompt(
self._prompt, await self.make_outgoing(dc, line, step["values"])
self._prompt,
PromptOptions(prompt=await self.make_outgoing(dc, line, step["values"])),
)
except Exception as err:
print(err)
Expand Down

0 comments on commit ec16f9a

Please sign in to comment.