Builder
public static class Builder
源码Source
io/agentscope/core/message/ThinkingBlock.java:94–132构建器,用于构建并配置目标实例。位于 io.agentscope.core.message 包。核心成员包括 thinking、metadata、build。
Builder for constructing ThinkingBlock instances.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder thinking(String thinking) | 设置该配置项。 Sets the thinking content for the block. |
public Builder metadata(Map<String, Object> metadata) | 设置元数据用于块。 Sets the metadata for the block. |
public ThinkingBlock build() | 构建并返回最终实例。 Builds a new ThinkingBlock with the configured thinking content and metadata. |
方法详情Method Detail
thinking
public Builder thinking(String thinking)
设置该配置项。
Sets the thinking content for the block.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
thinking | String | thinking(类型 `String`)。The thinking content |
Builder返回当前实例,以支持链式调用。This builder for chaining
源码Source
io/agentscope/core/message/ThinkingBlock.java:105–108metadata
public Builder metadata(Map<String, Object> metadata)
设置元数据用于块。
Sets the metadata for the block.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
metadata | Map<String, Object> | 元数据映射。The metadata map |
Builder返回当前实例,以支持链式调用。This builder for chaining
源码Source
io/agentscope/core/message/ThinkingBlock.java:119–122build
public ThinkingBlock build()
构建并返回最终实例。
Builds a new ThinkingBlock with the configured thinking content and metadata.
ThinkingBlock返回ThinkingBlock。A new ThinkingBlock instance (null thinking will be converted to empty string)
源码Source
io/agentscope/core/message/ThinkingBlock.java:129–131