|
| None | __init__ (self, str language, Intent|None intent=None) |
| |
| dict[str, Any] | as_dict (self) |
| |
| None | async_set_card (self, str title, str content, str card_type="simple") |
| |
| None | async_set_error (self, IntentResponseErrorCode code, str message) |
| |
| None | async_set_reprompt (self, str speech, str speech_type="plain", Any|None extra_data=None) |
| |
| None | async_set_results (self, list[IntentResponseTarget] success_results, list[IntentResponseTarget]|None failed_results=None) |
| |
| None | async_set_speech (self, str speech, str speech_type="plain", Any|None extra_data=None) |
| |
| None | async_set_speech_slots (self, dict[str, Any] speech_slots) |
| |
| None | async_set_states (self, list[State] matched_states, list[State]|None unmatched_states=None) |
| |
| None | async_set_targets (self, list[IntentResponseTarget] intent_targets) |
| |
Response to an intent.
Definition at line 1303 of file intent.py.
◆ __init__()
| None homeassistant.helpers.intent.IntentResponse.__init__ |
( |
|
self, |
|
|
str |
language, |
|
|
Intent | None |
intent = None |
|
) |
| |
Initialize an IntentResponse.
Definition at line 1306 of file intent.py.
◆ as_dict()
| dict[str, Any] homeassistant.helpers.intent.IntentResponse.as_dict |
( |
|
self | ) |
|
Return a dictionary representation of an intent response.
Definition at line 1405 of file intent.py.
◆ async_set_card()
| None homeassistant.helpers.intent.IntentResponse.async_set_card |
( |
|
self, |
|
|
str |
title, |
|
|
str |
content, |
|
|
str |
card_type = "simple" |
|
) |
| |
◆ async_set_error()
| None homeassistant.helpers.intent.IntentResponse.async_set_error |
( |
|
self, |
|
|
IntentResponseErrorCode |
code, |
|
|
str |
message |
|
) |
| |
◆ async_set_reprompt()
| None homeassistant.helpers.intent.IntentResponse.async_set_reprompt |
( |
|
self, |
|
|
str |
speech, |
|
|
str |
speech_type = "plain", |
|
|
Any | None |
extra_data = None |
|
) |
| |
Set reprompt response.
Definition at line 1345 of file intent.py.
◆ async_set_results()
◆ async_set_speech()
| None homeassistant.helpers.intent.IntentResponse.async_set_speech |
( |
|
self, |
|
|
str |
speech, |
|
|
str |
speech_type = "plain", |
|
|
Any | None |
extra_data = None |
|
) |
| |
◆ async_set_speech_slots()
| None homeassistant.helpers.intent.IntentResponse.async_set_speech_slots |
( |
|
self, |
|
|
dict[str, Any] |
speech_slots |
|
) |
| |
Set slots that will be used in the response template of the default agent.
Definition at line 1400 of file intent.py.
◆ async_set_states()
| None homeassistant.helpers.intent.IntentResponse.async_set_states |
( |
|
self, |
|
|
list[State] |
matched_states, |
|
|
list[State] | None |
unmatched_states = None |
|
) |
| |
Set entity states that were matched or not matched during intent handling (query).
Definition at line 1392 of file intent.py.
◆ async_set_targets()
| None homeassistant.helpers.intent.IntentResponse.async_set_targets |
( |
|
self, |
|
|
list[IntentResponseTarget] |
intent_targets |
|
) |
| |
◆ error_code
| homeassistant.helpers.intent.IntentResponse.error_code |
◆ failed_results
| homeassistant.helpers.intent.IntentResponse.failed_results |
◆ intent
| homeassistant.helpers.intent.IntentResponse.intent |
◆ intent_targets
| homeassistant.helpers.intent.IntentResponse.intent_targets |
◆ language
| homeassistant.helpers.intent.IntentResponse.language |
◆ matched_states
| homeassistant.helpers.intent.IntentResponse.matched_states |
◆ response_type
| homeassistant.helpers.intent.IntentResponse.response_type |
◆ speech_slots
| homeassistant.helpers.intent.IntentResponse.speech_slots |
◆ success_results
| homeassistant.helpers.intent.IntentResponse.success_results |
◆ unmatched_states
| homeassistant.helpers.intent.IntentResponse.unmatched_states |
The documentation for this class was generated from the following file: