mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 02:37:50 +00:00
Bump intents and always prefer more literal text (#141663)
This commit is contained in:
parent
afb7fe0d40
commit
a150f9d5ad
@ -650,7 +650,14 @@ class DefaultAgent(ConversationEntity):
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
(maybe_result is None) # first result
|
(maybe_result is None) # first result
|
||||||
or (num_matched_entities > best_num_matched_entities)
|
or (
|
||||||
|
# More literal text matched
|
||||||
|
result.text_chunks_matched > maybe_result.text_chunks_matched
|
||||||
|
)
|
||||||
|
or (
|
||||||
|
# More entities matched
|
||||||
|
num_matched_entities > best_num_matched_entities
|
||||||
|
)
|
||||||
or (
|
or (
|
||||||
# Fewer unmatched entities
|
# Fewer unmatched entities
|
||||||
(num_matched_entities == best_num_matched_entities)
|
(num_matched_entities == best_num_matched_entities)
|
||||||
@ -662,16 +669,6 @@ class DefaultAgent(ConversationEntity):
|
|||||||
and (num_unmatched_entities == best_num_unmatched_entities)
|
and (num_unmatched_entities == best_num_unmatched_entities)
|
||||||
and (num_unmatched_ranges > best_num_unmatched_ranges)
|
and (num_unmatched_ranges > best_num_unmatched_ranges)
|
||||||
)
|
)
|
||||||
or (
|
|
||||||
# More literal text matched
|
|
||||||
(num_matched_entities == best_num_matched_entities)
|
|
||||||
and (num_unmatched_entities == best_num_unmatched_entities)
|
|
||||||
and (num_unmatched_ranges == best_num_unmatched_ranges)
|
|
||||||
and (
|
|
||||||
result.text_chunks_matched
|
|
||||||
> maybe_result.text_chunks_matched
|
|
||||||
)
|
|
||||||
)
|
|
||||||
or (
|
or (
|
||||||
# Prefer match failures with entities
|
# Prefer match failures with entities
|
||||||
(result.text_chunks_matched == maybe_result.text_chunks_matched)
|
(result.text_chunks_matched == maybe_result.text_chunks_matched)
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/conversation",
|
"documentation": "https://www.home-assistant.io/integrations/conversation",
|
||||||
"integration_type": "system",
|
"integration_type": "system",
|
||||||
"quality_scale": "internal",
|
"quality_scale": "internal",
|
||||||
"requirements": ["hassil==2.2.3", "home-assistant-intents==2025.3.24"]
|
"requirements": ["hassil==2.2.3", "home-assistant-intents==2025.3.28"]
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ hass-nabucasa==0.94.0
|
|||||||
hassil==2.2.3
|
hassil==2.2.3
|
||||||
home-assistant-bluetooth==1.13.1
|
home-assistant-bluetooth==1.13.1
|
||||||
home-assistant-frontend==20250328.0
|
home-assistant-frontend==20250328.0
|
||||||
home-assistant-intents==2025.3.24
|
home-assistant-intents==2025.3.28
|
||||||
httpx==0.28.1
|
httpx==0.28.1
|
||||||
ifaddr==0.2.0
|
ifaddr==0.2.0
|
||||||
Jinja2==3.1.6
|
Jinja2==3.1.6
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -1160,7 +1160,7 @@ holidays==0.69
|
|||||||
home-assistant-frontend==20250328.0
|
home-assistant-frontend==20250328.0
|
||||||
|
|
||||||
# homeassistant.components.conversation
|
# homeassistant.components.conversation
|
||||||
home-assistant-intents==2025.3.24
|
home-assistant-intents==2025.3.28
|
||||||
|
|
||||||
# homeassistant.components.homematicip_cloud
|
# homeassistant.components.homematicip_cloud
|
||||||
homematicip==1.1.7
|
homematicip==1.1.7
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -987,7 +987,7 @@ holidays==0.69
|
|||||||
home-assistant-frontend==20250328.0
|
home-assistant-frontend==20250328.0
|
||||||
|
|
||||||
# homeassistant.components.conversation
|
# homeassistant.components.conversation
|
||||||
home-assistant-intents==2025.3.24
|
home-assistant-intents==2025.3.28
|
||||||
|
|
||||||
# homeassistant.components.homematicip_cloud
|
# homeassistant.components.homematicip_cloud
|
||||||
homematicip==1.1.7
|
homematicip==1.1.7
|
||||||
|
2
script/hassfest/docker/Dockerfile
generated
2
script/hassfest/docker/Dockerfile
generated
@ -25,7 +25,7 @@ RUN --mount=from=ghcr.io/astral-sh/uv:0.6.10,source=/uv,target=/bin/uv \
|
|||||||
-c /usr/src/homeassistant/homeassistant/package_constraints.txt \
|
-c /usr/src/homeassistant/homeassistant/package_constraints.txt \
|
||||||
-r /usr/src/homeassistant/requirements.txt \
|
-r /usr/src/homeassistant/requirements.txt \
|
||||||
stdlib-list==0.10.0 pipdeptree==2.25.1 tqdm==4.67.1 ruff==0.11.0 \
|
stdlib-list==0.10.0 pipdeptree==2.25.1 tqdm==4.67.1 ruff==0.11.0 \
|
||||||
PyTurboJPEG==1.7.5 go2rtc-client==0.1.2 ha-ffmpeg==3.2.2 hassil==2.2.3 home-assistant-intents==2025.3.24 mutagen==1.47.0 pymicro-vad==1.0.1 pyspeex-noise==1.0.2
|
PyTurboJPEG==1.7.5 go2rtc-client==0.1.2 ha-ffmpeg==3.2.2 hassil==2.2.3 home-assistant-intents==2025.3.28 mutagen==1.47.0 pymicro-vad==1.0.1 pyspeex-noise==1.0.2
|
||||||
|
|
||||||
LABEL "name"="hassfest"
|
LABEL "name"="hassfest"
|
||||||
LABEL "maintainer"="Home Assistant <hello@home-assistant.io>"
|
LABEL "maintainer"="Home Assistant <hello@home-assistant.io>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user