Skip to content

Commit 0db6520

Browse files
authored
Add comment in helpers.llm.ActionTool explaining limitations (home-assistant#147116)
1 parent 5bc2e27 commit 0db6520

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

homeassistant/helpers/llm.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,12 @@ def __init__(
901901
self._domain = domain
902902
self._action = action
903903
self.name = f"{domain}.{action}"
904+
# Note: _get_cached_action_parameters only works for services which
905+
# add their description directly to the service description cache.
906+
# This is not the case for most services, but it is for scripts.
907+
# If we want to use `ActionTool` for services other than scripts, we
908+
# need to add a coroutine function to fetch the non-cached description
909+
# and schema.
904910
self.description, self.parameters = _get_cached_action_parameters(
905911
hass, domain, action
906912
)

0 commit comments

Comments
 (0)