类 TextBlock.Builder

java.lang.Object
io.agentscope.core.message.TextBlock.Builder
封闭类:
TextBlock

public static class TextBlock.Builder extends Object
Builder for constructing TextBlock instances.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • text

      public TextBlock.Builder text(String text)
      Sets the text content for the block.
      参数:
      text - The text content
      返回:
      This builder for chaining
    • build

      public TextBlock build()
      Builds a new TextBlock with the configured text.
      返回:
      A new TextBlock instance (null text will be converted to empty string)