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

Variables

string CONF_CHAT_MODEL = "chat_model"
 
string CONF_DANGEROUS_BLOCK_THRESHOLD = "dangerous_block_threshold"
 
string CONF_HARASSMENT_BLOCK_THRESHOLD = "harassment_block_threshold"
 
string CONF_HATE_BLOCK_THRESHOLD = "hate_block_threshold"
 
string CONF_MAX_TOKENS = "max_tokens"
 
string CONF_PROMPT = "prompt"
 
string CONF_RECOMMENDED = "recommended"
 
string CONF_SEXUAL_BLOCK_THRESHOLD = "sexual_block_threshold"
 
string CONF_TEMPERATURE = "temperature"
 
string CONF_TOP_K = "top_k"
 
string CONF_TOP_P = "top_p"
 
string DOMAIN = "google_generative_ai_conversation"
 
 LOGGER = logging.getLogger(__package__)
 
string RECOMMENDED_CHAT_MODEL = "models/gemini-1.5-flash-latest"
 
string RECOMMENDED_HARM_BLOCK_THRESHOLD = "BLOCK_MEDIUM_AND_ABOVE"
 
int RECOMMENDED_MAX_TOKENS = 150
 
float RECOMMENDED_TEMPERATURE = 1.0
 
int RECOMMENDED_TOP_K = 64
 
float RECOMMENDED_TOP_P = 0.95
 

Detailed Description

Constants for the Google Generative AI Conversation integration.

Variable Documentation

◆ CONF_CHAT_MODEL

string homeassistant.components.google_generative_ai_conversation.const.CONF_CHAT_MODEL = "chat_model"

Definition at line 10 of file const.py.

◆ CONF_DANGEROUS_BLOCK_THRESHOLD

string homeassistant.components.google_generative_ai_conversation.const.CONF_DANGEROUS_BLOCK_THRESHOLD = "dangerous_block_threshold"

Definition at line 23 of file const.py.

◆ CONF_HARASSMENT_BLOCK_THRESHOLD

string homeassistant.components.google_generative_ai_conversation.const.CONF_HARASSMENT_BLOCK_THRESHOLD = "harassment_block_threshold"

Definition at line 20 of file const.py.

◆ CONF_HATE_BLOCK_THRESHOLD

string homeassistant.components.google_generative_ai_conversation.const.CONF_HATE_BLOCK_THRESHOLD = "hate_block_threshold"

Definition at line 21 of file const.py.

◆ CONF_MAX_TOKENS

string homeassistant.components.google_generative_ai_conversation.const.CONF_MAX_TOKENS = "max_tokens"

Definition at line 18 of file const.py.

◆ CONF_PROMPT

string homeassistant.components.google_generative_ai_conversation.const.CONF_PROMPT = "prompt"

Definition at line 7 of file const.py.

◆ CONF_RECOMMENDED

string homeassistant.components.google_generative_ai_conversation.const.CONF_RECOMMENDED = "recommended"

Definition at line 9 of file const.py.

◆ CONF_SEXUAL_BLOCK_THRESHOLD

string homeassistant.components.google_generative_ai_conversation.const.CONF_SEXUAL_BLOCK_THRESHOLD = "sexual_block_threshold"

Definition at line 22 of file const.py.

◆ CONF_TEMPERATURE

string homeassistant.components.google_generative_ai_conversation.const.CONF_TEMPERATURE = "temperature"

Definition at line 12 of file const.py.

◆ CONF_TOP_K

string homeassistant.components.google_generative_ai_conversation.const.CONF_TOP_K = "top_k"

Definition at line 16 of file const.py.

◆ CONF_TOP_P

string homeassistant.components.google_generative_ai_conversation.const.CONF_TOP_P = "top_p"

Definition at line 14 of file const.py.

◆ DOMAIN

string homeassistant.components.google_generative_ai_conversation.const.DOMAIN = "google_generative_ai_conversation"

Definition at line 5 of file const.py.

◆ LOGGER

homeassistant.components.google_generative_ai_conversation.const.LOGGER = logging.getLogger(__package__)

Definition at line 6 of file const.py.

◆ RECOMMENDED_CHAT_MODEL

string homeassistant.components.google_generative_ai_conversation.const.RECOMMENDED_CHAT_MODEL = "models/gemini-1.5-flash-latest"

Definition at line 11 of file const.py.

◆ RECOMMENDED_HARM_BLOCK_THRESHOLD

string homeassistant.components.google_generative_ai_conversation.const.RECOMMENDED_HARM_BLOCK_THRESHOLD = "BLOCK_MEDIUM_AND_ABOVE"

Definition at line 24 of file const.py.

◆ RECOMMENDED_MAX_TOKENS

int homeassistant.components.google_generative_ai_conversation.const.RECOMMENDED_MAX_TOKENS = 150

Definition at line 19 of file const.py.

◆ RECOMMENDED_TEMPERATURE

float homeassistant.components.google_generative_ai_conversation.const.RECOMMENDED_TEMPERATURE = 1.0

Definition at line 13 of file const.py.

◆ RECOMMENDED_TOP_K

int homeassistant.components.google_generative_ai_conversation.const.RECOMMENDED_TOP_K = 64

Definition at line 17 of file const.py.

◆ RECOMMENDED_TOP_P

float homeassistant.components.google_generative_ai_conversation.const.RECOMMENDED_TOP_P = 0.95

Definition at line 15 of file const.py.