类 FilePart
java.lang.Object
io.github.a2ap.core.model.Part
io.github.a2ap.core.model.FilePart
Represents a file part of a message.
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明FilePart()Default constructorFilePart(FileContent file) Constructor with file contentFilePart(FileContent file, Map<String, Object> metadata) Constructor with file content and metadata -
方法概要
修饰符和类型方法说明static FilePart.Builderbuilder()Returns a builder for FilePartbooleangetFile()Gets the file contentgetKind()Gets the kindinthashCode()voidsetFile(FileContent file) Sets the file contenttoString()从类继承的方法 io.github.a2ap.core.model.Part
getMetadata, setKind, setMetadata
-
构造器详细资料
-
FilePart
public FilePart()Default constructor -
FilePart
Constructor with file content- 参数:
file- The file content
-
FilePart
Constructor with file content and metadata- 参数:
file- The file contentmetadata- The metadata
-
-
方法详细资料
-
getKind
Gets the kind -
getFile
Gets the file content- 返回:
- The file content
-
setFile
Sets the file content- 参数:
file- The file content to set
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
Returns a builder for FilePart- 返回:
- A new builder instance
-