Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.dialogflow.DialogflowResponse Class Reference

Public Member Functions

def __init__ (self, parameters, api_version)
 
def add_speech (self, text)
 
def as_dict (self)
 

Public Attributes

 api_version
 
 parameters
 
 speech
 

Detailed Description

Help generating the response for Dialogflow.

Definition at line 149 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.dialogflow.DialogflowResponse.__init__ (   self,
  parameters,
  api_version 
)
Initialize the Dialogflow response.

Definition at line 152 of file __init__.py.

Member Function Documentation

◆ add_speech()

def homeassistant.components.dialogflow.DialogflowResponse.add_speech (   self,
  text 
)
Add speech to the response.

Definition at line 162 of file __init__.py.

◆ as_dict()

def homeassistant.components.dialogflow.DialogflowResponse.as_dict (   self)
Return response in a Dialogflow valid dictionary.

Definition at line 171 of file __init__.py.

Member Data Documentation

◆ api_version

homeassistant.components.dialogflow.DialogflowResponse.api_version

Definition at line 156 of file __init__.py.

◆ parameters

homeassistant.components.dialogflow.DialogflowResponse.parameters

Definition at line 155 of file __init__.py.

◆ speech

homeassistant.components.dialogflow.DialogflowResponse.speech

Definition at line 154 of file __init__.py.


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