提供: Bright Pattern Documentation
移動先: 案内、 検索
• English

getAgentState

エージェントの現在の状態を取得します

リクエスト

構文

getAgentState(): Promise<OperationResult<AgentStateData>>

ここで:

type AgentStateData = {

state: AgentState

notReadyReason?: string

}

type AgentState = "ready" | "not_ready" | "busy" | "after_call_work"

パラメータ

(なし)

リクエスト例

  getAgentStateButton.onclick = () => {

adApi.getAgentState()

}

戻り値

オブジェクト オブジェクトの値 データ型 オプションですか?

(Y/N)

戻り値の説明
AgentStateData
state 文字列 N 以下の状態値を返します:
  • "ready"
  • "not_ready"
  • "busy"
  • "after_call_work"
notReadyReason 文字列 Y エージェントが not_ready 状態にある理由を返します。
< 前へ | 次へ >