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