FileConfig

org.llm4s.toolapi.builtin.filesystem.FileConfig
case class FileConfig(maxFileSize: Long, allowedPaths: Option[Seq[String]], blockedPaths: Seq[String], followSymlinks: Boolean)

Configuration for file system tools.

Value parameters

allowedPaths

Paths that are allowed to be accessed. None means any path.

blockedPaths

Paths that are blocked from access (takes precedence over allowedPaths)

followSymlinks

Whether to follow symbolic links (default: false for security)

maxFileSize

Maximum file size to read in bytes (default: 1MB)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def isPathAllowed(path: Path): Boolean

Check if a path is allowed based on configuration.

Check if a path is allowed based on configuration.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product