ToolCallingOptions constructor

ToolCallingOptions({
  1. Iterable<ToolDefinition>? tools,
  2. bool? autoExecute,
  3. double? temperature,
  4. int? maxTokens,
  5. String? systemPrompt,
  6. bool? replaceSystemPrompt,
  7. bool? keepToolsAvailable,
  8. ToolCallFormatName? format,
  9. int? maxToolCalls,
  10. ToolChoiceMode? toolChoice,
  11. String? forcedToolName,
  12. bool? requireJsonArguments,
  13. bool? disableThinking,
})

Implementation

factory ToolCallingOptions({
  $core.Iterable<ToolDefinition>? tools,
  $core.bool? autoExecute,
  $core.double? temperature,
  $core.int? maxTokens,
  $core.String? systemPrompt,
  $core.bool? replaceSystemPrompt,
  $core.bool? keepToolsAvailable,
  ToolCallFormatName? format,
  $core.int? maxToolCalls,
  ToolChoiceMode? toolChoice,
  $core.String? forcedToolName,
  $core.bool? requireJsonArguments,
  $core.bool? disableThinking,
}) {
  final result = create();
  if (tools != null) result.tools.addAll(tools);
  if (autoExecute != null) result.autoExecute = autoExecute;
  if (temperature != null) result.temperature = temperature;
  if (maxTokens != null) result.maxTokens = maxTokens;
  if (systemPrompt != null) result.systemPrompt = systemPrompt;
  if (replaceSystemPrompt != null)
    result.replaceSystemPrompt = replaceSystemPrompt;
  if (keepToolsAvailable != null)
    result.keepToolsAvailable = keepToolsAvailable;
  if (format != null) result.format = format;
  if (maxToolCalls != null) result.maxToolCalls = maxToolCalls;
  if (toolChoice != null) result.toolChoice = toolChoice;
  if (forcedToolName != null) result.forcedToolName = forcedToolName;
  if (requireJsonArguments != null)
    result.requireJsonArguments = requireJsonArguments;
  if (disableThinking != null) result.disableThinking = disableThinking;
  return result;
}