mirror of
https://github.com/home-assistant/core.git
synced 2026-04-29 10:23:46 +02:00
Ask LLM to pass area name and domain (#118357)
This commit is contained in:
@@ -250,7 +250,7 @@ class AssistAPI(API):
|
||||
prompt = [
|
||||
(
|
||||
"Call the intent tools to control Home Assistant. "
|
||||
"When controlling an area, prefer passing area name."
|
||||
"When controlling an area, prefer passing area name and domain."
|
||||
)
|
||||
]
|
||||
area: ar.AreaEntry | None = None
|
||||
|
||||
@@ -423,7 +423,7 @@ async def test_assist_api_prompt(
|
||||
)
|
||||
first_part_prompt = (
|
||||
"Call the intent tools to control Home Assistant. "
|
||||
"When controlling an area, prefer passing area name."
|
||||
"When controlling an area, prefer passing area name and domain."
|
||||
)
|
||||
no_timer_prompt = "This device does not support timers."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user