Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_generative_ai_conversation.config_flow Namespace Reference

Classes

class  GoogleGenerativeAIConfigFlow
 
class  GoogleGenerativeAIOptionsFlow
 

Functions

dict google_generative_ai_config_option_schema (HomeAssistant hass, dict[str, Any]|MappingProxyType[str, Any] options)
 
None validate_input (HomeAssistant hass, dict[str, Any] data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary RECOMMENDED_OPTIONS
 
 STEP_API_DATA_SCHEMA
 

Detailed Description

Config flow for Google Generative AI Conversation integration.

Function Documentation

◆ google_generative_ai_config_option_schema()

dict homeassistant.components.google_generative_ai_conversation.config_flow.google_generative_ai_config_option_schema ( HomeAssistant  hass,
dict[str, Any] | MappingProxyType[str, Any]  options 
)
Return a schema for Google Generative AI completion options.

Definition at line 198 of file config_flow.py.

◆ validate_input()

None homeassistant.components.google_generative_ai_conversation.config_flow.validate_input ( HomeAssistant  hass,
dict[str, Any]  data 
)
Validate the user input allows us to connect.

Data has the keys from STEP_USER_DATA_SCHEMA with values provided by the user.

Definition at line 73 of file config_flow.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.google_generative_ai_conversation.config_flow._LOGGER = logging.getLogger(__name__)
private

Definition at line 58 of file config_flow.py.

◆ RECOMMENDED_OPTIONS

dictionary homeassistant.components.google_generative_ai_conversation.config_flow.RECOMMENDED_OPTIONS
Initial value:
1 = {
2  CONF_RECOMMENDED: True,
3  CONF_LLM_HASS_API: llm.LLM_API_ASSIST,
4  CONF_PROMPT: llm.DEFAULT_INSTRUCTIONS_PROMPT,
5 }

Definition at line 66 of file config_flow.py.

◆ STEP_API_DATA_SCHEMA

homeassistant.components.google_generative_ai_conversation.config_flow.STEP_API_DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_API_KEY): str,
4  }
5 )

Definition at line 60 of file config_flow.py.