PromptValidatorContext<T> クラス
- java.
lang. Object - com.
microsoft. bot. dialogs. prompts. PromptValidatorContext<T>
- com.
型パラメーター
- T
このコンテキストの型
public class PromptValidatorContext
{@link PromptValidator{T}} のコンテキスト情報が含まれています。
コンストラクターの概要
| コンストラクター | 説明 |
|---|---|
| PromptValidatorContext(TurnContext turnContext, PromptRecognizerResult<T> recognized, Map<String,Object> state, PromptOptions options) |
プロンプト |
メソッドの概要
| 修飾子と型 | メソッドと説明 |
|---|---|
| int |
getAttemptCount()
プロンプトのこのインスタンスが実行された回数を取得します。 |
|
Turn |
getContext()
ユーザーとの会話の現在のターンの TurnContext を取得します。 |
|
Prompt |
getOptions()
この認識の試行に使用される PromptOptions を取得します。 |
|
Prompt |
getRecognized()
プロンプトの認識試行から返された {@link Prompt |
| java.util.Map<java.lang.String,java.lang.Object> |
getState()
関連付けられているプロンプト インスタンスの状態を取得します。 |
メソッドの継承元: java.lang.Object
コンストラクターの詳細
PromptValidatorContext
public PromptValidatorContext(TurnContext turnContext, PromptRecognizerResult
PromptValidatorContext インスタンスを作成します。
パラメーター:
メソッドの詳細
getAttemptCount
public int getAttemptCount()
プロンプトのこのインスタンスが実行された回数を取得します。 この数は、ダイアログ スタックにプロンプトが追加されたときに設定されます。
戻り値:
getContext
getOptions
public PromptOptions getOptions()
この認識の試行に使用される PromptOptions を取得します。
戻り値:
getRecognized
public PromptRecognizerResult
プロンプトの認識試行から返された {@link PromptRecognizerResult{T}} を取得します。
戻り値:
getState
public Map
関連付けられているプロンプト インスタンスの状態を取得します。
戻り値: