类 TextBlock.Builder
java.lang.Object
io.agentscope.core.message.TextBlock.Builder
- 封闭类:
TextBlock
Builder for constructing TextBlock instances.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Builds a new TextBlock with the configured text.Sets the text content for the block.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
text
Sets the text content for the block.- 参数:
text- The text content- 返回:
- This builder for chaining
-
build
Builds a new TextBlock with the configured text.- 返回:
- A new TextBlock instance (null text will be converted to empty string)
-