Bump intents and always prefer more literal text (#141663)

This commit is contained in:
Michael Hansen 2025-03-28 12:03:42 -05:00 committed by GitHub
parent afb7fe0d40
commit a150f9d5ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 13 additions and 16 deletions

View File

@ -650,7 +650,14 @@ class DefaultAgent(ConversationEntity):
if (
(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 (
# Fewer unmatched 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_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 (
# Prefer match failures with entities
(result.text_chunks_matched == maybe_result.text_chunks_matched)

View File

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/conversation",
"integration_type": "system",
"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"]
}

View File

@ -39,7 +39,7 @@ hass-nabucasa==0.94.0
hassil==2.2.3
home-assistant-bluetooth==1.13.1
home-assistant-frontend==20250328.0
home-assistant-intents==2025.3.24
home-assistant-intents==2025.3.28
httpx==0.28.1
ifaddr==0.2.0
Jinja2==3.1.6

2
requirements_all.txt generated
View File

@ -1160,7 +1160,7 @@ holidays==0.69
home-assistant-frontend==20250328.0
# homeassistant.components.conversation
home-assistant-intents==2025.3.24
home-assistant-intents==2025.3.28
# homeassistant.components.homematicip_cloud
homematicip==1.1.7

View File

@ -987,7 +987,7 @@ holidays==0.69
home-assistant-frontend==20250328.0
# homeassistant.components.conversation
home-assistant-intents==2025.3.24
home-assistant-intents==2025.3.28
# homeassistant.components.homematicip_cloud
homematicip==1.1.7

View File

@ -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 \
-r /usr/src/homeassistant/requirements.txt \
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 "maintainer"="Home Assistant <hello@home-assistant.io>"