mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 09:23:17 -04:00
Remove hardcoded tool name from GetLiveContext prompt (#182111)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user