Remove hardcoded tool name from GetLiveContext prompt (#182111)

This commit is contained in:
Hariom_Gupta
2026-09-19 09:18:55 +02:00
committed by GitHub
parent 369a011b58
commit bf34679c7c
2 changed files with 5 additions and 5 deletions
@@ -45,7 +45,7 @@ NO_ENTITIES_PROMPT = (
DYNAMIC_CONTEXT_PROMPT = (
"You ARE equipped to answer questions about the"
" current state of\n"
"the home using the `homeassistant__GetLiveContext` tool."
"the home by retrieving live context."
" This is a primary function."
" Do not state you lack the\n"
"functionality if the question requires live data.\n"
@@ -59,7 +59,7 @@ DYNAMIC_CONTEXT_PROMPT = (
' "What mode is the thermostat in?",'
' "What is the temperature outside?"):\n'
" 1. Recognize this requires live data.\n"
" 2. You MUST call `homeassistant__GetLiveContext`."
" 2. You MUST use the provided tool to retrieve live context."
" This tool will provide the needed real-time"
" information (like temperature from the local"
" weather, lock status, etc.).\n"
+3 -3
View File
@@ -820,8 +820,8 @@ Static Context: An overview of the areas and the devices in this smart home:
)
dynamic_context_prompt = (
"You ARE equipped to answer questions about the"
" current state of\nthe home using the"
" `homeassistant__GetLiveContext` tool. This is a primary"
" current state of\nthe home by retrieving"
" live context. This is a primary"
" function. Do not state you lack the\n"
"functionality if the question requires live"
" data.\nIf the user asks about device"
@@ -833,7 +833,7 @@ Static Context: An overview of the areas and the devices in this smart home:
' "What mode is the thermostat in?", "What'
' is the temperature outside?"):\n'
" 1. Recognize this requires live data.\n"
" 2. You MUST call `homeassistant__GetLiveContext`. This"
" 2. You MUST use the provided tool to retrieve live context. This"
" tool will provide the needed real-time"
" information (like temperature from the local"
" weather, lock status, etc.).\n"