FileSnapshotResponse

org.llm4s.shared.FileSnapshotResponse
See theFileSnapshotResponse companion object
case class FileSnapshotResponse(commandId: String, path: String, kind: String, hash: String, size: Long, content: Option[String], textError: Option[String]) extends WorkspaceAgentResponse

What is at a path, as a compare-and-set reads it.

Value parameters

content

the file's exact text, when asked for, if it is at most maxFileSize bytes of valid UTF-8

hash

absent, directory, oversized (a file over maxFileSize, never read), or sha256: and the 64 lowercase hex digits of the SHA-256 of the file's bytes: what WriteFileCommand.expectedHash and DeleteFileCommand.expectedHash are compared with

kind

absent, file or directory (FileSnapshotResponse.Kind)

size

the file's size in bytes; 0 for a directory or nothing

textError

why a file's content is absent although it was asked for

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product