WriteConfig

org.llm4s.toolapi.builtin.filesystem.WriteConfig
case class WriteConfig(allowedPaths: Seq[String], maxFileSize: Long, allowOverwrite: Boolean, createDirectories: Boolean)

Configuration for write operations.

Value parameters

allowOverwrite

Whether to allow overwriting existing files

allowedPaths

Paths where writing is allowed (required for safety)

createDirectories

Whether to create parent directories if they don't exist

maxFileSize

Maximum file size to write in bytes

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 for writing.

Check if a path is allowed for writing.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product