类 DataPart.Builder
java.lang.Object
io.github.a2ap.core.model.DataPart.Builder
- 封闭类:
- DataPart
Builder class for DataPart.
-
方法概要
修饰符和类型方法说明build()Builds a new DataPart instance.Sets the structured data content.Sets the metadata.
-
方法详细资料
-
data
Sets the structured data content.- 参数:
data- the structured data content- 返回:
- this builder for chaining
-
metadata
Sets the metadata.- 参数:
metadata- the metadata- 返回:
- this builder for chaining
-
build
Builds a new DataPart instance.- 返回:
- the built instance
-