类 ThinkingBlock.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • thinking

      public ThinkingBlock.Builder thinking(String thinking)
      Sets the thinking content for the block.
      参数:
      thinking - The thinking content
      返回:
      This builder for chaining
    • metadata

      public ThinkingBlock.Builder metadata(Map<String,Object> metadata)
      Sets the metadata for the block.

      Metadata can store additional reasoning information that needs to be preserved, such as OpenRouter's reasoning_details.

      参数:
      metadata - The metadata map
      返回:
      This builder for chaining
    • build

      public ThinkingBlock build()
      Builds a new ThinkingBlock with the configured thinking content and metadata.
      返回:
      A new ThinkingBlock instance (null thinking will be converted to empty string)