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
maxFileSizebytes of valid UTF-8 - hash
-
absent,directory,oversized(a file overmaxFileSize, never read), orsha256:and the 64 lowercase hex digits of the SHA-256 of the file's bytes: whatWriteFileCommand.expectedHashandDeleteFileCommand.expectedHashare compared with - kind
-
absent,fileordirectory(FileSnapshotResponse.Kind) - size
-
the file's size in bytes; 0 for a directory or nothing
- textError
-
why a file's
contentis absent although it was asked for
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass Any
Members list
In this article