ToolCallingOptions constructor
ToolCallingOptions({
- Iterable<
ToolDefinition> ? tools, - bool? autoExecute,
- double? temperature,
- int? maxTokens,
- String? systemPrompt,
- bool? replaceSystemPrompt,
- bool? keepToolsAvailable,
- ToolCallFormatName? format,
- int? maxToolCalls,
- ToolChoiceMode? toolChoice,
- String? forcedToolName,
- bool? requireJsonArguments,
- 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;
}