acon96 / home-llm

A Home Assistant integration & Model to control your smart home using a Local LLM
483 stars 56 forks source link

Additional Arguments #153

Closed Portagoras closed 3 weeks ago

Portagoras commented 1 month ago

Please describe what you are trying to do with the component
The issue I would like to have solved is that I can't set the brightness of my lamps with the integration, as arguments cant be passed to the 'light.turn_on' service for example. The model instinctivly created a new parameter called 'arguments' as an object with the parameter 'brightness' and an integer value, which corresponds to the arguments the service expects.

Describe the solution you'd like

Additional context
I am no homeassistant expert by any means, so if this ain't possible, just go ahead and close this feature request. I would like to see somethign like that though, or I would need to learn and write a whole lot of custom component-services to basically unwrap all the arguments I need.

acon96 commented 3 weeks ago

There is now support in v0.3 for providing more detailed descriptions of the proper tool arguments to the models. The Full tool format is the same as the most common tool format I have seen for function calling models so far.