TextPrompt Klasa
Tworzy nowe wystąpienie Prompt.
ComponentDialog :type dialog_id: str :p aram validator: Opcjonalnie podaj dodatkową walidację i ponownie monituj logikę :type validator: Object
Konstruktor
TextPrompt(dialog_id: str, validator: object = None)
Parametry
| Nazwa | Opis |
|---|---|
|
dialog_id
Wymagane
|
Unikatowy identyfikator monitu w ramach DialogSet nadrzędnej |
|
validator
|
Domyślna wartość: None
|
Metody
| on_prompt | |
| on_recognize |
on_prompt
async on_prompt(turn_context: TurnContext, state: Dict[str, object], options: PromptOptions, is_retry: bool)
Parametry
| Nazwa | Opis |
|---|---|
|
turn_context
Wymagane
|
|
|
state
Wymagane
|
|
|
options
Wymagane
|
|
|
is_retry
Wymagane
|
|
on_recognize
async on_recognize(turn_context: TurnContext, state: Dict[str, object], options: PromptOptions) -> PromptRecognizerResult
Parametry
| Nazwa | Opis |
|---|---|
|
turn_context
Wymagane
|
|
|
state
Wymagane
|
|
|
options
Wymagane
|
|