Blocks
record Blocks(List<InputContent> parts) implements MessageContent
源码Source
io/agentscope/core/agui/model/MessageContent.java:61–71承载 Blocks数据的记录类型。位于 io.agentscope.core.agui.model 包,实现 MessageContent。核心成员包括 parts、Blocks。
Structured content blocks, serialized as a JSON array of InputContent.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
parts | List<InputContent> | 执行 `parts` 方法。 the list of content parts; defensively copied to ensure immutability |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public Blocks(List<InputContent> parts) | 初始化 `Blocks` 实例。 Compact constructor that creates an immutable copy of the parts list. |
记录组件详情Record Component Detail
parts
List<InputContent> parts执行 parts 方法。
the list of content parts; defensively copied to ensure immutability
源码Source
io/agentscope/core/agui/model/MessageContent.java:61–71构造器详情Constructor Detail
Blocks
public Blocks(List<InputContent> parts)
初始化 Blocks 实例。
Compact constructor that creates an immutable copy of the parts list.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
parts | List<InputContent> | parts(类型 `List`)。the content parts |
源码Source
io/agentscope/core/agui/model/MessageContent.java:68–70