다음을 통해 공유


OnQnAMatch class

MessageUpdateActivity가 수신될 때 트리거되는 작업입니다.

Extends

생성자

OnQnAMatch(Dialog[], string)

OnQnAMatch 클래스의 새 인스턴스를 초기화합니다.

속성

$kind

상속된 속성

actions

규칙 제약 조건이 충족되면 계획에 추가할 작업을 가져오거나 설정합니다.

condition

실행할 작업에 대해 충족해야 하는 조건을 가져오거나 설정합니다(선택 사항).

entities

이 규칙을 트리거하기 위해 인식해야 하는 엔터티를 가져오거나 설정합니다.

event

실행되도록 이벤트를 가져오거나 설정합니다.

id

조건의 ID입니다.

intent

일치시킬 의도를 가져오거나 설정합니다.

priority

0이 가장 높고 0 미만이 무시되는 규칙 우선 순위 식을 가져오기 또는 설정합니다.

runOnce

고유한 메모리 경로 집합당 한 번만 규칙을 실행할지 여부를 나타내는 값입니다.

상속된 메서드

addExternalCondition(string)

OnCondition에 외부 조건 추가

configure(Record<string, unknown>)

개체를 구성하기 위한 Fluent 메서드입니다.

currentPriority(ActionContext)

우선 순위 식의 현재 값을 계산하고 반환합니다.

execute(ActionContext)

조건의 작업을 실행하기 위해 호출된 메서드입니다.

getConverter(Object)
getDependencies()

컨테이너 대화 세트에 추가할 수 있도록 자식 대화 상자 종속성을 가져옵니다.

getExpression()

이 조건에 대해 캐시된 식을 가져옵니다.

생성자 세부 정보

OnQnAMatch(Dialog[], string)

OnQnAMatch 클래스의 새 인스턴스를 초기화합니다.

new OnQnAMatch(actions?: Dialog[], condition?: string)

매개 변수

actions

Dialog[]

선택적. 규칙 제약 조건이 충족되면 계획에 추가할 작업이 포함된 대화 목록입니다.

condition

string

선택적. 작업을 실행하려면 충족해야 하는 조건입니다.

속성 세부 정보

$kind

static $kind: string

속성 값

string

상속된 속성 세부 정보

actions

규칙 제약 조건이 충족되면 계획에 추가할 작업을 가져오거나 설정합니다.

actions: Dialog[]

속성 값

Dialog[]

OnCondition.actions 상속된

condition

실행할 작업에 대해 충족해야 하는 조건을 가져오거나 설정합니다(선택 사항).

condition: BoolExpression

속성 값

BoolExpression

OnCondition.condition 상속된

entities

이 규칙을 트리거하기 위해 인식해야 하는 엔터티를 가져오거나 설정합니다.

entities: string[]

속성 값

string[]

OnIntent.entities 상속된

event

실행되도록 이벤트를 가져오거나 설정합니다.

event: string

속성 값

string

OnDialogEvent.event 상속된

id

조건의 ID입니다.

id: string

속성 값

string

OnCondition.id 상속된

intent

일치시킬 의도를 가져오거나 설정합니다.

intent: string

속성 값

string

OnIntent.intent 상속된

priority

0이 가장 높고 0 미만이 무시되는 규칙 우선 순위 식을 가져오기 또는 설정합니다.

priority: NumberExpression

속성 값

NumberExpression

OnCondition.priority 상속된

runOnce

고유한 메모리 경로 집합당 한 번만 규칙을 실행할지 여부를 나타내는 값입니다.

runOnce: boolean

속성 값

boolean

OnCondition.runOnce 상속된

상속된 메서드 세부 정보

addExternalCondition(string)

OnCondition에 외부 조건 추가

function addExternalCondition(condition: string)

매개 변수

condition

string

추가할 외부 제약 조건이며 다른 모든 제약 조건에 AND가 적용됩니다.

OnCondition.addExternalCondition 상속된

configure(Record<string, unknown>)

개체를 구성하기 위한 Fluent 메서드입니다.

function configure(config: Record<string, unknown>): this

매개 변수

config

Record<string, unknown>

적용할 구성 설정입니다.

반환

this

작업이 완료된 후 구성 가능한.

Configurable.configure에서 상속된

currentPriority(ActionContext)

우선 순위 식의 현재 값을 계산하고 반환합니다.

function currentPriority(actionContext: ActionContext): number

매개 변수

actionContext
ActionContext

평가에 사용할 컨텍스트입니다.

반환

number

계산 우선 순위입니다.

OnCondition.currentPriority 상속된

execute(ActionContext)

조건의 작업을 실행하기 위해 호출된 메서드입니다.

function execute(actionContext: ActionContext): Promise<ActionChangeList[]>

매개 변수

actionContext
ActionContext

문맥.

반환

Promise<ActionChangeList[]>

계획 변경 목록이 포함된 약속입니다.

OnCondition.execute 상속된

getConverter(Object)

function getConverter(property: Object): Converter | ConverterFactory

매개 변수

property

Object

조건부 선택기 구성의 키입니다.

반환

Converter | ConverterFactory

선택기 구성의 변환기입니다.

OnCondition.getConverter 상속된

getDependencies()

컨테이너 대화 세트에 추가할 수 있도록 자식 대화 상자 종속성을 가져옵니다.

function getDependencies(): Dialog[]

반환

Dialog[]

대화목록입니다.

OnCondition.getDependencies 상속된

getExpression()

이 조건에 대해 캐시된 식을 가져옵니다.

function getExpression(): Expression

반환

Expression

이 조건을 평가하는 데 사용되는 캐시된 식입니다.

OnCondition.getExpression 상속된