ThinkingConfig constructor

  1. @Deprecated('Use ThinkingConfig.withThinkingBudget() or ThinkingConfig.withThinkingLevel() instead.')
ThinkingConfig({
  1. int? thinkingBudget,
  2. ThinkingLevel? thinkingLevel,
  3. bool? includeThoughts,
})

Deprecated public constructor of ThinkingConfig.

Keep for backwards compatibility. thinkingBudget and thinkingLevel cannot be set at the same time.

Implementation

@Deprecated(
    'Use ThinkingConfig.withThinkingBudget() or ThinkingConfig.withThinkingLevel() instead.')
ThinkingConfig(
    {this.thinkingBudget, this.thinkingLevel, this.includeThoughts})
    : assert(
        !(thinkingBudget != null && thinkingLevel != null),
        'thinkingBudget and thinkingLevel cannot be set at the same time.',
      );