1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Make remaining time of timers available to LLMs (#118696)

* Include speech_slots in IntentResponse.as_dict

* Populate speech_slots only if available

* fix typo

* Add test

* test all fields

* Fix another test

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
tronikos
2024-06-14 11:47:41 -07:00
committed by GitHub
parent c077c2a972
commit 6b8bddf6e3
2 changed files with 39 additions and 4 deletions

View File

@@ -1363,6 +1363,8 @@ class IntentResponse:
if self.reprompt:
response_dict["reprompt"] = self.reprompt
if self.speech_slots:
response_dict["speech_slots"] = self.speech_slots
response_data: dict[str, Any] = {}