Class SessionsREPLTool.RemoteFileMetadata
java.lang.Object
dev.langchain4j.code.azure.acads.SessionsREPLTool.RemoteFileMetadata
- Enclosing class:
SessionsREPLTool
Represents metadata of a remote file.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteFileMetadata
(String filename, long sizeInBytes) Constructs a RemoteFileMetadata instance. -
Method Summary
Modifier and TypeMethodDescriptionCreates a RemoteFileMetadata instance from a map.Gets the filename.Gets the full path of the file.long
Gets the size of the file in bytes.
-
Constructor Details
-
RemoteFileMetadata
Constructs a RemoteFileMetadata instance.- Parameters:
filename
- the name of the filesizeInBytes
- the size of the file in bytes
-
-
Method Details
-
getFilename
-
getSizeInBytes
public long getSizeInBytes()Gets the size of the file in bytes.- Returns:
- the size in bytes
-
getFullPath
-
fromDict
Creates a RemoteFileMetadata instance from a map.- Parameters:
data
- the map containing file properties- Returns:
- a RemoteFileMetadata instance
-