Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.intent.Intent Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, str platform, str intent_type, _SlotsType slots, str|None text_input, Context context, str language, IntentCategory|None category=None, str|None assistant=None, str|None device_id=None, str|None conversation_agent_id=None)
 
IntentResponse create_response (self)
 

Public Attributes

 assistant
 
 category
 
 context
 
 conversation_agent_id
 
 device_id
 
 hass
 
 intent_type
 
 language
 
 platform
 
 slots
 
 text_input
 

Static Private Attributes

list __slots__
 

Detailed Description

Hold the intent.

Definition at line 1200 of file intent.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.intent.Intent.__init__ (   self,
HomeAssistant  hass,
str  platform,
str  intent_type,
_SlotsType  slots,
str | None  text_input,
Context  context,
str  language,
IntentCategory | None   category = None,
str | None   assistant = None,
str | None   device_id = None,
str | None   conversation_agent_id = None 
)
Initialize an intent.

Definition at line 1217 of file intent.py.

Member Function Documentation

◆ create_response()

IntentResponse homeassistant.helpers.intent.Intent.create_response (   self)
Create a response.

Definition at line 1245 of file intent.py.

Member Data Documentation

◆ __slots__

list homeassistant.helpers.intent.Intent.__slots__
staticprivate
Initial value:
= [
"hass",
"platform",
"intent_type",
"slots",
"text_input",
"context",
"language",
"category",
"assistant",
"device_id",
"conversation_agent_id",
]

Definition at line 1203 of file intent.py.

◆ assistant

homeassistant.helpers.intent.Intent.assistant

Definition at line 1240 of file intent.py.

◆ category

homeassistant.helpers.intent.Intent.category

Definition at line 1239 of file intent.py.

◆ context

homeassistant.helpers.intent.Intent.context

Definition at line 1237 of file intent.py.

◆ conversation_agent_id

homeassistant.helpers.intent.Intent.conversation_agent_id

Definition at line 1242 of file intent.py.

◆ device_id

homeassistant.helpers.intent.Intent.device_id

Definition at line 1241 of file intent.py.

◆ hass

homeassistant.helpers.intent.Intent.hass

Definition at line 1232 of file intent.py.

◆ intent_type

homeassistant.helpers.intent.Intent.intent_type

Definition at line 1234 of file intent.py.

◆ language

homeassistant.helpers.intent.Intent.language

Definition at line 1238 of file intent.py.

◆ platform

homeassistant.helpers.intent.Intent.platform

Definition at line 1233 of file intent.py.

◆ slots

homeassistant.helpers.intent.Intent.slots

Definition at line 1235 of file intent.py.

◆ text_input

homeassistant.helpers.intent.Intent.text_input

Definition at line 1236 of file intent.py.


The documentation for this class was generated from the following file: