mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Ask LLM to pass area name and domain (#118357)
This commit is contained in:
parent
c75cb08aae
commit
4056c4c2cc
@ -250,7 +250,7 @@ class AssistAPI(API):
|
|||||||
prompt = [
|
prompt = [
|
||||||
(
|
(
|
||||||
"Call the intent tools to control Home Assistant. "
|
"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
|
area: ar.AreaEntry | None = None
|
||||||
|
@ -423,7 +423,7 @@ async def test_assist_api_prompt(
|
|||||||
)
|
)
|
||||||
first_part_prompt = (
|
first_part_prompt = (
|
||||||
"Call the intent tools to control Home Assistant. "
|
"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."
|
no_timer_prompt = "This device does not support timers."
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user