Uses of Record Class
com.tnsai.tools.file.FileGuardConfig
Packages that use FileGuardConfig
-
Uses of FileGuardConfig in com.tnsai.tools.document
Constructors in com.tnsai.tools.document with parameters of type FileGuardConfigModifierConstructorDescriptionDocumentTools(FileGuardConfig guardConfig) DocumentTools(HttpClient http, com.fasterxml.jackson.databind.ObjectMapper mapper, FileGuardConfig guardConfig) -
Uses of FileGuardConfig in com.tnsai.tools.document.docling
Methods in com.tnsai.tools.document.docling with parameters of type FileGuardConfigConstructors in com.tnsai.tools.document.docling with parameters of type FileGuardConfigModifierConstructorDescriptionDoclingTools(DoclingProvider provider, FileGuardConfig guardConfig) -
Uses of FileGuardConfig in com.tnsai.tools.file
Methods in com.tnsai.tools.file that return FileGuardConfigModifier and TypeMethodDescriptionstatic FileGuardConfigFileGuardConfig.defaults()Builds a config from environment variables, falling back to compiled defaults for any var that is unset or unparseable.FileGuardConfig.withAllowedExtensions(Set<String> extensions) Returns a new config with the given allowed extensions, all other fields unchanged.Methods in com.tnsai.tools.file with parameters of type FileGuardConfigModifier and TypeMethodDescriptionstatic PathFileGuard.checkRead(String path, FileGuardConfig config, Set<String> toolDefaultExtensions) Validates a read request and returns the resolved absolute path.static PathFileGuard.checkWrite(String path, long bytesToWrite, FileGuardConfig config, Set<String> toolDefaultExtensions) Validates a write request and returns the resolved absolute path.Constructors in com.tnsai.tools.file with parameters of type FileGuardConfigModifierConstructorDescriptionCsvTools(FileGuardConfig guardConfig) FileIoTools(FileGuardConfig guardConfig) JsonTools(FileGuardConfig guardConfig) MarkdownTools(FileGuardConfig guardConfig) PdfTools(FileGuardConfig guardConfig) PdfTools(FileGuardConfig guardConfig, DoclingProvider doclingProvider) Creates PDF tools with an optional Docling page-rendering fallback.XmlTools(FileGuardConfig guardConfig)