Class SessionsREPLTool.RemoteFileMetadata

java.lang.Object
dev.langchain4j.code.azure.acads.SessionsREPLTool.RemoteFileMetadata
Enclosing class:
SessionsREPLTool

public static class SessionsREPLTool.RemoteFileMetadata extends Object
Represents metadata of a remote file.
  • Constructor Details

    • RemoteFileMetadata

      public RemoteFileMetadata(String filename, long sizeInBytes)
      Constructs a RemoteFileMetadata instance.
      Parameters:
      filename - the name of the file
      sizeInBytes - the size of the file in bytes
  • Method Details

    • getFilename

      public String getFilename()
      Gets the filename.
      Returns:
      the filename
    • getSizeInBytes

      public long getSizeInBytes()
      Gets the size of the file in bytes.
      Returns:
      the size in bytes
    • getFullPath

      public String getFullPath()
      Gets the full path of the file.
      Returns:
      the full file path
    • fromDict

      public static SessionsREPLTool.RemoteFileMetadata fromDict(Map<String,Object> data)
      Creates a RemoteFileMetadata instance from a map.
      Parameters:
      data - the map containing file properties
      Returns:
      a RemoteFileMetadata instance