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