类 FilePart

java.lang.Object
io.github.a2ap.core.model.Part
io.github.a2ap.core.model.FilePart

public class FilePart extends Part
Represents a file part of a message.
  • 构造器详细资料

    • FilePart

      public FilePart()
      Default constructor
    • FilePart

      public FilePart(FileContent file)
      Constructor with file content
      参数:
      file - The file content
    • FilePart

      public FilePart(FileContent file, Map<String,Object> metadata)
      Constructor with file content and metadata
      参数:
      file - The file content
      metadata - The metadata
  • 方法详细资料

    • getKind

      public String getKind()
      Gets the kind
      覆盖:
      getKind 在类中 Part
      返回:
      The kind, always "file"
    • getFile

      public FileContent getFile()
      Gets the file content
      返回:
      The file content
    • setFile

      public void setFile(FileContent file)
      Sets the file content
      参数:
      file - The file content to set
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Part
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Part
    • toString

      public String toString()
      覆盖:
      toString 在类中 Part
    • builder

      public static FilePart.Builder builder()
      Returns a builder for FilePart
      返回:
      A new builder instance