Larger LLMs can be integrated into an existing system (for example a Home Automation system) via Function Calling - via a bare bones approach without any extra Python libraries.
What is Function Calling: this is an approach for integrating an LLM into an existing system whilst minimizing coupling. Somewhat similar to Command Pattern, the LLM in its response does need to specify the ‘how’ of each generated element, but instead simply specifies the ‘what’ by listing the function calls to make (equivalent to a list of commands).
The client in its request tells the LLM what functions are available and what parameters they need. So the LLMs responsibility is limited to deciding what functions to call, and in which order.
This approach keeps coupling low and allows the client to decide how to implement the details of the functions, and also to later change, add or remove functions with minimal effort.
The good news is that larger LLMs can already be used via Function Calling without any extra libraries or training.