setInjectToolCallingRules method

Future<void> setInjectToolCallingRules(
  1. bool value
)

Toggles whether tool calling instructions are appended to system prompts.

Implementation

Future<void> setInjectToolCallingRules(bool value) async {
  _injectToolCallingRules = value;
  await _storage.saveToolStrategy(
    strategy: _toolDeliveryStrategy,
    injectRules: _injectToolCallingRules,
    filterSource: _toolFilteringLlmSource,
  );
  notifyListeners();
}