setTools method

void setTools(
  1. List<GroqToolItem> tools
)

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);
}