setTools method
Clears all registered tools from the chat and registers the new tools Example:
chat.setTools([tool1, tool2]);
Implementation
void setTools(List<GroqToolItem> tools) {
_registeredTools.clear();
_registeredTools.addAll(tools);
}