StaticFileBackend

org.llm4s.agent.harness.StaticFileBackend
See theStaticFileBackend companion class
@Experimental

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(files: Map[VPath, String], maxFiles: Int, maxBytes: Long): Result[StaticFileBackend]

A backend holding files, by path. They are checked as every backend checks the files it reads: UTF-8 text with no NUL, at most maxFiles files and maxBytes bytes of paths and contents together, and no path both a file and a directory (none at the root). A bundle that breaks one is a ValidationError.

A backend holding files, by path. They are checked as every backend checks the files it reads: UTF-8 text with no NUL, at most maxFiles files and maxBytes bytes of paths and contents together, and no path both a file and a directory (none at the root). A bundle that breaks one is a ValidationError.

Attributes

Concrete fields

val DefaultMaxBytes: Long

1 MiB: the default bound on the files' paths and contents together, as JSON strings.

1 MiB: the default bound on the files' paths and contents together, as JSON strings.

Attributes

val DefaultMaxFiles: Int

The default bound on the number of files.

The default bound on the number of files.

Attributes