提供: 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 | 以下の状態値を返します:
| |
| notReadyReason | 文字列 | Y | エージェントが not_ready 状態にある理由を返します。 |