ToolCallingSessionCreateRequest constructor

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

Implementation

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