getAutoToolSearchCharThreshold method

int getAutoToolSearchCharThreshold({
  1. required String model,
  2. required int contextWindow,
})

Get the character threshold for auto-enabling tool search for a given model.

Implementation

int getAutoToolSearchCharThreshold({
  required String model,
  required int contextWindow,
}) {
  return (getAutoToolSearchTokenThreshold(
            model: model,
            contextWindow: contextWindow,
          ) *
          _charsPerToken)
      .floor();
}