Class FileValidator
- Namespace
- GenerativeAI.Core
- Assembly
- GenerativeAI.dll
Provides methods to validate files for inline use based on size and MIME type constraints.
public static class FileValidator
- Inheritance
-
FileValidator
- Inherited Members
Methods
ValidateInlineFile(string)
Validates the specified file for inline use.
public static void ValidateInlineFile(string filePath)
Parameters
filePathstringThe full path to the file to validate.
Exceptions
- FileNotFoundException
Thrown when the file does not exist at the given path.
- ArgumentException
Thrown when the file exceeds the maximum size allowed for inline use or its MIME type is not allowed.