OffloadBackend
The read-only view of the thread's offloaded results (ToolOutputOffload.key): one file /<key> per result. Mount it at ToolOutputOffload.Mount in a CompositeBackend, the path the model is shown. ls, read, glob and grep see the stored text; write, edit and delete are refused, so a file tool reports them as tool errors. Reading an evicted result says it was evicted. An agent without a ToolOutputOffload has no results.
Attributes
- Source
- ToolOutputOffload.scala
- Graph
-
- Supertypes
- Self type
-
OffloadBackend.type
Members list
Value members
Concrete methods
Deletes the file, or the empty directory, path.
Replaces old with replacement in the file path: the one occurrence, or every occurrence when replaceAll. Refused when old is empty or absent, or occurs more than once and not replaceAll.
Replaces old with replacement in the file path: the one occurrence, or every occurrence when replaceAll. Refused when old is empty or absent, or occurs more than once and not replaceAll.
Attributes
- Source
- ToolOutputOffload.scala
The files within under that accept takes, in path order, at most limit: accept is applied before the limit, so a file it refuses never takes a place (a composite passes a predicate that refuses the paths a mount shadows, and relies on this to fill its limit with visible files). search likewise.
The files within under that accept takes, in path order, at most limit: accept is applied before the limit, so a file it refuses never takes a place (a composite passes a predicate that refuses the paths a mount shadows, and relies on this to fill its limit with visible files). search likewise.
Attributes
- Source
- ToolOutputOffload.scala
The locks a mutation of path holds.
The entries directly beneath the directory path, in path order, at most limit.
The entries directly beneath the directory path, in path order, at most limit.
Attributes
- Source
- ToolOutputOffload.scala
At most limit lines of the file path, from the 0-based line offset.
At most limit lines of the file path, from the 0-based line offset.
Attributes
- Source
- ToolOutputOffload.scala
The lines matching regex of the files within under that accept takes, in path then line order. regex is the model's: match it with org.llm4s.security.RegexSafetyManager.safeFind, never a bare matcher, so a catastrophic pattern is bounded and cannot overflow the stack.
The lines matching regex of the files within under that accept takes, in path then line order. regex is the model's: match it with org.llm4s.security.RegexSafetyManager.safeFind, never a bare matcher, so a catastrophic pattern is bounded and cannot overflow the stack.
Attributes
- Source
- ToolOutputOffload.scala
Writes the file path, creating it or replacing it.
Inherited methods
The files within under whose path relative to under matches pattern.
The files within under whose path relative to under matches pattern.
Attributes
- Inherited from:
- FileBackend
- Source
- FileBackend.scala
The lines matching regex in the files within under. include filters the files: a pattern with no / matches a file's name, one with a / its path relative to under (as ripgrep's --glob).
The lines matching regex in the files within under. include filters the files: a pattern with no / matches a file's name, one with a / its path relative to under (as ripgrep's --glob).
Attributes
- Inherited from:
- FileBackend
- Source
- FileBackend.scala
Concrete fields
The state keys the StateUpdates of this backend's mutations touch; a tool declares them in writes.
The state keys the StateUpdates of this backend's mutations touch; a tool declares them in writes.
Attributes
- Source
- ToolOutputOffload.scala
