Namespaces | |
| agent_manager | |
| const | |
| default_agent | |
| entity | |
| http | |
| models | |
| trace | |
| trigger | |
| util | |
Functions | |
| AgentInfo|None | async_get_agent_info (HomeAssistant hass, str|None agent_id=None) |
| set[str]|Literal["*"] | async_get_conversation_languages (HomeAssistant hass, str|None agent_id=None) |
| intent.IntentResponse|None | async_handle_intents (HomeAssistant hass, ConversationInput user_input) |
| str|None | async_handle_sentence_triggers (HomeAssistant hass, ConversationInput user_input) |
| None | async_prepare_agent (HomeAssistant hass, str|None agent_id, str language) |
| None | async_set_agent (HomeAssistant hass, ConfigEntry config_entry, AbstractConversationAgent agent) |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
| None | async_unset_agent (HomeAssistant hass, ConfigEntry config_entry) |
Variables | |
| list | __all__ |
| _LOGGER = logging.getLogger(__name__) | |
| CONFIG_SCHEMA | |
| REGEX_TYPE = type(re.compile("")) | |
| SERVICE_PROCESS_SCHEMA | |
| SERVICE_RELOAD_SCHEMA | |
Support for functionality to have conversations with Home Assistant.
| AgentInfo | None homeassistant.components.conversation.async_get_agent_info | ( | HomeAssistant | hass, |
| str | None | agent_id = None |
||
| ) |
Get information on the agent or None if not found.
Definition at line 173 of file __init__.py.
| set[str] | Literal["*"] homeassistant.components.conversation.async_get_conversation_languages | ( | HomeAssistant | hass, |
| str | None | agent_id = None |
||
| ) |
Return languages supported by conversation agents. If an agent is specified, returns a set of languages supported by that agent. If no agent is specified, return a set with the union of languages supported by all conversation agents.
Definition at line 127 of file __init__.py.
| intent.IntentResponse | None homeassistant.components.conversation.async_handle_intents | ( | HomeAssistant | hass, |
| ConversationInput | user_input | ||
| ) |
Try to match input against registered intents and return response. Returns None if no match occurred.
Definition at line 223 of file __init__.py.
| str | None homeassistant.components.conversation.async_handle_sentence_triggers | ( | HomeAssistant | hass, |
| ConversationInput | user_input | ||
| ) |
Try to match input against sentence triggers and return response text. Returns None if no match occurred.
Definition at line 210 of file __init__.py.
| None homeassistant.components.conversation.async_prepare_agent | ( | HomeAssistant | hass, |
| str | None | agent_id, | ||
| str | language | ||
| ) |
Prepare given agent.
Definition at line 198 of file __init__.py.
| None homeassistant.components.conversation.async_set_agent | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry, | ||
| AbstractConversationAgent | agent | ||
| ) |
Set the agent to handle the conversations.
Definition at line 107 of file __init__.py.
| bool homeassistant.components.conversation.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Register the process service.
Definition at line 236 of file __init__.py.
| bool homeassistant.components.conversation.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Set up a config entry.
Definition at line 296 of file __init__.py.
| bool homeassistant.components.conversation.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry.
Definition at line 301 of file __init__.py.
| None homeassistant.components.conversation.async_unset_agent | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry | ||
| ) |
Set the agent to handle the conversations.
Definition at line 118 of file __init__.py.
|
private |
Definition at line 53 of file __init__.py.
|
private |
Definition at line 70 of file __init__.py.
| homeassistant.components.conversation.CONFIG_SCHEMA |
Definition at line 91 of file __init__.py.
| homeassistant.components.conversation.REGEX_TYPE = type(re.compile("")) |
Definition at line 72 of file __init__.py.
| homeassistant.components.conversation.SERVICE_PROCESS_SCHEMA |
Definition at line 74 of file __init__.py.
| homeassistant.components.conversation.SERVICE_RELOAD_SCHEMA |
Definition at line 84 of file __init__.py.