Improve the live context tool prompt with additional instructions (#143746)

* Improve the live context tool prompt with additional instructions

* Fix vertical whitespace
This commit is contained in:
Allen Porter 2025-04-30 05:47:54 -07:00 committed by GitHub
parent 5dab9ba01b
commit d924f0b1d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1034,10 +1034,10 @@ class GetLiveContextTool(Tool):
name = "GetLiveContext" name = "GetLiveContext"
description = ( description = (
"Use this tool when the user asks a question about the CURRENT state, " "Provides real-time information about the CURRENT state, value, or mode of devices, sensors, entities, or areas. "
"value, or mode of a specific device, sensor, entity, or area in the " "Use this tool for: "
"smart home, and the answer can be improved with real-time data not " "1. Answering questions about current conditions (e.g., 'Is the light on?'). "
"available in the static device overview list. " "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( async def async_call(