Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.conversation.http Namespace Reference

Classes

class  ConversationProcessView
 

Functions

Iterable[tuple[State, bool]] _get_debug_targets (HomeAssistant hass, RecognizeResult result)
 
dict[str, str|int|float] _get_unmatched_slots (RecognizeResult result)
 
None async_setup (HomeAssistant hass)
 
None websocket_hass_agent_debug (HomeAssistant hass, websocket_api.ActiveConnection connection, dict msg)
 
None websocket_list_agents (HomeAssistant hass, websocket_api.ActiveConnection connection, dict msg)
 
None websocket_prepare (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None websocket_process (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 

Detailed Description

HTTP endpoints for conversation integration.

Function Documentation

◆ _get_debug_targets()

Iterable[tuple[State, bool]] homeassistant.components.conversation.http._get_debug_targets ( HomeAssistant  hass,
RecognizeResult  result 
)
private
Yield state/is_matched pairs for a hassil recognition.

Definition at line 247 of file http.py.

◆ _get_unmatched_slots()

dict[str, str | int | float] homeassistant.components.conversation.http._get_unmatched_slots ( RecognizeResult  result)
private
Return a dict of unmatched text/range slot entities.

Definition at line 300 of file http.py.

◆ async_setup()

None homeassistant.components.conversation.http.async_setup ( HomeAssistant  hass)
Set up the HTTP API for the conversation integration.

Definition at line 33 of file http.py.

◆ websocket_hass_agent_debug()

None homeassistant.components.conversation.http.websocket_hass_agent_debug ( HomeAssistant  hass,
websocket_api.ActiveConnection  connection,
dict   msg 
)
Return intents that would be matched by the default agent for a list of sentences.

Definition at line 162 of file http.py.

◆ websocket_list_agents()

None homeassistant.components.conversation.http.websocket_list_agents ( HomeAssistant  hass,
websocket_api.ActiveConnection  connection,
dict   msg 
)
List conversation agents and, optionally, if they support a given language.

Definition at line 101 of file http.py.

◆ websocket_prepare()

None homeassistant.components.conversation.http.websocket_prepare ( HomeAssistant  hass,
websocket_api.ActiveConnection  connection,
dict[str, Any]  msg 
)
Reload intents.

Definition at line 77 of file http.py.

◆ websocket_process()

None homeassistant.components.conversation.http.websocket_process ( HomeAssistant  hass,
websocket_api.ActiveConnection  connection,
dict[str, Any]  msg 
)
Process text.

Definition at line 52 of file http.py.