From d924f0b1d638b88b866c9efb3e7740cdd0e06b52 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Wed, 30 Apr 2025 05:47:54 -0700 Subject: [PATCH] Improve the live context tool prompt with additional instructions (#143746) * Improve the live context tool prompt with additional instructions * Fix vertical whitespace --- homeassistant/helpers/llm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/helpers/llm.py b/homeassistant/helpers/llm.py index 3e521aa7ef1..27554330eeb 100644 --- a/homeassistant/helpers/llm.py +++ b/homeassistant/helpers/llm.py @@ -1034,10 +1034,10 @@ class GetLiveContextTool(Tool): name = "GetLiveContext" description = ( - "Use this tool when the user asks a question about the CURRENT state, " - "value, or mode of a specific device, sensor, entity, or area in the " - "smart home, and the answer can be improved with real-time data not " - "available in the static device overview list. " + "Provides real-time information about the CURRENT state, value, or mode of devices, sensors, entities, or areas. " + "Use this tool for: " + "1. Answering questions about current conditions (e.g., 'Is the light on?'). " + "2. As the first step in conditional actions (e.g., 'If the weather is rainy, turn off sprinklers' requires checking the weather first)." ) async def async_call(