StaticFileBackend

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

Attributes

Companion
class
Source
StaticFileBackend.scala
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

Source
StaticFileBackend.scala

Concrete fields

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

Source
StaticFileBackend.scala

The default bound on the number of files.

The default bound on the number of files.

Attributes

Source
StaticFileBackend.scala