ToolCallValidationResult constructor
ToolCallValidationResult({})
Implementation
factory ToolCallValidationResult({
$core.bool? isValid,
$core.Iterable<$core.String>? validationErrors,
ToolDefinition? matchedTool,
$core.String? normalizedArgumentsJson,
$core.String? errorMessage,
$core.int? errorCode,
}) {
final result = create();
if (isValid != null) result.isValid = isValid;
if (validationErrors != null)
result.validationErrors.addAll(validationErrors);
if (matchedTool != null) result.matchedTool = matchedTool;
if (normalizedArgumentsJson != null)
result.normalizedArgumentsJson = normalizedArgumentsJson;
if (errorMessage != null) result.errorMessage = errorMessage;
if (errorCode != null) result.errorCode = errorCode;
return result;
}