Michael Hansen
87a1482e4d
Pass slots to error messages instead of IDs [rework] ( #109410 )
...
Co-authored-by: tetele <tm.sandu@gmail.com>
2024-02-03 14:33:14 +01:00
Michael Hansen
77b25553e3
Migrate to new intent error response keys ( #109269 )
2024-02-01 22:29:16 +01:00
Michael Hansen
9752e70675
Intents package combines sentences/responses per language ( #109079 )
2024-01-30 12:38:29 +01:00
Michael Hansen
d8a1c58b12
Fix intent loading and incorporate unmatched entities more ( #108423 )
...
* Incorporate unmatched entities more
* Don't list targets when match is incomplete
* Add test for out of range
2024-01-23 20:31:57 -05:00
Michael Hansen
4bb2a3ad92
Specific Assist errors for domain/device class ( #107302 )
...
* Specific errors for domain/device class
* Don't log exception
* Check device class first
* Refactor guard clauses
* Test default error
2024-01-08 12:23:06 -06:00
Michael Hansen
a600a0e023
Expose all areas to Assist and ignore empty aliases ( #107267 )
...
* Expose all areas to Assist
* Skip empty entity/area aliases
2024-01-05 13:45:41 -05:00
Michael Hansen
269500cb29
Report missing entities/areas instead of failing to match in Assist ( #107151 )
...
* Report missing entities/areas instead of failing
* Fix test
* Update assist pipeline test snapshots
* Test complete match failure
* Fix conflict
2024-01-04 17:09:20 -06:00
Michael Hansen
fdeb9e36c3
Use area id for context instead of name ( #105313 )
2023-12-08 10:05:21 -06:00
Michael Hansen
8c99cf14d3
Context slot decisions moved into hassil ( #104132 )
2023-11-17 11:07:08 -06:00
Michael Hansen
a8acde62ff
Use device area as context during intent recognition ( #103939 )
...
* Use device area as context during intent recognition
* Use guard clauses
2023-11-17 07:34:14 -06:00
Michael Hansen
25671a2e42
Add HassNevermind intent (bump intents package) ( #102131 )
...
* Add HassNevermind intent
* Bump intents package to 2023.10.16
2023-10-16 19:13:26 -05:00
Erik Montnemery
da53944a37
Adjust conversation tests which create devices ( #98185 )
2023-08-10 18:22:17 +02:00
Michael Hansen
7e3fdd85fc
Add wildcards to sentence triggers ( #97236 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-07-27 20:30:42 +02:00
Michael Hansen
311c321d06
Add HassShoppingListAddItem to default agent ( #97232 )
...
* Bump hassil and intents package for HassShoppingListAddItem
* Remove hard-coded response text
* Test adding item to the shopping list
* Hook removed import in test for some reason
2023-07-25 22:19:03 -04:00
Michael Hansen
d811fa0e74
Sentence trigger ( #94613 )
...
* Add async_register_trigger_sentences for default agent
* Add trigger response and trigger handler
* Check callback in test
* Clean up and move response to callback
* Add trigger test
* Drop TriggerAction
* Test we pass sentence to callback
* Match triggers once, allow multiple sentences
* Don't use trigger id
* Use async callback
* No response for now
* Use asyncio.gather for callback responses
* Fix after rebase
* Use a list for trigger sentences
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-22 18:29:34 -05:00
Michael Hansen
74560ab139
Skip unexposed entities in intent handlers ( #92415 )
...
* Filter intent handler entities by exposure
* Add test for skipping unexposed entities
2023-05-03 12:18:31 -04:00
Erik Montnemery
0126cfa9d9
Allow exposing any entity to the default conversation agent ( #92398 )
...
* Allow exposing any entity to the default conversation agent
* Tweak
* Fix race, update tests
* Update tests
2023-05-03 09:45:54 -04:00
Erik Montnemery
4860a8d1e8
Don't use storage collection helper in ExposedEntities ( #92396 )
...
* Don't use storage collection helper in ExposedEntities
* Fix tests
2023-05-03 12:39:22 +02:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants ( #92363 )
2023-05-02 22:08:09 +02:00
Erik Montnemery
ebd9cd096a
Keep expose setting in sync for assist ( #92158 )
...
* Keep expose setting in sync for assist
* Fix initialization, add test
* Fix tests
* Add AgentManager.async_setup
* Fix typo
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-04-28 15:59:21 +02:00
Erik Montnemery
dc3c47986b
Add property `supported_languages` to `AbstractConversationAgent` ( #91588 )
...
* Add property supported_languages to AbstractConversationAgent
* Fix test
* Use MATCH_ALL for openai supported languages
2023-04-18 15:11:04 -05:00
Erik Montnemery
2c9e9d0fde
Allow UI configuration of entities exposed to voice_assistant ( #91233 )
...
* Allow UI configuration of entities exposed to voice_assistant
* Invalidate cache when settings change
* Add tests
* Expose entities to conversation by default
* Update tests
2023-04-11 22:39:40 -04:00
epenet
0e4c32efe2
Adjust registry access in conversation ( #88879 )
2023-02-28 21:56:18 -05:00
Michael Hansen
325674ec44
Only expose default cloud domains in Assist default agent ( #88274 )
...
* Only expose default cloud domains in default agent
* Copy exposed domain list to conversation
* Implement requested changes
* Add test for exposed devices/areas
2023-02-17 16:19:22 -05:00
epenet
9f688a564f
Add type hints to integration tests (part 4) ( #87848 )
2023-02-11 08:26:13 +01:00
Paulus Schoutsen
f32f46aff5
Fix Assist skipping entities that are hidden or have entity category ( #87096 )
...
Skipping entities that are hidden or have entity category
2023-02-01 10:48:04 -06:00