AS AgentScopeAPI 手册 / API Reference

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
thinkingStringthinking(类型 `String`)。The thinking content
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining
源码Source io/agentscope/core/message/ThinkingBlock.java:105–108

metadata

public Builder metadata(Map<String, Object> metadata)

设置元数据用于块。

Sets the metadata for the block.

参数Parameters
名称Name类型Type说明Description
metadataMap<String, Object>元数据映射。The metadata map
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining
源码Source io/agentscope/core/message/ThinkingBlock.java:119–122

build

public ThinkingBlock build()

构建并返回最终实例。

Builds a new ThinkingBlock with the configured thinking content and metadata.

返回Returns ThinkingBlock
返回ThinkingBlock。A new ThinkingBlock instance (null thinking will be converted to empty string)
源码Source io/agentscope/core/message/ThinkingBlock.java:129–131
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.