We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc2e27 commit 0db6520Copy full SHA for 0db6520
homeassistant/helpers/llm.py
@@ -901,6 +901,12 @@ def __init__(
901
self._domain = domain
902
self._action = action
903
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.
910
self.description, self.parameters = _get_cached_action_parameters(
911
hass, domain, action
912
)
0 commit comments